tx · 7WEFUJug9eGL7X9P5obhaTq9Kfc8UPSzTG8A9DiUJZDN 3Mtzn1SRUhygEXMVpHNMckc8HKCWjq2fTiG: -0.01000000 Waves 2020.07.28 14:38 [1107382] smart account 3Mtzn1SRUhygEXMVpHNMckc8HKCWjq2fTiG > SELF 0.00000000 Waves
{ "type": 13, "id": "7WEFUJug9eGL7X9P5obhaTq9Kfc8UPSzTG8A9DiUJZDN", "fee": 1000000, "feeAssetId": null, "timestamp": 1595936351189, "version": 1, "sender": "3Mtzn1SRUhygEXMVpHNMckc8HKCWjq2fTiG", "senderPublicKey": "2WHjsmTCwLeerJuc5YMaJNou8UGSHuy4TE3F6DneRaJt", "proofs": [ "4QNC3gRzfCrZ8UMRXGRF6uptSnHYbhi9cYDMseMgjLrLnEy16ojdy8v2ueRNEz37YX9bYR4F5bCY6qd2HMLJgFVp" ], "script": "base64:AAIDAAAAAAAAACIIARIHCgUICAgICBIHCgUBAQEBBBIDCgEIEgASAwoBCBIAAAAALwAAAAAHQlVMTEtleQIAAAAGQlVMTElkAAAAAAdCRUFSS2V5AgAAAAZCRUFSSWQAAAAADG1haW5Ub2tlbktleQIAAAALbWFpblRva2VuSWQAAAAAEmlzc3VlUGVyY2VudGlsZUtleQIAAAAPaXNzdWVQZXJjZW50aWxlAAAAABNyZWRlZW1QZXJjZW50aWxlS2V5AgAAABByZWRlZW1QZXJjZW50aWxlAAAAAAttaW5Jc3N1ZUtleQIAAAAIbWluSXNzdWUAAAAADG1pblJlZGVlbUtleQIAAAAJbWluUmVkZWVtAAAAABB3aGl0ZWxpc3RPbmx5S2V5AgAAAA13aGl0ZWxpc3RPbmx5AAAAAAtvcmFjbGVQS0tleQIAAAAGb3JhY2xlAAAAABdvcmFjbGVDdXJyZW50UHJpY2VJZEtleQIAAAALbGFzdFByaWNlSWQAAAAAF2xhc3RSZWJhbGFuY2VQcmljZUlkS2V5AgAAABVsYXN0U2V0dGxlbWVudFByaWNlSWQAAAAAEWJ1bGxDb2xsYXRl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XMFAAAAC2hlYWRQb2ludGVyAgAAABBiYWQgaGVhZCBwb2ludGVyAgAAAAF8BAAAAAdwcmljZUlkCQEAAAANcGFyc2VJbnRWYWx1ZQAAAAEJAAGRAAAAAgUAAAAEZGF0YQAAAAAAAAAAAwMJAABmAAAAAgUAAAAHcHJpY2VJZAUAAAARcmViYWxhbmNlZFByaWNlSWQDBQAAAAxjYW5SZWJhbGFuY2UJAQAAAAlyZWJhbGFuY2UAAAAACQAAAgAAAAECAAAAEVtPS10gbmVlZCB0byB3YWl0AwkAAAAAAAACBQAAAAdwcmljZUlkBQAAABFyZWJhbGFuY2VkUHJpY2VJZAkBAAAAB2RlcXVldWUAAAAACQAAAgAAAAECAAAAMGNvcnJ1cHQgZGF0YSwgZnV0dXJlIHByaWNlIGlkIGFscmVhZHkgcmViYWxhbmNlZAAAAAAmBm3I", "chainId": 84, "height": 1107382, "spentComplexity": 0 } View: original | compacted Prev: none Next: 9tUhaUtJn6YF5TVg6bMYz6cEn1E4z8jNScYoDaaHYMTE Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 3 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let BULLKey = "BULLId" | |
5 | + | ||
6 | + | let BEARKey = "BEARId" | |
7 | + | ||
8 | + | let mainTokenKey = "mainTokenId" | |
9 | + | ||
10 | + | let issuePercentileKey = "issuePercentile" | |
11 | + | ||
12 | + | let redeemPercentileKey = "redeemPercentile" | |
13 | + | ||
14 | + | let minIssueKey = "minIssue" | |
15 | + | ||
16 | + | let minRedeemKey = "minRedeem" | |
17 | + | ||
18 | + | let whitelistOnlyKey = "whitelistOnly" | |
19 | + | ||
20 | + | let oraclePKKey = "oracle" | |
21 | + | ||
22 | + | let oracleCurrentPriceIdKey = "lastPriceId" | |
23 | + | ||
24 | + | let lastRebalancePriceIdKey = "lastSettlementPriceId" | |
25 | + | ||
26 | + | let bullCollateralKey = "bullCollateral" | |
27 | + | ||
28 | + | let bearCollateralKey = "bearCollateral" | |
29 | + | ||
30 | + | let bullCirculationKey = "bullCirculation" | |
31 | + | ||
32 | + | let bearCirculationKey = "bearCirculation" | |
33 | + | ||
34 | + | let whitelistKey = "issueWhiteList" | |
35 | + | ||
36 | + | let whitelist = valueOrErrorMessage(getString(this, whitelistKey), "no bullCollateralKey") | |
37 | + | ||
38 | + | let bullCol = valueOrErrorMessage(getInteger(this, bullCollateralKey), "no bullCollateralKey") | |
39 | + | ||
40 | + | let bearCol = valueOrErrorMessage(getInteger(this, bearCollateralKey), "no bearCollateralKey") | |
41 | + | ||
42 | + | let bullCirc = valueOrErrorMessage(getInteger(this, bullCirculationKey), "no bullCirculationKey") | |
43 | + | ||
44 | + | let bearCirc = valueOrErrorMessage(getInteger(this, bearCirculationKey), "no bearCirculationKey") | |
45 | + | ||
46 | + | let BULL = valueOrErrorMessage(getString(this, BULLKey), "no BULLKey") | |
47 | + | ||
48 | + | let BEAR = valueOrErrorMessage(getString(this, BEARKey), "no BEARKey") | |
49 | + | ||
50 | + | let mainToken = valueOrErrorMessage(getString(this, mainTokenKey), "no mainTokenKey") | |
51 | + | ||
52 | + | let issuePercentile = valueOrErrorMessage(getInteger(this, issuePercentileKey), "no issuePercentileKey") | |
53 | + | ||
54 | + | let redeemPercentile = valueOrErrorMessage(getInteger(this, redeemPercentileKey), "no redeemPercentileKey") | |
55 | + | ||
56 | + | let minIssue = valueOrErrorMessage(getInteger(this, minIssueKey), "no minIssueKey") | |
57 | + | ||
58 | + | let minRedeem = valueOrErrorMessage(getInteger(this, minRedeemKey), "no minRedeemKey") | |
59 | + | ||
60 | + | let whitelistOnly = valueOrErrorMessage(getBoolean(this, whitelistOnlyKey), "no whitelistOnlyKey") | |
61 | + | ||
62 | + | let oracle = valueOrErrorMessage(addressFromPublicKey(fromBase58String(valueOrErrorMessage(getString(this, oraclePKKey), "no oraclePKKey"))), "bad oracle address") | |
63 | + | ||
64 | + | let rebalancedPriceId = valueOrErrorMessage(getInteger(this, lastRebalancePriceIdKey), "no last rebalance price") | |
65 | + | ||
66 | + | let oraclePriceId = valueOrErrorMessage(getInteger(oracle, oracleCurrentPriceIdKey), "bad oracle data") | |
67 | + | ||
68 | + | let headPointerKey = "headPointer" | |
69 | + | ||
70 | + | let tailPointerKey = "tailPointer" | |
71 | + | ||
72 | + | let queueSizeKey = "queueSize" | |
73 | + | ||
74 | + | let queueSize = match getInteger(this, queueSizeKey) { | |
75 | + | case i: Int => | |
76 | + | i | |
77 | + | case _ => | |
78 | + | 0 | |
79 | + | } | |
80 | + | ||
81 | + | let headPointer = match getString(this, headPointerKey) { | |
82 | + | case s: String => | |
83 | + | s | |
84 | + | case _ => | |
85 | + | "" | |
86 | + | } | |
87 | + | ||
88 | + | let tailPointer = match getString(this, tailPointerKey) { | |
89 | + | case s: String => | |
90 | + | s | |
91 | + | case _ => | |
92 | + | "" | |
93 | + | } | |
94 | + | ||
95 | + | let feesAccumulatedKey = "feesAccumulated" | |
96 | + | ||
97 | + | let feesAccumulated = match getInteger(this, feesAccumulatedKey) { | |
98 | + | case i: Int => | |
99 | + | i | |
100 | + | case _ => | |
101 | + | 0 | |
102 | + | } | |
103 | + | ||
104 | + | let ISSUE = "ISSUE" | |
105 | + | ||
106 | + | let REDEEM = "REDEEM" | |
107 | + | ||
108 | + | func buildNewItem (action,amt,token,priceId,invoker) = (((((((((action + "|") + toString(amt)) + "|") + token) + "|") + toString(priceId)) + "|") + invoker) + "|") | |
109 | + | ||
110 | + | ||
111 | + | func validateEnqueue (inv) = if ((inv.caller == this)) | |
112 | + | then throw("can't do") | |
113 | + | else { | |
114 | + | func errorMessage (got) = throw(((((("only BULL(" + BULL) + ") or BEAR(") + BEAR) + ") tokens are accepted, received: ") + got)) | |
115 | + | ||
116 | + | if (!(isDefined(inv.payment))) | |
117 | + | then errorMessage("no attached payment") | |
118 | + | else { | |
119 | + | let assetId = toBase58String(valueOrErrorMessage(value(inv.payment).assetId, "waves are not accepted here")) | |
120 | + | if (if ((assetId != BEAR)) | |
121 | + | then (assetId != BULL) | |
122 | + | else false) | |
123 | + | then errorMessage(assetId) | |
124 | + | else { | |
125 | + | let col = if ((assetId == BEAR)) | |
126 | + | then bearCol | |
127 | + | else bullCol | |
128 | + | let circ = if ((assetId == BEAR)) | |
129 | + | then bearCirc | |
130 | + | else bearCirc | |
131 | + | let estimated = fraction(col, value(inv.payment).amount, circ) | |
132 | + | if ((minRedeem > estimated)) | |
133 | + | then throw((("Attached payment too small. Min redeem amount is " + toString((minRedeem / 1000000))) + " USDN")) | |
134 | + | else unit | |
135 | + | } | |
136 | + | } | |
137 | + | } | |
138 | + | ||
139 | + | ||
140 | + | func enqueue (id,action,amt,token,priceId,invoker) = { | |
141 | + | let increaseQueueSize = DataEntry(queueSizeKey, (queueSize + 1)) | |
142 | + | let itm = buildNewItem(action, amt, token, priceId, invoker) | |
143 | + | if ((queueSize == 0)) | |
144 | + | then WriteSet([DataEntry(headPointerKey, id), DataEntry(tailPointerKey, id), DataEntry(id, itm), increaseQueueSize]) | |
145 | + | else { | |
146 | + | let prevId = valueOrErrorMessage(getString(this, tailPointerKey), "can't get tail pointer") | |
147 | + | let prevItm = split(valueOrErrorMessage(getString(this, prevId), "can't resolve pointer"), "|") | |
148 | + | let updatedPrevItm = ((((((((((prevItm[0] + "|") + prevItm[1]) + "|") + prevItm[2]) + "|") + prevItm[3]) + "|") + prevItm[4]) + "|") + id) | |
149 | + | WriteSet([DataEntry(prevId, updatedPrevItm), DataEntry(id, itm), DataEntry(tailPointerKey, id), increaseQueueSize]) | |
150 | + | } | |
151 | + | } | |
152 | + | ||
153 | + | ||
154 | + | func dequeue () = if ((queueSize == 0)) | |
155 | + | then throw("nothing to settle") | |
156 | + | else { | |
157 | + | func collectFee (fees) = DataEntry(feesAccumulatedKey, (feesAccumulated + fees)) | |
158 | + | ||
159 | + | let decreaseQueueSize = DataEntry(queueSizeKey, (queueSize - 1)) | |
160 | + | let isLastElement = (headPointer == tailPointer) | |
161 | + | let overwriteTail = DataEntry(tailPointerKey, "") | |
162 | + | let data = split(valueOrErrorMessage(getString(this, headPointer), "bad head pointer"), "|") | |
163 | + | let action = data[0] | |
164 | + | let amt = parseIntValue(data[1]) | |
165 | + | let token = data[2] | |
166 | + | let priceId = parseIntValue(data[3]) | |
167 | + | let invoker = addressFromStringValue(data[4]) | |
168 | + | let next = data[5] | |
169 | + | if ((rebalancedPriceId > priceId)) | |
170 | + | then throw(((("corrupt state, rebalancedPriceId=" + toString(rebalancedPriceId)) + ", request price id=") + toString(priceId))) | |
171 | + | else if ((priceId > rebalancedPriceId)) | |
172 | + | then throw("can't dequeue, too early, rebalance first") | |
173 | + | else if ((action == ISSUE)) | |
174 | + | then { | |
175 | + | let feeSize = fraction(amt, issuePercentile, 10000) | |
176 | + | let addedCollateral = (amt - feeSize) | |
177 | + | if ((token == BULL)) | |
178 | + | then { | |
179 | + | let addedToCirculation = fraction(bullCirc, addedCollateral, bullCol) | |
180 | + | let items = [DataEntry(bullCollateralKey, (bullCol + addedCollateral)), DataEntry(bullCirculationKey, (bullCirc + addedToCirculation)), DataEntry(headPointerKey, next), collectFee(feeSize), decreaseQueueSize] | |
181 | + | ScriptResult(WriteSet(if (isLastElement) | |
182 | + | then overwriteTail :: items | |
183 | + | else items), TransferSet([ScriptTransfer(invoker, addedToCirculation, fromBase58String(BULL))])) | |
184 | + | } | |
185 | + | else if ((token == BEAR)) | |
186 | + | then { | |
187 | + | let addedToCirculation = fraction(bearCirc, addedCollateral, bearCol) | |
188 | + | let items = [DataEntry(bearCollateralKey, (bearCol + addedCollateral)), DataEntry(bearCirculationKey, (bearCirc + addedToCirculation)), DataEntry(headPointerKey, next), collectFee(feeSize), decreaseQueueSize] | |
189 | + | ScriptResult(WriteSet(if (isLastElement) | |
190 | + | then overwriteTail :: items | |
191 | + | else items), TransferSet([ScriptTransfer(invoker, addedToCirculation, fromBase58String(BEAR))])) | |
192 | + | } | |
193 | + | else throw("bad token id") | |
194 | + | } | |
195 | + | else if ((action == REDEEM)) | |
196 | + | then { | |
197 | + | let removedTokens = amt | |
198 | + | if ((token == BULL)) | |
199 | + | then { | |
200 | + | let removedCollateral = fraction(bullCol, removedTokens, bullCirc) | |
201 | + | let feeSize = fraction(removedCollateral, redeemPercentile, 10000) | |
202 | + | let payout = if ((removedCollateral > feeSize)) | |
203 | + | then (removedCollateral - feeSize) | |
204 | + | else 0 | |
205 | + | let items = [DataEntry(bullCollateralKey, (bullCol - removedCollateral)), DataEntry(bullCirculationKey, (bullCirc - removedTokens)), DataEntry(headPointerKey, next), collectFee(feeSize), decreaseQueueSize] | |
206 | + | ScriptResult(WriteSet(if (isLastElement) | |
207 | + | then overwriteTail :: items | |
208 | + | else items), TransferSet([ScriptTransfer(invoker, payout, fromBase58String(mainToken))])) | |
209 | + | } | |
210 | + | else if ((token == BEAR)) | |
211 | + | then { | |
212 | + | let removedCollateral = fraction(bearCol, removedTokens, bearCirc) | |
213 | + | let feeSize = fraction(removedCollateral, redeemPercentile, 10000) | |
214 | + | let payout = if ((removedCollateral > feeSize)) | |
215 | + | then (removedCollateral - feeSize) | |
216 | + | else 0 | |
217 | + | let items = [DataEntry(bearCollateralKey, (bearCol - removedCollateral)), DataEntry(bearCirculationKey, (bearCirc - removedTokens)), DataEntry(headPointerKey, next), collectFee(feeSize), decreaseQueueSize] | |
218 | + | ScriptResult(WriteSet(if (isLastElement) | |
219 | + | then overwriteTail :: items | |
220 | + | else items), TransferSet([ScriptTransfer(invoker, payout, fromBase58String(mainToken))])) | |
221 | + | } | |
222 | + | else throw("bad token id") | |
223 | + | } | |
224 | + | else throw(("bad action: " + action)) | |
225 | + | } | |
226 | + | ||
227 | + | ||
228 | + | func rebalance () = { | |
229 | + | func LV (v,p0,p1) = { | |
230 | + | let denom = 100 | |
231 | + | let pmax = ((if ((p1 > p0)) | |
232 | + | then p1 | |
233 | + | else p0) / denom) | |
234 | + | let pmin = ((if ((p0 > p1)) | |
235 | + | then p1 | |
236 | + | else p0) / denom) | |
237 | + | let a = (pmin * pmin) | |
238 | + | let b = (((9 * pmax) * pmax) - ((15 * pmax) * pmin)) | |
239 | + | fraction(v, ((6 * a) + b), ((7 * a) + b)) | |
240 | + | } | |
241 | + | ||
242 | + | let settledPriceId = valueOrErrorMessage(getInteger(this, lastRebalancePriceIdKey), "inconsistent data") | |
243 | + | let unsettledPriceId = (settledPriceId + 1) | |
244 | + | let settledPrice = valueOrErrorMessage(getInteger(oracle, toString(settledPriceId)), "bad oracle data for sellted price") | |
245 | + | let nextPrice = valueOrErrorMessage(getInteger(oracle, toString(unsettledPriceId)), "no next price") | |
246 | + | let minVol = if ((bearCol > bullCol)) | |
247 | + | then bullCol | |
248 | + | else bearCol | |
249 | + | let redist = LV(minVol, settledPrice, nextPrice) | |
250 | + | if ((nextPrice > settledPrice)) | |
251 | + | then WriteSet([DataEntry(bullCollateralKey, (bullCol + redist)), DataEntry(bearCollateralKey, (bearCol - redist)), DataEntry(lastRebalancePriceIdKey, unsettledPriceId)]) | |
252 | + | else if ((settledPrice > nextPrice)) | |
253 | + | then WriteSet([DataEntry(bullCollateralKey, (bullCol - redist)), DataEntry(bearCollateralKey, (bearCol + redist)), DataEntry(lastRebalancePriceIdKey, unsettledPriceId)]) | |
254 | + | else WriteSet([DataEntry(lastRebalancePriceIdKey, unsettledPriceId)]) | |
255 | + | } | |
256 | + | ||
257 | + | ||
258 | + | @Callable(inv) | |
259 | + | func init (bullId,bearId,mainTokenId,oraclePK,whitelisted) = if (isDefined(getString(this, BULLKey))) | |
260 | + | then throw("already initialized") | |
261 | + | else if (!(isDefined(inv.payment))) | |
262 | + | then throw("neutrino payment required") | |
263 | + | else if ((toBase58String(valueOrErrorMessage(value(inv.payment).assetId, "neutrino payment required")) != mainTokenId)) | |
264 | + | then throw("payment not in neutrino") | |
265 | + | else { | |
266 | + | let totalOwnedMainToken = value(inv.payment).amount | |
267 | + | let bulls = (totalOwnedMainToken / 2) | |
268 | + | let bears = (totalOwnedMainToken - bulls) | |
269 | + | if (if ((bears == 0)) | |
270 | + | then true | |
271 | + | else (bulls == 0)) | |
272 | + | then throw("can't init balances") | |
273 | + | else { | |
274 | + | let oracleCurrentPriceId = valueOrErrorMessage(getInteger(valueOrErrorMessage(addressFromPublicKey(fromBase58String(oraclePK)), "bad oracle address"), oracleCurrentPriceIdKey), "can't find oracle price id") | |
275 | + | ScriptResult(WriteSet([DataEntry(BULLKey, bullId), DataEntry(BEARKey, bearId), DataEntry(mainTokenKey, mainTokenId), DataEntry(oraclePKKey, oraclePK), DataEntry(bullCollateralKey, bulls), DataEntry(bearCollateralKey, bears), DataEntry(bullCirculationKey, bulls), DataEntry(bearCirculationKey, bears), DataEntry(lastRebalancePriceIdKey, oracleCurrentPriceId), DataEntry(whitelistKey, whitelisted), DataEntry(issuePercentileKey, 0), DataEntry(redeemPercentileKey, 0), DataEntry(minIssueKey, 0), DataEntry(minRedeemKey, 0), DataEntry(whitelistOnlyKey, true)]), TransferSet([ScriptTransfer(inv.caller, bulls, fromBase58String(bullId)), ScriptTransfer(inv.caller, bears, fromBase58String(bearId))])) | |
276 | + | } | |
277 | + | } | |
278 | + | ||
279 | + | ||
280 | + | ||
281 | + | @Callable(i) | |
282 | + | func setParams (iP,rP,mI,mR,wl) = if ((i.caller != this)) | |
283 | + | then throw("only self can change whitelist") | |
284 | + | else WriteSet([DataEntry(issuePercentileKey, iP), DataEntry(redeemPercentileKey, rP), DataEntry(minIssueKey, mI), DataEntry(minRedeemKey, mR), DataEntry(whitelistOnlyKey, wl)]) | |
285 | + | ||
286 | + | ||
287 | + | ||
288 | + | @Callable(i) | |
289 | + | func setWhitelist (l) = if ((i.caller != this)) | |
290 | + | then throw("only self can change whitelist") | |
291 | + | else WriteSet([DataEntry(whitelistKey, l)]) | |
292 | + | ||
293 | + | ||
294 | + | ||
295 | + | @Callable(inv) | |
296 | + | func requestRedeem () = if ((validateEnqueue(inv) == unit)) | |
297 | + | then { | |
298 | + | let assetId = toBase58String(valueOrErrorMessage(value(inv.payment).assetId, "waves are not accepted here")) | |
299 | + | enqueue(toBase58String(inv.transactionId), REDEEM, value(inv.payment).amount, assetId, (oraclePriceId + 1), toString(inv.caller)) | |
300 | + | } | |
301 | + | else throw("doesn't happen") | |
302 | + | ||
303 | + | ||
304 | + | ||
305 | + | @Callable(inv) | |
306 | + | func requestIssue (tokenId) = if ((inv.caller == this)) | |
307 | + | then throw("can't do") | |
308 | + | else if (if (whitelistOnly) | |
309 | + | then !(isDefined(indexOf(whitelist, toString(inv.caller)))) | |
310 | + | else false) | |
311 | + | then throw("only whitelisted can do") | |
312 | + | else { | |
313 | + | let errorMessage = throw((((((("only BULL(" + BULL) + ") or BEAR(") + BEAR) + ") tokens are available in exchange for USDN(") + mainToken) + ")")) | |
314 | + | if (if ((tokenId != BULL)) | |
315 | + | then (tokenId != BEAR) | |
316 | + | else false) | |
317 | + | then errorMessage | |
318 | + | else if (!(isDefined(inv.payment))) | |
319 | + | then errorMessage | |
320 | + | else if ((value(inv.payment).assetId != fromBase58String(mainToken))) | |
321 | + | then errorMessage | |
322 | + | else if ((minIssue > value(inv.payment).amount)) | |
323 | + | then throw((("Attached payment too small. Min required: " + toString((minIssue / 1000000))) + " USDN")) | |
324 | + | else enqueue(toBase58String(inv.transactionId), ISSUE, value(inv.payment).amount, tokenId, (oraclePriceId + 1), toString(inv.caller)) | |
325 | + | } | |
326 | + | ||
327 | + | ||
328 | + | ||
329 | + | @Callable(inv) | |
330 | + | func settle () = { | |
331 | + | let queueEmpty = (headPointer == "") | |
332 | + | let canRebalance = (oraclePriceId > rebalancedPriceId) | |
333 | + | if (queueEmpty) | |
334 | + | then if (canRebalance) | |
335 | + | then rebalance() | |
336 | + | else throw("[OK] all done, carry on") | |
337 | + | else { | |
338 | + | let data = split(valueOrErrorMessage(getString(this, headPointer), "bad head pointer"), "|") | |
339 | + | let priceId = parseIntValue(data[3]) | |
340 | + | if ((priceId > rebalancedPriceId)) | |
341 | + | then if (canRebalance) | |
342 | + | then rebalance() | |
343 | + | else throw("[OK] need to wait") | |
344 | + | else if ((priceId == rebalancedPriceId)) | |
345 | + | then dequeue() | |
346 | + | else throw("corrupt data, future price id already rebalanced") | |
347 | + | } | |
348 | + | } | |
349 | + | ||
350 | + |
github/deemru/w8io/026f985 26.90 ms ◑