tx · 2hQfhKUBAwNhmihWY81NTkdqqeJU83mb34M6W5oFDqcf 3N8aSJQyrxUvuTVvJhxNEMuJcfDvfdVYNEd: -0.01000000 Waves 2020.11.25 13:55 [1280840] smart account 3N8aSJQyrxUvuTVvJhxNEMuJcfDvfdVYNEd > SELF 0.00000000 Waves
{ "type": 13, "id": "2hQfhKUBAwNhmihWY81NTkdqqeJU83mb34M6W5oFDqcf", "fee": 1000000, "feeAssetId": null, "timestamp": 1606301724172, "version": 1, "sender": "3N8aSJQyrxUvuTVvJhxNEMuJcfDvfdVYNEd", "senderPublicKey": "FaZF57AyHHEdmZzjugHtRX1oZt9hKvFLRLDjnuTkSRRH", "proofs": [ "2d368qyvqZammV2xvzmsgBLzmfTBfjZkEoZJibQewq5FCt74NM6m9WtkoPWmPkHpCwPU9uM4EqdByirCJ9ZFdFYH" ], "script": "base64:AAIEAAAAAAAAADgIAhINCgsICAgICAgICAgBARIDCgEBEgASAwoBARIDCgEIEgQKAggBEgASAwoBARIAEgMKAQESAAAAAG0BAAAAAlNFAAAAAgAAAAFrAAAAAXYJAQAAAAtTdHJpbmdFbnRyeQAAAAIFAAAAAWsFAAAAAXYBAAAAAklFAAAAAgAAAAFrAAAAAXYJAQAAAAxJbnRlZ2VyRW50cnkAAAACBQAAAAFrBQAAAAF2AQAAAAJTVAAAAAMAAAABYQAAAANhbXQAAAABdAkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwUAAAABYQUAAAADYW10BQAAAAF0AQAAAAVkZWJ1ZwAAAAIAAAABawAAAAF2CQEAAAACU0UAAAACCQABLAAAAAICAAAAB19fZGJnX18FAAAAAWsFAAAAAXYAAAAABHRlbjYAAAAAAAAPQkAAAAAABHRlbjgAAAAAAAX14QAAAAAAA01BWAB//////////wAAAAARY29uZmlnUHJvdmlkZXJLZXkCAAAADmNvbmZpZ1Byb3ZpZGVyAAAAAA5jb25maWdQcm92aWRlcgQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAR0aGlzBQAAABF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pY2VJbmRleAUAAAAUcmViYWxhbmNlZFByaWNlSW5kZXgDBQAAAAxjYW5SZWJhbGFuY2UJAQAAAAlyZWJhbGFuY2UAAAAACQAAAgAAAAECAAAAEVtPS10gbmVlZCB0byB3YWl0AwkAAAAAAAACBQAAAApwcmljZUluZGV4BQAAABRyZWJhbGFuY2VkUHJpY2VJbmRleAkBAAAAB2RlcXVldWUAAAAACQAAAgAAAAECAAAAH2Z1dHVyZSBwcmljZSBhbHJlYWR5IHJlYmFsYW5jZWQAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABu6ntK8=", "chainId": 84, "height": 1280840, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 4 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | func SE (k,v) = StringEntry(k, v) | |
5 | + | ||
6 | + | ||
7 | + | func IE (k,v) = IntegerEntry(k, v) | |
8 | + | ||
9 | + | ||
10 | + | func ST (a,amt,t) = ScriptTransfer(a, amt, t) | |
11 | + | ||
12 | + | ||
13 | + | func debug (k,v) = SE(("__dbg__" + k), v) | |
14 | + | ||
15 | + | ||
16 | + | let ten6 = 1000000 | |
17 | + | ||
18 | + | let ten8 = 100000000 | |
19 | + | ||
20 | + | let MAX = 9223372036854775807 | |
21 | + | ||
22 | + | let configProviderKey = "configProvider" | |
23 | + | ||
24 | + | let configProvider = match getString(this, configProviderKey) { | |
25 | + | case s: String => | |
26 | + | addressFromStringValue(s) | |
27 | + | case _ => | |
28 | + | this | |
29 | + | } | |
30 | + | ||
31 | + | func localI (k,e) = valueOrErrorMessage(getInteger(this, k), e) | |
32 | + | ||
33 | + | ||
34 | + | func localS (k,e) = valueOrErrorMessage(getString(this, k), e) | |
35 | + | ||
36 | + | ||
37 | + | func confI (k,e) = valueOrErrorMessage(getInteger(configProvider, k), e) | |
38 | + | ||
39 | + | ||
40 | + | func confS (k,e) = valueOrErrorMessage(getString(configProvider, k), e) | |
41 | + | ||
42 | + | ||
43 | + | let BULLK = "BULLId" | |
44 | + | ||
45 | + | let BEARK = "BEARId" | |
46 | + | ||
47 | + | let USDNK = "mainTokenId" | |
48 | + | ||
49 | + | let BULLCOLK = "bullCollateral" | |
50 | + | ||
51 | + | let BEARCOLK = "bearCollateral" | |
52 | + | ||
53 | + | let BULLCIRCK = "bullCirculation" | |
54 | + | ||
55 | + | let BEARCIRCK = "bearCirculation" | |
56 | + | ||
57 | + | let ISSPERCK = "issuePercentile" | |
58 | + | ||
59 | + | let REDPERCK = "redeemPercentile" | |
60 | + | ||
61 | + | let MINISSK = "minIssue" | |
62 | + | ||
63 | + | let MINREDK = "minRedeem" | |
64 | + | ||
65 | + | let MINPOOLK = "minPool" | |
66 | + | ||
67 | + | let FEEACCK = "feesAccumulated" | |
68 | + | ||
69 | + | let WLISTK = "issueWhiteList" | |
70 | + | ||
71 | + | let REBPERCK = "rebalancePercentile" | |
72 | + | ||
73 | + | let REBIDXK = "lastSettlementPriceId" | |
74 | + | ||
75 | + | let HEADK = "headPointer" | |
76 | + | ||
77 | + | let TAILK = "tailPointer" | |
78 | + | ||
79 | + | let QSIZEK = "queueSize" | |
80 | + | ||
81 | + | let POOLUSDNK = "poolMainTokenValue" | |
82 | + | ||
83 | + | let POOLUPK = "poolUp" | |
84 | + | ||
85 | + | let POOLDWNK = "poolDwn" | |
86 | + | ||
87 | + | let POOLCIRCK = "poolTokenCirculation" | |
88 | + | ||
89 | + | let POOLK = "poolToken" | |
90 | + | ||
91 | + | let ASSNAMEK = "defoAssetName" | |
92 | + | ||
93 | + | let LEVK = "leverage" | |
94 | + | ||
95 | + | let WAVESFEEK = "wavesPacemakerFee" | |
96 | + | ||
97 | + | let USDNFEEK = "usdnPacemakerFee" | |
98 | + | ||
99 | + | let oraclePKKey = "oracle" | |
100 | + | ||
101 | + | func lastPriceIndexKey (assetId) = if ((assetId == "")) | |
102 | + | then "price_index" | |
103 | + | else ("%s%s__idxCurrent__" + assetId) | |
104 | + | ||
105 | + | ||
106 | + | func priceIndexPrefix (assetId) = if ((assetId == "")) | |
107 | + | then "price_index_" | |
108 | + | else (("%s%s%d__idx2Height__" + assetId) + "__") | |
109 | + | ||
110 | + | ||
111 | + | func priceHeightPrefix (assetId) = if ((assetId == "")) | |
112 | + | then "price_" | |
113 | + | else (("%s%s%d__priceByHeight__" + assetId) + "__") | |
114 | + | ||
115 | + | ||
116 | + | let minUsdnFee = valueOrElse(getInteger(configProvider, USDNFEEK), 0) | |
117 | + | ||
118 | + | let minWavesFee = valueOrElse(getInteger(configProvider, WAVESFEEK), 0) | |
119 | + | ||
120 | + | let assetName = valueOrElse(getString(this, ASSNAMEK), "") | |
121 | + | ||
122 | + | let bullCol = localI(BULLCOLK, "no 0") | |
123 | + | ||
124 | + | let bearCol = localI(BEARCOLK, "no 1") | |
125 | + | ||
126 | + | let bullCirc = localI(BULLCIRCK, "no 2") | |
127 | + | ||
128 | + | let bearCirc = localI(BEARCIRCK, "no 3") | |
129 | + | ||
130 | + | let BULL = localS(BULLK, "no 14") | |
131 | + | ||
132 | + | let BEAR = localS(BEARK, "no 15") | |
133 | + | ||
134 | + | let mainToken = localS(USDNK, "no 16") | |
135 | + | ||
136 | + | let issuePercentile = confI(ISSPERCK, "no 4") | |
137 | + | ||
138 | + | let redeemPercentile = confI(REDPERCK, "no 5") | |
139 | + | ||
140 | + | let minIssue = confI(MINISSK, "no 6") | |
141 | + | ||
142 | + | let minRedeem = confI(MINREDK, "no 7") | |
143 | + | ||
144 | + | let minPool = confI(MINPOOLK, "no 8") | |
145 | + | ||
146 | + | let rebalancePercentile = valueOrElse(getInteger(configProvider, ((toString(this) + "_") + REBPERCK)), 0) | |
147 | + | ||
148 | + | let whitelist = confS(WLISTK, "no 9") | |
149 | + | ||
150 | + | func allowed (a) = if ((whitelist == "")) | |
151 | + | then true | |
152 | + | else isDefined(indexOf(whitelist, toString(a))) | |
153 | + | ||
154 | + | ||
155 | + | let poolMain = localI(POOLUSDNK, "no") | |
156 | + | ||
157 | + | let poolUp = localI(POOLUPK, "no 10") | |
158 | + | ||
159 | + | let poolDwn = localI(POOLDWNK, "no 11") | |
160 | + | ||
161 | + | let poolToken = localS(POOLK, "no 12") | |
162 | + | ||
163 | + | let poolTokenCirculation = localI(POOLCIRCK, "no 13") | |
164 | + | ||
165 | + | let poolBullExposure = fraction(bullCol, poolUp, bullCirc) | |
166 | + | ||
167 | + | let poolBearExposure = fraction(bearCol, poolDwn, bearCirc) | |
168 | + | ||
169 | + | let poolValue = ((poolMain + poolBullExposure) + poolBearExposure) | |
170 | + | ||
171 | + | let oracle = valueOrErrorMessage(addressFromPublicKey(fromBase58String(valueOrErrorMessage(getString(this, oraclePKKey), "no oraclePKKey"))), "bad oracle address") | |
172 | + | ||
173 | + | let rebalancedPriceIndex = valueOrErrorMessage(getInteger(this, REBIDXK), "no last rebalance price") | |
174 | + | ||
175 | + | let oraclePriceIndex = valueOrErrorMessage(getInteger(oracle, lastPriceIndexKey(assetName)), ((("bad oracle data at " + toString(oracle)) + ": no integer at ") + lastPriceIndexKey(assetName))) | |
176 | + | ||
177 | + | let leverage = valueOrElse(getInteger(this, LEVK), 3) | |
178 | + | ||
179 | + | func heightByIndex (assetName,priceIndex) = valueOrErrorMessage(getInteger(oracle, (priceIndexPrefix(assetName) + toString(priceIndex))), ("no data at index " + toString(priceIndex))) | |
180 | + | ||
181 | + | ||
182 | + | func priceByHeight (assetName,priceHeight) = valueOrErrorMessage(getInteger(oracle, (priceHeightPrefix(assetName) + toString(priceHeight))), ("no data for height " + toString(priceHeight))) | |
183 | + | ||
184 | + | ||
185 | + | func priceByIndex (assetName,priceIndex) = priceByHeight(assetName, heightByIndex(assetName, priceIndex)) | |
186 | + | ||
187 | + | ||
188 | + | let queueSize = valueOrElse(getInteger(this, QSIZEK), 0) | |
189 | + | ||
190 | + | let headPointer = valueOrElse(getString(this, HEADK), "") | |
191 | + | ||
192 | + | let tailPointer = valueOrElse(getString(this, TAILK), "") | |
193 | + | ||
194 | + | let feesAccumulated = valueOrElse(getInteger(this, FEEACCK), 0) | |
195 | + | ||
196 | + | let ISSUE = "ISSUE" | |
197 | + | ||
198 | + | let REDEEM = "REDEEM" | |
199 | + | ||
200 | + | let POOL = "POOL" | |
201 | + | ||
202 | + | let UNPOOL = "UNPOOL" | |
203 | + | ||
204 | + | let feeAddrKey = "feeAddress" | |
205 | + | ||
206 | + | let stakingAddrKey = "stakingAddress" | |
207 | + | ||
208 | + | let daemonPubKeyKey = "daemonPublicKey" | |
209 | + | ||
210 | + | let feeAddress = valueOrErrorMessage(addressFromString(confS(feeAddrKey, "no feeAddress")), "bad feeAddress") | |
211 | + | ||
212 | + | let stakingAddress = confS(stakingAddrKey, "no stakingAddress") | |
213 | + | ||
214 | + | let daemonPublicKey = fromBase58String(confS(daemonPubKeyKey, "no daemonPublicKey")) | |
215 | + | ||
216 | + | let rpdAddress = addressFromString("3PNikM6yp4NqcSU8guxQtmR5onr2D4e8yTJ") | |
217 | + | ||
218 | + | let admins = ["2HHqV8W9DJayV5R6tBD2Sb8srphpoboDi7r1t1aPiumC", "5ZXe82RRASU7qshXM2J9JNYhqJ9GWYjjVq2gwUV5Naz9", "5WRXFSjwcTbNfKcJs8ZqXmSSWYsSVJUtMvMqZj5hH4Nc"] | |
219 | + | ||
220 | + | func buildNewItem (action,amt,token,priceIndex,invoker,minPayout,maxPayout) = (((((((((((((action + "|") + toString(amt)) + "|") + token) + "|") + toString(priceIndex)) + "|") + invoker) + "|") + toString(minPayout)) + "|") + toString(maxPayout)) + "|") | |
221 | + | ||
222 | + | ||
223 | + | func userDiffAbs () = { | |
224 | + | let $t057975886 = $Tuple2((bullCol - poolBullExposure), (bearCol - poolBearExposure)) | |
225 | + | let userBullCol = $t057975886._1 | |
226 | + | let userBearCol = $t057975886._2 | |
227 | + | let diff = (userBullCol - userBearCol) | |
228 | + | if ((diff > 0)) | |
229 | + | then diff | |
230 | + | else (0 - diff) | |
231 | + | } | |
232 | + | ||
233 | + | ||
234 | + | func maxIssue (tokenId) = { | |
235 | + | let poolInvestment = if ((poolUp > 0)) | |
236 | + | then BULL | |
237 | + | else BEAR | |
238 | + | if ((tokenId != poolInvestment)) | |
239 | + | then poolMain | |
240 | + | else (userDiffAbs() + poolValue) | |
241 | + | } | |
242 | + | ||
243 | + | ||
244 | + | func validatePMFee (i,minPayout) = if ((0 > minPayout)) | |
245 | + | then throw("negative min payout") | |
246 | + | else { | |
247 | + | let p = i.payments[1] | |
248 | + | let ok = match p.assetId { | |
249 | + | case bv: ByteVector => | |
250 | + | if ((toBase58String(bv) == mainToken)) | |
251 | + | then (p.amount >= minUsdnFee) | |
252 | + | else false | |
253 | + | case waves: Unit => | |
254 | + | (p.amount >= minWavesFee) | |
255 | + | case _ => | |
256 | + | throw("Match error") | |
257 | + | } | |
258 | + | if (!(ok)) | |
259 | + | then throw("incorrect pacemaker fee") | |
260 | + | else true | |
261 | + | } | |
262 | + | ||
263 | + | ||
264 | + | func validateRequestRedeem (inv) = if ((inv.caller == this)) | |
265 | + | then throw("can't do") | |
266 | + | else { | |
267 | + | func errorMessage (got) = throw(((((("bad token att: only BULL(" + BULL) + ") or BEAR(") + BEAR) + ") tokens are accepted, received: ") + got)) | |
268 | + | ||
269 | + | let assetId = toBase58String(valueOrErrorMessage(value(inv.payments[0]).assetId, "bad token att")) | |
270 | + | if (if ((assetId != BEAR)) | |
271 | + | then (assetId != BULL) | |
272 | + | else false) | |
273 | + | then errorMessage(assetId) | |
274 | + | else { | |
275 | + | let attachedAmount = inv.payments[0].amount | |
276 | + | let col = if ((assetId == BEAR)) | |
277 | + | then bearCol | |
278 | + | else bullCol | |
279 | + | let circ = if ((assetId == BEAR)) | |
280 | + | then bearCirc | |
281 | + | else bullCirc | |
282 | + | let estimated = fraction(col, attachedAmount, circ) | |
283 | + | if ((minRedeem > estimated)) | |
284 | + | then throw((((((((((("Attached payment too small. Min redeem amount is " + toString((minRedeem / 1000000))) + " USDN, ") + "attached amount: ") + toString(attachedAmount)) + ", col: ") + toString(col)) + ", circ: ") + toString(circ)) + ", estimated: ") + toString(estimated))) | |
285 | + | else unit | |
286 | + | } | |
287 | + | } | |
288 | + | ||
289 | + | ||
290 | + | func enqueue (id,action,amt,token,priceIndex,invoker,minPayout,maxPayout) = { | |
291 | + | let increaseQueueSize = IE(QSIZEK, (queueSize + 1)) | |
292 | + | let itm = buildNewItem(action, amt, token, priceIndex, invoker, minPayout, maxPayout) | |
293 | + | if ((queueSize == 0)) | |
294 | + | then [SE(HEADK, id), SE(TAILK, id), SE(id, itm), increaseQueueSize] | |
295 | + | else { | |
296 | + | let prevId = localS(TAILK, "can't get tail pointer") | |
297 | + | let prevItm = localS(prevId, "can't resolve pointer") | |
298 | + | let updatedPrevItm = (prevItm + id) | |
299 | + | [SE(prevId, updatedPrevItm), SE(id, itm), SE(TAILK, id), increaseQueueSize] | |
300 | + | } | |
301 | + | } | |
302 | + | ||
303 | + | ||
304 | + | func poolSupport (curBullCol0,curBearCol0,curBullCirc0,curBearCirc0,curPoolMain0,curPoolUp0,curPoolDwn0) = { | |
305 | + | func closeUp (c1,c2,a0,a1,c0,pu,pd) = { | |
306 | + | let diff = (c1 - c2) | |
307 | + | let exposure = fraction(c1, pu, a0) | |
308 | + | let liquidatedTokens = if ((diff > exposure)) | |
309 | + | then pu | |
310 | + | else fraction(diff, a0, c1) | |
311 | + | let liquidatedValue = if ((diff > exposure)) | |
312 | + | then exposure | |
313 | + | else fraction(liquidatedTokens, c1, a0) | |
314 | + | $Tuple7((c1 - liquidatedValue), c2, (a0 - liquidatedTokens), a1, (c0 + liquidatedValue), (pu - liquidatedTokens), pd) | |
315 | + | } | |
316 | + | ||
317 | + | func closeDwn (c1,c2,a0,a1,c0,pu,pd) = { | |
318 | + | let diff = (c2 - c1) | |
319 | + | let exposure = fraction(c2, pd, a1) | |
320 | + | let liquidatedTokens = if ((diff > exposure)) | |
321 | + | then pd | |
322 | + | else fraction(diff, a1, c2) | |
323 | + | let liquidatedValue = if ((diff > exposure)) | |
324 | + | then exposure | |
325 | + | else fraction(liquidatedTokens, c2, a1) | |
326 | + | $Tuple7(c1, (c2 - liquidatedValue), a0, (a1 - liquidatedTokens), (c0 + liquidatedValue), pu, (pd - liquidatedTokens)) | |
327 | + | } | |
328 | + | ||
329 | + | func openDwn (c1,c2,a0,a1,c0,pu,pd) = { | |
330 | + | let diff = (c1 - c2) | |
331 | + | let spentPoolValue = if ((c0 > diff)) | |
332 | + | then diff | |
333 | + | else c0 | |
334 | + | let acquiredTokens = fraction(spentPoolValue, a1, c2) | |
335 | + | $Tuple7(c1, (c2 + spentPoolValue), a0, (a1 + acquiredTokens), (c0 - spentPoolValue), pu, (pd + acquiredTokens)) | |
336 | + | } | |
337 | + | ||
338 | + | func openUp (c1,c2,a0,a1,c0,pu,pd) = { | |
339 | + | let diff = (c2 - c1) | |
340 | + | let spentPoolValue = if ((c0 > diff)) | |
341 | + | then diff | |
342 | + | else c0 | |
343 | + | let acquiredTokens = fraction(spentPoolValue, a0, c1) | |
344 | + | $Tuple7((c1 + spentPoolValue), c2, (a0 + acquiredTokens), a1, (c0 - spentPoolValue), (pu + acquiredTokens), pd) | |
345 | + | } | |
346 | + | ||
347 | + | let $t01029511330 = if ((curBullCol0 > curBearCol0)) | |
348 | + | then { | |
349 | + | let afterCloseUp = closeUp(curBullCol0, curBearCol0, curBullCirc0, curBearCirc0, curPoolMain0, curPoolUp0, curPoolDwn0) | |
350 | + | let $t01052110658 = afterCloseUp | |
351 | + | let a = $t01052110658._1 | |
352 | + | let b = $t01052110658._2 | |
353 | + | let c = $t01052110658._3 | |
354 | + | let d = $t01052110658._4 | |
355 | + | let e = $t01052110658._5 | |
356 | + | let f = $t01052110658._6 | |
357 | + | let g = $t01052110658._7 | |
358 | + | if ((f > 0)) | |
359 | + | then afterCloseUp | |
360 | + | else if ((f == 0)) | |
361 | + | then openDwn(a, b, c, d, e, f, g) | |
362 | + | else throw("poolUp < 0") | |
363 | + | } | |
364 | + | else { | |
365 | + | let afterCloseDwn = closeDwn(curBullCol0, curBearCol0, curBullCirc0, curBearCirc0, curPoolMain0, curPoolUp0, curPoolDwn0) | |
366 | + | let $t01100911149 = afterCloseDwn | |
367 | + | let a = $t01100911149._1 | |
368 | + | let b = $t01100911149._2 | |
369 | + | let c = $t01100911149._3 | |
370 | + | let d = $t01100911149._4 | |
371 | + | let e = $t01100911149._5 | |
372 | + | let f = $t01100911149._6 | |
373 | + | let g = $t01100911149._7 | |
374 | + | if ((g > 0)) | |
375 | + | then afterCloseDwn | |
376 | + | else if ((g == 0)) | |
377 | + | then openUp(a, b, c, d, e, f, g) | |
378 | + | else throw("poolDwn < 0") | |
379 | + | } | |
380 | + | let c1 = $t01029511330._1 | |
381 | + | let c2 = $t01029511330._2 | |
382 | + | let a0 = $t01029511330._3 | |
383 | + | let a1 = $t01029511330._4 | |
384 | + | let c0 = $t01029511330._5 | |
385 | + | let pu = $t01029511330._6 | |
386 | + | let pd = $t01029511330._7 | |
387 | + | let charge = fraction(userDiffAbs(), rebalancePercentile, ((1440 * 100) * 100)) | |
388 | + | let percentileActivated = (height >= valueOrElse(getInteger(configProvider, "percentileActivationHeight"), 10000000)) | |
389 | + | let c1SplitP = if (if (percentileActivated) | |
390 | + | then (pd > 0) | |
391 | + | else false) | |
392 | + | then charge | |
393 | + | else 0 | |
394 | + | let c2SplitP = if (if (percentileActivated) | |
395 | + | then (pu > 0) | |
396 | + | else false) | |
397 | + | then charge | |
398 | + | else 0 | |
399 | + | $Tuple7((c1 - c1SplitP), (c2 - c2SplitP), a0, a1, ((c0 + c1SplitP) + c2SplitP), pu, pd) | |
400 | + | } | |
401 | + | ||
402 | + | ||
403 | + | func poolSup (curBullCol0,curBearCol0,curBullCirc0,curBearCirc0) = { | |
404 | + | let $t01191112093 = poolSupport(curBullCol0, curBearCol0, curBullCirc0, curBearCirc0, poolMain, poolUp, poolDwn) | |
405 | + | let bullCol1 = $t01191112093._1 | |
406 | + | let bearCol1 = $t01191112093._2 | |
407 | + | let bullCic1 = $t01191112093._3 | |
408 | + | let bearCirc1 = $t01191112093._4 | |
409 | + | let poolMain1 = $t01191112093._5 | |
410 | + | let poolUp1 = $t01191112093._6 | |
411 | + | let poolDwn1 = $t01191112093._7 | |
412 | + | [IE(BULLCOLK, bullCol1), IE(BULLCIRCK, bullCic1), IE(BEARCOLK, bearCol1), IE(BEARCIRCK, bearCirc1), IE(POOLUSDNK, poolMain1), IE(POOLUPK, poolUp1), IE(POOLDWNK, poolDwn1)] | |
413 | + | } | |
414 | + | ||
415 | + | ||
416 | + | func dequeue () = { | |
417 | + | func sp (a,mx) = if ((mx >= a)) | |
418 | + | then $Tuple2(a, 0) | |
419 | + | else $Tuple2(mx, (a - mx)) | |
420 | + | ||
421 | + | if ((queueSize == 0)) | |
422 | + | then throw("nothing to settle") | |
423 | + | else { | |
424 | + | func collectFee (fees) = IE(FEEACCK, (feesAccumulated + fees)) | |
425 | + | ||
426 | + | let decreaseQueueSize = IE(QSIZEK, (queueSize - 1)) | |
427 | + | let isLastElement = (headPointer == tailPointer) | |
428 | + | let overwriteTail = SE(TAILK, "") | |
429 | + | let dataStr = localS(headPointer, "bad head pointer(dequeue)") | |
430 | + | let data = split(dataStr, "|") | |
431 | + | let action = data[0] | |
432 | + | let amt = parseIntValue(data[1]) | |
433 | + | let token = data[2] | |
434 | + | let priceIndex = parseIntValue(data[3]) | |
435 | + | let invoker = addressFromStringValue(data[4]) | |
436 | + | let minPayout = if ((8 > size(data))) | |
437 | + | then 0 | |
438 | + | else parseIntValue(data[5]) | |
439 | + | let maxPayout = if ((8 > size(data))) | |
440 | + | then MAX | |
441 | + | else parseIntValue(data[6]) | |
442 | + | let next = data[(size(data) - 1)] | |
443 | + | func payback (tkn) = [SE(HEADK, next), decreaseQueueSize, ST(invoker, amt, fromBase58String(tkn))] | |
444 | + | ||
445 | + | let items = if ((rebalancedPriceIndex > priceIndex)) | |
446 | + | then throw(((("corrupt state, rebalancedPriceIndex=" + toString(rebalancedPriceIndex)) + ", request price id=") + toString(priceIndex))) | |
447 | + | else if ((priceIndex > rebalancedPriceIndex)) | |
448 | + | then throw("can't dequeue, too early, rebalance first") | |
449 | + | else if ((action == ISSUE)) | |
450 | + | then { | |
451 | + | let feeSize = fraction(amt, issuePercentile, 10000) | |
452 | + | let addedCollateral = (amt - feeSize) | |
453 | + | let a = if ((token == BULL)) | |
454 | + | then fraction(bullCirc, addedCollateral, bullCol) | |
455 | + | else if ((token == BEAR)) | |
456 | + | then fraction(bearCirc, addedCollateral, bearCol) | |
457 | + | else throw("bad token id") | |
458 | + | let $t01420714263 = sp(a, maxPayout) | |
459 | + | let addedToCirculation = $t01420714263._1 | |
460 | + | let extraTokens = $t01420714263._2 | |
461 | + | let $t01428014451 = if ((token == BULL)) | |
462 | + | then $Tuple4(addedToCirculation, addedCollateral, 0, 0) | |
463 | + | else $Tuple4(0, 0, addedToCirculation, addedCollateral) | |
464 | + | let plusBulls = $t01428014451._1 | |
465 | + | let plusBullCol = $t01428014451._2 | |
466 | + | let plusBears = $t01428014451._3 | |
467 | + | let plusBearCol = $t01428014451._4 | |
468 | + | if ((minPayout > addedToCirculation)) | |
469 | + | then payback(mainToken) | |
470 | + | else (poolSup((bullCol + plusBullCol), (bearCol + plusBearCol), (bullCirc + plusBulls), (bearCirc + plusBears)) ++ [SE(HEADK, next), collectFee(feeSize), decreaseQueueSize, ST(invoker, addedToCirculation, fromBase58String(token)), ST(feeAddress, extraTokens, fromBase58String(token))]) | |
471 | + | } | |
472 | + | else if ((action == REDEEM)) | |
473 | + | then { | |
474 | + | let removedTokens = amt | |
475 | + | let calcPo = if ((token == BULL)) | |
476 | + | then fraction(bullCol, removedTokens, bullCirc) | |
477 | + | else if ((token == BEAR)) | |
478 | + | then fraction(bearCol, removedTokens, bearCirc) | |
479 | + | else throw("bad token id") | |
480 | + | let $t01536615415 = sp(calcPo, maxPayout) | |
481 | + | let payoutCapped = $t01536615415._1 | |
482 | + | let extra = $t01536615415._2 | |
483 | + | let feeSize = fraction(payoutCapped, redeemPercentile, 10000) | |
484 | + | let payout = if ((payoutCapped > feeSize)) | |
485 | + | then (payoutCapped - feeSize) | |
486 | + | else 0 | |
487 | + | let $t01560115760 = if ((token == BULL)) | |
488 | + | then $Tuple4(removedTokens, payoutCapped, 0, 0) | |
489 | + | else $Tuple4(0, 0, removedTokens, payoutCapped) | |
490 | + | let minusBulls = $t01560115760._1 | |
491 | + | let minusBullCol = $t01560115760._2 | |
492 | + | let minusBears = $t01560115760._3 | |
493 | + | let minusBearCol = $t01560115760._4 | |
494 | + | if ((minPayout > payout)) | |
495 | + | then payback(token) | |
496 | + | else (poolSup((bullCol - minusBullCol), (bearCol - minusBearCol), (bullCirc - minusBulls), (bearCirc - minusBears)) ++ [SE(HEADK, next), collectFee(feeSize), decreaseQueueSize, ST(invoker, payout, fromBase58String(mainToken)), ST(feeAddress, extra, fromBase58String(mainToken))]) | |
497 | + | } | |
498 | + | else if ((action == POOL)) | |
499 | + | then { | |
500 | + | let issueTokens = fraction(poolTokenCirculation, amt, poolValue) | |
501 | + | if ((minPayout > issueTokens)) | |
502 | + | then payback(mainToken) | |
503 | + | else [IE(POOLUSDNK, (poolMain + amt)), IE(POOLCIRCK, (poolTokenCirculation + issueTokens)), SE(HEADK, next), decreaseQueueSize, ST(invoker, issueTokens, fromBase58String(poolToken))] | |
504 | + | } | |
505 | + | else if ((action == UNPOOL)) | |
506 | + | then { | |
507 | + | func share (a) = fraction(a, amt, poolTokenCirculation) | |
508 | + | ||
509 | + | let unpooledMain = share(poolMain) | |
510 | + | let unpooledUp = share(poolUp) | |
511 | + | let unpooledDwn = share(poolDwn) | |
512 | + | let unpooledUpValue = fraction(unpooledUp, bullCol, bullCirc) | |
513 | + | let unpooledDwnValue = fraction(unpooledDwn, bearCol, bearCirc) | |
514 | + | let totalUnpooledValue = ((unpooledMain + unpooledUpValue) + unpooledDwnValue) | |
515 | + | if ((minPayout > totalUnpooledValue)) | |
516 | + | then payback(poolToken) | |
517 | + | else [IE(POOLUSDNK, (poolMain - unpooledMain)), IE(POOLCIRCK, (poolTokenCirculation - amt)), IE(POOLUPK, (poolUp - unpooledUp)), IE(POOLDWNK, (poolDwn - unpooledDwn)), IE(BULLCIRCK, (bullCirc - unpooledUp)), IE(BEARCIRCK, (bearCirc - unpooledDwn)), IE(BULLCOLK, (bullCol - unpooledUpValue)), IE(BEARCOLK, (bearCol - unpooledDwnValue)), SE(HEADK, next), decreaseQueueSize, ST(invoker, totalUnpooledValue, fromBase58String(mainToken))] | |
518 | + | } | |
519 | + | else throw(("bad action: " + action)) | |
520 | + | if (isLastElement) | |
521 | + | then overwriteTail :: items | |
522 | + | else items | |
523 | + | } | |
524 | + | } | |
525 | + | ||
526 | + | ||
527 | + | func rebalance () = { | |
528 | + | func LV (v,p0,p1,m) = { | |
529 | + | let denom = { | |
530 | + | let md = (((2 * (if ((p1 > p0)) | |
531 | + | then p1 | |
532 | + | else p0)) * m) / 3037000499) | |
533 | + | if ((10 > md)) | |
534 | + | then 10 | |
535 | + | else if ((100 > md)) | |
536 | + | then 100 | |
537 | + | else 1000 | |
538 | + | } | |
539 | + | let pmax = ((if ((p1 > p0)) | |
540 | + | then p1 | |
541 | + | else p0) / denom) | |
542 | + | let pmin = ((if ((p0 > p1)) | |
543 | + | then p1 | |
544 | + | else p0) / denom) | |
545 | + | let a = (pmin * pmin) | |
546 | + | let b = ((((m * m) * pmax) * pmax) - (((((2 * m) * m) - m) * pmax) * pmin)) | |
547 | + | let ma = ((m * m) - m) | |
548 | + | fraction(v, ((ma * a) + b), (((ma + 1) * a) + b)) | |
549 | + | } | |
550 | + | ||
551 | + | let settledPriceIndex = valueOrErrorMessage(getInteger(this, REBIDXK), "inconsistent data") | |
552 | + | let unsettledPriceIndex = (settledPriceIndex + 1) | |
553 | + | let settledPrice = priceByIndex(assetName, settledPriceIndex) | |
554 | + | let nextPrice = priceByIndex(assetName, unsettledPriceIndex) | |
555 | + | let minVol = if ((bearCol > bullCol)) | |
556 | + | then bullCol | |
557 | + | else bearCol | |
558 | + | let redist = LV(minVol, settledPrice, nextPrice, leverage) | |
559 | + | let priceUpGoodForBulls = (assetName == "") | |
560 | + | let priceGoesUp = (nextPrice > settledPrice) | |
561 | + | let bullsEarn = (priceUpGoodForBulls == priceGoesUp) | |
562 | + | let newBullCol = if (bullsEarn) | |
563 | + | then (bullCol + redist) | |
564 | + | else (bullCol - redist) | |
565 | + | let newBearCol = if (bullsEarn) | |
566 | + | then (bearCol - redist) | |
567 | + | else (bearCol + redist) | |
568 | + | let $t01964819834 = poolSupport(newBullCol, newBearCol, bullCirc, bearCirc, poolMain, poolUp, poolDwn) | |
569 | + | let updBullCol = $t01964819834._1 | |
570 | + | let updBearCol = $t01964819834._2 | |
571 | + | let updBullCirc = $t01964819834._3 | |
572 | + | let updBearCirc = $t01964819834._4 | |
573 | + | let updPoolMain = $t01964819834._5 | |
574 | + | let updPoolUp = $t01964819834._6 | |
575 | + | let updPoolDwn = $t01964819834._7 | |
576 | + | [IE(BULLCOLK, updBullCol), IE(BEARCOLK, updBearCol), IE(BULLCIRCK, updBullCirc), IE(BEARCIRCK, updBearCirc), IE(POOLUSDNK, updPoolMain), IE(POOLUPK, updPoolUp), IE(POOLDWNK, updPoolDwn), IE(REBIDXK, unsettledPriceIndex)] | |
577 | + | } | |
578 | + | ||
579 | + | ||
580 | + | func calcMax (min,avg) = if ((min > avg)) | |
581 | + | then throw(((("price too old: minPayout " + toString(min)) + " > avg = ") + toString(avg))) | |
582 | + | else ((avg + avg) - min) | |
583 | + | ||
584 | + | ||
585 | + | func requestIssueInternal (inv,tokenId,minPayout) = if (if ((tokenId != BULL)) | |
586 | + | then (tokenId != BEAR) | |
587 | + | else false) | |
588 | + | then throw("bad token req") | |
589 | + | else if ((inv.caller == this)) | |
590 | + | then throw("can't do") | |
591 | + | else if (!(allowed(inv.caller))) | |
592 | + | then throw("only whitelisted can do") | |
593 | + | else { | |
594 | + | let errorMessage = (((("bad token req, only BULL(" + BULL) + ") or BEAR(") + BEAR) + ") allowed") | |
595 | + | if ((inv.payments[0].assetId != fromBase58String(mainToken))) | |
596 | + | then throw("bad token att") | |
597 | + | else { | |
598 | + | let amt = inv.payments[0].amount | |
599 | + | let $t02084021018 = if ((tokenId == BULL)) | |
600 | + | then $Tuple2(bullCol, bullCirc) | |
601 | + | else if ((tokenId == BEAR)) | |
602 | + | then $Tuple2(bearCol, bearCirc) | |
603 | + | else throw(errorMessage) | |
604 | + | let col = $t02084021018._1 | |
605 | + | let circ = $t02084021018._2 | |
606 | + | let est = fraction(amt, circ, col) | |
607 | + | let $t02106021154 = if ((minPayout == 0)) | |
608 | + | then $Tuple2(0, MAX) | |
609 | + | else $Tuple2(minPayout, calcMax(minPayout, est)) | |
610 | + | let minP = $t02106021154._1 | |
611 | + | let maxP = $t02106021154._2 | |
612 | + | if ((minIssue > amt)) | |
613 | + | then throw((("Attached payment too small. Min required: " + toString((minIssue / 1000000))) + " USDN")) | |
614 | + | else { | |
615 | + | let maxAllowed = maxIssue(tokenId) | |
616 | + | if (if ((whitelist == "")) | |
617 | + | then (inv.payments[0].amount > maxAllowed) | |
618 | + | else false) | |
619 | + | then throw((("trying to issue more than pool can handle. Max attachment allowed = " + toString((maxAllowed / 1000000))) + " USDN")) | |
620 | + | else (enqueue(toBase58String(inv.transactionId), ISSUE, amt, tokenId, (oraclePriceIndex + 1), toString(inv.caller), minP, maxP) ++ [debug("requested", tokenId), debug("bull", BULL), debug("bear", BEAR)]) | |
621 | + | } | |
622 | + | } | |
623 | + | } | |
624 | + | ||
625 | + | ||
626 | + | func requestRedeemInternal (inv,minPayout) = { | |
627 | + | let amt = inv.payments[0].amount | |
628 | + | let tokenId = toBase58String(valueOrErrorMessage(inv.payments[0].assetId, "bad token att")) | |
629 | + | if (if ((tokenId != BULL)) | |
630 | + | then (tokenId != BEAR) | |
631 | + | else false) | |
632 | + | then throw("bad token req") | |
633 | + | else { | |
634 | + | let $t02219122330 = if ((tokenId == BULL)) | |
635 | + | then $Tuple2(bullCol, bullCirc) | |
636 | + | else if ((tokenId == BEAR)) | |
637 | + | then $Tuple2(bearCol, bearCirc) | |
638 | + | else throw("bad token req") | |
639 | + | let col = $t02219122330._1 | |
640 | + | let circ = $t02219122330._2 | |
641 | + | let est = fraction(amt, col, circ) | |
642 | + | let $t02237822472 = if ((minPayout == 0)) | |
643 | + | then $Tuple2(0, MAX) | |
644 | + | else $Tuple2(minPayout, calcMax(minPayout, est)) | |
645 | + | let minP = $t02237822472._1 | |
646 | + | let maxP = $t02237822472._2 | |
647 | + | if ((validateRequestRedeem(inv) == unit)) | |
648 | + | then enqueue(toBase58String(inv.transactionId), REDEEM, amt, tokenId, (oraclePriceIndex + 1), toString(inv.caller), minP, maxP) | |
649 | + | else throw("doesn't happen") | |
650 | + | } | |
651 | + | } | |
652 | + | ||
653 | + | ||
654 | + | func requestPoolInternal (inv,minPayout) = if (!(allowed(inv.caller))) | |
655 | + | then throw("only whitelisted can do") | |
656 | + | else { | |
657 | + | let errMessage = (("main token must be attached(" + mainToken) + ")") | |
658 | + | let pmt = inv.payments[0] | |
659 | + | if ((pmt.assetId != fromBase58String(mainToken))) | |
660 | + | then throw(errMessage) | |
661 | + | else if ((minPool > pmt.amount)) | |
662 | + | then throw(((("pool at least " + toString(minPool)) + " ") + mainToken)) | |
663 | + | else { | |
664 | + | let estimate = fraction(poolTokenCirculation, pmt.amount, poolValue) | |
665 | + | let $t02332023419 = if ((minPayout == 0)) | |
666 | + | then $Tuple2(0, MAX) | |
667 | + | else $Tuple2(minPayout, calcMax(minPayout, estimate)) | |
668 | + | let minP = $t02332023419._1 | |
669 | + | let maxP = $t02332023419._2 | |
670 | + | enqueue(toBase58String(inv.transactionId), POOL, inv.payments[0].amount, "", (oraclePriceIndex + 1), toString(inv.caller), minP, maxP) | |
671 | + | } | |
672 | + | } | |
673 | + | ||
674 | + | ||
675 | + | func requestUnpoolInternal (inv,minPayout) = { | |
676 | + | let errMessage = (("only pool token allowed(" + poolToken) + ")") | |
677 | + | let pmt = inv.payments[0] | |
678 | + | if ((pmt.assetId != fromBase58String(poolToken))) | |
679 | + | then throw(errMessage) | |
680 | + | else { | |
681 | + | let estimate = fraction(poolValue, pmt.amount, poolTokenCirculation) | |
682 | + | if ((minPool > estimate)) | |
683 | + | then throw(((("unpool at least for" + toString(minPool)) + " ") + mainToken)) | |
684 | + | else { | |
685 | + | let $t02407624175 = if ((minPayout == 0)) | |
686 | + | then $Tuple2(0, MAX) | |
687 | + | else $Tuple2(minPayout, calcMax(minPayout, estimate)) | |
688 | + | let minP = $t02407624175._1 | |
689 | + | let maxP = $t02407624175._2 | |
690 | + | enqueue(toBase58String(inv.transactionId), UNPOOL, inv.payments[0].amount, "", (oraclePriceIndex + 1), toString(inv.caller), minP, maxP) | |
691 | + | } | |
692 | + | } | |
693 | + | } | |
694 | + | ||
695 | + | ||
696 | + | @Callable(inv) | |
697 | + | func init (config,oraclePK,nameup,namedwn,descUp,descDwn,poolName,poolDesc,defoAssetName,denom,lev) = if (isDefined(getString(this, BULLK))) | |
698 | + | then throw("already initialized") | |
699 | + | else { | |
700 | + | let totalOwnedMainToken = inv.payments[0].amount | |
701 | + | let bulls = (totalOwnedMainToken / 3) | |
702 | + | let bears = bulls | |
703 | + | let pools = ((totalOwnedMainToken - bulls) - bears) | |
704 | + | if (if (if ((bears == 0)) | |
705 | + | then true | |
706 | + | else (bulls == 0)) | |
707 | + | then true | |
708 | + | else (pools == 0)) | |
709 | + | then throw("can't init balances") | |
710 | + | else { | |
711 | + | let oracleCurrentPriceIndex = valueOrErrorMessage(getInteger(valueOrErrorMessage(addressFromPublicKey(fromBase58String(oraclePK)), "bad oracle address"), lastPriceIndexKey(defoAssetName)), "can't find last oracle price index") | |
712 | + | let bull = Issue(nameup, descUp, ((100 * ten6) * ten6), 6, true) | |
713 | + | let bear = Issue(namedwn, descDwn, ((100 * ten6) * ten6), 6, true) | |
714 | + | let pool = Issue(poolName, poolDesc, ((100 * ten6) * ten6), 6, true) | |
715 | + | let buid = calculateAssetId(bull) | |
716 | + | let beid = calculateAssetId(bear) | |
717 | + | let poid = calculateAssetId(pool) | |
718 | + | [bull, bear, pool, SE(BULLK, toBase58String(buid)), SE(BEARK, toBase58String(beid)), SE(USDNK, toBase58String(value(inv.payments[0].assetId))), SE(POOLK, toBase58String(poid)), SE(ASSNAMEK, defoAssetName), SE(oraclePKKey, oraclePK), IE(REBIDXK, oracleCurrentPriceIndex), IE(BULLCOLK, bulls), IE(BEARCOLK, bears), IE(BULLCIRCK, (bulls / denom)), IE(BEARCIRCK, (bears / denom)), IE(POOLCIRCK, (pools / denom)), IE(POOLDWNK, 0), IE(POOLUPK, 0), IE(POOLUSDNK, pools), SE(configProviderKey, config), IE(LEVK, lev), ST(inv.caller, (bulls / denom), buid), ST(inv.caller, (bears / denom), beid), ST(inv.caller, (pools / denom), poid)] | |
719 | + | } | |
720 | + | } | |
721 | + | ||
722 | + | ||
723 | + | ||
724 | + | @Callable(i) | |
725 | + | func withdrawFee (amount) = if ((amount > feesAccumulated)) | |
726 | + | then throw(("too much. available: " + toString(feesAccumulated))) | |
727 | + | else [IE(FEEACCK, (feesAccumulated - amount)), ST(feeAddress, amount, fromBase58String(mainToken))] | |
728 | + | ||
729 | + | ||
730 | + | ||
731 | + | @Callable(inv) | |
732 | + | func requestRedeem () = requestRedeemInternal(inv, 0) | |
733 | + | ||
734 | + | ||
735 | + | ||
736 | + | @Callable(inv) | |
737 | + | func requestRedeemSl (sl) = if (validatePMFee(inv, sl)) | |
738 | + | then requestRedeemInternal(inv, sl) | |
739 | + | else throw() | |
740 | + | ||
741 | + | ||
742 | + | ||
743 | + | @Callable(inv) | |
744 | + | func requestIssue (tokenId) = requestIssueInternal(inv, tokenId, 0) | |
745 | + | ||
746 | + | ||
747 | + | ||
748 | + | @Callable(inv) | |
749 | + | func requestIssueSl (tokenId,sl) = if (validatePMFee(inv, sl)) | |
750 | + | then requestIssueInternal(inv, tokenId, sl) | |
751 | + | else throw() | |
752 | + | ||
753 | + | ||
754 | + | ||
755 | + | @Callable(inv) | |
756 | + | func requestPool () = requestPoolInternal(inv, 0) | |
757 | + | ||
758 | + | ||
759 | + | ||
760 | + | @Callable(inv) | |
761 | + | func requestPoolSl (sl) = if (validatePMFee(inv, sl)) | |
762 | + | then requestPoolInternal(inv, sl) | |
763 | + | else throw() | |
764 | + | ||
765 | + | ||
766 | + | ||
767 | + | @Callable(inv) | |
768 | + | func requestUnpool () = requestUnpoolInternal(inv, 0) | |
769 | + | ||
770 | + | ||
771 | + | ||
772 | + | @Callable(inv) | |
773 | + | func requestUnpoolSl (sl) = if (validatePMFee(inv, sl)) | |
774 | + | then requestUnpoolInternal(inv, sl) | |
775 | + | else throw() | |
776 | + | ||
777 | + | ||
778 | + | ||
779 | + | @Callable(inv) | |
780 | + | func settle () = { | |
781 | + | let queueEmpty = (headPointer == "") | |
782 | + | let canRebalance = (oraclePriceIndex > rebalancedPriceIndex) | |
783 | + | if (queueEmpty) | |
784 | + | then if (canRebalance) | |
785 | + | then rebalance() | |
786 | + | else throw("[OK] all done, carry on") | |
787 | + | else { | |
788 | + | let data = split(valueOrErrorMessage(getString(this, headPointer), ("bad head pointer(settle): " + headPointer)), "|") | |
789 | + | let priceIndex = parseIntValue(data[3]) | |
790 | + | if ((priceIndex > rebalancedPriceIndex)) | |
791 | + | then if (canRebalance) | |
792 | + | then rebalance() | |
793 | + | else throw("[OK] need to wait") | |
794 | + | else if ((priceIndex == rebalancedPriceIndex)) | |
795 | + | then dequeue() | |
796 | + | else throw("future price already rebalanced") | |
797 | + | } | |
798 | + | } | |
799 | + | ||
800 | + | ||
801 | + | @Verifier(tx) | |
802 | + | func verify () = true | |
803 | + |
github/deemru/w8io/169f3d6 50.43 ms ◑