tx · EfH8oUvTSfgYecwDy5PYL79qKoZu82bqK9X3UY4nGkGW 3MwTN53GGFw5EtnS5nBvEUoiXXRT2L125Hs: -0.01000000 Waves 2020.10.13 13:11 [1218641] smart account 3MwTN53GGFw5EtnS5nBvEUoiXXRT2L125Hs > SELF 0.00000000 Waves
{ "type": 13, "id": "EfH8oUvTSfgYecwDy5PYL79qKoZu82bqK9X3UY4nGkGW", "fee": 1000000, "feeAssetId": null, "timestamp": 1602583896221, "version": 1, "sender": "3MwTN53GGFw5EtnS5nBvEUoiXXRT2L125Hs", "senderPublicKey": "6eHNVfj5hM1M8G7t1GkjHevcSrriEV6N3TyTC346rdGG", "proofs": [ "toCVLB9ABLMQF8FEZw8gaoEo2X7JS3bJKWx9VJpgqCyMagNaQAGSJMkfaAKeJ3EtT4eQo8qMDZ2qfaA78JUdqvR" ], "script": "base64:AAIEAAAAAAAAACEIAhILCgkICAgICAgICAESAwoBARIAEgMKAQgSABIAEgAAAABQAAAAAAR0ZW42AAAAAAAAD0JAAAAAAAR0ZW44AAAAAAAF9eEAAAAAABFjb25maWdQcm92aWRlcktleQIAAAAOY29uZmlnUHJvdmlkZXIAAAAADmNvbmZpZ1Byb3ZpZGVyBAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMFAAAAEWNvbmZpZ1Byb3ZpZGVyS2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAXMFAAAAByRtYXRjaDAJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAEFAAAAAXMFAAAABHRoaXMAAAAAB0JVTExLZXkCAAAABkJVTExJZAAAAAAHQkVBUktleQIAAAAGQkVBUklkAAAAAAxtYWluVG9rZW5LZXkCAAAAC21haW5Ub2tlbklkAAAAABFidWxsQ29sbGF0ZXJhbEtleQIAAAAOYnVsbENvbGxhdGVyYWwAAAAAEWJlYXJDb2xsYXRlcmFsS2V5AgAAAA5iZWFyQ29sbGF0ZXJhbAAAAAASYnVsb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9PTAgJAAGRAAAAAggFAAAAA2ludgAAAAhwYXltZW50cwAAAAAAAAAAAAAAAAZhbW91bnQCAAAAAAkAAGQAAAACBQAAABBvcmFjbGVQcmljZUluZGV4AAAAAAAAAAABCQAEJQAAAAEIBQAAAANpbnYAAAAGY2FsbGVyAAAAA2ludgEAAAANcmVxdWVzdFVucG9vbAAAAAAEAAAACmVyck1lc3NhZ2UJAAEsAAAAAgkAASwAAAACAgAAABhvbmx5IHBvb2wgdG9rZW4gYWxsb3dlZCgFAAAACXBvb2xUb2tlbgIAAAABKQQAAAADcG10CQABkQAAAAIIBQAAAANpbnYAAAAIcGF5bWVudHMAAAAAAAAAAAADCQEAAAACIT0AAAACCAUAAAADcG10AAAAB2Fzc2V0SWQJAAJZAAAAAQUAAAAJcG9vbFRva2VuCQAAAgAAAAEFAAAACmVyck1lc3NhZ2UEAAAACGVzdGltYXRlCQAAawAAAAMFAAAACXBvb2xWYWx1ZQgFAAAAA3BtdAAAAAZhbW91bnQFAAAAFHBvb2xUb2tlbkNpcmN1bGF0aW9uAwkAAGYAAAACBQAAAAdtaW5Qb29sBQAAAAhlc3RpbWF0ZQkAAAIAAAABCQABLAAAAAIJAAEsAAAAAgkAASwAAAACAgAAABN1bnBvb2wgYXQgbGVhc3QgZm9yCQABpAAAAAEFAAAAB21pblBvb2wCAAAAASAFAAAACW1haW5Ub2tlbgkBAAAAB2VucXVldWUAAAAGCQACWAAAAAEIBQAAAANpbnYAAAANdHJhbnNhY3Rpb25JZAUAAAAGVU5QT09MCAkAAZEAAAACCAUAAAADaW52AAAACHBheW1lbnRzAAAAAAAAAAAAAAAABmFtb3VudAIAAAAACQAAZAAAAAIFAAAAEG9yYWNsZVByaWNlSW5kZXgAAAAAAAAAAAEJAAQlAAAAAQgFAAAAA2ludgAAAAZjYWxsZXIAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABiICBzc=", "chainId": 84, "height": 1218641, "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 | + | let ten6 = 1000000 | |
5 | + | ||
6 | + | let ten8 = 100000000 | |
7 | + | ||
8 | + | let configProviderKey = "configProvider" | |
9 | + | ||
10 | + | let configProvider = match getString(this, configProviderKey) { | |
11 | + | case s: String => | |
12 | + | addressFromStringValue(s) | |
13 | + | case _ => | |
14 | + | this | |
15 | + | } | |
16 | + | ||
17 | + | let BULLKey = "BULLId" | |
18 | + | ||
19 | + | let BEARKey = "BEARId" | |
20 | + | ||
21 | + | let mainTokenKey = "mainTokenId" | |
22 | + | ||
23 | + | let bullCollateralKey = "bullCollateral" | |
24 | + | ||
25 | + | let bearCollateralKey = "bearCollateral" | |
26 | + | ||
27 | + | let bullCirculationKey = "bullCirculation" | |
28 | + | ||
29 | + | let bearCirculationKey = "bearCirculation" | |
30 | + | ||
31 | + | let issuePercentileKey = "issuePercentile" | |
32 | + | ||
33 | + | let redeemPercentileKey = "redeemPercentile" | |
34 | + | ||
35 | + | let minIssueKey = "minIssue" | |
36 | + | ||
37 | + | let minRedeemKey = "minRedeem" | |
38 | + | ||
39 | + | let minPoolKey = "minPool" | |
40 | + | ||
41 | + | let feesAccumulatedKey = "feesAccumulated" | |
42 | + | ||
43 | + | let whitelistKey = "issueWhiteList" | |
44 | + | ||
45 | + | let oraclePKKey = "oracle" | |
46 | + | ||
47 | + | let lastPriceIndexKey = "price_index" | |
48 | + | ||
49 | + | let priceIndexPrefix = "price_index_" | |
50 | + | ||
51 | + | let priceHeightPrefix = "price_" | |
52 | + | ||
53 | + | let oracleCurrentPriceIndexKey = "price_index" | |
54 | + | ||
55 | + | let lastRebalancePriceIndexKey = "lastSettlementPriceId" | |
56 | + | ||
57 | + | let headPointerKey = "headPointer" | |
58 | + | ||
59 | + | let tailPointerKey = "tailPointer" | |
60 | + | ||
61 | + | let queueSizeKey = "queueSize" | |
62 | + | ||
63 | + | let poolMainTokenValueKey = "poolMainTokenValue" | |
64 | + | ||
65 | + | let poolUpKey = "poolUp" | |
66 | + | ||
67 | + | let poolDwnKey = "poolDwn" | |
68 | + | ||
69 | + | let poolTokenCirculationKey = "poolTokenCirculation" | |
70 | + | ||
71 | + | let poolTokenKey = "poolToken" | |
72 | + | ||
73 | + | let bullCol = valueOrErrorMessage(getInteger(this, bullCollateralKey), "no bullCollateralKey") | |
74 | + | ||
75 | + | let bearCol = valueOrErrorMessage(getInteger(this, bearCollateralKey), "no bearCollateralKey") | |
76 | + | ||
77 | + | let bullCirc = valueOrErrorMessage(getInteger(this, bullCirculationKey), "no bullCirculationKey") | |
78 | + | ||
79 | + | let bearCirc = valueOrErrorMessage(getInteger(this, bearCirculationKey), "no bearCirculationKey") | |
80 | + | ||
81 | + | let BULL = valueOrErrorMessage(getString(this, BULLKey), "no BULLKey") | |
82 | + | ||
83 | + | let BEAR = valueOrErrorMessage(getString(this, BEARKey), "no BEARKey") | |
84 | + | ||
85 | + | let mainToken = valueOrErrorMessage(getString(this, mainTokenKey), "no mainTokenKey") | |
86 | + | ||
87 | + | let issuePercentile = valueOrErrorMessage(getInteger(configProvider, issuePercentileKey), "no issuePercentileKey") | |
88 | + | ||
89 | + | let redeemPercentile = valueOrErrorMessage(getInteger(configProvider, redeemPercentileKey), "no redeemPercentileKey") | |
90 | + | ||
91 | + | let minIssue = valueOrErrorMessage(getInteger(configProvider, minIssueKey), "no minIssueKey") | |
92 | + | ||
93 | + | let minRedeem = valueOrErrorMessage(getInteger(configProvider, minRedeemKey), "no minRedeemKey") | |
94 | + | ||
95 | + | let minPool = valueOrErrorMessage(getInteger(configProvider, minPoolKey), "no minPoolKey") | |
96 | + | ||
97 | + | let whitelist = valueOrErrorMessage(getString(configProvider, whitelistKey), "no whitelistKey") | |
98 | + | ||
99 | + | func allowed (a) = if ((whitelist == "")) | |
100 | + | then true | |
101 | + | else isDefined(indexOf(whitelist, toString(a))) | |
102 | + | ||
103 | + | ||
104 | + | let poolMain = valueOrErrorMessage(getInteger(this, poolMainTokenValueKey), "no poolMainTokenValueKey") | |
105 | + | ||
106 | + | let poolUp = valueOrErrorMessage(getInteger(this, poolUpKey), "no poolUpKey") | |
107 | + | ||
108 | + | let poolDwn = valueOrErrorMessage(getInteger(this, poolDwnKey), "no poolDwnKey") | |
109 | + | ||
110 | + | let poolToken = valueOrErrorMessage(getString(this, poolTokenKey), "no poolTokenKey") | |
111 | + | ||
112 | + | let poolTokenCirculation = valueOrErrorMessage(getInteger(this, poolTokenCirculationKey), "no poolTokenCirculationKey") | |
113 | + | ||
114 | + | let poolValue = ((poolMain + fraction(bullCol, poolUp, bullCirc)) + fraction(bearCol, poolDwn, bearCirc)) | |
115 | + | ||
116 | + | let oracle = valueOrErrorMessage(addressFromPublicKey(fromBase58String(valueOrErrorMessage(getString(this, oraclePKKey), "no oraclePKKey"))), "bad oracle address") | |
117 | + | ||
118 | + | let rebalancedPriceIndex = valueOrErrorMessage(getInteger(this, lastRebalancePriceIndexKey), "no last rebalance price") | |
119 | + | ||
120 | + | let oraclePriceIndex = valueOrErrorMessage(getInteger(oracle, lastPriceIndexKey), ((("bad oracle data at " + toString(oracle)) + ": no integer at ") + lastPriceIndexKey)) | |
121 | + | ||
122 | + | let queueSize = valueOrElse(getInteger(this, queueSizeKey), 0) | |
123 | + | ||
124 | + | let headPointer = valueOrElse(getString(this, headPointerKey), "") | |
125 | + | ||
126 | + | let tailPointer = valueOrElse(getString(this, tailPointerKey), "") | |
127 | + | ||
128 | + | let feesAccumulated = valueOrElse(getInteger(this, feesAccumulatedKey), 0) | |
129 | + | ||
130 | + | let ISSUE = "ISSUE" | |
131 | + | ||
132 | + | let REDEEM = "REDEEM" | |
133 | + | ||
134 | + | let POOL = "POOL" | |
135 | + | ||
136 | + | let UNPOOL = "UNPOOL" | |
137 | + | ||
138 | + | let feeAddrKey = "feeAddress" | |
139 | + | ||
140 | + | let stakingAddrKey = "stakingAddress" | |
141 | + | ||
142 | + | let daemonPubKeyKey = "daemonPublicKey" | |
143 | + | ||
144 | + | let feeAddress = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(configProvider, feeAddrKey), "no feeAddress")), "bad feeAddress") | |
145 | + | ||
146 | + | let stakingAddress = valueOrErrorMessage(getString(configProvider, stakingAddrKey), "no stakingAddress") | |
147 | + | ||
148 | + | let daemonPublicKey = fromBase58String(valueOrErrorMessage(getString(configProvider, daemonPubKeyKey), "no daemonPublicKey")) | |
149 | + | ||
150 | + | let rpdAddress = addressFromString("3PNikM6yp4NqcSU8guxQtmR5onr2D4e8yTJ") | |
151 | + | ||
152 | + | let pubKeyAdminsList = ["2HHqV8W9DJayV5R6tBD2Sb8srphpoboDi7r1t1aPiumC", "5ZXe82RRASU7qshXM2J9JNYhqJ9GWYjjVq2gwUV5Naz9", "5WRXFSjwcTbNfKcJs8ZqXmSSWYsSVJUtMvMqZj5hH4Nc"] | |
153 | + | ||
154 | + | func safeFraction (a,b,c) = if (if ((a == 0)) | |
155 | + | then true | |
156 | + | else (b == 0)) | |
157 | + | then 0 | |
158 | + | else fraction(a, b, c) | |
159 | + | ||
160 | + | ||
161 | + | func buildNewItem (action,amt,token,priceIndex,invoker) = (((((((((action + "|") + toString(amt)) + "|") + token) + "|") + toString(priceIndex)) + "|") + invoker) + "|") | |
162 | + | ||
163 | + | ||
164 | + | func maxIssue (tokenId) = { | |
165 | + | let poolInvestment = if ((poolUp > 0)) | |
166 | + | then BULL | |
167 | + | else BEAR | |
168 | + | if ((poolInvestment == tokenId)) | |
169 | + | then poolMain | |
170 | + | else ((2 * poolValue) - poolMain) | |
171 | + | } | |
172 | + | ||
173 | + | ||
174 | + | func validateRequestRedeem (inv) = if ((inv.caller == this)) | |
175 | + | then throw("can't do") | |
176 | + | else { | |
177 | + | func errorMessage (got) = throw(((((("only BULL(" + BULL) + ") or BEAR(") + BEAR) + ") tokens are accepted, received: ") + got)) | |
178 | + | ||
179 | + | let assetId = toBase58String(valueOrErrorMessage(value(inv.payments[0]).assetId, "waves are not accepted here")) | |
180 | + | if (if ((assetId != BEAR)) | |
181 | + | then (assetId != BULL) | |
182 | + | else false) | |
183 | + | then errorMessage(assetId) | |
184 | + | else { | |
185 | + | let attachedAmount = inv.payments[0].amount | |
186 | + | let col = if ((assetId == BEAR)) | |
187 | + | then bearCol | |
188 | + | else bullCol | |
189 | + | let circ = if ((assetId == BEAR)) | |
190 | + | then bearCirc | |
191 | + | else bullCirc | |
192 | + | let estimated = fraction(col, attachedAmount, circ) | |
193 | + | if ((minRedeem > estimated)) | |
194 | + | 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))) | |
195 | + | else unit | |
196 | + | } | |
197 | + | } | |
198 | + | ||
199 | + | ||
200 | + | func enqueue (id,action,amt,token,priceIndex,invoker) = { | |
201 | + | let increaseQueueSize = IntegerEntry(queueSizeKey, (queueSize + 1)) | |
202 | + | let itm = buildNewItem(action, amt, token, priceIndex, invoker) | |
203 | + | if ((queueSize == 0)) | |
204 | + | then [StringEntry(headPointerKey, id), StringEntry(tailPointerKey, id), StringEntry(id, itm), increaseQueueSize] | |
205 | + | else { | |
206 | + | let prevId = valueOrErrorMessage(getString(this, tailPointerKey), "can't get tail pointer") | |
207 | + | let prevItm = split(valueOrErrorMessage(getString(this, prevId), "can't resolve pointer"), "|") | |
208 | + | let updatedPrevItm = ((((((((((prevItm[0] + "|") + prevItm[1]) + "|") + prevItm[2]) + "|") + prevItm[3]) + "|") + prevItm[4]) + "|") + id) | |
209 | + | [StringEntry(prevId, updatedPrevItm), StringEntry(id, itm), StringEntry(tailPointerKey, id), increaseQueueSize] | |
210 | + | } | |
211 | + | } | |
212 | + | ||
213 | + | ||
214 | + | func poolSupport (curBullCol0,curBearCol0,curBullCirc0,curBearCirc0,curPoolMain0,curPoolUp0,curPoolDwn0) = { | |
215 | + | func closeUp (curBullCol,curBearCol,curBullCirc,curBearCirc,curPoolMain,curPoolUp,curPoolDwn) = { | |
216 | + | let diff = (curBullCol - curBearCol) | |
217 | + | let exposure = fraction(curBullCol, curPoolUp, curBullCirc) | |
218 | + | let liquidatedTokens = if ((diff > exposure)) | |
219 | + | then curPoolUp | |
220 | + | else fraction(diff, curBullCirc, curBullCol) | |
221 | + | let liquidatedValue = if ((diff > exposure)) | |
222 | + | then exposure | |
223 | + | else fraction(liquidatedTokens, curBullCol, curBullCirc) | |
224 | + | $Tuple7((curBullCol - liquidatedValue), curBearCol, (curBullCirc - liquidatedTokens), curBearCirc, (curPoolMain + liquidatedValue), (curPoolUp - liquidatedTokens), curPoolDwn) | |
225 | + | } | |
226 | + | ||
227 | + | func closeDwn (curBullCol,curBearCol,curBullCirc,curBearCirc,curPoolMain,curPoolUp,curPoolDwn) = { | |
228 | + | let diff = (curBearCol - curBullCol) | |
229 | + | let exposure = fraction(curBearCol, curPoolDwn, curBearCirc) | |
230 | + | let liquidatedTokens = if ((diff > exposure)) | |
231 | + | then curPoolDwn | |
232 | + | else fraction(diff, curBearCirc, curBearCol) | |
233 | + | let liquidatedValue = if ((diff > exposure)) | |
234 | + | then exposure | |
235 | + | else fraction(liquidatedTokens, curBearCol, curBearCirc) | |
236 | + | $Tuple7(curBullCol, (curBearCol - liquidatedValue), curBullCirc, (curBearCirc - liquidatedTokens), (curPoolMain + liquidatedValue), curPoolUp, (curPoolDwn - liquidatedTokens)) | |
237 | + | } | |
238 | + | ||
239 | + | func openDwn (curBullCol,curBearCol,curBullCirc,curBearCirc,curPoolMain,curPoolUp,curPoolDwn) = { | |
240 | + | let diff = (curBullCol - curBearCol) | |
241 | + | let spentPoolValue = if ((curPoolMain > diff)) | |
242 | + | then diff | |
243 | + | else curPoolMain | |
244 | + | let acquiredTokens = fraction(spentPoolValue, curBearCirc, curBearCol) | |
245 | + | $Tuple7(curBullCol, (curBearCol + spentPoolValue), curBullCirc, (curBearCirc + acquiredTokens), (curPoolMain - spentPoolValue), curPoolUp, (curPoolDwn + acquiredTokens)) | |
246 | + | } | |
247 | + | ||
248 | + | func openUp (curBullCol,curBearCol,curBullCirc,curBearCirc,curPoolMain,curPoolUp,curPoolDwn) = { | |
249 | + | let diff = (curBearCol - curBullCol) | |
250 | + | let spentPoolValue = if ((curPoolMain > diff)) | |
251 | + | then diff | |
252 | + | else curPoolMain | |
253 | + | let acquiredTokens = fraction(spentPoolValue, curBullCirc, curBullCol) | |
254 | + | $Tuple7((curBullCol + spentPoolValue), curBearCol, (curBullCirc + acquiredTokens), curBearCirc, (curPoolMain - spentPoolValue), (curPoolUp + acquiredTokens), curPoolDwn) | |
255 | + | } | |
256 | + | ||
257 | + | if ((curBullCol0 > curBearCol0)) | |
258 | + | then { | |
259 | + | let afterCloseUp = closeUp(curBullCol0, curBearCol0, curBullCirc0, curBearCirc0, curPoolMain0, curPoolUp0, curPoolDwn0) | |
260 | + | let $t01028610423 = afterCloseUp | |
261 | + | let a = $t01028610423._1 | |
262 | + | let b = $t01028610423._2 | |
263 | + | let c = $t01028610423._3 | |
264 | + | let d = $t01028610423._4 | |
265 | + | let e = $t01028610423._5 | |
266 | + | let f = $t01028610423._6 | |
267 | + | let g = $t01028610423._7 | |
268 | + | if ((f > 0)) | |
269 | + | then afterCloseUp | |
270 | + | else if ((f == 0)) | |
271 | + | then openDwn(a, b, c, d, e, f, g) | |
272 | + | else throw("poolUp < 0") | |
273 | + | } | |
274 | + | else { | |
275 | + | let afterCloseDwn = closeDwn(curBullCol0, curBearCol0, curBullCirc0, curBearCirc0, curPoolMain0, curPoolUp0, curPoolDwn0) | |
276 | + | let $t01077410914 = afterCloseDwn | |
277 | + | let a = $t01077410914._1 | |
278 | + | let b = $t01077410914._2 | |
279 | + | let c = $t01077410914._3 | |
280 | + | let d = $t01077410914._4 | |
281 | + | let e = $t01077410914._5 | |
282 | + | let f = $t01077410914._6 | |
283 | + | let g = $t01077410914._7 | |
284 | + | if ((g > 0)) | |
285 | + | then afterCloseDwn | |
286 | + | else if ((g == 0)) | |
287 | + | then openUp(a, b, c, d, e, f, g) | |
288 | + | else throw("poolDwn < 0") | |
289 | + | } | |
290 | + | } | |
291 | + | ||
292 | + | ||
293 | + | func actionsWithMaybePool (curBullCol0,curBearCol0,curBullCirc0,curBearCirc0) = { | |
294 | + | let $t01121111394 = poolSupport(curBullCol0, curBearCol0, curBullCirc0, curBearCirc0, poolMain, poolUp, poolDwn) | |
295 | + | let bullCol1 = $t01121111394._1 | |
296 | + | let bearCol1 = $t01121111394._2 | |
297 | + | let bullCic1 = $t01121111394._3 | |
298 | + | let bearCirc1 = $t01121111394._4 | |
299 | + | let poolMain1 = $t01121111394._5 | |
300 | + | let poolUp1 = $t01121111394._6 | |
301 | + | let poolDwn1 = $t01121111394._7 | |
302 | + | [IntegerEntry(bullCollateralKey, bullCol1), IntegerEntry(bullCirculationKey, bullCic1), IntegerEntry(bearCollateralKey, bearCol1), IntegerEntry(bearCirculationKey, bearCirc1), IntegerEntry(poolMainTokenValueKey, poolMain1), IntegerEntry(poolUpKey, poolUp1), IntegerEntry(poolDwnKey, poolDwn1)] | |
303 | + | } | |
304 | + | ||
305 | + | ||
306 | + | func dequeue () = if ((queueSize == 0)) | |
307 | + | then throw("nothing to settle") | |
308 | + | else { | |
309 | + | func collectFee (fees) = IntegerEntry(feesAccumulatedKey, (feesAccumulated + fees)) | |
310 | + | ||
311 | + | let decreaseQueueSize = IntegerEntry(queueSizeKey, (queueSize - 1)) | |
312 | + | let isLastElement = (headPointer == tailPointer) | |
313 | + | let overwriteTail = StringEntry(tailPointerKey, "") | |
314 | + | let data = split(valueOrErrorMessage(getString(this, headPointer), "bad head pointer"), "|") | |
315 | + | let action = data[0] | |
316 | + | let amt = parseIntValue(data[1]) | |
317 | + | let token = data[2] | |
318 | + | let priceIndex = parseIntValue(data[3]) | |
319 | + | let invoker = addressFromStringValue(data[4]) | |
320 | + | let next = data[5] | |
321 | + | let items = if ((rebalancedPriceIndex > priceIndex)) | |
322 | + | then throw(((("corrupt state, rebalancedPriceIndex=" + toString(rebalancedPriceIndex)) + ", request price id=") + toString(priceIndex))) | |
323 | + | else if ((priceIndex > rebalancedPriceIndex)) | |
324 | + | then throw("can't dequeue, too early, rebalance first") | |
325 | + | else if ((action == ISSUE)) | |
326 | + | then { | |
327 | + | let feeSize = fraction(amt, issuePercentile, 10000) | |
328 | + | let addedCollateral = (amt - feeSize) | |
329 | + | if ((token == BULL)) | |
330 | + | then { | |
331 | + | let addedToCirculation = fraction(bullCirc, addedCollateral, bullCol) | |
332 | + | (actionsWithMaybePool((bullCol + addedCollateral), bearCol, (bullCirc + addedToCirculation), bearCirc) ++ [StringEntry(headPointerKey, next), collectFee(feeSize), decreaseQueueSize, ScriptTransfer(invoker, addedToCirculation, fromBase58String(BULL))]) | |
333 | + | } | |
334 | + | else if ((token == BEAR)) | |
335 | + | then { | |
336 | + | let addedToCirculation = fraction(bearCirc, addedCollateral, bearCol) | |
337 | + | (actionsWithMaybePool(bullCol, (bearCol + addedCollateral), bullCirc, (bearCirc + addedToCirculation)) ++ [StringEntry(headPointerKey, next), collectFee(feeSize), decreaseQueueSize, ScriptTransfer(invoker, addedToCirculation, fromBase58String(BEAR))]) | |
338 | + | } | |
339 | + | else throw("bad token id") | |
340 | + | } | |
341 | + | else if ((action == REDEEM)) | |
342 | + | then { | |
343 | + | let removedTokens = amt | |
344 | + | if ((token == BULL)) | |
345 | + | then { | |
346 | + | let removedCollateral = fraction(bullCol, removedTokens, bullCirc) | |
347 | + | let feeSize = fraction(removedCollateral, redeemPercentile, 10000) | |
348 | + | let payout = if ((removedCollateral > feeSize)) | |
349 | + | then (removedCollateral - feeSize) | |
350 | + | else 0 | |
351 | + | (actionsWithMaybePool((bullCol - removedCollateral), bearCol, (bullCirc - removedTokens), bearCirc) ++ [StringEntry(headPointerKey, next), collectFee(feeSize), decreaseQueueSize, ScriptTransfer(invoker, payout, fromBase58String(mainToken))]) | |
352 | + | } | |
353 | + | else if ((token == BEAR)) | |
354 | + | then { | |
355 | + | let removedCollateral = fraction(bearCol, removedTokens, bearCirc) | |
356 | + | let feeSize = fraction(removedCollateral, redeemPercentile, 10000) | |
357 | + | let payout = if ((removedCollateral > feeSize)) | |
358 | + | then (removedCollateral - feeSize) | |
359 | + | else 0 | |
360 | + | (actionsWithMaybePool(bullCol, (bearCol - removedCollateral), bullCirc, (bearCirc - removedTokens)) ++ [StringEntry(headPointerKey, next), collectFee(feeSize), decreaseQueueSize, ScriptTransfer(invoker, payout, fromBase58String(mainToken))]) | |
361 | + | } | |
362 | + | else throw("bad token id") | |
363 | + | } | |
364 | + | else if ((action == POOL)) | |
365 | + | then { | |
366 | + | let issueTokens = fraction(poolTokenCirculation, amt, poolValue) | |
367 | + | [IntegerEntry(poolMainTokenValueKey, (poolMain + amt)), IntegerEntry(poolTokenCirculationKey, (poolTokenCirculation + issueTokens)), StringEntry(headPointerKey, next), decreaseQueueSize, ScriptTransfer(invoker, issueTokens, fromBase58String(poolToken))] | |
368 | + | } | |
369 | + | else if ((action == UNPOOL)) | |
370 | + | then { | |
371 | + | func share (a) = fraction(a, amt, poolTokenCirculation) | |
372 | + | ||
373 | + | let unpooledMain = share(poolMain) | |
374 | + | let unpooledUp = share(poolUp) | |
375 | + | let unpooledDwn = share(poolDwn) | |
376 | + | let unpooledUpValue = fraction(unpooledUp, bullCol, bullCirc) | |
377 | + | let unpooledDwnValue = fraction(unpooledDwn, bearCol, bearCirc) | |
378 | + | [IntegerEntry(poolMainTokenValueKey, (poolMain - unpooledMain)), IntegerEntry(poolTokenCirculationKey, (poolTokenCirculation - amt)), IntegerEntry(poolUpKey, (poolUp - unpooledUp)), IntegerEntry(poolDwnKey, (poolDwn - unpooledDwn)), IntegerEntry(bullCirculationKey, (bullCirc - unpooledUp)), IntegerEntry(bearCirculationKey, (bearCirc - unpooledDwn)), IntegerEntry(bullCollateralKey, (bullCol - unpooledUpValue)), IntegerEntry(bearCollateralKey, (bearCol - unpooledDwnValue)), StringEntry(headPointerKey, next), decreaseQueueSize, ScriptTransfer(invoker, ((unpooledMain + unpooledUpValue) + unpooledDwnValue), fromBase58String(mainToken))] | |
379 | + | } | |
380 | + | else throw(("bad action: " + action)) | |
381 | + | if (isLastElement) | |
382 | + | then overwriteTail :: items | |
383 | + | else items | |
384 | + | } | |
385 | + | ||
386 | + | ||
387 | + | func rebalance () = { | |
388 | + | func LV (v,p0,p1) = { | |
389 | + | let denom = 100 | |
390 | + | let pmax = ((if ((p1 > p0)) | |
391 | + | then p1 | |
392 | + | else p0) / denom) | |
393 | + | let pmin = ((if ((p0 > p1)) | |
394 | + | then p1 | |
395 | + | else p0) / denom) | |
396 | + | let a = (pmin * pmin) | |
397 | + | let b = (((9 * pmax) * pmax) - ((15 * pmax) * pmin)) | |
398 | + | fraction(v, ((6 * a) + b), ((7 * a) + b)) | |
399 | + | } | |
400 | + | ||
401 | + | let settledPriceIndex = valueOrErrorMessage(getInteger(this, lastRebalancePriceIndexKey), "inconsistent data") | |
402 | + | let unsettledPriceIndex = (settledPriceIndex + 1) | |
403 | + | let settledPriceHeight = valueOrErrorMessage(getInteger(oracle, ("price_index_" + toString(settledPriceIndex))), "bad oracle data for settled price height") | |
404 | + | let settledPrice = valueOrErrorMessage(getInteger(oracle, ("price_" + toString(settledPriceHeight))), "bad oracle data for price") | |
405 | + | let nextPriceHeight = valueOrErrorMessage(getInteger(oracle, ("price_index_" + toString(unsettledPriceIndex))), "no next price height") | |
406 | + | let nextPrice = valueOrErrorMessage(getInteger(oracle, ("price_" + toString(nextPriceHeight))), "no next price") | |
407 | + | let minVol = if ((bearCol > bullCol)) | |
408 | + | then bullCol | |
409 | + | else bearCol | |
410 | + | let redist = LV(minVol, settledPrice, nextPrice) | |
411 | + | let newBullCol = if ((nextPrice > settledPrice)) | |
412 | + | then (bullCol + redist) | |
413 | + | else (bullCol - redist) | |
414 | + | let newBearCol = if ((nextPrice > settledPrice)) | |
415 | + | then (bearCol - redist) | |
416 | + | else (bearCol + redist) | |
417 | + | let $t01926019447 = poolSupport(newBullCol, newBearCol, bullCirc, bearCirc, poolMain, poolUp, poolDwn) | |
418 | + | let updBullCol = $t01926019447._1 | |
419 | + | let updBearCol = $t01926019447._2 | |
420 | + | let updBullCirc = $t01926019447._3 | |
421 | + | let updBearCirc = $t01926019447._4 | |
422 | + | let updPoolMain = $t01926019447._5 | |
423 | + | let updPoolUp = $t01926019447._6 | |
424 | + | let updPoolDwn = $t01926019447._7 | |
425 | + | [IntegerEntry(bullCollateralKey, updBullCol), IntegerEntry(bearCollateralKey, updBearCol), IntegerEntry(bullCirculationKey, updBullCirc), IntegerEntry(bearCirculationKey, updBearCirc), IntegerEntry(poolMainTokenValueKey, updPoolMain), IntegerEntry(poolUpKey, updPoolUp), IntegerEntry(poolDwnKey, updPoolDwn), IntegerEntry(lastRebalancePriceIndexKey, unsettledPriceIndex)] | |
426 | + | } | |
427 | + | ||
428 | + | ||
429 | + | @Callable(inv) | |
430 | + | func init (config,oraclePK,nameup,namedwn,descUp,descDwn,poolName,poolDesc,denom) = if (isDefined(getString(this, BULLKey))) | |
431 | + | then throw("already initialized") | |
432 | + | else { | |
433 | + | let totalOwnedMainToken = inv.payments[0].amount | |
434 | + | let bulls = (totalOwnedMainToken / 3) | |
435 | + | let bears = bulls | |
436 | + | let pools = ((totalOwnedMainToken - bulls) - bears) | |
437 | + | if (if (if ((bears == 0)) | |
438 | + | then true | |
439 | + | else (bulls == 0)) | |
440 | + | then true | |
441 | + | else (pools == 0)) | |
442 | + | then throw("can't init balances") | |
443 | + | else { | |
444 | + | let oracleCurrentPriceIndex = valueOrErrorMessage(getInteger(valueOrErrorMessage(addressFromPublicKey(fromBase58String(oraclePK)), "bad oracle address"), lastPriceIndexKey), "can't find last oracle price index") | |
445 | + | let bull = Issue(nameup, descUp, ((100 * ten6) * ten6), 6, true) | |
446 | + | let bear = Issue(namedwn, descDwn, ((100 * ten6) * ten6), 6, true) | |
447 | + | let pool = Issue(poolName, poolDesc, ((100 * ten6) * ten6), 6, true) | |
448 | + | let buid = calculateAssetId(bull) | |
449 | + | let beid = calculateAssetId(bear) | |
450 | + | let poid = calculateAssetId(pool) | |
451 | + | [bull, bear, pool, StringEntry(BULLKey, toBase58String(buid)), StringEntry(BEARKey, toBase58String(beid)), StringEntry(mainTokenKey, toBase58String(value(inv.payments[0].assetId))), StringEntry(poolTokenKey, toBase58String(poid)), StringEntry(oraclePKKey, oraclePK), IntegerEntry(lastRebalancePriceIndexKey, oracleCurrentPriceIndex), IntegerEntry(bullCollateralKey, bulls), IntegerEntry(bearCollateralKey, bears), IntegerEntry(bullCirculationKey, (bulls / denom)), IntegerEntry(bearCirculationKey, (bears / denom)), IntegerEntry(poolTokenCirculationKey, (pools / denom)), IntegerEntry(poolDwnKey, 0), IntegerEntry(poolUpKey, 0), IntegerEntry(poolMainTokenValueKey, pools), StringEntry(configProviderKey, config), ScriptTransfer(inv.caller, (bulls / denom), buid), ScriptTransfer(inv.caller, (bears / denom), beid), ScriptTransfer(inv.caller, (pools / denom), poid)] | |
452 | + | } | |
453 | + | } | |
454 | + | ||
455 | + | ||
456 | + | ||
457 | + | @Callable(i) | |
458 | + | func withdrawFee (amount) = if ((amount > feesAccumulated)) | |
459 | + | then throw(("too much. available: " + toString(feesAccumulated))) | |
460 | + | else [IntegerEntry(feesAccumulatedKey, (feesAccumulated - amount)), ScriptTransfer(feeAddress, amount, fromBase58String(mainToken))] | |
461 | + | ||
462 | + | ||
463 | + | ||
464 | + | @Callable(inv) | |
465 | + | func requestRedeem () = if ((validateRequestRedeem(inv) == unit)) | |
466 | + | then { | |
467 | + | let assetId = toBase58String(valueOrErrorMessage(inv.payments[0].assetId, "waves are not accepted here")) | |
468 | + | enqueue(toBase58String(inv.transactionId), REDEEM, inv.payments[0].amount, assetId, (oraclePriceIndex + 1), toString(inv.caller)) | |
469 | + | } | |
470 | + | else throw("doesn't happen") | |
471 | + | ||
472 | + | ||
473 | + | ||
474 | + | @Callable(inv) | |
475 | + | func requestIssue (tokenId) = if ((inv.caller == this)) | |
476 | + | then throw("can't do") | |
477 | + | else if (!(allowed(inv.caller))) | |
478 | + | then throw("only whitelisted can do") | |
479 | + | else { | |
480 | + | let errorMessage = throw((((((("only BULL(" + BULL) + ") or BEAR(") + BEAR) + ") tokens are available in exchange for USDN(") + mainToken) + ")")) | |
481 | + | if (if ((tokenId != BULL)) | |
482 | + | then (tokenId != BEAR) | |
483 | + | else false) | |
484 | + | then errorMessage | |
485 | + | else if ((inv.payments[0].assetId != fromBase58String(mainToken))) | |
486 | + | then errorMessage | |
487 | + | else if ((minIssue > inv.payments[0].amount)) | |
488 | + | then throw((("Attached payment too small. Min required: " + toString((minIssue / 1000000))) + " USDN")) | |
489 | + | else { | |
490 | + | let maxAllowed = maxIssue(tokenId) | |
491 | + | if (if ((whitelist == "")) | |
492 | + | then (inv.payments[0].amount > maxAllowed) | |
493 | + | else false) | |
494 | + | then throw((("trying to issue more than pool can handle. Max attachment allowed = " + toString((maxAllowed / 1000000))) + " USDN")) | |
495 | + | else enqueue(toBase58String(inv.transactionId), ISSUE, inv.payments[0].amount, tokenId, (oraclePriceIndex + 1), toString(inv.caller)) | |
496 | + | } | |
497 | + | } | |
498 | + | ||
499 | + | ||
500 | + | ||
501 | + | @Callable(inv) | |
502 | + | func settle () = { | |
503 | + | let queueEmpty = (headPointer == "") | |
504 | + | let canRebalance = (oraclePriceIndex > rebalancedPriceIndex) | |
505 | + | if (queueEmpty) | |
506 | + | then if (canRebalance) | |
507 | + | then rebalance() | |
508 | + | else throw("[OK] all done, carry on") | |
509 | + | else { | |
510 | + | let data = split(valueOrErrorMessage(getString(this, headPointer), "bad head pointer"), "|") | |
511 | + | let priceIndex = parseIntValue(data[3]) | |
512 | + | if ((priceIndex > rebalancedPriceIndex)) | |
513 | + | then if (canRebalance) | |
514 | + | then rebalance() | |
515 | + | else throw("[OK] need to wait") | |
516 | + | else if ((priceIndex == rebalancedPriceIndex)) | |
517 | + | then dequeue() | |
518 | + | else throw("corrupt data, future price id already rebalanced") | |
519 | + | } | |
520 | + | } | |
521 | + | ||
522 | + | ||
523 | + | ||
524 | + | @Callable(inv) | |
525 | + | func requestPool () = if (!(allowed(inv.caller))) | |
526 | + | then throw("only whitelisted can do") | |
527 | + | else { | |
528 | + | let errMessage = (("main token must be attached(" + mainToken) + ")") | |
529 | + | let pmt = inv.payments[0] | |
530 | + | if ((pmt.assetId != fromBase58String(mainToken))) | |
531 | + | then throw(errMessage) | |
532 | + | else if ((minPool > pmt.amount)) | |
533 | + | then throw(((("pool at least " + toString(minPool)) + " ") + mainToken)) | |
534 | + | else enqueue(toBase58String(inv.transactionId), POOL, inv.payments[0].amount, "", (oraclePriceIndex + 1), toString(inv.caller)) | |
535 | + | } | |
536 | + | ||
537 | + | ||
538 | + | ||
539 | + | @Callable(inv) | |
540 | + | func requestUnpool () = { | |
541 | + | let errMessage = (("only pool token allowed(" + poolToken) + ")") | |
542 | + | let pmt = inv.payments[0] | |
543 | + | if ((pmt.assetId != fromBase58String(poolToken))) | |
544 | + | then throw(errMessage) | |
545 | + | else { | |
546 | + | let estimate = fraction(poolValue, pmt.amount, poolTokenCirculation) | |
547 | + | if ((minPool > estimate)) | |
548 | + | then throw(((("unpool at least for" + toString(minPool)) + " ") + mainToken)) | |
549 | + | else enqueue(toBase58String(inv.transactionId), UNPOOL, inv.payments[0].amount, "", (oraclePriceIndex + 1), toString(inv.caller)) | |
550 | + | } | |
551 | + | } | |
552 | + | ||
553 | + | ||
554 | + | @Verifier(tx) | |
555 | + | func verify () = true | |
556 | + |
github/deemru/w8io/026f985 37.26 ms ◑