tx · Er48URK6xZ8SZK2657Gw37FNVN1WN4Ptgk2up7Jk7HNa 3MxbR7b3gHF4XdQKNTT5aQMRiazHvrVWC8N: -0.02000000 Waves 2021.01.13 18:48 [1351877] smart account 3MxbR7b3gHF4XdQKNTT5aQMRiazHvrVWC8N > SELF 0.00000000 Waves
{ "type": 13, "id": "Er48URK6xZ8SZK2657Gw37FNVN1WN4Ptgk2up7Jk7HNa", "fee": 2000000, "feeAssetId": null, "timestamp": 1610552937389, "version": 1, "sender": "3MxbR7b3gHF4XdQKNTT5aQMRiazHvrVWC8N", "senderPublicKey": "4bj7YXaphTC4Ldx7DqqMmrTjNshRtw1yNsej2XXZcAzS", "proofs": [ "3ZuWtwg85kVgCBnCAwfcRQUozhDV5DcxRMEAicFmKFxz4azW6y3anvBAxcSoCVxffttA13LRaPwDcRj4mS9FJNro", "3EgNfW1edN5vpZwy1tViCvQnG6piNUgH8UhpFqpp7Wxwai3JQ5zy4f8WZEugA2Py1WVE4Fnc4nHucFT5997Y5Zn4", "59G1RzXA9Tg7nyD3GUWAG2yDVy6tpAWCr2s77msVw3frDTGE3gJofi7gKGtxG6buX4fhns949UzLo2fgrvfEQzos" ], "script": "base64:AAIEAAAAAAAAABgIAhIAEgASAwoBARIECgIBCBIDCgEIEgAAAABPAQAAAA5nZXROdW1iZXJCeUtleQAAAAEAAAADa2V5CQEAAAALdmFsdWVPckVsc2UAAAACCQAEGgAAAAIFAAAABHRoaXMFAAAAA2tleQAAAAAAAAAAAAEAAAAOZ2V0U3RyaW5nQnlLZXkAAAABAAAAA2tleQkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABB0AAAACBQAAAAR0aGlzBQAAAANrZXkCAAAAAAEAAAAWZ2V0Qm9vbEJ5QWRkcmVzc0FuZEtleQAAAAIAAAAHYWRkcmVzcwAAAANrZXkJAQAAAAt2YWx1ZU9yRWxzZQAAAAIJAAQbAAAAAgUAAAAHYWRkcmVzcwUAAAADa2V5BwEAAAAYZ2V0U3RyaW5nQ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AAAwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAEJAAJZAAAAAQkAAZEAAAACBQAAABBwdWJLZXlBZG1pbnNMaXN0AAAAAAAAAAABAAAAAAAAAAABAAAAAAAAAAAAAwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAIJAAJZAAAAAQkAAZEAAAACBQAAABBwdWJLZXlBZG1pbnNMaXN0AAAAAAAAAAACAAAAAAAAAAABAAAAAAAAAAAAAwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAMJAAJZAAAAAQkAAZEAAAACBQAAABBwdWJLZXlBZG1pbnNMaXN0AAAAAAAAAAADAAAAAAAAAAACAAAAAAAAAAAACQAAZwAAAAIFAAAABWNvdW50AAAAAAAAAAADV9HOFg==", "chainId": 84, "height": 1351877, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CMZRDuE8nV6x3S1DPMn2VF8oYNFuyvRwY7USwytKyZdy Next: 7ib7q42TFXW558nKYQh6sBRzhboEFcXwPij2wocAhD61 Diff:
Old | New | Differences | |
---|---|---|---|
121 | 121 | ||
122 | 122 | let ad = c(y) | |
123 | 123 | ||
124 | - | func ae (af) = a(B(af)) | |
124 | + | let ae = valueOrElse(getInteger(this, "tmp_issuedNsbt_2"), 0) | |
125 | + | ||
126 | + | let af = ((2850 * 1000) * i) | |
127 | + | ||
128 | + | let ag = (((1850 * 1000) * i) + ae) | |
129 | + | ||
130 | + | func ah (ai) = a(B(ai)) | |
125 | 131 | ||
126 | 132 | ||
127 | - | func | |
133 | + | func aj (ai) = a(C(ai)) | |
128 | 134 | ||
129 | 135 | ||
130 | - | func | |
136 | + | func ak (ai) = c(D(ai)) | |
131 | 137 | ||
132 | 138 | ||
133 | - | func | |
139 | + | func al (ai) = c(F(ai)) | |
134 | 140 | ||
135 | 141 | ||
136 | - | func | |
142 | + | func am (ai) = a(G(ai)) | |
137 | 143 | ||
138 | 144 | ||
139 | - | func | |
145 | + | func an (ai) = c(H(ai)) | |
140 | 146 | ||
141 | 147 | ||
142 | - | func | |
148 | + | func ao (ai) = c(I(ai)) | |
143 | 149 | ||
144 | 150 | ||
145 | - | func | |
151 | + | func ap (aq) = fraction((100 + aq), V, 100) | |
146 | 152 | ||
147 | 153 | ||
148 | - | func | |
154 | + | func ar (L) = ((k * k) / L) | |
149 | 155 | ||
150 | 156 | ||
151 | - | func | |
157 | + | func as (at,au) = fraction(at, (i * k), au) | |
152 | 158 | ||
153 | 159 | ||
154 | - | func | |
160 | + | func av (A,aw,ax,ay,az,aA,L) = [IntegerEntry(B(A), L), IntegerEntry(C(A), aw), IntegerEntry(G(A), ax), StringEntry(D(A), ay), IntegerEntry(E(A), height), StringEntry(F(A), az), IntegerEntry(("debug_order_currentPrice_" + A), V), IntegerEntry(z(A), aA)] | |
155 | 161 | ||
156 | 162 | ||
157 | - | func | |
158 | - | let | |
159 | - | let | |
160 | - | let | |
161 | - | let | |
162 | - | let | |
163 | - | if (!( | |
164 | - | then throw(("innapropriate roi: " + toString( | |
165 | - | else if (( | |
163 | + | func aB (aC,aD,aE,aF,aG,aH,aI,aJ) = { | |
164 | + | let aK = ap(aF) | |
165 | + | let aL = (aH - aE) | |
166 | + | let aM = N(aL, aK) | |
167 | + | let aN = O(aM, aK) | |
168 | + | let aO = (ab >= aF) | |
169 | + | if (!(aO)) | |
170 | + | then throw(("innapropriate roi: " + toString(aF))) | |
171 | + | else if ((aN == 0)) | |
166 | 172 | then throw("cannot fill order at the moment") | |
167 | 173 | else { | |
168 | - | let | |
169 | - | let | |
170 | - | then | |
171 | - | else [IntegerEntry(G( | |
172 | - | ( | |
174 | + | let aP = (aL - aN) | |
175 | + | let aQ = if (aJ) | |
176 | + | then av(aC, aH, (aE + aN), toBase58String(aI.bytes), r, aF, V) | |
177 | + | else [IntegerEntry(G(aC), (aE + aN)), StringEntry(F(aC), r), StringEntry(H(aD), ""), StringEntry(y, aD)] | |
178 | + | (aQ ++ [ScriptTransfer(aI, aM, T), ScriptTransfer(P, aN, unit), ScriptTransfer(aI, aP, unit)]) | |
173 | 179 | } | |
174 | 180 | } | |
175 | 181 | ||
176 | 182 | ||
177 | - | func | |
178 | - | let | |
179 | - | let | |
183 | + | func aR (aA,L,aS,aT,aJ) = { | |
184 | + | let aU = value(aT.payments[0]) | |
185 | + | let aV = toBase58String(aT.transactionId) | |
180 | 186 | if (U) | |
181 | 187 | then throw("contract is blocked by EMERGENCY SHUTDOWN actions until reactivation by emergency oracles") | |
182 | - | else if ((n > | |
188 | + | else if ((n > aU.amount)) | |
183 | 189 | then throw(("min order total equals " + toString(n))) | |
184 | - | else if (( | |
190 | + | else if ((aA > o)) | |
185 | 191 | then throw("max setOrder ROI is 95%") | |
186 | - | else if ((0 > | |
192 | + | else if ((0 > aA)) | |
187 | 193 | then throw("can't place order with negative roi") | |
188 | - | else if (( | |
194 | + | else if ((aA == 0)) | |
189 | 195 | then throw("roi should not be equal to 0") | |
190 | - | else if (isDefined( | |
196 | + | else if (isDefined(aU.assetId)) | |
191 | 197 | then throw("can use waves only") | |
192 | - | else if (( | |
198 | + | else if ((ak(aV) != "")) | |
193 | 199 | then throw("order exists") | |
194 | - | else if (if (( | |
195 | - | then ( | |
200 | + | else if (if ((aS != "")) | |
201 | + | then (al(aS) != q) | |
196 | 202 | else false) | |
197 | 203 | then throw("prev order status is not new") | |
198 | 204 | else { | |
199 | - | let | |
200 | - | let | |
201 | - | let | |
205 | + | let aW = (aS == "") | |
206 | + | let ay = toString(aT.caller) | |
207 | + | let aX = if (aW) | |
202 | 208 | then ad | |
203 | - | else | |
204 | - | let | |
205 | - | let | |
206 | - | then ( | |
209 | + | else ao(aS) | |
210 | + | let aY = a(z(aX)) | |
211 | + | let aZ = if (if ((aX != "")) | |
212 | + | then (aA >= aY) | |
207 | 213 | else false) | |
208 | 214 | then true | |
209 | 215 | else false | |
210 | - | let | |
211 | - | let | |
212 | - | then ( | |
216 | + | let ba = a(z(aS)) | |
217 | + | let bb = if (if ((aS != "")) | |
218 | + | then (ba > aA) | |
213 | 219 | else false) | |
214 | 220 | then true | |
215 | 221 | else false | |
216 | - | if (if ( | |
222 | + | if (if (aZ) | |
217 | 223 | then true | |
218 | - | else | |
219 | - | then throw(((("invalid order isPrevOrderError:" + toString( | |
220 | - | else if (if ( | |
221 | - | then (ab >= | |
224 | + | else bb) | |
225 | + | then throw(((("invalid order isPrevOrderError:" + toString(bb)) + " isNextOrderError:") + toString(aZ))) | |
226 | + | else if (if (aW) | |
227 | + | then (ab >= aA) | |
222 | 228 | else false) | |
223 | - | then | |
224 | - | else if ( | |
229 | + | then aB(aV, aX, 0, aA, L, aU.amount, aT.caller, true) | |
230 | + | else if (aJ) | |
225 | 231 | then throw("Instant order couldn't be added into waiting queue") | |
226 | - | else ([StringEntry(H(aS), | |
232 | + | else ([StringEntry(H(aV), aS), StringEntry(I(aV), aX), StringEntry(I(aS), if ((aS == "")) | |
227 | 233 | then "" | |
228 | - | else | |
234 | + | else aV), StringEntry(H(aX), if ((aX == "")) | |
229 | 235 | then "" | |
230 | - | else | |
236 | + | else aV), StringEntry(y, if (if ((ad == "")) | |
231 | 237 | then true | |
232 | - | else (ad == | |
233 | - | then | |
234 | - | else ad)] ++ | |
238 | + | else (ad == aX)) | |
239 | + | then aV | |
240 | + | else ad)] ++ av(aV, aU.amount, 0, ay, q, aA, L)) | |
235 | 241 | } | |
236 | 242 | } | |
237 | 243 | ||
238 | 244 | ||
239 | - | func aZ (ba,bb,L,bc,bd,be) = { | |
240 | - | let bf = 271828100 | |
241 | - | let bg = valueOrElse(getInteger(this, "nsbtCurveParam_a"), 3) | |
242 | - | let bh = valueOrElse(getInteger(this, "nsbtCurveParam_b"), ((3 * i) / 10)) | |
243 | - | let bi = M(ba, L) | |
244 | - | let bj = fraction(bi, l, bb) | |
245 | - | let bk = (bg * (bj - (1 * l))) | |
246 | - | let bl = pow(bf, m, bk, m, m, DOWN) | |
247 | - | let bm = fraction(bh, bl, i) | |
248 | - | let bn = M(be, L) | |
249 | - | let bo = fraction(bm, bc, i) | |
250 | - | let bp = fraction(bo, i, (bc - bd)) | |
251 | - | let bq = (fraction(bn, l, i) + fraction(bp, bc, i)) | |
252 | - | let br = fraction(bo, l, bq) | |
253 | - | let bs = fraction(br, bc, l) | |
254 | - | let bt = ((bc - bd) - bs) | |
255 | - | [bt, bn, ba, bb, bc, bd, bg, bh, bi, L, bj, bk, bl, bm, bo, bp, bq, br, bs] | |
245 | + | let bc = 0 | |
246 | + | ||
247 | + | let bd = 1 | |
248 | + | ||
249 | + | let be = 2 | |
250 | + | ||
251 | + | let bf = 3 | |
252 | + | ||
253 | + | let bg = 4 | |
254 | + | ||
255 | + | let bh = 5 | |
256 | + | ||
257 | + | let bi = 6 | |
258 | + | ||
259 | + | func bj (bk,bl,L,bm,bn) = { | |
260 | + | let bo = 271828100 | |
261 | + | let bp = valueOrElse(getInteger(this, "nsbtCurveParam_a"), 3) | |
262 | + | let bq = valueOrElse(getInteger(this, "nsbtCurveParam_b"), ((3 * i) / 10)) | |
263 | + | let br = M(bk, L) | |
264 | + | let bs = fraction(br, l, bl) | |
265 | + | let bt = (bp * (bs - (1 * l))) | |
266 | + | let bu = pow(bo, m, bt, m, m, DOWN) | |
267 | + | let bv = fraction(bq, bu, i) | |
268 | + | [bp, bq, br, bs, bt, bu, bv] | |
256 | 269 | } | |
257 | 270 | ||
258 | 271 | ||
259 | - | func bu (bv,bw) = (((((((((((((((((((((((((((((((((((((((bv + "[nsbtAmountRaw=") + toString(bw[0])) + " usdnPayment=") + toString(bw[1])) + " wRaw=") + toString(bw[2])) + " uRaw=") + toString(bw[3])) + " mRaw=") + toString(bw[4])) + " sRaw=") + toString(bw[5])) + " nsbtCurveParam_a=") + toString(bw[6])) + " nsbtCurveParam_b=") + toString(bw[7])) + " wReservesInUsdn=") + toString(bw[8])) + " price=") + toString(bw[9])) + " multBR=") + toString(bw[10])) + " multPower=") + toString(bw[11])) + " multExpInPower=") + toString(bw[12])) + " multK=") + toString(bw[13])) + " multStepM1=") + toString(bw[14])) + " multStep2=") + toString(bw[15])) + " multStepM3=") + toString(bw[16])) + " multStep4=") + toString(bw[17])) + " stepM5=") + toString(bw[18])) + "]") | |
272 | + | func bw (bk,bl,L,bm,bn,bx) = { | |
273 | + | let by = bj(bk, bl, L, bm, bn) | |
274 | + | let bv = by[bi] | |
275 | + | let bz = M(bx, L) | |
276 | + | let bA = fraction(bv, bm, i) | |
277 | + | let bB = fraction(bA, i, (bm - bn)) | |
278 | + | let bC = (fraction(bz, l, i) + fraction(bB, bm, i)) | |
279 | + | let bD = fraction(bA, l, bC) | |
280 | + | let bE = fraction(bD, bm, l) | |
281 | + | let bF = ((bm - bn) - bE) | |
282 | + | [bF, bz, bk, bl, bm, bn, by[bc], by[bd], by[be], L, by[bf], by[bg], by[bh], bv, bA, bB, bC, bD, bE] | |
283 | + | } | |
260 | 284 | ||
261 | 285 | ||
262 | - | func bx (by) = if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (!(isDefined(transferTransactionById(fromBase58String("PdLw5JK5ppfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k"))))) | |
286 | + | func bG (bH,bI) = (((((((((((((((((((((((((((((((((((((((bH + "[nsbtAmountRaw=") + toString(bI[0])) + " usdnPayment=") + toString(bI[1])) + " wRaw=") + toString(bI[2])) + " uRaw=") + toString(bI[3])) + " mRaw=") + toString(bI[4])) + " sRaw=") + toString(bI[5])) + " nsbtCurveParam_a=") + toString(bI[6])) + " nsbtCurveParam_b=") + toString(bI[7])) + " wReservesInUsdn=") + toString(bI[8])) + " price=") + toString(bI[9])) + " multBR=") + toString(bI[10])) + " multPower=") + toString(bI[11])) + " multExpInPower=") + toString(bI[12])) + " multK=") + toString(bI[13])) + " multStepM1=") + toString(bI[14])) + " multStep2=") + toString(bI[15])) + " multStepM3=") + toString(bI[16])) + " multStep4=") + toString(bI[17])) + " stepM5=") + toString(bI[18])) + "]") | |
287 | + | ||
288 | + | ||
289 | + | func bJ (bK) = if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (!(isDefined(transferTransactionById(fromBase58String("PdLw5JK5ppfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k"))))) | |
263 | 290 | then !(isDefined(transferTransactionById(fromBase58String("adLw5JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
264 | 291 | else false) | |
265 | 292 | then !(isDefined(transferTransactionById(fromBase58String("sdLw5JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
312 | 339 | else false | |
313 | 340 | ||
314 | 341 | ||
315 | - | @Callable(by) | |
342 | + | func bL () = { | |
343 | + | let by = bj(X, Z, V, af, ag) | |
344 | + | let bv = by[bi] | |
345 | + | let bM = fraction(af, l, (af - ag)) | |
346 | + | let bB = fraction(bM, bM, l) | |
347 | + | let bN = fraction(bv, bB, l) | |
348 | + | let bO = fraction(bN, i, l) | |
349 | + | let bP = fraction(bO, i, V) | |
350 | + | $Tuple2(IntegerEntry("nsbt2usdnPrice", bO), IntegerEntry("nsbt2wavesPrice", bP)) | |
351 | + | } | |
352 | + | ||
353 | + | ||
354 | + | @Callable(bK) | |
355 | + | func nsbtPriceREST () = { | |
356 | + | let bQ = bL() | |
357 | + | let bO = bQ._1.value | |
358 | + | let bP = bQ._2.value | |
359 | + | let bR = makeString(["startNsbtPriceREST", toString(bO), toString(bP), "endNsbtPriceREST"], "__") | |
360 | + | throw(bR) | |
361 | + | } | |
362 | + | ||
363 | + | ||
364 | + | ||
365 | + | @Callable(bK) | |
316 | 366 | func buyNsbt () = { | |
317 | - | let | |
318 | - | let | |
319 | - | let | |
320 | - | let | |
367 | + | let aU = value(bK.payments[0]) | |
368 | + | let bS = aU.amount | |
369 | + | let bT = bS | |
370 | + | let bU = bK.caller | |
321 | 371 | if (U) | |
322 | 372 | then throw("contract is blocked by EMERGENCY SHUTDOWN actions until reactivation by emergency oracles") | |
323 | - | else if (isDefined( | |
373 | + | else if (isDefined(aU.assetId)) | |
324 | 374 | then throw("can use waves only") | |
325 | - | else if (((10 * h) > | |
375 | + | else if (((10 * h) > bS)) | |
326 | 376 | then throw("min 10 waves expected") | |
327 | 377 | else { | |
328 | - | let bC = valueOrElse(getInteger(this, "tmp_issuedNsbt_2"), 0) | |
329 | - | let bD = ((2850 * 1000) * i) | |
330 | - | let bE = (((1850 * 1000) * i) + bC) | |
331 | - | let bw = aZ(X, Z, V, bD, bE, bA) | |
332 | - | let bF = bw[0] | |
333 | - | let bG = ap(bA, bF) | |
334 | - | let ax = (fraction(ao(bG), 100, V) - 100) | |
335 | - | (as(toBase58String(by.transactionId), bz, bz, toString(bB), r, ax, bG) ++ [ScriptTransfer(bB, bF, T), ScriptTransfer(P, bA, unit), StringEntry("debug_curveResult", bu("curveResult", bw)), IntegerEntry("tmp_issuedNsbt_2", (bC + bF))]) | |
378 | + | let bI = bw(X, Z, V, af, ag, bT) | |
379 | + | let bV = bI[0] | |
380 | + | let bW = as(bT, bV) | |
381 | + | let aA = (fraction(ar(bW), 100, V) - 100) | |
382 | + | (av(toBase58String(bK.transactionId), bS, bS, toString(bU), r, aA, bW) ++ [ScriptTransfer(bU, bV, T), ScriptTransfer(P, bT, unit), StringEntry("debug_curveResult", bG("curveResult", bI)), IntegerEntry("tmp_issuedNsbt_2", (ae + bV))]) | |
336 | 383 | } | |
337 | 384 | } | |
338 | 385 | ||
339 | 386 | ||
340 | 387 | ||
341 | - | @Callable( | |
342 | - | func instantBuyNsbtOrFail ( | |
343 | - | let | |
344 | - | let | |
345 | - | if (( | |
346 | - | then throw(((("Current maxRoi=" + toString( | |
388 | + | @Callable(bK) | |
389 | + | func instantBuyNsbtOrFail (bX) = { | |
390 | + | let aU = value(bK.payments[0]) | |
391 | + | let aA = ab | |
392 | + | if ((bX > aA)) | |
393 | + | then throw(((("Current maxRoi=" + toString(aA)) + " is less then passed parameter noLessThenRoi=") + toString(bX))) | |
347 | 394 | else { | |
348 | - | let | |
349 | - | | |
395 | + | let aK = ap(aA) | |
396 | + | aR(aA, ar(aK), "", bK, true) | |
350 | 397 | } | |
351 | 398 | } | |
352 | 399 | ||
353 | 400 | ||
354 | 401 | ||
355 | - | @Callable( | |
356 | - | func addBuyBondOrder (L, | |
357 | - | let | |
358 | - | let | |
402 | + | @Callable(bK) | |
403 | + | func addBuyBondOrder (L,aS) = { | |
404 | + | let aU = value(bK.payments[0]) | |
405 | + | let aK = ar(L) | |
359 | 406 | if ((0 >= L)) | |
360 | 407 | then throw("price less zero") | |
361 | - | else | |
408 | + | else aR(fraction((aK - V), 100, V), L, aS, bK, false) | |
362 | 409 | } | |
363 | 410 | ||
364 | 411 | ||
365 | 412 | ||
366 | - | @Callable( | |
413 | + | @Callable(bK) | |
367 | 414 | func cancelOrder (A) = { | |
368 | - | let | |
369 | - | let K = ( | |
370 | - | let | |
371 | - | let | |
372 | - | let | |
415 | + | let ay = ak(A) | |
416 | + | let K = (aj(A) - am(A)) | |
417 | + | let bY = toString(bK.caller) | |
418 | + | let aX = ao(A) | |
419 | + | let aS = an(A) | |
373 | 420 | if (U) | |
374 | 421 | then throw("contract is blocked by EMERGENCY SHUTDOWN actions until reactivation by emergency oracles") | |
375 | - | else if (( | |
422 | + | else if ((ay != bY)) | |
376 | 423 | then throw("permission denied") | |
377 | - | else if (( | |
424 | + | else if ((al(A) != q)) | |
378 | 425 | then throw("invalid order status") | |
379 | 426 | else [StringEntry(y, if ((ad == A)) | |
380 | - | then | |
381 | - | else ad), StringEntry(I( | |
427 | + | then aX | |
428 | + | else ad), StringEntry(I(aS), aX), StringEntry(H(aX), aS), StringEntry(F(A), p), ScriptTransfer(bK.caller, K, unit)] | |
382 | 429 | } | |
383 | 430 | ||
384 | 431 | ||
385 | 432 | ||
386 | - | @Callable( | |
433 | + | @Callable(bK) | |
387 | 434 | func sellBond () = if (U) | |
388 | 435 | then throw("contract is blocked by EMERGENCY SHUTDOWN actions until reactivation by emergency oracles") | |
389 | 436 | else if ((ad == "")) | |
390 | 437 | then throw("empty orderbook") | |
391 | 438 | else { | |
392 | - | let | |
393 | - | let | |
394 | - | let | |
395 | - | let | |
396 | - | let | |
397 | - | let | |
398 | - | | |
439 | + | let aX = ao(ad) | |
440 | + | let bZ = am(ad) | |
441 | + | let ca = ah(ad) | |
442 | + | let aA = a(z(ad)) | |
443 | + | let cb = aj(ad) | |
444 | + | let aI = Address(fromBase58String(ak(ad))) | |
445 | + | aB(ad, aX, bZ, aA, ca, cb, aI, false) | |
399 | 446 | } | |
400 | 447 | ||
401 | 448 | ||
402 | - | @Verifier( | |
403 | - | func | |
404 | - | let | |
405 | - | let | |
449 | + | @Verifier(cc) | |
450 | + | func cd () = { | |
451 | + | let ce = ["GXxmZaCigPgJsT6d1cLr8nUXA65nGX8V7FuAzzrY8wQE", "3xumx4hrPpeeoo79HLGbZCgfz95L39ZFdxxwWeSUC2Pu", "D4CqtK5fBsnzRo33ZMhrM7niLseDH2uRoK6weBq2JQ3A", "5WRXFSjwcTbNfKcJs8ZqXmSSWYsSVJUtMvMqZj5hH4Nc"] | |
452 | + | let cf = ((((if (sigVerify(cc.bodyBytes, cc.proofs[0], fromBase58String(ce[0]))) | |
406 | 453 | then 1 | |
407 | - | else 0) + (if (sigVerify( | |
454 | + | else 0) + (if (sigVerify(cc.bodyBytes, cc.proofs[1], fromBase58String(ce[1]))) | |
408 | 455 | then 1 | |
409 | - | else 0)) + (if (sigVerify( | |
456 | + | else 0)) + (if (sigVerify(cc.bodyBytes, cc.proofs[2], fromBase58String(ce[2]))) | |
410 | 457 | then 1 | |
411 | - | else 0)) + (if (sigVerify( | |
458 | + | else 0)) + (if (sigVerify(cc.bodyBytes, cc.proofs[3], fromBase58String(ce[3]))) | |
412 | 459 | then 2 | |
413 | 460 | else 0)) | |
414 | - | ( | |
461 | + | (cf >= 3) | |
415 | 462 | } | |
416 | 463 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func a (b) = valueOrElse(getInteger(this, b), 0) | |
5 | 5 | ||
6 | 6 | ||
7 | 7 | func c (b) = valueOrElse(getString(this, b), "") | |
8 | 8 | ||
9 | 9 | ||
10 | 10 | func d (e,b) = valueOrElse(getBoolean(e, b), false) | |
11 | 11 | ||
12 | 12 | ||
13 | 13 | func f (e,b) = valueOrElse(getString(e, b), "") | |
14 | 14 | ||
15 | 15 | ||
16 | 16 | func g (e,b) = valueOrElse(getInteger(e, b), 0) | |
17 | 17 | ||
18 | 18 | ||
19 | 19 | let h = 100000000 | |
20 | 20 | ||
21 | 21 | let i = 1000000 | |
22 | 22 | ||
23 | 23 | let j = 6 | |
24 | 24 | ||
25 | 25 | let k = 1000000 | |
26 | 26 | ||
27 | 27 | let l = 100000000 | |
28 | 28 | ||
29 | 29 | let m = 8 | |
30 | 30 | ||
31 | 31 | let n = (10 * h) | |
32 | 32 | ||
33 | 33 | let o = 95 | |
34 | 34 | ||
35 | 35 | let p = "canceled" | |
36 | 36 | ||
37 | 37 | let q = "new" | |
38 | 38 | ||
39 | 39 | let r = "filled" | |
40 | 40 | ||
41 | 41 | let s = "price" | |
42 | 42 | ||
43 | 43 | let t = "bond_asset_id" | |
44 | 44 | ||
45 | 45 | let u = "neutrino_asset_id" | |
46 | 46 | ||
47 | 47 | let v = "balance_lock_" | |
48 | 48 | ||
49 | 49 | let w = (v + "waves") | |
50 | 50 | ||
51 | 51 | let x = (v + "neutrino") | |
52 | 52 | ||
53 | 53 | let y = "order_first" | |
54 | 54 | ||
55 | 55 | func z (A) = ("debug_order_roi_" + A) | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | func B (A) = ("order_price_" + A) | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | func C (A) = ("order_total_" + A) | |
62 | 62 | ||
63 | 63 | ||
64 | 64 | func D (A) = ("order_owner_" + A) | |
65 | 65 | ||
66 | 66 | ||
67 | 67 | func E (A) = ("order_height_" + A) | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | func F (A) = ("order_status_" + A) | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | func G (A) = ("order_filled_total_" + A) | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func H (A) = ("order_prev_" + A) | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | func I (A) = ("order_next_" + A) | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | func J (K,L) = fraction(fraction(K, k, L), h, i) | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | func M (K,L) = fraction(fraction(K, L, k), i, h) | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | func N (K,L) = M(K, L) | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | func O (K,L) = J(K, L) | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | let P = Address(base58'3Mzbx34Ex5rRbn39vUHx9kiwh3nneF8S5we') | |
95 | 95 | ||
96 | 96 | let Q = Address(base58'3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx') | |
97 | 97 | ||
98 | 98 | let R = Address(base58'3N5nmMvMH8o3RPEyCKCaoWahBTYTexnZy62') | |
99 | 99 | ||
100 | 100 | let S = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT' | |
101 | 101 | ||
102 | 102 | let T = base58'BGhPYquXSK6UYjnPLEn94gFhetp4Jvf7toekEY4x1VDH' | |
103 | 103 | ||
104 | 104 | let U = d(Q, "is_blocked") | |
105 | 105 | ||
106 | 106 | let V = g(Q, s) | |
107 | 107 | ||
108 | 108 | let W = g(P, x) | |
109 | 109 | ||
110 | 110 | let X = (wavesBalance(P).regular - g(P, w)) | |
111 | 111 | ||
112 | 112 | let Y = M(X, V) | |
113 | 113 | ||
114 | 114 | let Z = (((W + value(assetInfo(S)).quantity) - assetBalance(P, S)) - assetBalance(R, S)) | |
115 | 115 | ||
116 | 116 | let aa = (Z - Y) | |
117 | 117 | ||
118 | 118 | let ab = fraction(aa, 100, Z) | |
119 | 119 | ||
120 | 120 | let ac = fraction(Y, l, Z) | |
121 | 121 | ||
122 | 122 | let ad = c(y) | |
123 | 123 | ||
124 | - | func ae (af) = a(B(af)) | |
124 | + | let ae = valueOrElse(getInteger(this, "tmp_issuedNsbt_2"), 0) | |
125 | + | ||
126 | + | let af = ((2850 * 1000) * i) | |
127 | + | ||
128 | + | let ag = (((1850 * 1000) * i) + ae) | |
129 | + | ||
130 | + | func ah (ai) = a(B(ai)) | |
125 | 131 | ||
126 | 132 | ||
127 | - | func | |
133 | + | func aj (ai) = a(C(ai)) | |
128 | 134 | ||
129 | 135 | ||
130 | - | func | |
136 | + | func ak (ai) = c(D(ai)) | |
131 | 137 | ||
132 | 138 | ||
133 | - | func | |
139 | + | func al (ai) = c(F(ai)) | |
134 | 140 | ||
135 | 141 | ||
136 | - | func | |
142 | + | func am (ai) = a(G(ai)) | |
137 | 143 | ||
138 | 144 | ||
139 | - | func | |
145 | + | func an (ai) = c(H(ai)) | |
140 | 146 | ||
141 | 147 | ||
142 | - | func | |
148 | + | func ao (ai) = c(I(ai)) | |
143 | 149 | ||
144 | 150 | ||
145 | - | func | |
151 | + | func ap (aq) = fraction((100 + aq), V, 100) | |
146 | 152 | ||
147 | 153 | ||
148 | - | func | |
154 | + | func ar (L) = ((k * k) / L) | |
149 | 155 | ||
150 | 156 | ||
151 | - | func | |
157 | + | func as (at,au) = fraction(at, (i * k), au) | |
152 | 158 | ||
153 | 159 | ||
154 | - | func | |
160 | + | func av (A,aw,ax,ay,az,aA,L) = [IntegerEntry(B(A), L), IntegerEntry(C(A), aw), IntegerEntry(G(A), ax), StringEntry(D(A), ay), IntegerEntry(E(A), height), StringEntry(F(A), az), IntegerEntry(("debug_order_currentPrice_" + A), V), IntegerEntry(z(A), aA)] | |
155 | 161 | ||
156 | 162 | ||
157 | - | func | |
158 | - | let | |
159 | - | let | |
160 | - | let | |
161 | - | let | |
162 | - | let | |
163 | - | if (!( | |
164 | - | then throw(("innapropriate roi: " + toString( | |
165 | - | else if (( | |
163 | + | func aB (aC,aD,aE,aF,aG,aH,aI,aJ) = { | |
164 | + | let aK = ap(aF) | |
165 | + | let aL = (aH - aE) | |
166 | + | let aM = N(aL, aK) | |
167 | + | let aN = O(aM, aK) | |
168 | + | let aO = (ab >= aF) | |
169 | + | if (!(aO)) | |
170 | + | then throw(("innapropriate roi: " + toString(aF))) | |
171 | + | else if ((aN == 0)) | |
166 | 172 | then throw("cannot fill order at the moment") | |
167 | 173 | else { | |
168 | - | let | |
169 | - | let | |
170 | - | then | |
171 | - | else [IntegerEntry(G( | |
172 | - | ( | |
174 | + | let aP = (aL - aN) | |
175 | + | let aQ = if (aJ) | |
176 | + | then av(aC, aH, (aE + aN), toBase58String(aI.bytes), r, aF, V) | |
177 | + | else [IntegerEntry(G(aC), (aE + aN)), StringEntry(F(aC), r), StringEntry(H(aD), ""), StringEntry(y, aD)] | |
178 | + | (aQ ++ [ScriptTransfer(aI, aM, T), ScriptTransfer(P, aN, unit), ScriptTransfer(aI, aP, unit)]) | |
173 | 179 | } | |
174 | 180 | } | |
175 | 181 | ||
176 | 182 | ||
177 | - | func | |
178 | - | let | |
179 | - | let | |
183 | + | func aR (aA,L,aS,aT,aJ) = { | |
184 | + | let aU = value(aT.payments[0]) | |
185 | + | let aV = toBase58String(aT.transactionId) | |
180 | 186 | if (U) | |
181 | 187 | then throw("contract is blocked by EMERGENCY SHUTDOWN actions until reactivation by emergency oracles") | |
182 | - | else if ((n > | |
188 | + | else if ((n > aU.amount)) | |
183 | 189 | then throw(("min order total equals " + toString(n))) | |
184 | - | else if (( | |
190 | + | else if ((aA > o)) | |
185 | 191 | then throw("max setOrder ROI is 95%") | |
186 | - | else if ((0 > | |
192 | + | else if ((0 > aA)) | |
187 | 193 | then throw("can't place order with negative roi") | |
188 | - | else if (( | |
194 | + | else if ((aA == 0)) | |
189 | 195 | then throw("roi should not be equal to 0") | |
190 | - | else if (isDefined( | |
196 | + | else if (isDefined(aU.assetId)) | |
191 | 197 | then throw("can use waves only") | |
192 | - | else if (( | |
198 | + | else if ((ak(aV) != "")) | |
193 | 199 | then throw("order exists") | |
194 | - | else if (if (( | |
195 | - | then ( | |
200 | + | else if (if ((aS != "")) | |
201 | + | then (al(aS) != q) | |
196 | 202 | else false) | |
197 | 203 | then throw("prev order status is not new") | |
198 | 204 | else { | |
199 | - | let | |
200 | - | let | |
201 | - | let | |
205 | + | let aW = (aS == "") | |
206 | + | let ay = toString(aT.caller) | |
207 | + | let aX = if (aW) | |
202 | 208 | then ad | |
203 | - | else | |
204 | - | let | |
205 | - | let | |
206 | - | then ( | |
209 | + | else ao(aS) | |
210 | + | let aY = a(z(aX)) | |
211 | + | let aZ = if (if ((aX != "")) | |
212 | + | then (aA >= aY) | |
207 | 213 | else false) | |
208 | 214 | then true | |
209 | 215 | else false | |
210 | - | let | |
211 | - | let | |
212 | - | then ( | |
216 | + | let ba = a(z(aS)) | |
217 | + | let bb = if (if ((aS != "")) | |
218 | + | then (ba > aA) | |
213 | 219 | else false) | |
214 | 220 | then true | |
215 | 221 | else false | |
216 | - | if (if ( | |
222 | + | if (if (aZ) | |
217 | 223 | then true | |
218 | - | else | |
219 | - | then throw(((("invalid order isPrevOrderError:" + toString( | |
220 | - | else if (if ( | |
221 | - | then (ab >= | |
224 | + | else bb) | |
225 | + | then throw(((("invalid order isPrevOrderError:" + toString(bb)) + " isNextOrderError:") + toString(aZ))) | |
226 | + | else if (if (aW) | |
227 | + | then (ab >= aA) | |
222 | 228 | else false) | |
223 | - | then | |
224 | - | else if ( | |
229 | + | then aB(aV, aX, 0, aA, L, aU.amount, aT.caller, true) | |
230 | + | else if (aJ) | |
225 | 231 | then throw("Instant order couldn't be added into waiting queue") | |
226 | - | else ([StringEntry(H(aS), | |
232 | + | else ([StringEntry(H(aV), aS), StringEntry(I(aV), aX), StringEntry(I(aS), if ((aS == "")) | |
227 | 233 | then "" | |
228 | - | else | |
234 | + | else aV), StringEntry(H(aX), if ((aX == "")) | |
229 | 235 | then "" | |
230 | - | else | |
236 | + | else aV), StringEntry(y, if (if ((ad == "")) | |
231 | 237 | then true | |
232 | - | else (ad == | |
233 | - | then | |
234 | - | else ad)] ++ | |
238 | + | else (ad == aX)) | |
239 | + | then aV | |
240 | + | else ad)] ++ av(aV, aU.amount, 0, ay, q, aA, L)) | |
235 | 241 | } | |
236 | 242 | } | |
237 | 243 | ||
238 | 244 | ||
239 | - | func aZ (ba,bb,L,bc,bd,be) = { | |
240 | - | let bf = 271828100 | |
241 | - | let bg = valueOrElse(getInteger(this, "nsbtCurveParam_a"), 3) | |
242 | - | let bh = valueOrElse(getInteger(this, "nsbtCurveParam_b"), ((3 * i) / 10)) | |
243 | - | let bi = M(ba, L) | |
244 | - | let bj = fraction(bi, l, bb) | |
245 | - | let bk = (bg * (bj - (1 * l))) | |
246 | - | let bl = pow(bf, m, bk, m, m, DOWN) | |
247 | - | let bm = fraction(bh, bl, i) | |
248 | - | let bn = M(be, L) | |
249 | - | let bo = fraction(bm, bc, i) | |
250 | - | let bp = fraction(bo, i, (bc - bd)) | |
251 | - | let bq = (fraction(bn, l, i) + fraction(bp, bc, i)) | |
252 | - | let br = fraction(bo, l, bq) | |
253 | - | let bs = fraction(br, bc, l) | |
254 | - | let bt = ((bc - bd) - bs) | |
255 | - | [bt, bn, ba, bb, bc, bd, bg, bh, bi, L, bj, bk, bl, bm, bo, bp, bq, br, bs] | |
245 | + | let bc = 0 | |
246 | + | ||
247 | + | let bd = 1 | |
248 | + | ||
249 | + | let be = 2 | |
250 | + | ||
251 | + | let bf = 3 | |
252 | + | ||
253 | + | let bg = 4 | |
254 | + | ||
255 | + | let bh = 5 | |
256 | + | ||
257 | + | let bi = 6 | |
258 | + | ||
259 | + | func bj (bk,bl,L,bm,bn) = { | |
260 | + | let bo = 271828100 | |
261 | + | let bp = valueOrElse(getInteger(this, "nsbtCurveParam_a"), 3) | |
262 | + | let bq = valueOrElse(getInteger(this, "nsbtCurveParam_b"), ((3 * i) / 10)) | |
263 | + | let br = M(bk, L) | |
264 | + | let bs = fraction(br, l, bl) | |
265 | + | let bt = (bp * (bs - (1 * l))) | |
266 | + | let bu = pow(bo, m, bt, m, m, DOWN) | |
267 | + | let bv = fraction(bq, bu, i) | |
268 | + | [bp, bq, br, bs, bt, bu, bv] | |
256 | 269 | } | |
257 | 270 | ||
258 | 271 | ||
259 | - | func bu (bv,bw) = (((((((((((((((((((((((((((((((((((((((bv + "[nsbtAmountRaw=") + toString(bw[0])) + " usdnPayment=") + toString(bw[1])) + " wRaw=") + toString(bw[2])) + " uRaw=") + toString(bw[3])) + " mRaw=") + toString(bw[4])) + " sRaw=") + toString(bw[5])) + " nsbtCurveParam_a=") + toString(bw[6])) + " nsbtCurveParam_b=") + toString(bw[7])) + " wReservesInUsdn=") + toString(bw[8])) + " price=") + toString(bw[9])) + " multBR=") + toString(bw[10])) + " multPower=") + toString(bw[11])) + " multExpInPower=") + toString(bw[12])) + " multK=") + toString(bw[13])) + " multStepM1=") + toString(bw[14])) + " multStep2=") + toString(bw[15])) + " multStepM3=") + toString(bw[16])) + " multStep4=") + toString(bw[17])) + " stepM5=") + toString(bw[18])) + "]") | |
272 | + | func bw (bk,bl,L,bm,bn,bx) = { | |
273 | + | let by = bj(bk, bl, L, bm, bn) | |
274 | + | let bv = by[bi] | |
275 | + | let bz = M(bx, L) | |
276 | + | let bA = fraction(bv, bm, i) | |
277 | + | let bB = fraction(bA, i, (bm - bn)) | |
278 | + | let bC = (fraction(bz, l, i) + fraction(bB, bm, i)) | |
279 | + | let bD = fraction(bA, l, bC) | |
280 | + | let bE = fraction(bD, bm, l) | |
281 | + | let bF = ((bm - bn) - bE) | |
282 | + | [bF, bz, bk, bl, bm, bn, by[bc], by[bd], by[be], L, by[bf], by[bg], by[bh], bv, bA, bB, bC, bD, bE] | |
283 | + | } | |
260 | 284 | ||
261 | 285 | ||
262 | - | func bx (by) = if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (!(isDefined(transferTransactionById(fromBase58String("PdLw5JK5ppfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k"))))) | |
286 | + | func bG (bH,bI) = (((((((((((((((((((((((((((((((((((((((bH + "[nsbtAmountRaw=") + toString(bI[0])) + " usdnPayment=") + toString(bI[1])) + " wRaw=") + toString(bI[2])) + " uRaw=") + toString(bI[3])) + " mRaw=") + toString(bI[4])) + " sRaw=") + toString(bI[5])) + " nsbtCurveParam_a=") + toString(bI[6])) + " nsbtCurveParam_b=") + toString(bI[7])) + " wReservesInUsdn=") + toString(bI[8])) + " price=") + toString(bI[9])) + " multBR=") + toString(bI[10])) + " multPower=") + toString(bI[11])) + " multExpInPower=") + toString(bI[12])) + " multK=") + toString(bI[13])) + " multStepM1=") + toString(bI[14])) + " multStep2=") + toString(bI[15])) + " multStepM3=") + toString(bI[16])) + " multStep4=") + toString(bI[17])) + " stepM5=") + toString(bI[18])) + "]") | |
287 | + | ||
288 | + | ||
289 | + | func bJ (bK) = if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (!(isDefined(transferTransactionById(fromBase58String("PdLw5JK5ppfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k"))))) | |
263 | 290 | then !(isDefined(transferTransactionById(fromBase58String("adLw5JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
264 | 291 | else false) | |
265 | 292 | then !(isDefined(transferTransactionById(fromBase58String("sdLw5JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
266 | 293 | else false) | |
267 | 294 | then !(isDefined(transferTransactionById(fromBase58String("ddLw5JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
268 | 295 | else false) | |
269 | 296 | then !(isDefined(transferTransactionById(fromBase58String("fdLw5JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
270 | 297 | else false) | |
271 | 298 | then !(isDefined(transferTransactionById(fromBase58String("gdLw5JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
272 | 299 | else false) | |
273 | 300 | then !(isDefined(transferTransactionById(fromBase58String("hdLw5JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
274 | 301 | else false) | |
275 | 302 | then !(isDefined(transferTransactionById(fromBase58String("jdLw5JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
276 | 303 | else false) | |
277 | 304 | then !(isDefined(transferTransactionById(fromBase58String("kdLw5JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
278 | 305 | else false) | |
279 | 306 | then !(isDefined(transferTransactionById(fromBase58String("rdLw5JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
280 | 307 | else false) | |
281 | 308 | then !(isDefined(transferTransactionById(fromBase58String("tdLq5JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
282 | 309 | else false) | |
283 | 310 | then !(isDefined(transferTransactionById(fromBase58String("tdLy5JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
284 | 311 | else false) | |
285 | 312 | then !(isDefined(transferTransactionById(fromBase58String("tdLu5JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
286 | 313 | else false) | |
287 | 314 | then !(isDefined(transferTransactionById(fromBase58String("tdLh5JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
288 | 315 | else false) | |
289 | 316 | then !(isDefined(transferTransactionById(fromBase58String("1dL4JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
290 | 317 | else false) | |
291 | 318 | then !(isDefined(transferTransactionById(fromBase58String("2dL25JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
292 | 319 | else false) | |
293 | 320 | then !(isDefined(transferTransactionById(fromBase58String("3dL95JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
294 | 321 | else false) | |
295 | 322 | then !(isDefined(transferTransactionById(fromBase58String("4dL95JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
296 | 323 | else false) | |
297 | 324 | then !(isDefined(transferTransactionById(fromBase58String("5dL95JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
298 | 325 | else false) | |
299 | 326 | then !(isDefined(transferTransactionById(fromBase58String("6dL95JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
300 | 327 | else false) | |
301 | 328 | then !(isDefined(transferTransactionById(fromBase58String("7dL95JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
302 | 329 | else false) | |
303 | 330 | then !(isDefined(transferTransactionById(fromBase58String("8dL95JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
304 | 331 | else false) | |
305 | 332 | then !(isDefined(transferTransactionById(fromBase58String("91L95JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
306 | 333 | else false) | |
307 | 334 | then !(isDefined(transferTransactionById(fromBase58String("92L95JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
308 | 335 | else false) | |
309 | 336 | then !(isDefined(transferTransactionById(fromBase58String("93L95JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
310 | 337 | else false) | |
311 | 338 | then !(isDefined(transferTransactionById(fromBase58String("94L95JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
312 | 339 | else false | |
313 | 340 | ||
314 | 341 | ||
315 | - | @Callable(by) | |
342 | + | func bL () = { | |
343 | + | let by = bj(X, Z, V, af, ag) | |
344 | + | let bv = by[bi] | |
345 | + | let bM = fraction(af, l, (af - ag)) | |
346 | + | let bB = fraction(bM, bM, l) | |
347 | + | let bN = fraction(bv, bB, l) | |
348 | + | let bO = fraction(bN, i, l) | |
349 | + | let bP = fraction(bO, i, V) | |
350 | + | $Tuple2(IntegerEntry("nsbt2usdnPrice", bO), IntegerEntry("nsbt2wavesPrice", bP)) | |
351 | + | } | |
352 | + | ||
353 | + | ||
354 | + | @Callable(bK) | |
355 | + | func nsbtPriceREST () = { | |
356 | + | let bQ = bL() | |
357 | + | let bO = bQ._1.value | |
358 | + | let bP = bQ._2.value | |
359 | + | let bR = makeString(["startNsbtPriceREST", toString(bO), toString(bP), "endNsbtPriceREST"], "__") | |
360 | + | throw(bR) | |
361 | + | } | |
362 | + | ||
363 | + | ||
364 | + | ||
365 | + | @Callable(bK) | |
316 | 366 | func buyNsbt () = { | |
317 | - | let | |
318 | - | let | |
319 | - | let | |
320 | - | let | |
367 | + | let aU = value(bK.payments[0]) | |
368 | + | let bS = aU.amount | |
369 | + | let bT = bS | |
370 | + | let bU = bK.caller | |
321 | 371 | if (U) | |
322 | 372 | then throw("contract is blocked by EMERGENCY SHUTDOWN actions until reactivation by emergency oracles") | |
323 | - | else if (isDefined( | |
373 | + | else if (isDefined(aU.assetId)) | |
324 | 374 | then throw("can use waves only") | |
325 | - | else if (((10 * h) > | |
375 | + | else if (((10 * h) > bS)) | |
326 | 376 | then throw("min 10 waves expected") | |
327 | 377 | else { | |
328 | - | let bC = valueOrElse(getInteger(this, "tmp_issuedNsbt_2"), 0) | |
329 | - | let bD = ((2850 * 1000) * i) | |
330 | - | let bE = (((1850 * 1000) * i) + bC) | |
331 | - | let bw = aZ(X, Z, V, bD, bE, bA) | |
332 | - | let bF = bw[0] | |
333 | - | let bG = ap(bA, bF) | |
334 | - | let ax = (fraction(ao(bG), 100, V) - 100) | |
335 | - | (as(toBase58String(by.transactionId), bz, bz, toString(bB), r, ax, bG) ++ [ScriptTransfer(bB, bF, T), ScriptTransfer(P, bA, unit), StringEntry("debug_curveResult", bu("curveResult", bw)), IntegerEntry("tmp_issuedNsbt_2", (bC + bF))]) | |
378 | + | let bI = bw(X, Z, V, af, ag, bT) | |
379 | + | let bV = bI[0] | |
380 | + | let bW = as(bT, bV) | |
381 | + | let aA = (fraction(ar(bW), 100, V) - 100) | |
382 | + | (av(toBase58String(bK.transactionId), bS, bS, toString(bU), r, aA, bW) ++ [ScriptTransfer(bU, bV, T), ScriptTransfer(P, bT, unit), StringEntry("debug_curveResult", bG("curveResult", bI)), IntegerEntry("tmp_issuedNsbt_2", (ae + bV))]) | |
336 | 383 | } | |
337 | 384 | } | |
338 | 385 | ||
339 | 386 | ||
340 | 387 | ||
341 | - | @Callable( | |
342 | - | func instantBuyNsbtOrFail ( | |
343 | - | let | |
344 | - | let | |
345 | - | if (( | |
346 | - | then throw(((("Current maxRoi=" + toString( | |
388 | + | @Callable(bK) | |
389 | + | func instantBuyNsbtOrFail (bX) = { | |
390 | + | let aU = value(bK.payments[0]) | |
391 | + | let aA = ab | |
392 | + | if ((bX > aA)) | |
393 | + | then throw(((("Current maxRoi=" + toString(aA)) + " is less then passed parameter noLessThenRoi=") + toString(bX))) | |
347 | 394 | else { | |
348 | - | let | |
349 | - | | |
395 | + | let aK = ap(aA) | |
396 | + | aR(aA, ar(aK), "", bK, true) | |
350 | 397 | } | |
351 | 398 | } | |
352 | 399 | ||
353 | 400 | ||
354 | 401 | ||
355 | - | @Callable( | |
356 | - | func addBuyBondOrder (L, | |
357 | - | let | |
358 | - | let | |
402 | + | @Callable(bK) | |
403 | + | func addBuyBondOrder (L,aS) = { | |
404 | + | let aU = value(bK.payments[0]) | |
405 | + | let aK = ar(L) | |
359 | 406 | if ((0 >= L)) | |
360 | 407 | then throw("price less zero") | |
361 | - | else | |
408 | + | else aR(fraction((aK - V), 100, V), L, aS, bK, false) | |
362 | 409 | } | |
363 | 410 | ||
364 | 411 | ||
365 | 412 | ||
366 | - | @Callable( | |
413 | + | @Callable(bK) | |
367 | 414 | func cancelOrder (A) = { | |
368 | - | let | |
369 | - | let K = ( | |
370 | - | let | |
371 | - | let | |
372 | - | let | |
415 | + | let ay = ak(A) | |
416 | + | let K = (aj(A) - am(A)) | |
417 | + | let bY = toString(bK.caller) | |
418 | + | let aX = ao(A) | |
419 | + | let aS = an(A) | |
373 | 420 | if (U) | |
374 | 421 | then throw("contract is blocked by EMERGENCY SHUTDOWN actions until reactivation by emergency oracles") | |
375 | - | else if (( | |
422 | + | else if ((ay != bY)) | |
376 | 423 | then throw("permission denied") | |
377 | - | else if (( | |
424 | + | else if ((al(A) != q)) | |
378 | 425 | then throw("invalid order status") | |
379 | 426 | else [StringEntry(y, if ((ad == A)) | |
380 | - | then | |
381 | - | else ad), StringEntry(I( | |
427 | + | then aX | |
428 | + | else ad), StringEntry(I(aS), aX), StringEntry(H(aX), aS), StringEntry(F(A), p), ScriptTransfer(bK.caller, K, unit)] | |
382 | 429 | } | |
383 | 430 | ||
384 | 431 | ||
385 | 432 | ||
386 | - | @Callable( | |
433 | + | @Callable(bK) | |
387 | 434 | func sellBond () = if (U) | |
388 | 435 | then throw("contract is blocked by EMERGENCY SHUTDOWN actions until reactivation by emergency oracles") | |
389 | 436 | else if ((ad == "")) | |
390 | 437 | then throw("empty orderbook") | |
391 | 438 | else { | |
392 | - | let | |
393 | - | let | |
394 | - | let | |
395 | - | let | |
396 | - | let | |
397 | - | let | |
398 | - | | |
439 | + | let aX = ao(ad) | |
440 | + | let bZ = am(ad) | |
441 | + | let ca = ah(ad) | |
442 | + | let aA = a(z(ad)) | |
443 | + | let cb = aj(ad) | |
444 | + | let aI = Address(fromBase58String(ak(ad))) | |
445 | + | aB(ad, aX, bZ, aA, ca, cb, aI, false) | |
399 | 446 | } | |
400 | 447 | ||
401 | 448 | ||
402 | - | @Verifier( | |
403 | - | func | |
404 | - | let | |
405 | - | let | |
449 | + | @Verifier(cc) | |
450 | + | func cd () = { | |
451 | + | let ce = ["GXxmZaCigPgJsT6d1cLr8nUXA65nGX8V7FuAzzrY8wQE", "3xumx4hrPpeeoo79HLGbZCgfz95L39ZFdxxwWeSUC2Pu", "D4CqtK5fBsnzRo33ZMhrM7niLseDH2uRoK6weBq2JQ3A", "5WRXFSjwcTbNfKcJs8ZqXmSSWYsSVJUtMvMqZj5hH4Nc"] | |
452 | + | let cf = ((((if (sigVerify(cc.bodyBytes, cc.proofs[0], fromBase58String(ce[0]))) | |
406 | 453 | then 1 | |
407 | - | else 0) + (if (sigVerify( | |
454 | + | else 0) + (if (sigVerify(cc.bodyBytes, cc.proofs[1], fromBase58String(ce[1]))) | |
408 | 455 | then 1 | |
409 | - | else 0)) + (if (sigVerify( | |
456 | + | else 0)) + (if (sigVerify(cc.bodyBytes, cc.proofs[2], fromBase58String(ce[2]))) | |
410 | 457 | then 1 | |
411 | - | else 0)) + (if (sigVerify( | |
458 | + | else 0)) + (if (sigVerify(cc.bodyBytes, cc.proofs[3], fromBase58String(ce[3]))) | |
412 | 459 | then 2 | |
413 | 460 | else 0)) | |
414 | - | ( | |
461 | + | (cf >= 3) | |
415 | 462 | } | |
416 | 463 |
github/deemru/w8io/169f3d6 119.27 ms ◑