tx · it5oTgQEutT9ZGq9fAUmFPnZFUeVmsghAAVYhF4nDm9 3NAefciWv6f9fWvEXdGgpHfanJFG8HqfjuT: -0.03600000 Waves 2023.01.20 14:24 [2413226] smart account 3NAefciWv6f9fWvEXdGgpHfanJFG8HqfjuT > SELF 0.00000000 Waves
{ "type": 13, "id": "it5oTgQEutT9ZGq9fAUmFPnZFUeVmsghAAVYhF4nDm9", "fee": 3600000, "feeAssetId": null, "timestamp": 1674213927655, "version": 1, "sender": "3NAefciWv6f9fWvEXdGgpHfanJFG8HqfjuT", "senderPublicKey": "D1BL65meykxFZTCuq7jq9HSGLLnWvQamQPUNrguW5w39", "proofs": [ "3rZ1m2gsqJKbRt4woJmzkSUY6fitFxAvTYVw2mwEyimjk3MpvoumrWvHdpK77P3GXjQLUArx9EpUKf21m4gWBeLB" ], "script": "base64:BgKJKQgCEgMKAQgSAwoBCBIAEgQKAgEEEgQKAgEEEgMKAQESABIECgIIARIAEgQKAggBEgQKAggBEgQKAgEBEgMKAQESBQoDAQEBEgUKAwEIARIECgIBCBIECgIBCBIECgIICBIECgIICBIECgIIARIAEgMKAQgSBQoDAQEBEgQKAggBEgQKAgEBEgQKAggIEgsKCQgBAQIBAggEBBIGCgQICAEIIgZzY2FsZTgiDHNjYWxlOEJpZ0ludCIHc2NhbGUxOCIKemVyb0JpZ0ludCIEYmlnMCIEYmlnMSIEYmlnMiIEYmlnMyIEYmlnNCIKc2xpcHBhZ2U0RCILd2F2ZXNTdHJpbmciBUFtdWx0IgVEY29udiIDU0VQIgVFTVBUWSIKUG9vbEFjdGl2ZSIKUG9vbFB1dERpcyIOUG9vbE1hdGNoZXJEaXMiDFBvb2xTaHV0ZG93biIOaWR4UG9vbEFkZHJlc3MiCWlkeFBvb2xTdCIJaWR4TFBBc0lkIglpZHhBbUFzSWQiCWlkeFByQXNJZCILaWR4QW10QXNEY20iDWlkeFByaWNlQXNEY20iC2lkeElBbXRBc0lkIg1pZHhJUHJpY2VBc0lkIg9pZHhGY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ZlY3RvcgQCZ3AFAmdsBQJncAMJAAECBQJnbAIEVW5pdAgFAmhRD3NlbmRlclB1YmxpY0tleQkAAgECC01hdGNoIGVycm9yBAJnbAUCaFEDCQABAgUCZ2wCBU9yZGVyBAJlWgUCZ2wEAmhUCQECYVcABAJoVQkBAmVZAQUCZVoEAmFGCAUCaFUCXzEEAmFHCAUCaFUCXzIEAmFICQD0AwMIBQJlWglib2R5Qnl0ZXMJAJEDAggFAmVaBnByb29mcwAACAUCZVoPc2VuZGVyUHVibGljS2V5BAJhSQkA9AMDCAUCZVoJYm9keUJ5dGVzCQCRAwIIBQJlWgZwcm9vZnMAAQUCaFQDAwMFAmFGBQJhSAcFAmFJBwYJAQJhRQQFAmFGBQJhRwUCYUgFAmFJAwkAAQIFAmdsAhRTZXRTY3JpcHRUcmFuc2FjdGlvbgQCY0MFAmdsAwkA9AMDCAUCaFEJYm9keUJ5dGVzCQCRAwIIBQJoUQZwcm9vZnMAAAUCaFMGBAJoVgkA9gMBCQEFdmFsdWUBCAUCY0MGc2NyaXB0BAJoVwkA2wQBCQEFdmFsdWUBCQCdCAIFAmFRCQECYUMABAJoWAkA8QcBBQR0aGlzAwkAAAIFAmhXBQJoVgkBAiE9AgUCaFgFAmhWBwkA9AMDCAUCaFEJYm9keUJ5dGVzCQCRAwIIBQJoUQZwcm9vZnMAAAUCaFNP7bKc", "chainId": 84, "height": 2413226, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7BhDE2surYHbLxh547JLzvT966Zb4mQCRu7aQ8DRXpnp Next: 77BT9vVreeZ8VNhTRJ15Ck1Y3AHBpZa6CkVd3qZoaJkH Diff:
Old | New | Differences | |
---|---|---|---|
166 | 166 | func aD () = "%s__feeCollectorAddress" | |
167 | 167 | ||
168 | 168 | ||
169 | - | func aE (aF,aG,aH) = throw((((((" | |
169 | + | func aE (aF,aG,aH,aI) = throw((((((((("order validation failed: orderValid=" + toString(aF)) + " (") + aG) + ")") + " senderValid=") + toString(aH)) + " matcherValid=") + toString(aI))) | |
170 | 170 | ||
171 | 171 | ||
172 | - | func | |
172 | + | func aJ (aK,aL) = valueOrErrorMessage(getString(aK, aL), makeString(["mandatory ", toString(aK), ".", aL, " not defined"], "")) | |
173 | 173 | ||
174 | 174 | ||
175 | - | func | |
175 | + | func aM (aK,aL) = valueOrErrorMessage(getInteger(aK, aL), makeString(["mandatory ", toString(aK), ".", aL, " not defined"], "")) | |
176 | 176 | ||
177 | 177 | ||
178 | - | func | |
178 | + | func aN (aO) = throw(makeString(["lp_stable.ride:", aO], " ")) | |
179 | 179 | ||
180 | 180 | ||
181 | - | func | |
181 | + | func aP (aO) = makeString(["lp_stable.ride:", aO], " ") | |
182 | 182 | ||
183 | 183 | ||
184 | - | let | |
184 | + | let aQ = addressFromStringValue(aJ(this, Y())) | |
185 | 185 | ||
186 | - | let | |
187 | - | let | |
188 | - | if ($isInstanceOf( | |
189 | - | then | |
190 | - | else throw(($getType( | |
186 | + | let aR = { | |
187 | + | let aS = invoke(aQ, "getInFeeREADONLY", [toString(this)], nil) | |
188 | + | if ($isInstanceOf(aS, "Int")) | |
189 | + | then aS | |
190 | + | else throw(($getType(aS) + " couldn't be cast to Int")) | |
191 | 191 | } | |
192 | 192 | ||
193 | - | let | |
194 | - | let | |
195 | - | if ($isInstanceOf( | |
196 | - | then | |
197 | - | else throw(($getType( | |
193 | + | let aT = { | |
194 | + | let aS = invoke(aQ, "getOutFeeREADONLY", [toString(this)], nil) | |
195 | + | if ($isInstanceOf(aS, "Int")) | |
196 | + | then aS | |
197 | + | else throw(($getType(aS) + " couldn't be cast to Int")) | |
198 | 198 | } | |
199 | 199 | ||
200 | - | let | |
200 | + | let aU = aJ(this, al()) | |
201 | 201 | ||
202 | - | func | |
202 | + | func aV () = valueOrElse(getBoolean(aQ, aB()), false) | |
203 | 203 | ||
204 | 204 | ||
205 | - | func | |
205 | + | func aW () = fromBase58String(aJ(aQ, av())) | |
206 | 206 | ||
207 | 207 | ||
208 | - | let | |
208 | + | let aX = addressFromStringValue(aJ(aQ, aD())) | |
209 | 209 | ||
210 | - | func | |
211 | - | let | |
212 | - | let | |
213 | - | let | |
214 | - | let ax = | |
215 | - | split( | |
210 | + | func aY () = { | |
211 | + | let aZ = aJ(this, aj()) | |
212 | + | let ba = aJ(this, ak()) | |
213 | + | let bb = aM(aQ, az(ba)) | |
214 | + | let ax = aM(aQ, az(aZ)) | |
215 | + | split(aJ(aQ, aw(toString(ax), toString(bb))), n) | |
216 | 216 | } | |
217 | 217 | ||
218 | 218 | ||
219 | - | func | |
219 | + | func bc (bd) = if ((bd == k)) | |
220 | 220 | then unit | |
221 | - | else fromBase58String( | |
221 | + | else fromBase58String(bd) | |
222 | 222 | ||
223 | 223 | ||
224 | - | func | |
224 | + | func be (bd) = if ((bd == unit)) | |
225 | 225 | then k | |
226 | - | else toBase58String(value( | |
226 | + | else toBase58String(value(bd)) | |
227 | 227 | ||
228 | 228 | ||
229 | - | func | |
229 | + | func bf (bg) = $Tuple9(addressFromStringValue(bg[t]), parseIntValue(bg[u]), fromBase58String(bg[v]), bc(bg[w]), bc(bg[x]), parseIntValue(bg[y]), parseIntValue(bg[z]), fromBase58String(bg[A]), fromBase58String(bg[B])) | |
230 | 230 | ||
231 | 231 | ||
232 | - | let | |
232 | + | let bh = bf(aY()) | |
233 | 233 | ||
234 | - | let | |
234 | + | let bi = bh | |
235 | 235 | ||
236 | - | let | |
236 | + | let bj = bi._1 | |
237 | 237 | ||
238 | - | let | |
238 | + | let bk = bi._2 | |
239 | 239 | ||
240 | - | let | |
240 | + | let bl = bi._3 | |
241 | 241 | ||
242 | - | let | |
242 | + | let bm = bi._4 | |
243 | 243 | ||
244 | - | let | |
244 | + | let bn = bi._5 | |
245 | 245 | ||
246 | - | let | |
246 | + | let bo = bi._6 | |
247 | 247 | ||
248 | - | let | |
248 | + | let bp = bi._7 | |
249 | 249 | ||
250 | - | let | |
250 | + | let bq = bi._8 | |
251 | 251 | ||
252 | - | let | |
252 | + | let br = bi._9 | |
253 | 253 | ||
254 | - | func | |
254 | + | func bs () = split(aJ(aQ, au()), n) | |
255 | 255 | ||
256 | 256 | ||
257 | - | let | |
257 | + | let bt = bs() | |
258 | 258 | ||
259 | - | let | |
259 | + | let bu = valueOrErrorMessage(addressFromString(bt[C]), "Invalid staking contract address") | |
260 | 260 | ||
261 | - | let | |
261 | + | let bv = valueOrErrorMessage(addressFromString(bt[E]), "Invalid slipage contract address") | |
262 | 262 | ||
263 | - | let | |
263 | + | let bw = valueOrErrorMessage(addressFromString(bt[F]), "Invalid gwx contract address") | |
264 | 264 | ||
265 | - | let | |
265 | + | let bx = valueOrErrorMessage(addressFromString(bt[D]), "Invalid gwx contract address") | |
266 | 266 | ||
267 | - | func | |
267 | + | func by (bz,bA,bB,bC,bD,bE,bF,bG,bH,bI) = makeString(["%d%d%d%d%d%d%d%d%d%d", toString(bz), toString(bA), toString(bB), toString(bC), toString(bD), toString(bE), toString(bF), toString(bG), toString(bH), toString(bI)], n) | |
268 | 268 | ||
269 | 269 | ||
270 | - | func | |
270 | + | func bJ (bK,bL,bM,bC,bF,bG) = makeString(["%d%d%d%d%d%d", toString(bK), toString(bL), toString(bM), toString(bC), toString(bF), toString(bG)], n) | |
271 | 271 | ||
272 | 272 | ||
273 | - | func | |
273 | + | func bN (bO) = if ((bO == "WAVES")) | |
274 | 274 | then wavesBalance(this).available | |
275 | - | else assetBalance(this, fromBase58String( | |
275 | + | else assetBalance(this, fromBase58String(bO)) | |
276 | 276 | ||
277 | 277 | ||
278 | - | func | |
278 | + | func bP (bQ,bR) = fraction(bQ, c, bR) | |
279 | 279 | ||
280 | 280 | ||
281 | - | func | |
281 | + | func bS (bQ,bR,P) = fraction(bQ, c, bR, P) | |
282 | 282 | ||
283 | 283 | ||
284 | - | func | |
285 | - | let | |
286 | - | let | |
287 | - | if (!( | |
288 | - | then throw(("Big slpg: " + toString( | |
289 | - | else $Tuple2( | |
284 | + | func bT (bU,bV,bW) = { | |
285 | + | let bX = fraction((bU - bV), b, bV) | |
286 | + | let bY = ((bW - W(bX)) > d) | |
287 | + | if (!(bY)) | |
288 | + | then throw(("Big slpg: " + toString(bX))) | |
289 | + | else $Tuple2(bY, min([bU, bV])) | |
290 | 290 | } | |
291 | 291 | ||
292 | 292 | ||
293 | - | func | |
294 | - | let | |
295 | - | let | |
296 | - | if (if ( | |
293 | + | func bZ (ca,cb,cc) = { | |
294 | + | let bX = fraction(cb, b, ca) | |
295 | + | let cd = (cc > bX) | |
296 | + | if (if (cd) | |
297 | 297 | then true | |
298 | - | else ( | |
299 | - | then throw(((((((toString( | |
300 | - | else | |
298 | + | else (cb > ca)) | |
299 | + | then throw(((((((toString(cb) + " ") + toString(ca)) + " ") + toString(bX)) + " ") + toString(cc))) | |
300 | + | else cd | |
301 | 301 | } | |
302 | 302 | ||
303 | 303 | ||
304 | - | func cd (ce,cf,cg,ch) = { | |
305 | - | let ci = H(cg, ce) | |
304 | + | func ce (cf,cg,ch,ci) = { | |
306 | 305 | let cj = H(ch, cf) | |
307 | - | bO(cj, ci) | |
306 | + | let ck = H(ci, cg) | |
307 | + | bP(ck, cj) | |
308 | 308 | } | |
309 | 309 | ||
310 | 310 | ||
311 | - | func ck (cg,ch,cl) = { | |
312 | - | let cm = bn | |
311 | + | func cl (ch,ci,cm) = { | |
313 | 312 | let cn = bo | |
314 | - | let co = cd(cm, cn, cg, ch) | |
315 | - | let bQ = H(cg, cm) | |
316 | - | let bP = H(ch, cn) | |
317 | - | let cp = H(cl, a) | |
318 | - | let cq = bO(bQ, cp) | |
319 | - | let cr = bO(bP, cp) | |
320 | - | [co, cq, cr] | |
313 | + | let co = bp | |
314 | + | let cp = ce(cn, co, ch, ci) | |
315 | + | let bR = H(ch, cn) | |
316 | + | let bQ = H(ci, co) | |
317 | + | let cq = H(cm, a) | |
318 | + | let cr = bP(bR, cq) | |
319 | + | let cs = bP(bQ, cq) | |
320 | + | [cp, cr, cs] | |
321 | 321 | } | |
322 | 322 | ||
323 | 323 | ||
324 | - | func | |
325 | - | let | |
326 | - | [L( | |
324 | + | func ct (ch,ci,cm) = { | |
325 | + | let cu = cl(ch, ci, cm) | |
326 | + | [L(cu[0], a), L(cu[1], a), L(cu[2], a)] | |
327 | 327 | } | |
328 | 328 | ||
329 | 329 | ||
330 | - | func | |
331 | - | let | |
330 | + | func cv (cw,ao) = { | |
331 | + | let cx = if ((ao == 0)) | |
332 | 332 | then 0 | |
333 | - | else fraction( | |
334 | - | $Tuple2(( | |
333 | + | else fraction(cw, ao, a) | |
334 | + | $Tuple2((cw - cx), cx) | |
335 | 335 | } | |
336 | 336 | ||
337 | 337 | ||
338 | - | func | |
339 | - | let | |
340 | - | let | |
341 | - | let | |
342 | - | if (( | |
338 | + | func cy (cz) = { | |
339 | + | let cA = cz[0] | |
340 | + | let cB = cz[1] | |
341 | + | let cC = (cA + cB) | |
342 | + | if ((cC == e)) | |
343 | 343 | then e | |
344 | 344 | else { | |
345 | - | let | |
346 | - | let | |
347 | - | let | |
348 | - | let | |
349 | - | let | |
350 | - | let | |
351 | - | func | |
352 | - | let | |
353 | - | let | |
354 | - | let | |
355 | - | fraction(( | |
345 | + | let cD = parseIntValue(aU) | |
346 | + | let cE = (cD * 2) | |
347 | + | let cu = fraction(cA, cB, f) | |
348 | + | let cF = fraction(cu, i, f) | |
349 | + | let cG = fraction(toBigInt(cE), cC, f) | |
350 | + | let cH = toBigInt((cE - 1)) | |
351 | + | func cI (cJ) = { | |
352 | + | let cK = fraction(cJ, cJ, f) | |
353 | + | let cL = fraction(cK, cJ, f) | |
354 | + | let cM = fraction(cL, f, cF) | |
355 | + | fraction((cG + fraction(cM, g, f)), cJ, (fraction(cH, cJ, f) + fraction(h, cM, f))) | |
356 | 356 | } | |
357 | 357 | ||
358 | - | func | |
359 | - | then | |
358 | + | func cN (cO,cP) = if (cO._2) | |
359 | + | then cO | |
360 | 360 | else { | |
361 | - | let | |
362 | - | let | |
363 | - | let | |
364 | - | let | |
365 | - | then -( | |
366 | - | else | |
367 | - | if ((f >= | |
368 | - | then $Tuple2( | |
369 | - | else $Tuple2( | |
361 | + | let cJ = cO._1 | |
362 | + | let cQ = cI(cJ) | |
363 | + | let cR = (cQ - value(cJ)) | |
364 | + | let cS = if ((e > cR)) | |
365 | + | then -(cR) | |
366 | + | else cR | |
367 | + | if ((f >= cS)) | |
368 | + | then $Tuple2(cQ, true) | |
369 | + | else $Tuple2(cQ, false) | |
370 | 370 | } | |
371 | 371 | ||
372 | - | let | |
373 | - | let | |
374 | - | let | |
375 | - | let | |
376 | - | let | |
377 | - | func | |
378 | - | then | |
379 | - | else | |
372 | + | let cT = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14] | |
373 | + | let cU = { | |
374 | + | let cV = cT | |
375 | + | let cW = size(cV) | |
376 | + | let cX = $Tuple2(cC, false) | |
377 | + | func cY (cZ,da) = if ((da >= cW)) | |
378 | + | then cZ | |
379 | + | else cN(cZ, cV[da]) | |
380 | 380 | ||
381 | - | func | |
382 | - | then | |
381 | + | func db (cZ,da) = if ((da >= cW)) | |
382 | + | then cZ | |
383 | 383 | else throw("List size exceeds 15") | |
384 | 384 | ||
385 | - | | |
385 | + | db(cY(cY(cY(cY(cY(cY(cY(cY(cY(cY(cY(cY(cY(cY(cY(cX, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
386 | 386 | } | |
387 | - | let | |
388 | - | let | |
389 | - | if ( | |
390 | - | then | |
391 | - | else throw(("D calculation error, D = " + toString( | |
387 | + | let cJ = cU._1 | |
388 | + | let dc = cU._2 | |
389 | + | if (dc) | |
390 | + | then cJ | |
391 | + | else throw(("D calculation error, D = " + toString(cJ))) | |
392 | 392 | } | |
393 | 393 | } | |
394 | 394 | ||
395 | 395 | ||
396 | - | func dc (dd,de,df,dg) = { | |
397 | - | let dh = bk | |
398 | - | let di = toBase58String(value(bl)) | |
396 | + | func dd (de,df,dg,dh) = { | |
397 | + | let di = bl | |
399 | 398 | let dj = toBase58String(value(bm)) | |
400 | - | let dk = bn | |
399 | + | let dk = toBase58String(value(bn)) | |
401 | 400 | let dl = bo | |
402 | - | let dm = toString(bj) | |
403 | - | let dn = valueOrErrorMessage(assetInfo(dh), "Wrong LP id").quantity | |
404 | - | if ((toBase58String(dh) != de)) | |
401 | + | let dm = bp | |
402 | + | let dn = toString(bk) | |
403 | + | let do = valueOrErrorMessage(assetInfo(di), "Wrong LP id").quantity | |
404 | + | if ((toBase58String(di) != df)) | |
405 | 405 | then throw("Wrong pmt asset") | |
406 | 406 | else { | |
407 | - | let do = bM(di) | |
408 | - | let dp = H(do, dk) | |
409 | - | let dq = bM(dj) | |
410 | - | let dr = H(dq, dl) | |
411 | - | let ds = bO(dr, dp) | |
412 | - | let dt = L(ds, a) | |
413 | - | let du = H(df, a) | |
414 | - | let dv = H(dn, a) | |
415 | - | let dw = fraction(dp, du, dv) | |
416 | - | let dx = fraction(dr, du, dv) | |
417 | - | let dy = O(dw, dk, FLOOR) | |
407 | + | let dp = bN(dj) | |
408 | + | let dq = H(dp, dl) | |
409 | + | let dr = bN(dk) | |
410 | + | let ds = H(dr, dm) | |
411 | + | let dt = bP(ds, dq) | |
412 | + | let du = L(dt, a) | |
413 | + | let dv = H(dg, a) | |
414 | + | let dw = H(do, a) | |
415 | + | let dx = fraction(dq, dv, dw) | |
416 | + | let dy = fraction(ds, dv, dw) | |
418 | 417 | let dz = O(dx, dl, FLOOR) | |
419 | - | let dA = if ((dd == "")) | |
418 | + | let dA = O(dy, dm, FLOOR) | |
419 | + | let dB = if ((de == "")) | |
420 | 420 | then nil | |
421 | - | else [ScriptTransfer( | |
421 | + | else [ScriptTransfer(dh, dz, if ((dj == "WAVES")) | |
422 | 422 | then unit | |
423 | - | else fromBase58String( | |
423 | + | else fromBase58String(dj)), ScriptTransfer(dh, dA, if ((dk == "WAVES")) | |
424 | 424 | then unit | |
425 | - | else fromBase58String( | |
426 | - | $Tuple10( | |
425 | + | else fromBase58String(dk)), StringEntry(ai(toString(dh), de), bJ(dz, dA, dg, du, height, lastBlock.timestamp)), IntegerEntry(ab(), du), IntegerEntry(ac(height, lastBlock.timestamp), du)] | |
426 | + | $Tuple10(dz, dA, dj, dk, dp, dr, do, dt, dn, dB) | |
427 | 427 | } | |
428 | 428 | } | |
429 | 429 | ||
430 | 430 | ||
431 | - | func dB (dd,bV,dC,dD,dE,dF,dg,dG,dH,dI,dJ,dK,dL) = { | |
432 | - | let dh = bk | |
433 | - | let dM = toBase58String(value(bl)) | |
431 | + | func dC (de,bW,dD,dE,dF,dG,dh,dH,dI,dJ,dK,dL,dM) = { | |
432 | + | let di = bl | |
434 | 433 | let dN = toBase58String(value(bm)) | |
435 | - | let dO = | |
434 | + | let dO = toBase58String(value(bn)) | |
436 | 435 | let dP = bq | |
437 | - | let dQ = | |
436 | + | let dQ = br | |
438 | 437 | let dR = bo | |
439 | - | let dm = toString(bj) | |
440 | - | let dS = valueOrErrorMessage(assetInfo(dh), "Wr lp as").quantity | |
441 | - | let do = if (dG) | |
442 | - | then bM(dM) | |
443 | - | else if (if (dI) | |
444 | - | then (dL == dM) | |
438 | + | let dS = bp | |
439 | + | let dn = toString(bk) | |
440 | + | let dT = valueOrErrorMessage(assetInfo(di), "Wr lp as").quantity | |
441 | + | let dp = if (dH) | |
442 | + | then bN(dN) | |
443 | + | else if (if (dJ) | |
444 | + | then (dM == dN) | |
445 | 445 | else false) | |
446 | - | then ( | |
447 | - | else if ( | |
448 | - | then | |
449 | - | else ( | |
450 | - | let | |
451 | - | then | |
452 | - | else if (if ( | |
453 | - | then ( | |
446 | + | then (bN(dN) - dL) | |
447 | + | else if (dJ) | |
448 | + | then bN(dN) | |
449 | + | else (bN(dN) - dD) | |
450 | + | let dr = if (dH) | |
451 | + | then bN(dO) | |
452 | + | else if (if (dJ) | |
453 | + | then (dM == dO) | |
454 | 454 | else false) | |
455 | - | then ( | |
456 | - | else if ( | |
457 | - | then | |
458 | - | else ( | |
459 | - | let | |
460 | - | let | |
461 | - | let | |
462 | - | let | |
463 | - | let | |
464 | - | let | |
465 | - | let | |
455 | + | then (bN(dO) - dL) | |
456 | + | else if (dJ) | |
457 | + | then bN(dO) | |
458 | + | else (bN(dO) - dF) | |
459 | + | let dU = H(dD, dR) | |
460 | + | let dV = H(dF, dS) | |
461 | + | let dW = bP(dV, dU) | |
462 | + | let dq = H(dp, dR) | |
463 | + | let ds = H(dr, dS) | |
464 | + | let cb = cy([dq, ds]) | |
465 | + | let dX = if ((dT == 0)) | |
466 | 466 | then { | |
467 | - | let | |
468 | - | let | |
467 | + | let ca = cy([(dq + dU), (ds + dV)]) | |
468 | + | let dY = if ((ca > cb)) | |
469 | 469 | then true | |
470 | 470 | else throw("D1 should be greater than D0") | |
471 | - | if (( | |
471 | + | if ((dY == dY)) | |
472 | 472 | then { | |
473 | - | let | |
474 | - | let | |
475 | - | let | |
476 | - | $Tuple5(L( | |
473 | + | let dt = d | |
474 | + | let dZ = d | |
475 | + | let cq = ca | |
476 | + | $Tuple5(L(cq, a), L(dU, dR), L(dV, dS), bP((ds + dV), (dq + dU)), dZ) | |
477 | 477 | } | |
478 | 478 | else throw("Strict value is not equal to itself.") | |
479 | 479 | } | |
480 | 480 | else { | |
481 | - | let | |
482 | - | let | |
483 | - | let | |
484 | - | if (if (if ( | |
485 | - | then ( | |
481 | + | let dt = bP(ds, dq) | |
482 | + | let ea = fraction(W((dt - dW)), c, dt) | |
483 | + | let dZ = H(bW, a) | |
484 | + | if (if (if (dK) | |
485 | + | then (dt != d) | |
486 | 486 | else false) | |
487 | - | then ( | |
487 | + | then (ea > dZ) | |
488 | 488 | else false) | |
489 | - | then throw(((("Price slippage " + toString( | |
489 | + | then throw(((("Price slippage " + toString(ea)) + " > ") + toString(dZ))) | |
490 | 490 | else { | |
491 | - | let | |
492 | - | let | |
493 | - | let | |
494 | - | let | |
495 | - | then $Tuple2( | |
496 | - | else $Tuple2( | |
497 | - | let | |
498 | - | let | |
499 | - | let | |
500 | - | let | |
491 | + | let eb = H(dT, a) | |
492 | + | let ec = fraction(dU, bS(ds, dq, CEILING), c, CEILING) | |
493 | + | let ed = fraction(dV, c, bS(ds, dq, FLOOR), CEILING) | |
494 | + | let ee = if ((ec > dV)) | |
495 | + | then $Tuple2(ed, dV) | |
496 | + | else $Tuple2(dU, ec) | |
497 | + | let ef = ee._1 | |
498 | + | let eg = ee._2 | |
499 | + | let ca = cy([(dq + ef), (ds + eg)]) | |
500 | + | let dY = if ((ca > cb)) | |
501 | 501 | then true | |
502 | 502 | else throw("D1 should be greater than D0") | |
503 | - | if (( | |
503 | + | if ((dY == dY)) | |
504 | 504 | then { | |
505 | - | let | |
506 | - | $Tuple5(O( | |
505 | + | let cq = fraction(eb, (ca - cb), cb) | |
506 | + | $Tuple5(O(cq, a, FLOOR), O(ef, dR, CEILING), O(eg, dS, CEILING), dt, dZ) | |
507 | 507 | } | |
508 | 508 | else throw("Strict value is not equal to itself.") | |
509 | 509 | } | |
510 | 510 | } | |
511 | - | let | |
512 | - | let | |
513 | - | let | |
514 | - | let | |
515 | - | let | |
516 | - | if ((0 >= | |
511 | + | let eh = dX._1 | |
512 | + | let ei = dX._2 | |
513 | + | let ej = dX._3 | |
514 | + | let du = L(dX._4, a) | |
515 | + | let ek = L(dX._5, a) | |
516 | + | if ((0 >= eh)) | |
517 | 517 | then throw("LP <= 0") | |
518 | 518 | else { | |
519 | - | let | |
519 | + | let el = if (!(dI)) | |
520 | 520 | then 0 | |
521 | - | else | |
522 | - | let | |
523 | - | let | |
524 | - | let | |
525 | - | then ( | |
521 | + | else eh | |
522 | + | let em = (dD - ei) | |
523 | + | let en = (dF - ej) | |
524 | + | let eo = if (if (dJ) | |
525 | + | then (dM == dN) | |
526 | 526 | else false) | |
527 | - | then $Tuple2( | |
528 | - | else if (if ( | |
529 | - | then ( | |
527 | + | then $Tuple2(dL, 0) | |
528 | + | else if (if (dJ) | |
529 | + | then (dM == dO) | |
530 | 530 | else false) | |
531 | - | then $Tuple2(0, | |
532 | - | else $Tuple2( | |
533 | - | let | |
534 | - | let | |
535 | - | let | |
536 | - | $Tuple13( | |
531 | + | then $Tuple2(0, dL) | |
532 | + | else $Tuple2(ei, ej) | |
533 | + | let ep = eo._1 | |
534 | + | let eq = eo._2 | |
535 | + | let er = [IntegerEntry(ab(), du), IntegerEntry(ac(height, lastBlock.timestamp), du), StringEntry(af(dh, de), by(ep, eq, el, du, bW, ek, height, lastBlock.timestamp, em, en))] | |
536 | + | $Tuple13(eh, el, du, dp, dr, dT, di, dn, er, em, en, dE, dG) | |
537 | 537 | } | |
538 | 538 | } | |
539 | 539 | ||
540 | 540 | ||
541 | - | func | |
542 | - | let | |
543 | - | let | |
541 | + | func es (cz,cP,et) = { | |
542 | + | let eu = g | |
543 | + | let ev = cz[if ((cP == 0)) | |
544 | 544 | then 1 | |
545 | 545 | else 0] | |
546 | - | let | |
547 | - | let | |
548 | - | let | |
549 | - | let | |
550 | - | let | |
551 | - | let | |
552 | - | func | |
553 | - | let | |
554 | - | let | |
555 | - | let | |
556 | - | if (( | |
557 | - | then | |
546 | + | let ew = parseBigIntValue(l) | |
547 | + | let cD = (parseBigIntValue(aU) * ew) | |
548 | + | let cC = ev | |
549 | + | let cE = (cD * eu) | |
550 | + | let ex = (((((et * et) / (ev * eu)) * et) * ew) / (cE * eu)) | |
551 | + | let ey = ((cC + ((et * ew) / cE)) - et) | |
552 | + | func cN (cO,ez) = { | |
553 | + | let eA = cO | |
554 | + | let eB = eA._1 | |
555 | + | let dc = eA._2 | |
556 | + | if ((dc != unit)) | |
557 | + | then cO | |
558 | 558 | else { | |
559 | - | let | |
560 | - | let | |
561 | - | if ((f >= | |
562 | - | then $Tuple2( | |
563 | - | else $Tuple2( | |
559 | + | let eC = (((eB * eB) + ex) / ((g * eB) + ey)) | |
560 | + | let eD = X((eC - value(eB))) | |
561 | + | if ((f >= eD)) | |
562 | + | then $Tuple2(eC, ez) | |
563 | + | else $Tuple2(eC, unit) | |
564 | 564 | } | |
565 | 565 | } | |
566 | 566 | ||
567 | - | let | |
568 | - | let | |
569 | - | let | |
570 | - | let | |
571 | - | let | |
572 | - | func | |
573 | - | then | |
574 | - | else | |
567 | + | let cT = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14] | |
568 | + | let eE = { | |
569 | + | let cV = cT | |
570 | + | let cW = size(cV) | |
571 | + | let cX = $Tuple2(et, unit) | |
572 | + | func cY (cZ,da) = if ((da >= cW)) | |
573 | + | then cZ | |
574 | + | else cN(cZ, cV[da]) | |
575 | 575 | ||
576 | - | func | |
577 | - | then | |
576 | + | func db (cZ,da) = if ((da >= cW)) | |
577 | + | then cZ | |
578 | 578 | else throw("List size exceeds 15") | |
579 | 579 | ||
580 | - | | |
580 | + | db(cY(cY(cY(cY(cY(cY(cY(cY(cY(cY(cY(cY(cY(cY(cY(cX, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
581 | 581 | } | |
582 | - | let | |
583 | - | let | |
584 | - | if (( | |
585 | - | then | |
586 | - | else throw(("Y calculation error, Y = " + toString( | |
582 | + | let eB = eE._1 | |
583 | + | let dc = eE._2 | |
584 | + | if ((dc != unit)) | |
585 | + | then eB | |
586 | + | else throw(("Y calculation error, Y = " + toString(eB))) | |
587 | 587 | } | |
588 | 588 | ||
589 | 589 | ||
590 | - | func | |
591 | - | let | |
592 | - | if (( | |
590 | + | func eF (eG,eH,eI) = { | |
591 | + | let eJ = fraction(cy([K(eG, toBigInt(bo)), K(eH, toBigInt(bp))]), c, eI) | |
592 | + | if ((eI == e)) | |
593 | 593 | then e | |
594 | - | else | |
594 | + | else eJ | |
595 | 595 | } | |
596 | 596 | ||
597 | 597 | ||
598 | - | func | |
599 | - | let | |
600 | - | let | |
601 | - | let | |
602 | - | let | |
603 | - | | |
598 | + | func eK (eL,eM,eN) = { | |
599 | + | let eO = (toBigInt(bN(be(bm))) - eL) | |
600 | + | let eP = (toBigInt(bN(be(bn))) - eM) | |
601 | + | let eQ = (toBigInt(value(assetInfo(bl)).quantity) - eN) | |
602 | + | let eR = eF(eO, eP, eQ) | |
603 | + | eR | |
604 | 604 | } | |
605 | 605 | ||
606 | 606 | ||
607 | - | func | |
608 | - | let | |
609 | - | let | |
610 | - | let | |
611 | - | let | |
612 | - | let | |
613 | - | $Tuple2( | |
607 | + | func eS (eT,eU,eN) = { | |
608 | + | let eO = (bN(be(bm)) + eT) | |
609 | + | let eP = (bN(be(bn)) + eU) | |
610 | + | let eQ = (value(assetInfo(bl)).quantity + eN) | |
611 | + | let eJ = eF(toBigInt(eO), toBigInt(eP), toBigInt(eQ)) | |
612 | + | let eV = [IntegerEntry(aq, height), StringEntry(ap, toString(eJ))] | |
613 | + | $Tuple2(eV, eJ) | |
614 | 614 | } | |
615 | 615 | ||
616 | 616 | ||
617 | - | func | |
617 | + | func eW (eX,eJ) = if ((eJ >= eX)) | |
618 | 618 | then true | |
619 | - | else | |
619 | + | else aN("updated DLp lower than current DLp") | |
620 | 620 | ||
621 | 621 | ||
622 | - | func | |
623 | - | let | |
624 | - | let | |
625 | - | let | |
626 | - | then $Tuple2( | |
627 | - | else $Tuple2(-( | |
628 | - | let | |
629 | - | let | |
630 | - | if (if (if ( | |
622 | + | func eY (eZ) = { | |
623 | + | let fa = eZ.amount | |
624 | + | let fb = fraction(eZ.amount, eZ.price, a, FLOOR) | |
625 | + | let fc = if ((eZ.orderType == Buy)) | |
626 | + | then $Tuple2(fa, -(fb)) | |
627 | + | else $Tuple2(-(fa), fb) | |
628 | + | let eT = fc._1 | |
629 | + | let eU = fc._2 | |
630 | + | if (if (if (aV()) | |
631 | 631 | then true | |
632 | - | else ( | |
632 | + | else (bk == r)) | |
633 | 633 | then true | |
634 | - | else ( | |
634 | + | else (bk == s)) | |
635 | 635 | then throw("Admin blocked") | |
636 | - | else if (if (( | |
636 | + | else if (if ((eZ.assetPair.amountAsset != bm)) | |
637 | 637 | then true | |
638 | - | else ( | |
638 | + | else (eZ.assetPair.priceAsset != bn)) | |
639 | 639 | then throw("Wr assets") | |
640 | 640 | else { | |
641 | - | let fc = parseBigIntValue(getStringValue(this, ap)) | |
642 | - | let fd = eR(eS, eT, 0) | |
643 | - | let fe = fd._1 | |
644 | - | let ff = fd._2 | |
645 | - | let fg = (ff >= fc) | |
646 | - | fg | |
641 | + | let fd = parseBigIntValue(getStringValue(this, ap)) | |
642 | + | let fe = eS(eT, eU, 0) | |
643 | + | let ff = fe._1 | |
644 | + | let fg = fe._2 | |
645 | + | let fh = (fg >= fd) | |
646 | + | let fi = makeString([toString(fd), toString(fg)], " ") | |
647 | + | $Tuple2(fh, fi) | |
647 | 648 | } | |
648 | 649 | } | |
649 | 650 | ||
650 | 651 | ||
651 | - | func | |
652 | + | func fj (cP) = if ((size(cP.payments) != 1)) | |
652 | 653 | then throw("1 pmnt exp") | |
653 | 654 | else { | |
654 | - | let | |
655 | - | let | |
656 | - | let | |
657 | - | let | |
658 | - | let | |
659 | - | let | |
660 | - | let | |
661 | - | let | |
662 | - | if (if ( | |
655 | + | let fk = value(cP.payments[0]) | |
656 | + | let df = value(fk.assetId) | |
657 | + | let dL = fk.amount | |
658 | + | let dX = dd(toBase58String(cP.transactionId), toBase58String(df), dL, cP.caller) | |
659 | + | let dz = dX._1 | |
660 | + | let dA = dX._2 | |
661 | + | let dn = parseIntValue(dX._9) | |
662 | + | let dB = dX._10 | |
663 | + | if (if (aV()) | |
663 | 664 | then true | |
664 | - | else ( | |
665 | - | then throw(("Admin blocked: " + toString( | |
666 | - | else $Tuple5( | |
665 | + | else (dn == s)) | |
666 | + | then throw(("Admin blocked: " + toString(dn))) | |
667 | + | else $Tuple5(dz, dA, dL, df, dB) | |
667 | 668 | } | |
668 | 669 | ||
669 | 670 | ||
670 | - | func | |
671 | - | let | |
672 | - | let | |
673 | - | if (if (if ( | |
671 | + | func fl (fm,ah,fn,fo,bW,dI,dJ,dK,dL,dM) = { | |
672 | + | let dX = dC(ah, bW, value(fn).amount, value(fn).assetId, value(fo).amount, value(fo).assetId, fm, (ah == ""), dI, dJ, dK, dL, dM) | |
673 | + | let dn = parseIntValue(dX._8) | |
674 | + | if (if (if (aV()) | |
674 | 675 | then true | |
675 | - | else ( | |
676 | + | else (dn == q)) | |
676 | 677 | then true | |
677 | - | else ( | |
678 | - | then throw(("Blocked:" + toString( | |
679 | - | else | |
678 | + | else (dn == s)) | |
679 | + | then throw(("Blocked:" + toString(dn))) | |
680 | + | else dX | |
680 | 681 | } | |
681 | 682 | ||
682 | 683 | ||
683 | - | func fn (fo,de,dg,ah,fp) = { | |
684 | - | let di = toBase58String(value(bl)) | |
684 | + | func fp (fq,df,dh,ah,fr) = { | |
685 | 685 | let dj = toBase58String(value(bm)) | |
686 | - | let | |
687 | - | let | |
686 | + | let dk = toBase58String(value(bn)) | |
687 | + | let di = bl | |
688 | 688 | let dR = bo | |
689 | - | let eP = toBigInt(valueOrErrorMessage(assetInfo(dh), "invalid lp asset").quantity) | |
690 | - | let fq = if ((eP > e)) | |
689 | + | let dS = bp | |
690 | + | let eQ = toBigInt(valueOrErrorMessage(assetInfo(di), "invalid lp asset").quantity) | |
691 | + | let fs = if ((eQ > e)) | |
691 | 692 | then true | |
692 | 693 | else throw("initial deposit requires all coins") | |
693 | - | if (( | |
694 | + | if ((fs == fs)) | |
694 | 695 | then { | |
695 | - | let | |
696 | - | let | |
697 | - | let | |
698 | - | then $Tuple2( | |
699 | - | else if (( | |
700 | - | then if (( | |
696 | + | let dp = bN(dj) | |
697 | + | let dr = bN(dk) | |
698 | + | let ft = if ((ah == "")) | |
699 | + | then $Tuple2(dp, dr) | |
700 | + | else if ((df == dj)) | |
701 | + | then if ((fq > dp)) | |
701 | 702 | then throw("invalid payment amount") | |
702 | - | else $Tuple2(( | |
703 | - | else if (( | |
704 | - | then if (( | |
703 | + | else $Tuple2((dp - fq), dr) | |
704 | + | else if ((df == dk)) | |
705 | + | then if ((fq > dr)) | |
705 | 706 | then throw("invalid payment amount") | |
706 | - | else $Tuple2( | |
707 | + | else $Tuple2(dp, (dr - fq)) | |
707 | 708 | else throw("wrong pmtAssetId") | |
708 | - | let | |
709 | - | let | |
710 | - | let | |
711 | - | then $Tuple2( | |
712 | - | else if (( | |
713 | - | then $Tuple2(0, | |
709 | + | let fu = ft._1 | |
710 | + | let fv = ft._2 | |
711 | + | let fw = if ((df == dj)) | |
712 | + | then $Tuple2(fq, 0) | |
713 | + | else if ((df == dk)) | |
714 | + | then $Tuple2(0, fq) | |
714 | 715 | else throw("invalid payment") | |
715 | - | let | |
716 | - | let | |
717 | - | let | |
718 | - | then $Tuple3( | |
719 | - | else $Tuple3( | |
720 | - | let | |
721 | - | let | |
722 | - | let | |
723 | - | let | |
724 | - | let | |
725 | - | let | |
726 | - | let | |
727 | - | let | |
716 | + | let fx = fw._1 | |
717 | + | let fy = fw._2 | |
718 | + | let fz = if (fr) | |
719 | + | then $Tuple3(cv(fx, aR)._1, cv(fy, aR)._1, cv(fq, aR)._2) | |
720 | + | else $Tuple3(fx, fy, 0) | |
721 | + | let fA = fz._1 | |
722 | + | let fB = fz._2 | |
723 | + | let cx = fz._3 | |
724 | + | let fC = (fu + fA) | |
725 | + | let fD = (fv + fB) | |
726 | + | let cb = cy([H(fu, bo), H(fv, bp)]) | |
727 | + | let ca = cy([H(fC, bo), H(fD, bp)]) | |
728 | + | let dY = if ((ca > cb)) | |
728 | 729 | then true | |
729 | 730 | else throw() | |
730 | - | if (( | |
731 | + | if ((dY == dY)) | |
731 | 732 | then { | |
732 | - | let | |
733 | - | let | |
734 | - | let | |
735 | - | let | |
736 | - | let | |
737 | - | let | |
738 | - | let | |
739 | - | let | |
740 | - | $Tuple4(toInt( | |
733 | + | let fE = fraction(eQ, (ca - cb), cb, FLOOR) | |
734 | + | let du = L(bP(H(fD, dS), H(fC, dR)), a) | |
735 | + | let er = [IntegerEntry(ab(), du), IntegerEntry(ac(height, lastBlock.timestamp), du), StringEntry(af(dh, ah), by(fx, fy, toInt(fE), du, 0, 0, height, lastBlock.timestamp, 0, 0))] | |
736 | + | let fF = fraction(fv, a, fu) | |
737 | + | let fG = fraction(fq, a, (fF + a)) | |
738 | + | let fH = (fq - fG) | |
739 | + | let fI = fraction(eQ, toBigInt(fH), toBigInt(fv)) | |
740 | + | let fJ = toInt(fraction((fE - fI), b, fI)) | |
741 | + | $Tuple4(toInt(fE), er, cx, fJ) | |
741 | 742 | } | |
742 | 743 | else throw("Strict value is not equal to itself.") | |
743 | 744 | } | |
745 | 746 | } | |
746 | 747 | ||
747 | 748 | ||
748 | - | func fI (fJ,fK,fL,fk,fM,fN) = { | |
749 | - | let dh = toBase58String(value(bk)) | |
749 | + | func fK (fL,fM,fN,fm,fO,fP) = { | |
750 | 750 | let di = toBase58String(value(bl)) | |
751 | 751 | let dj = toBase58String(value(bm)) | |
752 | - | let fO = bn | |
753 | - | let fP = bo | |
754 | - | let fQ = bj | |
755 | - | let dg = if ((fk == bw)) | |
756 | - | then fM | |
757 | - | else fk | |
758 | - | let fi = value(fL[0]) | |
759 | - | let de = value(fi.assetId) | |
760 | - | let dK = fi.amount | |
761 | - | let eQ = eJ(e, e, e) | |
762 | - | if ((eQ == eQ)) | |
752 | + | let dk = toBase58String(value(bn)) | |
753 | + | let fQ = bo | |
754 | + | let fR = bp | |
755 | + | let fS = bk | |
756 | + | let dh = if ((fm == bx)) | |
757 | + | then fO | |
758 | + | else fm | |
759 | + | let fk = value(fN[0]) | |
760 | + | let df = value(fk.assetId) | |
761 | + | let dL = fk.amount | |
762 | + | let eR = eK(e, e, e) | |
763 | + | if ((eR == eR)) | |
763 | 764 | then { | |
764 | - | let | |
765 | - | if (( | |
765 | + | let de = toBase58String(fP) | |
766 | + | if ((di != toBase58String(df))) | |
766 | 767 | then throw("Wrong LP") | |
767 | 768 | else { | |
768 | - | let | |
769 | - | let | |
770 | - | let | |
771 | - | let | |
772 | - | if ($isInstanceOf( | |
773 | - | then | |
774 | - | else throw(($getType( | |
769 | + | let dp = bN(dj) | |
770 | + | let dr = bN(dk) | |
771 | + | let fT = { | |
772 | + | let aS = invoke(this, "getOneTknV2READONLY", [fL, dL], nil) | |
773 | + | if ($isInstanceOf(aS, "(Int, Int)")) | |
774 | + | then aS | |
775 | + | else throw(($getType(aS) + " couldn't be cast to (Int, Int)")) | |
775 | 776 | } | |
776 | - | if (( | |
777 | + | if ((fT == fT)) | |
777 | 778 | then { | |
778 | - | let | |
779 | - | let | |
780 | - | let | |
781 | - | then ( | |
779 | + | let cx = fT._2 | |
780 | + | let fU = fT._1 | |
781 | + | let fV = if (if ((fM > 0)) | |
782 | + | then (fM > fU) | |
782 | 783 | else false) | |
783 | - | then | |
784 | - | else | |
785 | - | let | |
786 | - | then $Tuple4( | |
787 | - | else if (( | |
788 | - | then $Tuple4(0, | |
784 | + | then aN(makeString(["amount to receive is less than ", toString(fM)], "")) | |
785 | + | else fU | |
786 | + | let fW = if ((fL == dj)) | |
787 | + | then $Tuple4(fV, 0, ((dp - fV) - cx), dr) | |
788 | + | else if ((fL == dk)) | |
789 | + | then $Tuple4(0, fV, dp, ((dr - fV) - cx)) | |
789 | 790 | else throw("invalid out asset id") | |
790 | - | let | |
791 | - | let | |
792 | - | let | |
793 | - | let | |
794 | - | let | |
795 | - | let | |
796 | - | let | |
791 | + | let fX = fW._1 | |
792 | + | let fY = fW._2 | |
793 | + | let fC = fW._3 | |
794 | + | let fD = fW._4 | |
795 | + | let fZ = bP(H(fD, fR), H(fC, fQ)) | |
796 | + | let ga = L(fZ, a) | |
797 | + | let gb = if ((fL == "WAVES")) | |
797 | 798 | then unit | |
798 | - | else fromBase58String( | |
799 | - | let | |
800 | - | then [ScriptTransfer( | |
799 | + | else fromBase58String(fL) | |
800 | + | let gc = if ((cx > 0)) | |
801 | + | then [ScriptTransfer(aX, cx, gb)] | |
801 | 802 | else nil | |
802 | - | let | |
803 | - | if (( | |
803 | + | let dB = ([ScriptTransfer(dh, fV, gb), StringEntry(ai(toString(dh), de), bJ(fX, fY, dL, ga, height, lastBlock.timestamp)), IntegerEntry(ab(), ga), IntegerEntry(ac(height, lastBlock.timestamp), ga)] ++ gc) | |
804 | + | if ((dB == dB)) | |
804 | 805 | then { | |
805 | - | let | |
806 | - | if (( | |
806 | + | let gd = invoke(aQ, "burn", [dL], [AttachedPayment(df, dL)]) | |
807 | + | if ((gd == gd)) | |
807 | 808 | then { | |
808 | - | let | |
809 | - | let | |
809 | + | let ge = { | |
810 | + | let gf = if ((this == aX)) | |
810 | 811 | then 0 | |
811 | - | else | |
812 | - | let | |
812 | + | else cx | |
813 | + | let gg = if ((bc(fL) == bm)) | |
813 | 814 | then true | |
814 | 815 | else false | |
815 | - | if ( | |
816 | - | then $Tuple2(-(( | |
817 | - | else $Tuple2(0, -(( | |
816 | + | if (gg) | |
817 | + | then $Tuple2(-((fU + gf)), 0) | |
818 | + | else $Tuple2(0, -((fU + gf))) | |
818 | 819 | } | |
819 | - | let | |
820 | - | let | |
821 | - | let | |
822 | - | let | |
823 | - | let | |
824 | - | let | |
825 | - | if (( | |
826 | - | then $Tuple2(( | |
820 | + | let eT = ge._1 | |
821 | + | let eU = ge._2 | |
822 | + | let gh = eS(eT, eU, 0) | |
823 | + | let gi = gh._1 | |
824 | + | let eJ = gh._2 | |
825 | + | let gj = eW(eR, eJ) | |
826 | + | if ((gj == gj)) | |
827 | + | then $Tuple2((dB ++ gi), fV) | |
827 | 828 | else throw("Strict value is not equal to itself.") | |
828 | 829 | } | |
829 | 830 | else throw("Strict value is not equal to itself.") | |
837 | 838 | } | |
838 | 839 | ||
839 | 840 | ||
840 | - | func | |
841 | - | let | |
842 | - | if ($isInstanceOf( | |
841 | + | func gk () = { | |
842 | + | let gl = getString(Z()) | |
843 | + | if ($isInstanceOf(gl, "String")) | |
843 | 844 | then { | |
844 | - | let | |
845 | - | fromBase58String( | |
845 | + | let cC = gl | |
846 | + | fromBase58String(cC) | |
846 | 847 | } | |
847 | - | else if ($isInstanceOf( | |
848 | + | else if ($isInstanceOf(gl, "Unit")) | |
848 | 849 | then unit | |
849 | 850 | else throw("Match error") | |
850 | 851 | } | |
851 | 852 | ||
852 | 853 | ||
853 | - | func | |
854 | - | let | |
855 | - | if ($isInstanceOf( | |
854 | + | func gm () = { | |
855 | + | let gl = getString(aa()) | |
856 | + | if ($isInstanceOf(gl, "String")) | |
856 | 857 | then { | |
857 | - | let | |
858 | - | fromBase58String( | |
858 | + | let cC = gl | |
859 | + | fromBase58String(cC) | |
859 | 860 | } | |
860 | - | else if ($isInstanceOf( | |
861 | + | else if ($isInstanceOf(gl, "Unit")) | |
861 | 862 | then unit | |
862 | 863 | else throw("Match error") | |
863 | 864 | } | |
864 | 865 | ||
865 | 866 | ||
866 | - | let | |
867 | + | let gn = throw("Permission denied") | |
867 | 868 | ||
868 | - | func | |
869 | - | let | |
870 | - | if ($isInstanceOf( | |
869 | + | func go (cP) = { | |
870 | + | let gl = gk() | |
871 | + | if ($isInstanceOf(gl, "ByteVector")) | |
871 | 872 | then { | |
872 | - | let | |
873 | - | ( | |
873 | + | let gp = gl | |
874 | + | (cP.callerPublicKey == gp) | |
874 | 875 | } | |
875 | - | else if ($isInstanceOf( | |
876 | - | then ( | |
876 | + | else if ($isInstanceOf(gl, "Unit")) | |
877 | + | then (cP.caller == this) | |
877 | 878 | else throw("Match error") | |
878 | 879 | } | |
879 | 880 | ||
880 | 881 | ||
881 | - | func | |
882 | - | let | |
883 | - | if ($isInstanceOf( | |
882 | + | func gq (cP) = { | |
883 | + | let gl = gk() | |
884 | + | if ($isInstanceOf(gl, "ByteVector")) | |
884 | 885 | then { | |
885 | - | let | |
886 | - | if (( | |
886 | + | let gp = gl | |
887 | + | if ((cP.callerPublicKey == gp)) | |
887 | 888 | then true | |
888 | - | else | |
889 | + | else gn | |
889 | 890 | } | |
890 | - | else if ($isInstanceOf( | |
891 | - | then if (( | |
891 | + | else if ($isInstanceOf(gl, "Unit")) | |
892 | + | then if ((cP.caller == this)) | |
892 | 893 | then true | |
893 | - | else | |
894 | + | else gn | |
894 | 895 | else throw("Match error") | |
895 | 896 | } | |
896 | 897 | ||
897 | 898 | ||
898 | - | @Callable( | |
899 | + | @Callable(cP) | |
899 | 900 | func constructor (Y) = { | |
900 | - | let | |
901 | - | if (( | |
901 | + | let ex = gq(cP) | |
902 | + | if ((ex == ex)) | |
902 | 903 | then [StringEntry(Y(), Y)] | |
903 | 904 | else throw("Strict value is not equal to itself.") | |
904 | 905 | } | |
905 | 906 | ||
906 | 907 | ||
907 | 908 | ||
908 | - | @Callable( | |
909 | - | func setManager ( | |
910 | - | let | |
911 | - | if (( | |
909 | + | @Callable(cP) | |
910 | + | func setManager (gr) = { | |
911 | + | let ex = gq(cP) | |
912 | + | if ((ex == ex)) | |
912 | 913 | then { | |
913 | - | let | |
914 | - | if (( | |
915 | - | then [StringEntry(aa(), | |
914 | + | let gs = fromBase58String(gr) | |
915 | + | if ((gs == gs)) | |
916 | + | then [StringEntry(aa(), gr)] | |
916 | 917 | else throw("Strict value is not equal to itself.") | |
917 | 918 | } | |
918 | 919 | else throw("Strict value is not equal to itself.") | |
920 | 921 | ||
921 | 922 | ||
922 | 923 | ||
923 | - | @Callable( | |
924 | + | @Callable(cP) | |
924 | 925 | func confirmManager () = { | |
925 | - | let | |
926 | - | let | |
926 | + | let cu = gm() | |
927 | + | let gt = if (isDefined(cu)) | |
927 | 928 | then true | |
928 | 929 | else throw("No pending manager") | |
929 | - | if (( | |
930 | + | if ((gt == gt)) | |
930 | 931 | then { | |
931 | - | let | |
932 | + | let gu = if ((cP.callerPublicKey == value(cu))) | |
932 | 933 | then true | |
933 | 934 | else throw("You are not pending manager") | |
934 | - | if (( | |
935 | - | then [StringEntry(Z(), toBase58String(value( | |
935 | + | if ((gu == gu)) | |
936 | + | then [StringEntry(Z(), toBase58String(value(cu))), DeleteEntry(aa())] | |
936 | 937 | else throw("Strict value is not equal to itself.") | |
937 | 938 | } | |
938 | 939 | else throw("Strict value is not equal to itself.") | |
940 | 941 | ||
941 | 942 | ||
942 | 943 | ||
943 | - | @Callable( | |
944 | - | func put ( | |
945 | - | let | |
946 | - | let | |
947 | - | let | |
948 | - | if ((0 > | |
944 | + | @Callable(cP) | |
945 | + | func put (gv,gw) = { | |
946 | + | let gx = bs() | |
947 | + | let gy = valueOrErrorMessage(addressFromString(gx[C]), "Wr st addr") | |
948 | + | let gz = valueOrErrorMessage(addressFromString(gx[E]), "Wr sl addr") | |
949 | + | if ((0 > gv)) | |
949 | 950 | then throw("Wrong slippage") | |
950 | - | else if ((size( | |
951 | + | else if ((size(cP.payments) != 2)) | |
951 | 952 | then throw("2 pmnts expd") | |
952 | 953 | else { | |
953 | - | let | |
954 | - | let | |
955 | - | let | |
956 | - | if (( | |
954 | + | let gA = toBigInt(value(cP.payments[0]).amount) | |
955 | + | let gB = toBigInt(value(cP.payments[1]).amount) | |
956 | + | let eO = (toBigInt(bN(be(bm))) - gA) | |
957 | + | if ((eO == eO)) | |
957 | 958 | then { | |
958 | - | let | |
959 | - | if (( | |
959 | + | let eP = (toBigInt(bN(be(bn))) - gB) | |
960 | + | if ((eP == eP)) | |
960 | 961 | then { | |
961 | - | let | |
962 | - | if (( | |
962 | + | let eQ = toBigInt(value(assetInfo(bl)).quantity) | |
963 | + | if ((eQ == eQ)) | |
963 | 964 | then { | |
964 | - | let | |
965 | - | if (( | |
965 | + | let eR = eK(gA, gB, toBigInt(0)) | |
966 | + | if ((eR == eR)) | |
966 | 967 | then { | |
967 | - | let | |
968 | - | let | |
969 | - | let | |
970 | - | let | |
971 | - | let | |
972 | - | let | |
973 | - | let | |
974 | - | let | |
975 | - | let | |
976 | - | if (( | |
968 | + | let gC = fl(toString(cP.caller), toBase58String(cP.transactionId), AttachedPayment(value(cP.payments[0]).assetId, value(cP.payments[0]).amount), cP.payments[1], gv, true, false, true, 0, "") | |
969 | + | let el = gC._2 | |
970 | + | let gD = gC._7 | |
971 | + | let dB = gC._9 | |
972 | + | let em = gC._10 | |
973 | + | let en = gC._11 | |
974 | + | let dj = gC._12 | |
975 | + | let dk = gC._13 | |
976 | + | let dX = invoke(aQ, "emit", [el], nil) | |
977 | + | if ((dX == dX)) | |
977 | 978 | then { | |
978 | - | let | |
979 | - | let | |
980 | - | if ($isInstanceOf( | |
979 | + | let gE = { | |
980 | + | let gl = dX | |
981 | + | if ($isInstanceOf(gl, "Address")) | |
981 | 982 | then { | |
982 | - | let | |
983 | - | invoke( | |
983 | + | let gF = gl | |
984 | + | invoke(gF, "emit", [el], nil) | |
984 | 985 | } | |
985 | 986 | else unit | |
986 | 987 | } | |
987 | - | if (( | |
988 | + | if ((gE == gE)) | |
988 | 989 | then { | |
989 | - | let | |
990 | - | then invoke( | |
990 | + | let gG = if ((em > 0)) | |
991 | + | then invoke(gz, "put", nil, [AttachedPayment(dj, em)]) | |
991 | 992 | else nil | |
992 | - | if (( | |
993 | + | if ((gG == gG)) | |
993 | 994 | then { | |
994 | - | let | |
995 | - | then invoke( | |
995 | + | let gH = if ((en > 0)) | |
996 | + | then invoke(gz, "put", nil, [AttachedPayment(dk, en)]) | |
996 | 997 | else nil | |
997 | - | if (( | |
998 | + | if ((gH == gH)) | |
998 | 999 | then { | |
999 | - | let | |
1000 | + | let gI = if (gw) | |
1000 | 1001 | then { | |
1001 | - | let | |
1002 | - | if (( | |
1002 | + | let gJ = invoke(gy, "stake", nil, [AttachedPayment(gD, el)]) | |
1003 | + | if ((gJ == gJ)) | |
1003 | 1004 | then nil | |
1004 | 1005 | else throw("Strict value is not equal to itself.") | |
1005 | 1006 | } | |
1006 | - | else [ScriptTransfer( | |
1007 | - | let | |
1008 | - | let | |
1009 | - | let | |
1010 | - | let | |
1007 | + | else [ScriptTransfer(cP.caller, el, gD)] | |
1008 | + | let gK = eS(0, 0, 0) | |
1009 | + | let gi = gK._1 | |
1010 | + | let eJ = gK._2 | |
1011 | + | let gL = if ((eJ >= eR)) | |
1011 | 1012 | then true | |
1012 | - | else | |
1013 | - | if (( | |
1013 | + | else aN(makeString(["updated DLp lower than current DLp", toString(eO), toString(eP), toString(eQ), toString(eR), toString(eJ), toString(em), toString(en)], " ")) | |
1014 | + | if ((gL == gL)) | |
1014 | 1015 | then { | |
1015 | - | let | |
1016 | - | if (( | |
1017 | - | then (( | |
1016 | + | let gM = value(assetInfo(bl)).quantity | |
1017 | + | if ((gM == gM)) | |
1018 | + | then ((dB ++ gI) ++ gi) | |
1018 | 1019 | else throw("Strict value is not equal to itself.") | |
1019 | 1020 | } | |
1020 | 1021 | else throw("Strict value is not equal to itself.") | |
1039 | 1040 | ||
1040 | 1041 | ||
1041 | 1042 | ||
1042 | - | @Callable( | |
1043 | - | func putOneTknV2 ( | |
1044 | - | let | |
1045 | - | let | |
1046 | - | if ($isInstanceOf( | |
1047 | - | then | |
1048 | - | else throw(($getType( | |
1043 | + | @Callable(cP) | |
1044 | + | func putOneTknV2 (fM,gw) = { | |
1045 | + | let gN = { | |
1046 | + | let aS = invoke(aQ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
1047 | + | if ($isInstanceOf(aS, "Boolean")) | |
1048 | + | then aS | |
1049 | + | else throw(($getType(aS) + " couldn't be cast to Boolean")) | |
1049 | 1050 | } | |
1050 | - | let | |
1051 | + | let gO = if (if (if (aV()) | |
1051 | 1052 | then true | |
1052 | - | else ( | |
1053 | + | else (bk == q)) | |
1053 | 1054 | then true | |
1054 | - | else ( | |
1055 | + | else (bk == s)) | |
1055 | 1056 | then true | |
1056 | - | else | |
1057 | - | let | |
1057 | + | else gN | |
1058 | + | let gP = [if (if (!(gO)) | |
1058 | 1059 | then true | |
1059 | - | else | |
1060 | + | else go(cP)) | |
1060 | 1061 | then true | |
1061 | - | else | |
1062 | + | else aN("put operation is blocked by admin"), if ((size(cP.payments) == 1)) | |
1062 | 1063 | then true | |
1063 | - | else | |
1064 | - | if (( | |
1064 | + | else aN("exactly 1 payment are expected")] | |
1065 | + | if ((gP == gP)) | |
1065 | 1066 | then { | |
1066 | - | let di = toBase58String(value(bl)) | |
1067 | 1067 | let dj = toBase58String(value(bm)) | |
1068 | - | let dh = bk | |
1069 | - | let fO = bn | |
1070 | - | let fP = bo | |
1071 | - | let dg = if ((cO.caller == this)) | |
1072 | - | then cO.originCaller | |
1073 | - | else cO.caller | |
1074 | - | let fi = value(cO.payments[0]) | |
1075 | - | let de = toBase58String(value(fi.assetId)) | |
1076 | - | let dK = fi.amount | |
1077 | - | let eQ = if ((fi.assetId == bl)) | |
1078 | - | then eJ(toBigInt(dK), toBigInt(0), toBigInt(0)) | |
1079 | - | else eJ(toBigInt(0), toBigInt(dK), toBigInt(0)) | |
1080 | - | if ((eQ == eQ)) | |
1068 | + | let dk = toBase58String(value(bn)) | |
1069 | + | let di = bl | |
1070 | + | let fQ = bo | |
1071 | + | let fR = bp | |
1072 | + | let dh = if ((cP.caller == this)) | |
1073 | + | then cP.originCaller | |
1074 | + | else cP.caller | |
1075 | + | let fk = value(cP.payments[0]) | |
1076 | + | let df = toBase58String(value(fk.assetId)) | |
1077 | + | let dL = fk.amount | |
1078 | + | let eR = if ((fk.assetId == bm)) | |
1079 | + | then eK(toBigInt(dL), toBigInt(0), toBigInt(0)) | |
1080 | + | else eK(toBigInt(0), toBigInt(dL), toBigInt(0)) | |
1081 | + | if ((eR == eR)) | |
1081 | 1082 | then { | |
1082 | - | let | |
1083 | - | if (( | |
1083 | + | let gQ = fp(dL, df, toString(dh), toBase58String(cP.transactionId), true) | |
1084 | + | if ((gQ == gQ)) | |
1084 | 1085 | then { | |
1085 | - | let | |
1086 | - | let | |
1087 | - | let | |
1088 | - | let | |
1089 | - | then ( | |
1086 | + | let cx = gQ._3 | |
1087 | + | let dB = gQ._2 | |
1088 | + | let gR = gQ._1 | |
1089 | + | let el = if (if ((fM > 0)) | |
1090 | + | then (fM > gR) | |
1090 | 1091 | else false) | |
1091 | - | then | |
1092 | - | else | |
1093 | - | let | |
1094 | - | if (( | |
1092 | + | then aN(makeString(["amount to receive is less than ", toString(fM)], "")) | |
1093 | + | else gR | |
1094 | + | let gC = invoke(aQ, "emit", [el], nil) | |
1095 | + | if ((gC == gC)) | |
1095 | 1096 | then { | |
1096 | - | let | |
1097 | - | let | |
1098 | - | if ($isInstanceOf( | |
1097 | + | let gE = { | |
1098 | + | let gl = gC | |
1099 | + | if ($isInstanceOf(gl, "Address")) | |
1099 | 1100 | then { | |
1100 | - | let | |
1101 | - | invoke( | |
1101 | + | let gF = gl | |
1102 | + | invoke(gF, "emit", [el], nil) | |
1102 | 1103 | } | |
1103 | 1104 | else unit | |
1104 | 1105 | } | |
1105 | - | if (( | |
1106 | + | if ((gE == gE)) | |
1106 | 1107 | then { | |
1107 | - | let | |
1108 | + | let gI = if (gw) | |
1108 | 1109 | then { | |
1109 | - | let | |
1110 | - | if (( | |
1110 | + | let gJ = invoke(bu, "stake", nil, [AttachedPayment(di, el)]) | |
1111 | + | if ((gJ == gJ)) | |
1111 | 1112 | then nil | |
1112 | 1113 | else throw("Strict value is not equal to itself.") | |
1113 | 1114 | } | |
1114 | - | else [ScriptTransfer( | |
1115 | - | let | |
1116 | - | then [ScriptTransfer( | |
1115 | + | else [ScriptTransfer(cP.caller, el, di)] | |
1116 | + | let gc = if ((cx > 0)) | |
1117 | + | then [ScriptTransfer(aX, cx, fromBase58String(df))] | |
1117 | 1118 | else nil | |
1118 | - | let | |
1119 | + | let gS = if ((this == aX)) | |
1119 | 1120 | then $Tuple2(0, 0) | |
1120 | 1121 | else { | |
1121 | - | let | |
1122 | + | let gT = if ((fk.assetId == bm)) | |
1122 | 1123 | then true | |
1123 | 1124 | else false | |
1124 | - | if ( | |
1125 | - | then $Tuple2(-( | |
1126 | - | else $Tuple2(0, -( | |
1125 | + | if (gT) | |
1126 | + | then $Tuple2(-(cx), 0) | |
1127 | + | else $Tuple2(0, -(cx)) | |
1127 | 1128 | } | |
1128 | - | let | |
1129 | - | let | |
1130 | - | let | |
1131 | - | let | |
1132 | - | let | |
1133 | - | let | |
1134 | - | if (( | |
1135 | - | then $Tuple2(((( | |
1129 | + | let eT = gS._1 | |
1130 | + | let eU = gS._2 | |
1131 | + | let gU = eS(eT, eU, 0) | |
1132 | + | let gi = gU._1 | |
1133 | + | let eJ = gU._2 | |
1134 | + | let gj = eW(eR, eJ) | |
1135 | + | if ((gj == gj)) | |
1136 | + | then $Tuple2((((dB ++ gI) ++ gc) ++ gi), el) | |
1136 | 1137 | else throw("Strict value is not equal to itself.") | |
1137 | 1138 | } | |
1138 | 1139 | else throw("Strict value is not equal to itself.") | |
1148 | 1149 | ||
1149 | 1150 | ||
1150 | 1151 | ||
1151 | - | @Callable( | |
1152 | - | func putForFree ( | |
1152 | + | @Callable(cP) | |
1153 | + | func putForFree (gV) = if ((0 > gV)) | |
1153 | 1154 | then throw("Wrong slpg") | |
1154 | - | else if ((size( | |
1155 | + | else if ((size(cP.payments) != 2)) | |
1155 | 1156 | then throw("2 pmnts expd") | |
1156 | 1157 | else { | |
1157 | - | let | |
1158 | - | let | |
1159 | - | let | |
1160 | - | let | |
1161 | - | let | |
1162 | - | if (( | |
1158 | + | let gW = fl(toString(cP.caller), toBase58String(cP.transactionId), AttachedPayment(value(cP.payments[0]).assetId, value(cP.payments[0]).amount), cP.payments[1], gV, false, false, true, 0, "") | |
1159 | + | let dB = gW._9 | |
1160 | + | let gA = toBigInt(value(cP.payments[0]).amount) | |
1161 | + | let gB = toBigInt(value(cP.payments[1]).amount) | |
1162 | + | let eR = eK(gA, gB, toBigInt(0)) | |
1163 | + | if ((eR == eR)) | |
1163 | 1164 | then { | |
1164 | - | let | |
1165 | - | let | |
1166 | - | let | |
1167 | - | let | |
1168 | - | if (( | |
1169 | - | then ( | |
1165 | + | let gX = eS(0, 0, 0) | |
1166 | + | let gi = gX._1 | |
1167 | + | let eJ = gX._2 | |
1168 | + | let gj = eW(eR, eJ) | |
1169 | + | if ((gj == gj)) | |
1170 | + | then (dB ++ gi) | |
1170 | 1171 | else throw("Strict value is not equal to itself.") | |
1171 | 1172 | } | |
1172 | 1173 | else throw("Strict value is not equal to itself.") | |
1174 | 1175 | ||
1175 | 1176 | ||
1176 | 1177 | ||
1177 | - | @Callable( | |
1178 | + | @Callable(cP) | |
1178 | 1179 | func get () = { | |
1179 | - | let | |
1180 | - | if (( | |
1180 | + | let eR = eK(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1181 | + | if ((eR == eR)) | |
1181 | 1182 | then { | |
1182 | - | let | |
1183 | - | let | |
1184 | - | let | |
1185 | - | let | |
1186 | - | let | |
1187 | - | let | |
1188 | - | let | |
1189 | - | if (( | |
1183 | + | let dX = fj(cP) | |
1184 | + | let gY = dX._1 | |
1185 | + | let dA = dX._2 | |
1186 | + | let dL = dX._3 | |
1187 | + | let df = dX._4 | |
1188 | + | let dB = dX._5 | |
1189 | + | let ey = invoke(aQ, "burn", [dL], [AttachedPayment(df, dL)]) | |
1190 | + | if ((ey == ey)) | |
1190 | 1191 | then { | |
1191 | - | let | |
1192 | - | let | |
1193 | - | let | |
1194 | - | let | |
1195 | - | if (( | |
1196 | - | then ( | |
1192 | + | let gZ = eS(-(gY), -(dA), 0) | |
1193 | + | let gi = gZ._1 | |
1194 | + | let eJ = gZ._2 | |
1195 | + | let gj = eW(eR, eJ) | |
1196 | + | if ((gj == gj)) | |
1197 | + | then (dB ++ gi) | |
1197 | 1198 | else throw("Strict value is not equal to itself.") | |
1198 | 1199 | } | |
1199 | 1200 | else throw("Strict value is not equal to itself.") | |
1203 | 1204 | ||
1204 | 1205 | ||
1205 | 1206 | ||
1206 | - | @Callable( | |
1207 | - | func getOneTknV2 ( | |
1208 | - | let | |
1209 | - | let | |
1210 | - | if ($isInstanceOf( | |
1211 | - | then | |
1212 | - | else throw(($getType( | |
1207 | + | @Callable(cP) | |
1208 | + | func getOneTknV2 (fL,fM) = { | |
1209 | + | let gN = { | |
1210 | + | let aS = invoke(aQ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
1211 | + | if ($isInstanceOf(aS, "Boolean")) | |
1212 | + | then aS | |
1213 | + | else throw(($getType(aS) + " couldn't be cast to Boolean")) | |
1213 | 1214 | } | |
1214 | - | let | |
1215 | + | let ha = if (if (aV()) | |
1215 | 1216 | then true | |
1216 | - | else ( | |
1217 | + | else (bk == s)) | |
1217 | 1218 | then true | |
1218 | - | else | |
1219 | - | let | |
1219 | + | else gN | |
1220 | + | let gP = [if (if (!(ha)) | |
1220 | 1221 | then true | |
1221 | - | else | |
1222 | + | else go(cP)) | |
1222 | 1223 | then true | |
1223 | - | else | |
1224 | + | else aN("get operation is blocked by admin"), if ((size(cP.payments) == 1)) | |
1224 | 1225 | then true | |
1225 | - | else | |
1226 | - | if (( | |
1226 | + | else aN("exactly 1 payment are expected")] | |
1227 | + | if ((gP == gP)) | |
1227 | 1228 | then { | |
1228 | - | let | |
1229 | - | let | |
1230 | - | let | |
1231 | - | $Tuple2( | |
1229 | + | let hb = fK(fL, fM, cP.payments, cP.caller, cP.originCaller, cP.transactionId) | |
1230 | + | let dB = hb._1 | |
1231 | + | let fV = hb._2 | |
1232 | + | $Tuple2(dB, fV) | |
1232 | 1233 | } | |
1233 | 1234 | else throw("Strict value is not equal to itself.") | |
1234 | 1235 | } | |
1235 | 1236 | ||
1236 | 1237 | ||
1237 | 1238 | ||
1238 | - | @Callable( | |
1239 | + | @Callable(cP) | |
1239 | 1240 | func refreshDLp () = { | |
1240 | - | let | |
1241 | - | let | |
1241 | + | let hc = valueOrElse(getInteger(aq), 0) | |
1242 | + | let hd = if (((height - hc) >= at)) | |
1242 | 1243 | then unit | |
1243 | - | else | |
1244 | - | if (( | |
1244 | + | else aN(makeString([toString(at), " blocks have not passed since the previous call"], "")) | |
1245 | + | if ((hd == hd)) | |
1245 | 1246 | then { | |
1246 | - | let | |
1247 | - | let | |
1248 | - | let | |
1249 | - | let | |
1250 | - | let | |
1251 | - | then | |
1252 | - | else | |
1253 | - | $Tuple2( | |
1247 | + | let fd = valueOrErrorMessage(parseBigInt(valueOrElse(getString(this, ap), "0")), aP("invalid dLp")) | |
1248 | + | let he = eS(0, 0, 0) | |
1249 | + | let hf = he._1 | |
1250 | + | let eJ = he._2 | |
1251 | + | let eV = if ((fd != eJ)) | |
1252 | + | then hf | |
1253 | + | else aN("nothing to refresh") | |
1254 | + | $Tuple2(eV, toString(eJ)) | |
1254 | 1255 | } | |
1255 | 1256 | else throw("Strict value is not equal to itself.") | |
1256 | 1257 | } | |
1257 | 1258 | ||
1258 | 1259 | ||
1259 | 1260 | ||
1260 | - | @Callable(cO) | |
1261 | - | func getOneTknV2READONLY (fJ,he) = { | |
1261 | + | @Callable(cP) | |
1262 | + | func getOneTknV2READONLY (fL,hg) = { | |
1263 | + | let dj = toBase58String(value(bm)) | |
1264 | + | let dk = toBase58String(value(bn)) | |
1262 | 1265 | let di = toBase58String(value(bl)) | |
1263 | - | let dj = toBase58String(value(bm)) | |
1264 | - | let dh = toBase58String(value(bk)) | |
1265 | - | let cy = [toBigInt(bM(di)), toBigInt(bM(dj))] | |
1266 | - | let eH = toBigInt(valueOrErrorMessage(assetInfo(fromBase58String(dh)), "invalid lp asset").quantity) | |
1267 | - | let ca = cx(cy) | |
1268 | - | let bZ = (ca - fraction(toBigInt(he), ca, eH)) | |
1269 | - | let hf = if ((fJ == di)) | |
1266 | + | let cz = [toBigInt(bN(dj)), toBigInt(bN(dk))] | |
1267 | + | let eI = toBigInt(valueOrErrorMessage(assetInfo(fromBase58String(di)), "invalid lp asset").quantity) | |
1268 | + | let cb = cy(cz) | |
1269 | + | let ca = (cb - fraction(toBigInt(hg), cb, eI)) | |
1270 | + | let hh = if ((fL == dj)) | |
1270 | 1271 | then 0 | |
1271 | - | else if (( | |
1272 | + | else if ((fL == dk)) | |
1272 | 1273 | then 1 | |
1273 | 1274 | else throw("invalid out asset id") | |
1274 | - | let | |
1275 | - | let | |
1276 | - | let | |
1277 | - | let | |
1278 | - | let | |
1279 | - | let | |
1280 | - | $Tuple2(nil, $Tuple2( | |
1275 | + | let hi = es(cz, hh, ca) | |
1276 | + | let hj = (cz[hh] - hi) | |
1277 | + | let hk = max([0, toInt((hj - f))]) | |
1278 | + | let hl = cv(hk, aT) | |
1279 | + | let fU = hl._1 | |
1280 | + | let cx = hl._2 | |
1281 | + | $Tuple2(nil, $Tuple2(fU, cx)) | |
1281 | 1282 | } | |
1282 | 1283 | ||
1283 | 1284 | ||
1284 | 1285 | ||
1285 | - | @Callable(cO) | |
1286 | - | func getOneTknV2WithBonusREADONLY (fJ,he) = { | |
1286 | + | @Callable(cP) | |
1287 | + | func getOneTknV2WithBonusREADONLY (fL,hg) = { | |
1288 | + | let dj = toBase58String(value(bm)) | |
1289 | + | let dk = toBase58String(value(bn)) | |
1287 | 1290 | let di = toBase58String(value(bl)) | |
1288 | - | let dj = toBase58String(value(bm)) | |
1289 | - | let dh = toBase58String(value(bk)) | |
1290 | - | let do = bM(di) | |
1291 | - | let dq = bM(dj) | |
1292 | - | let hk = { | |
1293 | - | let aR = invoke(this, "getOneTknV2READONLY", [fJ, he], nil) | |
1294 | - | if ($isInstanceOf(aR, "(Int, Int)")) | |
1295 | - | then aR | |
1296 | - | else throw(($getType(aR) + " couldn't be cast to (Int, Int)")) | |
1291 | + | let dp = bN(dj) | |
1292 | + | let dr = bN(dk) | |
1293 | + | let hm = { | |
1294 | + | let aS = invoke(this, "getOneTknV2READONLY", [fL, hg], nil) | |
1295 | + | if ($isInstanceOf(aS, "(Int, Int)")) | |
1296 | + | then aS | |
1297 | + | else throw(($getType(aS) + " couldn't be cast to (Int, Int)")) | |
1297 | 1298 | } | |
1298 | - | let | |
1299 | - | let | |
1300 | - | let | |
1301 | - | let | |
1302 | - | let | |
1303 | - | let | |
1304 | - | let | |
1305 | - | then if (( | |
1299 | + | let fU = hm._1 | |
1300 | + | let cx = hm._2 | |
1301 | + | let dX = dd("", di, hg, this) | |
1302 | + | let dz = dX._1 | |
1303 | + | let dA = dX._2 | |
1304 | + | let hn = (dz + dA) | |
1305 | + | let fJ = if ((hn == 0)) | |
1306 | + | then if ((fU == 0)) | |
1306 | 1307 | then 0 | |
1307 | 1308 | else throw("bonus calculation error") | |
1308 | - | else fraction(( | |
1309 | - | $Tuple2(nil, $Tuple3( | |
1309 | + | else fraction((fU - hn), a, hn) | |
1310 | + | $Tuple2(nil, $Tuple3(fU, cx, fJ)) | |
1310 | 1311 | } | |
1311 | 1312 | ||
1312 | 1313 | ||
1313 | 1314 | ||
1314 | - | @Callable( | |
1315 | - | func getNoLess ( | |
1316 | - | let | |
1317 | - | let | |
1318 | - | let | |
1319 | - | let | |
1320 | - | let | |
1321 | - | let | |
1322 | - | if (( | |
1323 | - | then throw(((("Failed: " + toString( | |
1324 | - | else if (( | |
1325 | - | then throw(((("Failed: " + toString( | |
1315 | + | @Callable(cP) | |
1316 | + | func getNoLess (ho,hp) = { | |
1317 | + | let dX = fj(cP) | |
1318 | + | let dz = dX._1 | |
1319 | + | let dA = dX._2 | |
1320 | + | let dL = dX._3 | |
1321 | + | let df = dX._4 | |
1322 | + | let dB = dX._5 | |
1323 | + | if ((ho > dz)) | |
1324 | + | then throw(((("Failed: " + toString(dz)) + " < ") + toString(ho))) | |
1325 | + | else if ((hp > dA)) | |
1326 | + | then throw(((("Failed: " + toString(dA)) + " < ") + toString(hp))) | |
1326 | 1327 | else { | |
1327 | - | let | |
1328 | - | if (( | |
1328 | + | let eR = eK(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1329 | + | if ((eR == eR)) | |
1329 | 1330 | then { | |
1330 | - | let | |
1331 | - | if (( | |
1331 | + | let hq = invoke(aQ, "burn", [dL], [AttachedPayment(df, dL)]) | |
1332 | + | if ((hq == hq)) | |
1332 | 1333 | then { | |
1333 | - | let | |
1334 | - | let | |
1335 | - | let | |
1336 | - | let | |
1337 | - | if (( | |
1338 | - | then ( | |
1334 | + | let hr = eS(-(dz), -(dA), 0) | |
1335 | + | let gi = hr._1 | |
1336 | + | let eJ = hr._2 | |
1337 | + | let gj = eW(eR, eJ) | |
1338 | + | if ((gj == gj)) | |
1339 | + | then (dB ++ gi) | |
1339 | 1340 | else throw("Strict value is not equal to itself.") | |
1340 | 1341 | } | |
1341 | 1342 | else throw("Strict value is not equal to itself.") | |
1346 | 1347 | ||
1347 | 1348 | ||
1348 | 1349 | ||
1349 | - | @Callable( | |
1350 | - | func unstakeAndGet ( | |
1351 | - | let | |
1350 | + | @Callable(cP) | |
1351 | + | func unstakeAndGet (cw) = { | |
1352 | + | let hs = if ((size(cP.payments) != 0)) | |
1352 | 1353 | then throw("No pmnts expd") | |
1353 | 1354 | else true | |
1354 | - | if (( | |
1355 | + | if ((hs == hs)) | |
1355 | 1356 | then { | |
1356 | - | let | |
1357 | - | let | |
1358 | - | let | |
1359 | - | let | |
1360 | - | if (( | |
1357 | + | let ht = bs() | |
1358 | + | let gD = bl | |
1359 | + | let hu = valueOrErrorMessage(addressFromString(ht[C]), "Wr st addr") | |
1360 | + | let eR = eK(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1361 | + | if ((eR == eR)) | |
1361 | 1362 | then { | |
1362 | - | let | |
1363 | - | if (( | |
1363 | + | let hv = invoke(hu, "unstake", [toBase58String(gD), cw], nil) | |
1364 | + | if ((hv == hv)) | |
1364 | 1365 | then { | |
1365 | - | let | |
1366 | - | let | |
1367 | - | let | |
1368 | - | let | |
1369 | - | let | |
1370 | - | let | |
1366 | + | let dX = dd(toBase58String(cP.transactionId), toBase58String(gD), cw, cP.caller) | |
1367 | + | let dz = dX._1 | |
1368 | + | let dA = dX._2 | |
1369 | + | let dn = parseIntValue(dX._9) | |
1370 | + | let dB = dX._10 | |
1371 | + | let hw = if (if (aV()) | |
1371 | 1372 | then true | |
1372 | - | else ( | |
1373 | - | then throw(("Blocked: " + toString( | |
1373 | + | else (dn == s)) | |
1374 | + | then throw(("Blocked: " + toString(dn))) | |
1374 | 1375 | else true | |
1375 | - | if (( | |
1376 | + | if ((hw == hw)) | |
1376 | 1377 | then { | |
1377 | - | let | |
1378 | - | if (( | |
1378 | + | let hx = invoke(aQ, "burn", [cw], [AttachedPayment(gD, cw)]) | |
1379 | + | if ((hx == hx)) | |
1379 | 1380 | then { | |
1380 | - | let | |
1381 | - | let | |
1382 | - | let | |
1383 | - | let | |
1384 | - | if (( | |
1385 | - | then ( | |
1381 | + | let hy = eS(-(dz), -(dA), 0) | |
1382 | + | let gi = hy._1 | |
1383 | + | let eJ = hy._2 | |
1384 | + | let gj = eW(eR, eJ) | |
1385 | + | if ((gj == gj)) | |
1386 | + | then (dB ++ gi) | |
1386 | 1387 | else throw("Strict value is not equal to itself.") | |
1387 | 1388 | } | |
1388 | 1389 | else throw("Strict value is not equal to itself.") | |
1398 | 1399 | ||
1399 | 1400 | ||
1400 | 1401 | ||
1401 | - | @Callable( | |
1402 | - | func unstakeAndGetNoLess ( | |
1403 | - | let | |
1402 | + | @Callable(cP) | |
1403 | + | func unstakeAndGetNoLess (hz,hA,hp) = { | |
1404 | + | let ha = if (aV()) | |
1404 | 1405 | then true | |
1405 | - | else ( | |
1406 | - | let | |
1406 | + | else (bk == s) | |
1407 | + | let gP = [if (!(ha)) | |
1407 | 1408 | then true | |
1408 | - | else throw("get operation is blocked by admin"), if ((size( | |
1409 | + | else throw("get operation is blocked by admin"), if ((size(cP.payments) == 0)) | |
1409 | 1410 | then true | |
1410 | 1411 | else throw("no payments are expected")] | |
1411 | - | if (( | |
1412 | + | if ((gP == gP)) | |
1412 | 1413 | then { | |
1413 | - | let | |
1414 | - | if (( | |
1414 | + | let eR = eK(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1415 | + | if ((eR == eR)) | |
1415 | 1416 | then { | |
1416 | - | let | |
1417 | - | if (( | |
1417 | + | let hv = invoke(bu, "unstake", [toBase58String(bl), hz], nil) | |
1418 | + | if ((hv == hv)) | |
1418 | 1419 | then { | |
1419 | - | let | |
1420 | - | let | |
1421 | - | let | |
1422 | - | let | |
1423 | - | let | |
1420 | + | let hB = dd(toBase58String(cP.transactionId), toBase58String(bl), hz, cP.caller) | |
1421 | + | let dz = hB._1 | |
1422 | + | let dA = hB._2 | |
1423 | + | let dB = hB._10 | |
1424 | + | let hC = [if ((dz >= hA)) | |
1424 | 1425 | then true | |
1425 | - | else throw(makeString(["amount asset amount to receive is less than ", toString( | |
1426 | + | else throw(makeString(["amount asset amount to receive is less than ", toString(hA)], "")), if ((dA >= hp)) | |
1426 | 1427 | then true | |
1427 | - | else throw(makeString(["price asset amount to receive is less than ", toString( | |
1428 | - | if (( | |
1428 | + | else throw(makeString(["price asset amount to receive is less than ", toString(hp)], ""))] | |
1429 | + | if ((hC == hC)) | |
1429 | 1430 | then { | |
1430 | - | let | |
1431 | - | if (( | |
1431 | + | let hq = invoke(aQ, "burn", [hz], [AttachedPayment(bl, hz)]) | |
1432 | + | if ((hq == hq)) | |
1432 | 1433 | then { | |
1433 | - | let | |
1434 | - | let | |
1435 | - | let | |
1436 | - | let | |
1437 | - | if (( | |
1438 | - | then ( | |
1434 | + | let hD = eS(-(dz), -(dA), 0) | |
1435 | + | let gi = hD._1 | |
1436 | + | let eJ = hD._2 | |
1437 | + | let gj = eW(eR, eJ) | |
1438 | + | if ((gj == gj)) | |
1439 | + | then (dB ++ gi) | |
1439 | 1440 | else throw("Strict value is not equal to itself.") | |
1440 | 1441 | } | |
1441 | 1442 | else throw("Strict value is not equal to itself.") | |
1451 | 1452 | ||
1452 | 1453 | ||
1453 | 1454 | ||
1454 | - | @Callable( | |
1455 | - | func unstakeAndGetOneTknV2 ( | |
1456 | - | let | |
1457 | - | let | |
1458 | - | if ($isInstanceOf( | |
1459 | - | then | |
1460 | - | else throw(($getType( | |
1455 | + | @Callable(cP) | |
1456 | + | func unstakeAndGetOneTknV2 (hz,fL,fM) = { | |
1457 | + | let gN = { | |
1458 | + | let aS = invoke(aQ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
1459 | + | if ($isInstanceOf(aS, "Boolean")) | |
1460 | + | then aS | |
1461 | + | else throw(($getType(aS) + " couldn't be cast to Boolean")) | |
1461 | 1462 | } | |
1462 | - | let | |
1463 | + | let ha = if (if (aV()) | |
1463 | 1464 | then true | |
1464 | - | else ( | |
1465 | + | else (bk == s)) | |
1465 | 1466 | then true | |
1466 | - | else | |
1467 | - | let | |
1467 | + | else gN | |
1468 | + | let gP = [if (if (!(ha)) | |
1468 | 1469 | then true | |
1469 | - | else | |
1470 | + | else go(cP)) | |
1470 | 1471 | then true | |
1471 | - | else | |
1472 | + | else aN("get operation is blocked by admin"), if ((size(cP.payments) == 0)) | |
1472 | 1473 | then true | |
1473 | - | else | |
1474 | - | if (( | |
1474 | + | else aN("no payments are expected")] | |
1475 | + | if ((gP == gP)) | |
1475 | 1476 | then { | |
1476 | - | let | |
1477 | - | let | |
1478 | - | let | |
1479 | - | let | |
1480 | - | if (( | |
1477 | + | let ht = bs() | |
1478 | + | let gD = bl | |
1479 | + | let hu = valueOrErrorMessage(addressFromString(ht[C]), "Wr st addr") | |
1480 | + | let hv = invoke(hu, "unstake", [toBase58String(gD), hz], nil) | |
1481 | + | if ((hv == hv)) | |
1481 | 1482 | then { | |
1482 | - | let | |
1483 | - | let | |
1484 | - | let | |
1485 | - | $Tuple2( | |
1483 | + | let hE = fK(fL, fM, [AttachedPayment(gD, hz)], cP.caller, cP.originCaller, cP.transactionId) | |
1484 | + | let dB = hE._1 | |
1485 | + | let fV = hE._2 | |
1486 | + | $Tuple2(dB, fV) | |
1486 | 1487 | } | |
1487 | 1488 | else throw("Strict value is not equal to itself.") | |
1488 | 1489 | } | |
1491 | 1492 | ||
1492 | 1493 | ||
1493 | 1494 | ||
1494 | - | @Callable( | |
1495 | - | func putOneTknV2WithBonusREADONLY ( | |
1496 | - | let | |
1497 | - | let | |
1498 | - | let | |
1499 | - | let | |
1500 | - | let | |
1501 | - | $Tuple2(nil, $Tuple3( | |
1495 | + | @Callable(cP) | |
1496 | + | func putOneTknV2WithBonusREADONLY (hF,hG) = { | |
1497 | + | let hH = fp(hF, hG, "", "", true) | |
1498 | + | let fE = hH._1 | |
1499 | + | let dB = hH._2 | |
1500 | + | let cx = hH._3 | |
1501 | + | let fJ = hH._4 | |
1502 | + | $Tuple2(nil, $Tuple3(fE, cx, fJ)) | |
1502 | 1503 | } | |
1503 | 1504 | ||
1504 | 1505 | ||
1505 | 1506 | ||
1506 | - | @Callable( | |
1507 | - | func putOneTknV2WithoutTakeFeeREADONLY ( | |
1508 | - | let | |
1509 | - | let | |
1510 | - | let | |
1511 | - | let | |
1512 | - | let | |
1513 | - | $Tuple2(nil, $Tuple3( | |
1507 | + | @Callable(cP) | |
1508 | + | func putOneTknV2WithoutTakeFeeREADONLY (hF,hG) = { | |
1509 | + | let hI = fp(hF, hG, "", "", false) | |
1510 | + | let fE = hI._1 | |
1511 | + | let dB = hI._2 | |
1512 | + | let cx = hI._3 | |
1513 | + | let fJ = hI._4 | |
1514 | + | $Tuple2(nil, $Tuple3(fE, cx, fJ)) | |
1514 | 1515 | } | |
1515 | 1516 | ||
1516 | 1517 | ||
1517 | 1518 | ||
1518 | - | @Callable( | |
1519 | - | func activate ( | |
1519 | + | @Callable(cP) | |
1520 | + | func activate (hJ,hK) = if ((toString(cP.caller) != toString(aQ))) | |
1520 | 1521 | then throw("denied") | |
1521 | - | else $Tuple2([StringEntry(aj(), | |
1522 | + | else $Tuple2([StringEntry(aj(), hJ), StringEntry(ak(), hK)], "success") | |
1522 | 1523 | ||
1523 | 1524 | ||
1524 | 1525 | ||
1525 | - | @Callable( | |
1526 | - | func setS ( | |
1527 | - | then | |
1528 | - | else [StringEntry( | |
1526 | + | @Callable(cP) | |
1527 | + | func setS (hL,hw) = if ((toString(cP.caller) != aJ(this, am()))) | |
1528 | + | then gn | |
1529 | + | else [StringEntry(hL, hw)] | |
1529 | 1530 | ||
1530 | 1531 | ||
1531 | 1532 | ||
1532 | - | @Callable( | |
1533 | - | func setI ( | |
1534 | - | then | |
1535 | - | else [IntegerEntry( | |
1533 | + | @Callable(cP) | |
1534 | + | func setI (hL,hw) = if ((toString(cP.caller) != aJ(this, am()))) | |
1535 | + | then gn | |
1536 | + | else [IntegerEntry(hL, hw)] | |
1536 | 1537 | ||
1537 | 1538 | ||
1538 | 1539 | ||
1539 | - | @Callable( | |
1540 | - | func getPoolConfigWrapperREADONLY () = $Tuple2(nil, | |
1540 | + | @Callable(cP) | |
1541 | + | func getPoolConfigWrapperREADONLY () = $Tuple2(nil, aY()) | |
1541 | 1542 | ||
1542 | 1543 | ||
1543 | 1544 | ||
1544 | - | @Callable( | |
1545 | - | func getAccBalanceWrapperREADONLY ( | |
1545 | + | @Callable(cP) | |
1546 | + | func getAccBalanceWrapperREADONLY (bO) = $Tuple2(nil, bN(bO)) | |
1546 | 1547 | ||
1547 | 1548 | ||
1548 | 1549 | ||
1549 | - | @Callable( | |
1550 | - | func calcPricesWrapperREADONLY ( | |
1551 | - | let | |
1552 | - | $Tuple2(nil, [toString( | |
1550 | + | @Callable(cP) | |
1551 | + | func calcPricesWrapperREADONLY (ch,ci,cm) = { | |
1552 | + | let hM = cl(ch, ci, cm) | |
1553 | + | $Tuple2(nil, [toString(hM[0]), toString(hM[1]), toString(hM[2])]) | |
1553 | 1554 | } | |
1554 | 1555 | ||
1555 | 1556 | ||
1556 | 1557 | ||
1557 | - | @Callable( | |
1558 | - | func fromX18WrapperREADONLY (M, | |
1558 | + | @Callable(cP) | |
1559 | + | func fromX18WrapperREADONLY (M,hN) = $Tuple2(nil, L(parseBigIntValue(M), hN)) | |
1559 | 1560 | ||
1560 | 1561 | ||
1561 | 1562 | ||
1562 | - | @Callable( | |
1563 | + | @Callable(cP) | |
1563 | 1564 | func toX18WrapperREADONLY (I,J) = $Tuple2(nil, toString(H(I, J))) | |
1564 | 1565 | ||
1565 | 1566 | ||
1566 | 1567 | ||
1567 | - | @Callable( | |
1568 | - | func calcPriceBigIntWrapperREADONLY ( | |
1568 | + | @Callable(cP) | |
1569 | + | func calcPriceBigIntWrapperREADONLY (bQ,bR) = $Tuple2(nil, toString(bP(parseBigIntValue(bQ), parseBigIntValue(bR)))) | |
1569 | 1570 | ||
1570 | 1571 | ||
1571 | 1572 | ||
1572 | - | @Callable( | |
1573 | - | func estimatePutOperationWrapperREADONLY ( | |
1573 | + | @Callable(cP) | |
1574 | + | func estimatePutOperationWrapperREADONLY (de,bW,dD,dE,dF,dG,hO,dH,dI) = $Tuple2(nil, dC(de, bW, dD, dE, dF, dG, hO, dH, dI, true, false, 0, "")) | |
1574 | 1575 | ||
1575 | 1576 | ||
1576 | 1577 | ||
1577 | - | @Callable( | |
1578 | - | func estimateGetOperationWrapperREADONLY ( | |
1579 | - | let | |
1580 | - | $Tuple2(nil, $Tuple10( | |
1578 | + | @Callable(cP) | |
1579 | + | func estimateGetOperationWrapperREADONLY (de,hP,dg,hO) = { | |
1580 | + | let dX = dd(de, hP, dg, addressFromStringValue(hO)) | |
1581 | + | $Tuple2(nil, $Tuple10(dX._1, dX._2, dX._3, dX._4, dX._5, dX._6, dX._7, toString(dX._8), dX._9, dX._10)) | |
1581 | 1582 | } | |
1582 | 1583 | ||
1583 | 1584 | ||
1584 | - | @Verifier( | |
1585 | - | func | |
1586 | - | let | |
1587 | - | let | |
1588 | - | if ($isInstanceOf( | |
1585 | + | @Verifier(hQ) | |
1586 | + | func hR () = { | |
1587 | + | let hS = { | |
1588 | + | let gl = gk() | |
1589 | + | if ($isInstanceOf(gl, "ByteVector")) | |
1589 | 1590 | then { | |
1590 | - | let | |
1591 | - | | |
1591 | + | let gp = gl | |
1592 | + | gp | |
1592 | 1593 | } | |
1593 | - | else if ($isInstanceOf( | |
1594 | - | then | |
1594 | + | else if ($isInstanceOf(gl, "Unit")) | |
1595 | + | then hQ.senderPublicKey | |
1595 | 1596 | else throw("Match error") | |
1596 | 1597 | } | |
1597 | - | let | |
1598 | - | if ($isInstanceOf( | |
1598 | + | let gl = hQ | |
1599 | + | if ($isInstanceOf(gl, "Order")) | |
1599 | 1600 | then { | |
1600 | - | let eY = gj | |
1601 | - | let hR = aV() | |
1602 | - | let hS = eX(eY) | |
1603 | - | let hT = sigVerify(eY.bodyBytes, eY.proofs[0], eY.senderPublicKey) | |
1604 | - | let hU = sigVerify(eY.bodyBytes, eY.proofs[1], hR) | |
1605 | - | if (if (if (hS) | |
1606 | - | then hT | |
1601 | + | let eZ = gl | |
1602 | + | let hT = aW() | |
1603 | + | let hU = eY(eZ) | |
1604 | + | let aF = hU._1 | |
1605 | + | let aG = hU._2 | |
1606 | + | let aH = sigVerify(eZ.bodyBytes, eZ.proofs[0], eZ.senderPublicKey) | |
1607 | + | let aI = sigVerify(eZ.bodyBytes, eZ.proofs[1], hT) | |
1608 | + | if (if (if (aF) | |
1609 | + | then aH | |
1607 | 1610 | else false) | |
1608 | - | then | |
1611 | + | then aI | |
1609 | 1612 | else false) | |
1610 | 1613 | then true | |
1611 | - | else aE( | |
1614 | + | else aE(aF, aG, aH, aI) | |
1612 | 1615 | } | |
1613 | - | else if ($isInstanceOf( | |
1616 | + | else if ($isInstanceOf(gl, "SetScriptTransaction")) | |
1614 | 1617 | then { | |
1615 | - | let | |
1616 | - | if (sigVerify( | |
1618 | + | let cC = gl | |
1619 | + | if (sigVerify(hQ.bodyBytes, hQ.proofs[0], hS)) | |
1617 | 1620 | then true | |
1618 | 1621 | else { | |
1619 | - | let hV = blake2b256(value( | |
1620 | - | let hW = fromBase64String(value(getString( | |
1622 | + | let hV = blake2b256(value(cC.script)) | |
1623 | + | let hW = fromBase64String(value(getString(aQ, aC()))) | |
1621 | 1624 | let hX = scriptHash(this) | |
1622 | 1625 | if ((hW == hV)) | |
1623 | 1626 | then (hX != hV) | |
1624 | 1627 | else false | |
1625 | 1628 | } | |
1626 | 1629 | } | |
1627 | - | else sigVerify( | |
1630 | + | else sigVerify(hQ.bodyBytes, hQ.proofs[0], hS) | |
1628 | 1631 | } | |
1629 | 1632 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 100000000 | |
5 | 5 | ||
6 | 6 | let b = toBigInt(100000000) | |
7 | 7 | ||
8 | 8 | let c = toBigInt(1000000000000000000) | |
9 | 9 | ||
10 | 10 | let d = toBigInt(0) | |
11 | 11 | ||
12 | 12 | let e = toBigInt(0) | |
13 | 13 | ||
14 | 14 | let f = toBigInt(1) | |
15 | 15 | ||
16 | 16 | let g = toBigInt(2) | |
17 | 17 | ||
18 | 18 | let h = toBigInt(3) | |
19 | 19 | ||
20 | 20 | let i = toBigInt(4) | |
21 | 21 | ||
22 | 22 | let j = toBigInt((a - ((a * 1) / a))) | |
23 | 23 | ||
24 | 24 | let k = "WAVES" | |
25 | 25 | ||
26 | 26 | let l = "100" | |
27 | 27 | ||
28 | 28 | let m = "1" | |
29 | 29 | ||
30 | 30 | let n = "__" | |
31 | 31 | ||
32 | 32 | let o = "" | |
33 | 33 | ||
34 | 34 | let p = 1 | |
35 | 35 | ||
36 | 36 | let q = 2 | |
37 | 37 | ||
38 | 38 | let r = 3 | |
39 | 39 | ||
40 | 40 | let s = 4 | |
41 | 41 | ||
42 | 42 | let t = 1 | |
43 | 43 | ||
44 | 44 | let u = 2 | |
45 | 45 | ||
46 | 46 | let v = 3 | |
47 | 47 | ||
48 | 48 | let w = 4 | |
49 | 49 | ||
50 | 50 | let x = 5 | |
51 | 51 | ||
52 | 52 | let y = 6 | |
53 | 53 | ||
54 | 54 | let z = 7 | |
55 | 55 | ||
56 | 56 | let A = 8 | |
57 | 57 | ||
58 | 58 | let B = 9 | |
59 | 59 | ||
60 | 60 | let C = 1 | |
61 | 61 | ||
62 | 62 | let D = 6 | |
63 | 63 | ||
64 | 64 | let E = 7 | |
65 | 65 | ||
66 | 66 | let F = 10 | |
67 | 67 | ||
68 | 68 | let G = fraction(10, a, 10000) | |
69 | 69 | ||
70 | 70 | func H (I,J) = fraction(toBigInt(I), c, toBigInt(J)) | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | func K (I,J) = fraction(I, c, J) | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func L (M,N) = toInt(fraction(M, toBigInt(N), c)) | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | func O (M,N,P) = toInt(fraction(M, toBigInt(N), c, P)) | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | func Q (I,J) = fraction(I, c, toBigInt(J)) | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | func R (M,N) = fraction(M, toBigInt(N), c) | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | func S (T,U,V) = fraction(T, U, V) | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | func W (M) = if ((d > M)) | |
92 | 92 | then -(M) | |
93 | 93 | else M | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func X (M) = if ((d > M)) | |
97 | 97 | then -(M) | |
98 | 98 | else M | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | func Y () = "%s__factoryContract" | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | func Z () = "%s__managerPublicKey" | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | func aa () = "%s__pendingManagerPublicKey" | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | func ab () = "%s%s__price__last" | |
111 | 111 | ||
112 | 112 | ||
113 | 113 | func ac (ad,ae) = makeString(["%s%s%d%d__price__history", toString(ad), toString(ae)], n) | |
114 | 114 | ||
115 | 115 | ||
116 | 116 | func af (ag,ah) = ((("%s%s%s__P__" + ag) + "__") + ah) | |
117 | 117 | ||
118 | 118 | ||
119 | 119 | func ai (ag,ah) = ((("%s%s%s__G__" + ag) + "__") + ah) | |
120 | 120 | ||
121 | 121 | ||
122 | 122 | func aj () = "%s__amountAsset" | |
123 | 123 | ||
124 | 124 | ||
125 | 125 | func ak () = "%s__priceAsset" | |
126 | 126 | ||
127 | 127 | ||
128 | 128 | func al () = "%s__amp" | |
129 | 129 | ||
130 | 130 | ||
131 | 131 | func am () = "%s__addonAddr" | |
132 | 132 | ||
133 | 133 | ||
134 | 134 | let an = "%s__fee" | |
135 | 135 | ||
136 | 136 | let ao = valueOrElse(getInteger(this, an), G) | |
137 | 137 | ||
138 | 138 | let ap = makeString(["%s", "dLp"], n) | |
139 | 139 | ||
140 | 140 | let aq = makeString(["%s", "dLpRefreshedHeight"], n) | |
141 | 141 | ||
142 | 142 | let ar = makeString(["%s", "refreshDLpDelay"], n) | |
143 | 143 | ||
144 | 144 | let as = 1 | |
145 | 145 | ||
146 | 146 | let at = valueOrElse(getInteger(this, ar), as) | |
147 | 147 | ||
148 | 148 | func au () = "%s__factoryConfig" | |
149 | 149 | ||
150 | 150 | ||
151 | 151 | func av () = "%s%s__matcher__publicKey" | |
152 | 152 | ||
153 | 153 | ||
154 | 154 | func aw (ax,ay) = (((("%d%d%s__" + ax) + "__") + ay) + "__config") | |
155 | 155 | ||
156 | 156 | ||
157 | 157 | func az (aA) = ("%s%s%s__mappings__baseAsset2internalId__" + aA) | |
158 | 158 | ||
159 | 159 | ||
160 | 160 | func aB () = "%s__shutdown" | |
161 | 161 | ||
162 | 162 | ||
163 | 163 | func aC () = "%s__allowedLpStableScriptHash" | |
164 | 164 | ||
165 | 165 | ||
166 | 166 | func aD () = "%s__feeCollectorAddress" | |
167 | 167 | ||
168 | 168 | ||
169 | - | func aE (aF,aG,aH) = throw((((((" | |
169 | + | func aE (aF,aG,aH,aI) = throw((((((((("order validation failed: orderValid=" + toString(aF)) + " (") + aG) + ")") + " senderValid=") + toString(aH)) + " matcherValid=") + toString(aI))) | |
170 | 170 | ||
171 | 171 | ||
172 | - | func | |
172 | + | func aJ (aK,aL) = valueOrErrorMessage(getString(aK, aL), makeString(["mandatory ", toString(aK), ".", aL, " not defined"], "")) | |
173 | 173 | ||
174 | 174 | ||
175 | - | func | |
175 | + | func aM (aK,aL) = valueOrErrorMessage(getInteger(aK, aL), makeString(["mandatory ", toString(aK), ".", aL, " not defined"], "")) | |
176 | 176 | ||
177 | 177 | ||
178 | - | func | |
178 | + | func aN (aO) = throw(makeString(["lp_stable.ride:", aO], " ")) | |
179 | 179 | ||
180 | 180 | ||
181 | - | func | |
181 | + | func aP (aO) = makeString(["lp_stable.ride:", aO], " ") | |
182 | 182 | ||
183 | 183 | ||
184 | - | let | |
184 | + | let aQ = addressFromStringValue(aJ(this, Y())) | |
185 | 185 | ||
186 | - | let | |
187 | - | let | |
188 | - | if ($isInstanceOf( | |
189 | - | then | |
190 | - | else throw(($getType( | |
186 | + | let aR = { | |
187 | + | let aS = invoke(aQ, "getInFeeREADONLY", [toString(this)], nil) | |
188 | + | if ($isInstanceOf(aS, "Int")) | |
189 | + | then aS | |
190 | + | else throw(($getType(aS) + " couldn't be cast to Int")) | |
191 | 191 | } | |
192 | 192 | ||
193 | - | let | |
194 | - | let | |
195 | - | if ($isInstanceOf( | |
196 | - | then | |
197 | - | else throw(($getType( | |
193 | + | let aT = { | |
194 | + | let aS = invoke(aQ, "getOutFeeREADONLY", [toString(this)], nil) | |
195 | + | if ($isInstanceOf(aS, "Int")) | |
196 | + | then aS | |
197 | + | else throw(($getType(aS) + " couldn't be cast to Int")) | |
198 | 198 | } | |
199 | 199 | ||
200 | - | let | |
200 | + | let aU = aJ(this, al()) | |
201 | 201 | ||
202 | - | func | |
202 | + | func aV () = valueOrElse(getBoolean(aQ, aB()), false) | |
203 | 203 | ||
204 | 204 | ||
205 | - | func | |
205 | + | func aW () = fromBase58String(aJ(aQ, av())) | |
206 | 206 | ||
207 | 207 | ||
208 | - | let | |
208 | + | let aX = addressFromStringValue(aJ(aQ, aD())) | |
209 | 209 | ||
210 | - | func | |
211 | - | let | |
212 | - | let | |
213 | - | let | |
214 | - | let ax = | |
215 | - | split( | |
210 | + | func aY () = { | |
211 | + | let aZ = aJ(this, aj()) | |
212 | + | let ba = aJ(this, ak()) | |
213 | + | let bb = aM(aQ, az(ba)) | |
214 | + | let ax = aM(aQ, az(aZ)) | |
215 | + | split(aJ(aQ, aw(toString(ax), toString(bb))), n) | |
216 | 216 | } | |
217 | 217 | ||
218 | 218 | ||
219 | - | func | |
219 | + | func bc (bd) = if ((bd == k)) | |
220 | 220 | then unit | |
221 | - | else fromBase58String( | |
221 | + | else fromBase58String(bd) | |
222 | 222 | ||
223 | 223 | ||
224 | - | func | |
224 | + | func be (bd) = if ((bd == unit)) | |
225 | 225 | then k | |
226 | - | else toBase58String(value( | |
226 | + | else toBase58String(value(bd)) | |
227 | 227 | ||
228 | 228 | ||
229 | - | func | |
229 | + | func bf (bg) = $Tuple9(addressFromStringValue(bg[t]), parseIntValue(bg[u]), fromBase58String(bg[v]), bc(bg[w]), bc(bg[x]), parseIntValue(bg[y]), parseIntValue(bg[z]), fromBase58String(bg[A]), fromBase58String(bg[B])) | |
230 | 230 | ||
231 | 231 | ||
232 | - | let | |
232 | + | let bh = bf(aY()) | |
233 | 233 | ||
234 | - | let | |
234 | + | let bi = bh | |
235 | 235 | ||
236 | - | let | |
236 | + | let bj = bi._1 | |
237 | 237 | ||
238 | - | let | |
238 | + | let bk = bi._2 | |
239 | 239 | ||
240 | - | let | |
240 | + | let bl = bi._3 | |
241 | 241 | ||
242 | - | let | |
242 | + | let bm = bi._4 | |
243 | 243 | ||
244 | - | let | |
244 | + | let bn = bi._5 | |
245 | 245 | ||
246 | - | let | |
246 | + | let bo = bi._6 | |
247 | 247 | ||
248 | - | let | |
248 | + | let bp = bi._7 | |
249 | 249 | ||
250 | - | let | |
250 | + | let bq = bi._8 | |
251 | 251 | ||
252 | - | let | |
252 | + | let br = bi._9 | |
253 | 253 | ||
254 | - | func | |
254 | + | func bs () = split(aJ(aQ, au()), n) | |
255 | 255 | ||
256 | 256 | ||
257 | - | let | |
257 | + | let bt = bs() | |
258 | 258 | ||
259 | - | let | |
259 | + | let bu = valueOrErrorMessage(addressFromString(bt[C]), "Invalid staking contract address") | |
260 | 260 | ||
261 | - | let | |
261 | + | let bv = valueOrErrorMessage(addressFromString(bt[E]), "Invalid slipage contract address") | |
262 | 262 | ||
263 | - | let | |
263 | + | let bw = valueOrErrorMessage(addressFromString(bt[F]), "Invalid gwx contract address") | |
264 | 264 | ||
265 | - | let | |
265 | + | let bx = valueOrErrorMessage(addressFromString(bt[D]), "Invalid gwx contract address") | |
266 | 266 | ||
267 | - | func | |
267 | + | func by (bz,bA,bB,bC,bD,bE,bF,bG,bH,bI) = makeString(["%d%d%d%d%d%d%d%d%d%d", toString(bz), toString(bA), toString(bB), toString(bC), toString(bD), toString(bE), toString(bF), toString(bG), toString(bH), toString(bI)], n) | |
268 | 268 | ||
269 | 269 | ||
270 | - | func | |
270 | + | func bJ (bK,bL,bM,bC,bF,bG) = makeString(["%d%d%d%d%d%d", toString(bK), toString(bL), toString(bM), toString(bC), toString(bF), toString(bG)], n) | |
271 | 271 | ||
272 | 272 | ||
273 | - | func | |
273 | + | func bN (bO) = if ((bO == "WAVES")) | |
274 | 274 | then wavesBalance(this).available | |
275 | - | else assetBalance(this, fromBase58String( | |
275 | + | else assetBalance(this, fromBase58String(bO)) | |
276 | 276 | ||
277 | 277 | ||
278 | - | func | |
278 | + | func bP (bQ,bR) = fraction(bQ, c, bR) | |
279 | 279 | ||
280 | 280 | ||
281 | - | func | |
281 | + | func bS (bQ,bR,P) = fraction(bQ, c, bR, P) | |
282 | 282 | ||
283 | 283 | ||
284 | - | func | |
285 | - | let | |
286 | - | let | |
287 | - | if (!( | |
288 | - | then throw(("Big slpg: " + toString( | |
289 | - | else $Tuple2( | |
284 | + | func bT (bU,bV,bW) = { | |
285 | + | let bX = fraction((bU - bV), b, bV) | |
286 | + | let bY = ((bW - W(bX)) > d) | |
287 | + | if (!(bY)) | |
288 | + | then throw(("Big slpg: " + toString(bX))) | |
289 | + | else $Tuple2(bY, min([bU, bV])) | |
290 | 290 | } | |
291 | 291 | ||
292 | 292 | ||
293 | - | func | |
294 | - | let | |
295 | - | let | |
296 | - | if (if ( | |
293 | + | func bZ (ca,cb,cc) = { | |
294 | + | let bX = fraction(cb, b, ca) | |
295 | + | let cd = (cc > bX) | |
296 | + | if (if (cd) | |
297 | 297 | then true | |
298 | - | else ( | |
299 | - | then throw(((((((toString( | |
300 | - | else | |
298 | + | else (cb > ca)) | |
299 | + | then throw(((((((toString(cb) + " ") + toString(ca)) + " ") + toString(bX)) + " ") + toString(cc))) | |
300 | + | else cd | |
301 | 301 | } | |
302 | 302 | ||
303 | 303 | ||
304 | - | func cd (ce,cf,cg,ch) = { | |
305 | - | let ci = H(cg, ce) | |
304 | + | func ce (cf,cg,ch,ci) = { | |
306 | 305 | let cj = H(ch, cf) | |
307 | - | bO(cj, ci) | |
306 | + | let ck = H(ci, cg) | |
307 | + | bP(ck, cj) | |
308 | 308 | } | |
309 | 309 | ||
310 | 310 | ||
311 | - | func ck (cg,ch,cl) = { | |
312 | - | let cm = bn | |
311 | + | func cl (ch,ci,cm) = { | |
313 | 312 | let cn = bo | |
314 | - | let co = cd(cm, cn, cg, ch) | |
315 | - | let bQ = H(cg, cm) | |
316 | - | let bP = H(ch, cn) | |
317 | - | let cp = H(cl, a) | |
318 | - | let cq = bO(bQ, cp) | |
319 | - | let cr = bO(bP, cp) | |
320 | - | [co, cq, cr] | |
313 | + | let co = bp | |
314 | + | let cp = ce(cn, co, ch, ci) | |
315 | + | let bR = H(ch, cn) | |
316 | + | let bQ = H(ci, co) | |
317 | + | let cq = H(cm, a) | |
318 | + | let cr = bP(bR, cq) | |
319 | + | let cs = bP(bQ, cq) | |
320 | + | [cp, cr, cs] | |
321 | 321 | } | |
322 | 322 | ||
323 | 323 | ||
324 | - | func | |
325 | - | let | |
326 | - | [L( | |
324 | + | func ct (ch,ci,cm) = { | |
325 | + | let cu = cl(ch, ci, cm) | |
326 | + | [L(cu[0], a), L(cu[1], a), L(cu[2], a)] | |
327 | 327 | } | |
328 | 328 | ||
329 | 329 | ||
330 | - | func | |
331 | - | let | |
330 | + | func cv (cw,ao) = { | |
331 | + | let cx = if ((ao == 0)) | |
332 | 332 | then 0 | |
333 | - | else fraction( | |
334 | - | $Tuple2(( | |
333 | + | else fraction(cw, ao, a) | |
334 | + | $Tuple2((cw - cx), cx) | |
335 | 335 | } | |
336 | 336 | ||
337 | 337 | ||
338 | - | func | |
339 | - | let | |
340 | - | let | |
341 | - | let | |
342 | - | if (( | |
338 | + | func cy (cz) = { | |
339 | + | let cA = cz[0] | |
340 | + | let cB = cz[1] | |
341 | + | let cC = (cA + cB) | |
342 | + | if ((cC == e)) | |
343 | 343 | then e | |
344 | 344 | else { | |
345 | - | let | |
346 | - | let | |
347 | - | let | |
348 | - | let | |
349 | - | let | |
350 | - | let | |
351 | - | func | |
352 | - | let | |
353 | - | let | |
354 | - | let | |
355 | - | fraction(( | |
345 | + | let cD = parseIntValue(aU) | |
346 | + | let cE = (cD * 2) | |
347 | + | let cu = fraction(cA, cB, f) | |
348 | + | let cF = fraction(cu, i, f) | |
349 | + | let cG = fraction(toBigInt(cE), cC, f) | |
350 | + | let cH = toBigInt((cE - 1)) | |
351 | + | func cI (cJ) = { | |
352 | + | let cK = fraction(cJ, cJ, f) | |
353 | + | let cL = fraction(cK, cJ, f) | |
354 | + | let cM = fraction(cL, f, cF) | |
355 | + | fraction((cG + fraction(cM, g, f)), cJ, (fraction(cH, cJ, f) + fraction(h, cM, f))) | |
356 | 356 | } | |
357 | 357 | ||
358 | - | func | |
359 | - | then | |
358 | + | func cN (cO,cP) = if (cO._2) | |
359 | + | then cO | |
360 | 360 | else { | |
361 | - | let | |
362 | - | let | |
363 | - | let | |
364 | - | let | |
365 | - | then -( | |
366 | - | else | |
367 | - | if ((f >= | |
368 | - | then $Tuple2( | |
369 | - | else $Tuple2( | |
361 | + | let cJ = cO._1 | |
362 | + | let cQ = cI(cJ) | |
363 | + | let cR = (cQ - value(cJ)) | |
364 | + | let cS = if ((e > cR)) | |
365 | + | then -(cR) | |
366 | + | else cR | |
367 | + | if ((f >= cS)) | |
368 | + | then $Tuple2(cQ, true) | |
369 | + | else $Tuple2(cQ, false) | |
370 | 370 | } | |
371 | 371 | ||
372 | - | let | |
373 | - | let | |
374 | - | let | |
375 | - | let | |
376 | - | let | |
377 | - | func | |
378 | - | then | |
379 | - | else | |
372 | + | let cT = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14] | |
373 | + | let cU = { | |
374 | + | let cV = cT | |
375 | + | let cW = size(cV) | |
376 | + | let cX = $Tuple2(cC, false) | |
377 | + | func cY (cZ,da) = if ((da >= cW)) | |
378 | + | then cZ | |
379 | + | else cN(cZ, cV[da]) | |
380 | 380 | ||
381 | - | func | |
382 | - | then | |
381 | + | func db (cZ,da) = if ((da >= cW)) | |
382 | + | then cZ | |
383 | 383 | else throw("List size exceeds 15") | |
384 | 384 | ||
385 | - | | |
385 | + | db(cY(cY(cY(cY(cY(cY(cY(cY(cY(cY(cY(cY(cY(cY(cY(cX, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
386 | 386 | } | |
387 | - | let | |
388 | - | let | |
389 | - | if ( | |
390 | - | then | |
391 | - | else throw(("D calculation error, D = " + toString( | |
387 | + | let cJ = cU._1 | |
388 | + | let dc = cU._2 | |
389 | + | if (dc) | |
390 | + | then cJ | |
391 | + | else throw(("D calculation error, D = " + toString(cJ))) | |
392 | 392 | } | |
393 | 393 | } | |
394 | 394 | ||
395 | 395 | ||
396 | - | func dc (dd,de,df,dg) = { | |
397 | - | let dh = bk | |
398 | - | let di = toBase58String(value(bl)) | |
396 | + | func dd (de,df,dg,dh) = { | |
397 | + | let di = bl | |
399 | 398 | let dj = toBase58String(value(bm)) | |
400 | - | let dk = bn | |
399 | + | let dk = toBase58String(value(bn)) | |
401 | 400 | let dl = bo | |
402 | - | let dm = toString(bj) | |
403 | - | let dn = valueOrErrorMessage(assetInfo(dh), "Wrong LP id").quantity | |
404 | - | if ((toBase58String(dh) != de)) | |
401 | + | let dm = bp | |
402 | + | let dn = toString(bk) | |
403 | + | let do = valueOrErrorMessage(assetInfo(di), "Wrong LP id").quantity | |
404 | + | if ((toBase58String(di) != df)) | |
405 | 405 | then throw("Wrong pmt asset") | |
406 | 406 | else { | |
407 | - | let do = bM(di) | |
408 | - | let dp = H(do, dk) | |
409 | - | let dq = bM(dj) | |
410 | - | let dr = H(dq, dl) | |
411 | - | let ds = bO(dr, dp) | |
412 | - | let dt = L(ds, a) | |
413 | - | let du = H(df, a) | |
414 | - | let dv = H(dn, a) | |
415 | - | let dw = fraction(dp, du, dv) | |
416 | - | let dx = fraction(dr, du, dv) | |
417 | - | let dy = O(dw, dk, FLOOR) | |
407 | + | let dp = bN(dj) | |
408 | + | let dq = H(dp, dl) | |
409 | + | let dr = bN(dk) | |
410 | + | let ds = H(dr, dm) | |
411 | + | let dt = bP(ds, dq) | |
412 | + | let du = L(dt, a) | |
413 | + | let dv = H(dg, a) | |
414 | + | let dw = H(do, a) | |
415 | + | let dx = fraction(dq, dv, dw) | |
416 | + | let dy = fraction(ds, dv, dw) | |
418 | 417 | let dz = O(dx, dl, FLOOR) | |
419 | - | let dA = if ((dd == "")) | |
418 | + | let dA = O(dy, dm, FLOOR) | |
419 | + | let dB = if ((de == "")) | |
420 | 420 | then nil | |
421 | - | else [ScriptTransfer( | |
421 | + | else [ScriptTransfer(dh, dz, if ((dj == "WAVES")) | |
422 | 422 | then unit | |
423 | - | else fromBase58String( | |
423 | + | else fromBase58String(dj)), ScriptTransfer(dh, dA, if ((dk == "WAVES")) | |
424 | 424 | then unit | |
425 | - | else fromBase58String( | |
426 | - | $Tuple10( | |
425 | + | else fromBase58String(dk)), StringEntry(ai(toString(dh), de), bJ(dz, dA, dg, du, height, lastBlock.timestamp)), IntegerEntry(ab(), du), IntegerEntry(ac(height, lastBlock.timestamp), du)] | |
426 | + | $Tuple10(dz, dA, dj, dk, dp, dr, do, dt, dn, dB) | |
427 | 427 | } | |
428 | 428 | } | |
429 | 429 | ||
430 | 430 | ||
431 | - | func dB (dd,bV,dC,dD,dE,dF,dg,dG,dH,dI,dJ,dK,dL) = { | |
432 | - | let dh = bk | |
433 | - | let dM = toBase58String(value(bl)) | |
431 | + | func dC (de,bW,dD,dE,dF,dG,dh,dH,dI,dJ,dK,dL,dM) = { | |
432 | + | let di = bl | |
434 | 433 | let dN = toBase58String(value(bm)) | |
435 | - | let dO = | |
434 | + | let dO = toBase58String(value(bn)) | |
436 | 435 | let dP = bq | |
437 | - | let dQ = | |
436 | + | let dQ = br | |
438 | 437 | let dR = bo | |
439 | - | let dm = toString(bj) | |
440 | - | let dS = valueOrErrorMessage(assetInfo(dh), "Wr lp as").quantity | |
441 | - | let do = if (dG) | |
442 | - | then bM(dM) | |
443 | - | else if (if (dI) | |
444 | - | then (dL == dM) | |
438 | + | let dS = bp | |
439 | + | let dn = toString(bk) | |
440 | + | let dT = valueOrErrorMessage(assetInfo(di), "Wr lp as").quantity | |
441 | + | let dp = if (dH) | |
442 | + | then bN(dN) | |
443 | + | else if (if (dJ) | |
444 | + | then (dM == dN) | |
445 | 445 | else false) | |
446 | - | then ( | |
447 | - | else if ( | |
448 | - | then | |
449 | - | else ( | |
450 | - | let | |
451 | - | then | |
452 | - | else if (if ( | |
453 | - | then ( | |
446 | + | then (bN(dN) - dL) | |
447 | + | else if (dJ) | |
448 | + | then bN(dN) | |
449 | + | else (bN(dN) - dD) | |
450 | + | let dr = if (dH) | |
451 | + | then bN(dO) | |
452 | + | else if (if (dJ) | |
453 | + | then (dM == dO) | |
454 | 454 | else false) | |
455 | - | then ( | |
456 | - | else if ( | |
457 | - | then | |
458 | - | else ( | |
459 | - | let | |
460 | - | let | |
461 | - | let | |
462 | - | let | |
463 | - | let | |
464 | - | let | |
465 | - | let | |
455 | + | then (bN(dO) - dL) | |
456 | + | else if (dJ) | |
457 | + | then bN(dO) | |
458 | + | else (bN(dO) - dF) | |
459 | + | let dU = H(dD, dR) | |
460 | + | let dV = H(dF, dS) | |
461 | + | let dW = bP(dV, dU) | |
462 | + | let dq = H(dp, dR) | |
463 | + | let ds = H(dr, dS) | |
464 | + | let cb = cy([dq, ds]) | |
465 | + | let dX = if ((dT == 0)) | |
466 | 466 | then { | |
467 | - | let | |
468 | - | let | |
467 | + | let ca = cy([(dq + dU), (ds + dV)]) | |
468 | + | let dY = if ((ca > cb)) | |
469 | 469 | then true | |
470 | 470 | else throw("D1 should be greater than D0") | |
471 | - | if (( | |
471 | + | if ((dY == dY)) | |
472 | 472 | then { | |
473 | - | let | |
474 | - | let | |
475 | - | let | |
476 | - | $Tuple5(L( | |
473 | + | let dt = d | |
474 | + | let dZ = d | |
475 | + | let cq = ca | |
476 | + | $Tuple5(L(cq, a), L(dU, dR), L(dV, dS), bP((ds + dV), (dq + dU)), dZ) | |
477 | 477 | } | |
478 | 478 | else throw("Strict value is not equal to itself.") | |
479 | 479 | } | |
480 | 480 | else { | |
481 | - | let | |
482 | - | let | |
483 | - | let | |
484 | - | if (if (if ( | |
485 | - | then ( | |
481 | + | let dt = bP(ds, dq) | |
482 | + | let ea = fraction(W((dt - dW)), c, dt) | |
483 | + | let dZ = H(bW, a) | |
484 | + | if (if (if (dK) | |
485 | + | then (dt != d) | |
486 | 486 | else false) | |
487 | - | then ( | |
487 | + | then (ea > dZ) | |
488 | 488 | else false) | |
489 | - | then throw(((("Price slippage " + toString( | |
489 | + | then throw(((("Price slippage " + toString(ea)) + " > ") + toString(dZ))) | |
490 | 490 | else { | |
491 | - | let | |
492 | - | let | |
493 | - | let | |
494 | - | let | |
495 | - | then $Tuple2( | |
496 | - | else $Tuple2( | |
497 | - | let | |
498 | - | let | |
499 | - | let | |
500 | - | let | |
491 | + | let eb = H(dT, a) | |
492 | + | let ec = fraction(dU, bS(ds, dq, CEILING), c, CEILING) | |
493 | + | let ed = fraction(dV, c, bS(ds, dq, FLOOR), CEILING) | |
494 | + | let ee = if ((ec > dV)) | |
495 | + | then $Tuple2(ed, dV) | |
496 | + | else $Tuple2(dU, ec) | |
497 | + | let ef = ee._1 | |
498 | + | let eg = ee._2 | |
499 | + | let ca = cy([(dq + ef), (ds + eg)]) | |
500 | + | let dY = if ((ca > cb)) | |
501 | 501 | then true | |
502 | 502 | else throw("D1 should be greater than D0") | |
503 | - | if (( | |
503 | + | if ((dY == dY)) | |
504 | 504 | then { | |
505 | - | let | |
506 | - | $Tuple5(O( | |
505 | + | let cq = fraction(eb, (ca - cb), cb) | |
506 | + | $Tuple5(O(cq, a, FLOOR), O(ef, dR, CEILING), O(eg, dS, CEILING), dt, dZ) | |
507 | 507 | } | |
508 | 508 | else throw("Strict value is not equal to itself.") | |
509 | 509 | } | |
510 | 510 | } | |
511 | - | let | |
512 | - | let | |
513 | - | let | |
514 | - | let | |
515 | - | let | |
516 | - | if ((0 >= | |
511 | + | let eh = dX._1 | |
512 | + | let ei = dX._2 | |
513 | + | let ej = dX._3 | |
514 | + | let du = L(dX._4, a) | |
515 | + | let ek = L(dX._5, a) | |
516 | + | if ((0 >= eh)) | |
517 | 517 | then throw("LP <= 0") | |
518 | 518 | else { | |
519 | - | let | |
519 | + | let el = if (!(dI)) | |
520 | 520 | then 0 | |
521 | - | else | |
522 | - | let | |
523 | - | let | |
524 | - | let | |
525 | - | then ( | |
521 | + | else eh | |
522 | + | let em = (dD - ei) | |
523 | + | let en = (dF - ej) | |
524 | + | let eo = if (if (dJ) | |
525 | + | then (dM == dN) | |
526 | 526 | else false) | |
527 | - | then $Tuple2( | |
528 | - | else if (if ( | |
529 | - | then ( | |
527 | + | then $Tuple2(dL, 0) | |
528 | + | else if (if (dJ) | |
529 | + | then (dM == dO) | |
530 | 530 | else false) | |
531 | - | then $Tuple2(0, | |
532 | - | else $Tuple2( | |
533 | - | let | |
534 | - | let | |
535 | - | let | |
536 | - | $Tuple13( | |
531 | + | then $Tuple2(0, dL) | |
532 | + | else $Tuple2(ei, ej) | |
533 | + | let ep = eo._1 | |
534 | + | let eq = eo._2 | |
535 | + | let er = [IntegerEntry(ab(), du), IntegerEntry(ac(height, lastBlock.timestamp), du), StringEntry(af(dh, de), by(ep, eq, el, du, bW, ek, height, lastBlock.timestamp, em, en))] | |
536 | + | $Tuple13(eh, el, du, dp, dr, dT, di, dn, er, em, en, dE, dG) | |
537 | 537 | } | |
538 | 538 | } | |
539 | 539 | ||
540 | 540 | ||
541 | - | func | |
542 | - | let | |
543 | - | let | |
541 | + | func es (cz,cP,et) = { | |
542 | + | let eu = g | |
543 | + | let ev = cz[if ((cP == 0)) | |
544 | 544 | then 1 | |
545 | 545 | else 0] | |
546 | - | let | |
547 | - | let | |
548 | - | let | |
549 | - | let | |
550 | - | let | |
551 | - | let | |
552 | - | func | |
553 | - | let | |
554 | - | let | |
555 | - | let | |
556 | - | if (( | |
557 | - | then | |
546 | + | let ew = parseBigIntValue(l) | |
547 | + | let cD = (parseBigIntValue(aU) * ew) | |
548 | + | let cC = ev | |
549 | + | let cE = (cD * eu) | |
550 | + | let ex = (((((et * et) / (ev * eu)) * et) * ew) / (cE * eu)) | |
551 | + | let ey = ((cC + ((et * ew) / cE)) - et) | |
552 | + | func cN (cO,ez) = { | |
553 | + | let eA = cO | |
554 | + | let eB = eA._1 | |
555 | + | let dc = eA._2 | |
556 | + | if ((dc != unit)) | |
557 | + | then cO | |
558 | 558 | else { | |
559 | - | let | |
560 | - | let | |
561 | - | if ((f >= | |
562 | - | then $Tuple2( | |
563 | - | else $Tuple2( | |
559 | + | let eC = (((eB * eB) + ex) / ((g * eB) + ey)) | |
560 | + | let eD = X((eC - value(eB))) | |
561 | + | if ((f >= eD)) | |
562 | + | then $Tuple2(eC, ez) | |
563 | + | else $Tuple2(eC, unit) | |
564 | 564 | } | |
565 | 565 | } | |
566 | 566 | ||
567 | - | let | |
568 | - | let | |
569 | - | let | |
570 | - | let | |
571 | - | let | |
572 | - | func | |
573 | - | then | |
574 | - | else | |
567 | + | let cT = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14] | |
568 | + | let eE = { | |
569 | + | let cV = cT | |
570 | + | let cW = size(cV) | |
571 | + | let cX = $Tuple2(et, unit) | |
572 | + | func cY (cZ,da) = if ((da >= cW)) | |
573 | + | then cZ | |
574 | + | else cN(cZ, cV[da]) | |
575 | 575 | ||
576 | - | func | |
577 | - | then | |
576 | + | func db (cZ,da) = if ((da >= cW)) | |
577 | + | then cZ | |
578 | 578 | else throw("List size exceeds 15") | |
579 | 579 | ||
580 | - | | |
580 | + | db(cY(cY(cY(cY(cY(cY(cY(cY(cY(cY(cY(cY(cY(cY(cY(cX, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
581 | 581 | } | |
582 | - | let | |
583 | - | let | |
584 | - | if (( | |
585 | - | then | |
586 | - | else throw(("Y calculation error, Y = " + toString( | |
582 | + | let eB = eE._1 | |
583 | + | let dc = eE._2 | |
584 | + | if ((dc != unit)) | |
585 | + | then eB | |
586 | + | else throw(("Y calculation error, Y = " + toString(eB))) | |
587 | 587 | } | |
588 | 588 | ||
589 | 589 | ||
590 | - | func | |
591 | - | let | |
592 | - | if (( | |
590 | + | func eF (eG,eH,eI) = { | |
591 | + | let eJ = fraction(cy([K(eG, toBigInt(bo)), K(eH, toBigInt(bp))]), c, eI) | |
592 | + | if ((eI == e)) | |
593 | 593 | then e | |
594 | - | else | |
594 | + | else eJ | |
595 | 595 | } | |
596 | 596 | ||
597 | 597 | ||
598 | - | func | |
599 | - | let | |
600 | - | let | |
601 | - | let | |
602 | - | let | |
603 | - | | |
598 | + | func eK (eL,eM,eN) = { | |
599 | + | let eO = (toBigInt(bN(be(bm))) - eL) | |
600 | + | let eP = (toBigInt(bN(be(bn))) - eM) | |
601 | + | let eQ = (toBigInt(value(assetInfo(bl)).quantity) - eN) | |
602 | + | let eR = eF(eO, eP, eQ) | |
603 | + | eR | |
604 | 604 | } | |
605 | 605 | ||
606 | 606 | ||
607 | - | func | |
608 | - | let | |
609 | - | let | |
610 | - | let | |
611 | - | let | |
612 | - | let | |
613 | - | $Tuple2( | |
607 | + | func eS (eT,eU,eN) = { | |
608 | + | let eO = (bN(be(bm)) + eT) | |
609 | + | let eP = (bN(be(bn)) + eU) | |
610 | + | let eQ = (value(assetInfo(bl)).quantity + eN) | |
611 | + | let eJ = eF(toBigInt(eO), toBigInt(eP), toBigInt(eQ)) | |
612 | + | let eV = [IntegerEntry(aq, height), StringEntry(ap, toString(eJ))] | |
613 | + | $Tuple2(eV, eJ) | |
614 | 614 | } | |
615 | 615 | ||
616 | 616 | ||
617 | - | func | |
617 | + | func eW (eX,eJ) = if ((eJ >= eX)) | |
618 | 618 | then true | |
619 | - | else | |
619 | + | else aN("updated DLp lower than current DLp") | |
620 | 620 | ||
621 | 621 | ||
622 | - | func | |
623 | - | let | |
624 | - | let | |
625 | - | let | |
626 | - | then $Tuple2( | |
627 | - | else $Tuple2(-( | |
628 | - | let | |
629 | - | let | |
630 | - | if (if (if ( | |
622 | + | func eY (eZ) = { | |
623 | + | let fa = eZ.amount | |
624 | + | let fb = fraction(eZ.amount, eZ.price, a, FLOOR) | |
625 | + | let fc = if ((eZ.orderType == Buy)) | |
626 | + | then $Tuple2(fa, -(fb)) | |
627 | + | else $Tuple2(-(fa), fb) | |
628 | + | let eT = fc._1 | |
629 | + | let eU = fc._2 | |
630 | + | if (if (if (aV()) | |
631 | 631 | then true | |
632 | - | else ( | |
632 | + | else (bk == r)) | |
633 | 633 | then true | |
634 | - | else ( | |
634 | + | else (bk == s)) | |
635 | 635 | then throw("Admin blocked") | |
636 | - | else if (if (( | |
636 | + | else if (if ((eZ.assetPair.amountAsset != bm)) | |
637 | 637 | then true | |
638 | - | else ( | |
638 | + | else (eZ.assetPair.priceAsset != bn)) | |
639 | 639 | then throw("Wr assets") | |
640 | 640 | else { | |
641 | - | let fc = parseBigIntValue(getStringValue(this, ap)) | |
642 | - | let fd = eR(eS, eT, 0) | |
643 | - | let fe = fd._1 | |
644 | - | let ff = fd._2 | |
645 | - | let fg = (ff >= fc) | |
646 | - | fg | |
641 | + | let fd = parseBigIntValue(getStringValue(this, ap)) | |
642 | + | let fe = eS(eT, eU, 0) | |
643 | + | let ff = fe._1 | |
644 | + | let fg = fe._2 | |
645 | + | let fh = (fg >= fd) | |
646 | + | let fi = makeString([toString(fd), toString(fg)], " ") | |
647 | + | $Tuple2(fh, fi) | |
647 | 648 | } | |
648 | 649 | } | |
649 | 650 | ||
650 | 651 | ||
651 | - | func | |
652 | + | func fj (cP) = if ((size(cP.payments) != 1)) | |
652 | 653 | then throw("1 pmnt exp") | |
653 | 654 | else { | |
654 | - | let | |
655 | - | let | |
656 | - | let | |
657 | - | let | |
658 | - | let | |
659 | - | let | |
660 | - | let | |
661 | - | let | |
662 | - | if (if ( | |
655 | + | let fk = value(cP.payments[0]) | |
656 | + | let df = value(fk.assetId) | |
657 | + | let dL = fk.amount | |
658 | + | let dX = dd(toBase58String(cP.transactionId), toBase58String(df), dL, cP.caller) | |
659 | + | let dz = dX._1 | |
660 | + | let dA = dX._2 | |
661 | + | let dn = parseIntValue(dX._9) | |
662 | + | let dB = dX._10 | |
663 | + | if (if (aV()) | |
663 | 664 | then true | |
664 | - | else ( | |
665 | - | then throw(("Admin blocked: " + toString( | |
666 | - | else $Tuple5( | |
665 | + | else (dn == s)) | |
666 | + | then throw(("Admin blocked: " + toString(dn))) | |
667 | + | else $Tuple5(dz, dA, dL, df, dB) | |
667 | 668 | } | |
668 | 669 | ||
669 | 670 | ||
670 | - | func | |
671 | - | let | |
672 | - | let | |
673 | - | if (if (if ( | |
671 | + | func fl (fm,ah,fn,fo,bW,dI,dJ,dK,dL,dM) = { | |
672 | + | let dX = dC(ah, bW, value(fn).amount, value(fn).assetId, value(fo).amount, value(fo).assetId, fm, (ah == ""), dI, dJ, dK, dL, dM) | |
673 | + | let dn = parseIntValue(dX._8) | |
674 | + | if (if (if (aV()) | |
674 | 675 | then true | |
675 | - | else ( | |
676 | + | else (dn == q)) | |
676 | 677 | then true | |
677 | - | else ( | |
678 | - | then throw(("Blocked:" + toString( | |
679 | - | else | |
678 | + | else (dn == s)) | |
679 | + | then throw(("Blocked:" + toString(dn))) | |
680 | + | else dX | |
680 | 681 | } | |
681 | 682 | ||
682 | 683 | ||
683 | - | func fn (fo,de,dg,ah,fp) = { | |
684 | - | let di = toBase58String(value(bl)) | |
684 | + | func fp (fq,df,dh,ah,fr) = { | |
685 | 685 | let dj = toBase58String(value(bm)) | |
686 | - | let | |
687 | - | let | |
686 | + | let dk = toBase58String(value(bn)) | |
687 | + | let di = bl | |
688 | 688 | let dR = bo | |
689 | - | let eP = toBigInt(valueOrErrorMessage(assetInfo(dh), "invalid lp asset").quantity) | |
690 | - | let fq = if ((eP > e)) | |
689 | + | let dS = bp | |
690 | + | let eQ = toBigInt(valueOrErrorMessage(assetInfo(di), "invalid lp asset").quantity) | |
691 | + | let fs = if ((eQ > e)) | |
691 | 692 | then true | |
692 | 693 | else throw("initial deposit requires all coins") | |
693 | - | if (( | |
694 | + | if ((fs == fs)) | |
694 | 695 | then { | |
695 | - | let | |
696 | - | let | |
697 | - | let | |
698 | - | then $Tuple2( | |
699 | - | else if (( | |
700 | - | then if (( | |
696 | + | let dp = bN(dj) | |
697 | + | let dr = bN(dk) | |
698 | + | let ft = if ((ah == "")) | |
699 | + | then $Tuple2(dp, dr) | |
700 | + | else if ((df == dj)) | |
701 | + | then if ((fq > dp)) | |
701 | 702 | then throw("invalid payment amount") | |
702 | - | else $Tuple2(( | |
703 | - | else if (( | |
704 | - | then if (( | |
703 | + | else $Tuple2((dp - fq), dr) | |
704 | + | else if ((df == dk)) | |
705 | + | then if ((fq > dr)) | |
705 | 706 | then throw("invalid payment amount") | |
706 | - | else $Tuple2( | |
707 | + | else $Tuple2(dp, (dr - fq)) | |
707 | 708 | else throw("wrong pmtAssetId") | |
708 | - | let | |
709 | - | let | |
710 | - | let | |
711 | - | then $Tuple2( | |
712 | - | else if (( | |
713 | - | then $Tuple2(0, | |
709 | + | let fu = ft._1 | |
710 | + | let fv = ft._2 | |
711 | + | let fw = if ((df == dj)) | |
712 | + | then $Tuple2(fq, 0) | |
713 | + | else if ((df == dk)) | |
714 | + | then $Tuple2(0, fq) | |
714 | 715 | else throw("invalid payment") | |
715 | - | let | |
716 | - | let | |
717 | - | let | |
718 | - | then $Tuple3( | |
719 | - | else $Tuple3( | |
720 | - | let | |
721 | - | let | |
722 | - | let | |
723 | - | let | |
724 | - | let | |
725 | - | let | |
726 | - | let | |
727 | - | let | |
716 | + | let fx = fw._1 | |
717 | + | let fy = fw._2 | |
718 | + | let fz = if (fr) | |
719 | + | then $Tuple3(cv(fx, aR)._1, cv(fy, aR)._1, cv(fq, aR)._2) | |
720 | + | else $Tuple3(fx, fy, 0) | |
721 | + | let fA = fz._1 | |
722 | + | let fB = fz._2 | |
723 | + | let cx = fz._3 | |
724 | + | let fC = (fu + fA) | |
725 | + | let fD = (fv + fB) | |
726 | + | let cb = cy([H(fu, bo), H(fv, bp)]) | |
727 | + | let ca = cy([H(fC, bo), H(fD, bp)]) | |
728 | + | let dY = if ((ca > cb)) | |
728 | 729 | then true | |
729 | 730 | else throw() | |
730 | - | if (( | |
731 | + | if ((dY == dY)) | |
731 | 732 | then { | |
732 | - | let | |
733 | - | let | |
734 | - | let | |
735 | - | let | |
736 | - | let | |
737 | - | let | |
738 | - | let | |
739 | - | let | |
740 | - | $Tuple4(toInt( | |
733 | + | let fE = fraction(eQ, (ca - cb), cb, FLOOR) | |
734 | + | let du = L(bP(H(fD, dS), H(fC, dR)), a) | |
735 | + | let er = [IntegerEntry(ab(), du), IntegerEntry(ac(height, lastBlock.timestamp), du), StringEntry(af(dh, ah), by(fx, fy, toInt(fE), du, 0, 0, height, lastBlock.timestamp, 0, 0))] | |
736 | + | let fF = fraction(fv, a, fu) | |
737 | + | let fG = fraction(fq, a, (fF + a)) | |
738 | + | let fH = (fq - fG) | |
739 | + | let fI = fraction(eQ, toBigInt(fH), toBigInt(fv)) | |
740 | + | let fJ = toInt(fraction((fE - fI), b, fI)) | |
741 | + | $Tuple4(toInt(fE), er, cx, fJ) | |
741 | 742 | } | |
742 | 743 | else throw("Strict value is not equal to itself.") | |
743 | 744 | } | |
744 | 745 | else throw("Strict value is not equal to itself.") | |
745 | 746 | } | |
746 | 747 | ||
747 | 748 | ||
748 | - | func fI (fJ,fK,fL,fk,fM,fN) = { | |
749 | - | let dh = toBase58String(value(bk)) | |
749 | + | func fK (fL,fM,fN,fm,fO,fP) = { | |
750 | 750 | let di = toBase58String(value(bl)) | |
751 | 751 | let dj = toBase58String(value(bm)) | |
752 | - | let fO = bn | |
753 | - | let fP = bo | |
754 | - | let fQ = bj | |
755 | - | let dg = if ((fk == bw)) | |
756 | - | then fM | |
757 | - | else fk | |
758 | - | let fi = value(fL[0]) | |
759 | - | let de = value(fi.assetId) | |
760 | - | let dK = fi.amount | |
761 | - | let eQ = eJ(e, e, e) | |
762 | - | if ((eQ == eQ)) | |
752 | + | let dk = toBase58String(value(bn)) | |
753 | + | let fQ = bo | |
754 | + | let fR = bp | |
755 | + | let fS = bk | |
756 | + | let dh = if ((fm == bx)) | |
757 | + | then fO | |
758 | + | else fm | |
759 | + | let fk = value(fN[0]) | |
760 | + | let df = value(fk.assetId) | |
761 | + | let dL = fk.amount | |
762 | + | let eR = eK(e, e, e) | |
763 | + | if ((eR == eR)) | |
763 | 764 | then { | |
764 | - | let | |
765 | - | if (( | |
765 | + | let de = toBase58String(fP) | |
766 | + | if ((di != toBase58String(df))) | |
766 | 767 | then throw("Wrong LP") | |
767 | 768 | else { | |
768 | - | let | |
769 | - | let | |
770 | - | let | |
771 | - | let | |
772 | - | if ($isInstanceOf( | |
773 | - | then | |
774 | - | else throw(($getType( | |
769 | + | let dp = bN(dj) | |
770 | + | let dr = bN(dk) | |
771 | + | let fT = { | |
772 | + | let aS = invoke(this, "getOneTknV2READONLY", [fL, dL], nil) | |
773 | + | if ($isInstanceOf(aS, "(Int, Int)")) | |
774 | + | then aS | |
775 | + | else throw(($getType(aS) + " couldn't be cast to (Int, Int)")) | |
775 | 776 | } | |
776 | - | if (( | |
777 | + | if ((fT == fT)) | |
777 | 778 | then { | |
778 | - | let | |
779 | - | let | |
780 | - | let | |
781 | - | then ( | |
779 | + | let cx = fT._2 | |
780 | + | let fU = fT._1 | |
781 | + | let fV = if (if ((fM > 0)) | |
782 | + | then (fM > fU) | |
782 | 783 | else false) | |
783 | - | then | |
784 | - | else | |
785 | - | let | |
786 | - | then $Tuple4( | |
787 | - | else if (( | |
788 | - | then $Tuple4(0, | |
784 | + | then aN(makeString(["amount to receive is less than ", toString(fM)], "")) | |
785 | + | else fU | |
786 | + | let fW = if ((fL == dj)) | |
787 | + | then $Tuple4(fV, 0, ((dp - fV) - cx), dr) | |
788 | + | else if ((fL == dk)) | |
789 | + | then $Tuple4(0, fV, dp, ((dr - fV) - cx)) | |
789 | 790 | else throw("invalid out asset id") | |
790 | - | let | |
791 | - | let | |
792 | - | let | |
793 | - | let | |
794 | - | let | |
795 | - | let | |
796 | - | let | |
791 | + | let fX = fW._1 | |
792 | + | let fY = fW._2 | |
793 | + | let fC = fW._3 | |
794 | + | let fD = fW._4 | |
795 | + | let fZ = bP(H(fD, fR), H(fC, fQ)) | |
796 | + | let ga = L(fZ, a) | |
797 | + | let gb = if ((fL == "WAVES")) | |
797 | 798 | then unit | |
798 | - | else fromBase58String( | |
799 | - | let | |
800 | - | then [ScriptTransfer( | |
799 | + | else fromBase58String(fL) | |
800 | + | let gc = if ((cx > 0)) | |
801 | + | then [ScriptTransfer(aX, cx, gb)] | |
801 | 802 | else nil | |
802 | - | let | |
803 | - | if (( | |
803 | + | let dB = ([ScriptTransfer(dh, fV, gb), StringEntry(ai(toString(dh), de), bJ(fX, fY, dL, ga, height, lastBlock.timestamp)), IntegerEntry(ab(), ga), IntegerEntry(ac(height, lastBlock.timestamp), ga)] ++ gc) | |
804 | + | if ((dB == dB)) | |
804 | 805 | then { | |
805 | - | let | |
806 | - | if (( | |
806 | + | let gd = invoke(aQ, "burn", [dL], [AttachedPayment(df, dL)]) | |
807 | + | if ((gd == gd)) | |
807 | 808 | then { | |
808 | - | let | |
809 | - | let | |
809 | + | let ge = { | |
810 | + | let gf = if ((this == aX)) | |
810 | 811 | then 0 | |
811 | - | else | |
812 | - | let | |
812 | + | else cx | |
813 | + | let gg = if ((bc(fL) == bm)) | |
813 | 814 | then true | |
814 | 815 | else false | |
815 | - | if ( | |
816 | - | then $Tuple2(-(( | |
817 | - | else $Tuple2(0, -(( | |
816 | + | if (gg) | |
817 | + | then $Tuple2(-((fU + gf)), 0) | |
818 | + | else $Tuple2(0, -((fU + gf))) | |
818 | 819 | } | |
819 | - | let | |
820 | - | let | |
821 | - | let | |
822 | - | let | |
823 | - | let | |
824 | - | let | |
825 | - | if (( | |
826 | - | then $Tuple2(( | |
820 | + | let eT = ge._1 | |
821 | + | let eU = ge._2 | |
822 | + | let gh = eS(eT, eU, 0) | |
823 | + | let gi = gh._1 | |
824 | + | let eJ = gh._2 | |
825 | + | let gj = eW(eR, eJ) | |
826 | + | if ((gj == gj)) | |
827 | + | then $Tuple2((dB ++ gi), fV) | |
827 | 828 | else throw("Strict value is not equal to itself.") | |
828 | 829 | } | |
829 | 830 | else throw("Strict value is not equal to itself.") | |
830 | 831 | } | |
831 | 832 | else throw("Strict value is not equal to itself.") | |
832 | 833 | } | |
833 | 834 | else throw("Strict value is not equal to itself.") | |
834 | 835 | } | |
835 | 836 | } | |
836 | 837 | else throw("Strict value is not equal to itself.") | |
837 | 838 | } | |
838 | 839 | ||
839 | 840 | ||
840 | - | func | |
841 | - | let | |
842 | - | if ($isInstanceOf( | |
841 | + | func gk () = { | |
842 | + | let gl = getString(Z()) | |
843 | + | if ($isInstanceOf(gl, "String")) | |
843 | 844 | then { | |
844 | - | let | |
845 | - | fromBase58String( | |
845 | + | let cC = gl | |
846 | + | fromBase58String(cC) | |
846 | 847 | } | |
847 | - | else if ($isInstanceOf( | |
848 | + | else if ($isInstanceOf(gl, "Unit")) | |
848 | 849 | then unit | |
849 | 850 | else throw("Match error") | |
850 | 851 | } | |
851 | 852 | ||
852 | 853 | ||
853 | - | func | |
854 | - | let | |
855 | - | if ($isInstanceOf( | |
854 | + | func gm () = { | |
855 | + | let gl = getString(aa()) | |
856 | + | if ($isInstanceOf(gl, "String")) | |
856 | 857 | then { | |
857 | - | let | |
858 | - | fromBase58String( | |
858 | + | let cC = gl | |
859 | + | fromBase58String(cC) | |
859 | 860 | } | |
860 | - | else if ($isInstanceOf( | |
861 | + | else if ($isInstanceOf(gl, "Unit")) | |
861 | 862 | then unit | |
862 | 863 | else throw("Match error") | |
863 | 864 | } | |
864 | 865 | ||
865 | 866 | ||
866 | - | let | |
867 | + | let gn = throw("Permission denied") | |
867 | 868 | ||
868 | - | func | |
869 | - | let | |
870 | - | if ($isInstanceOf( | |
869 | + | func go (cP) = { | |
870 | + | let gl = gk() | |
871 | + | if ($isInstanceOf(gl, "ByteVector")) | |
871 | 872 | then { | |
872 | - | let | |
873 | - | ( | |
873 | + | let gp = gl | |
874 | + | (cP.callerPublicKey == gp) | |
874 | 875 | } | |
875 | - | else if ($isInstanceOf( | |
876 | - | then ( | |
876 | + | else if ($isInstanceOf(gl, "Unit")) | |
877 | + | then (cP.caller == this) | |
877 | 878 | else throw("Match error") | |
878 | 879 | } | |
879 | 880 | ||
880 | 881 | ||
881 | - | func | |
882 | - | let | |
883 | - | if ($isInstanceOf( | |
882 | + | func gq (cP) = { | |
883 | + | let gl = gk() | |
884 | + | if ($isInstanceOf(gl, "ByteVector")) | |
884 | 885 | then { | |
885 | - | let | |
886 | - | if (( | |
886 | + | let gp = gl | |
887 | + | if ((cP.callerPublicKey == gp)) | |
887 | 888 | then true | |
888 | - | else | |
889 | + | else gn | |
889 | 890 | } | |
890 | - | else if ($isInstanceOf( | |
891 | - | then if (( | |
891 | + | else if ($isInstanceOf(gl, "Unit")) | |
892 | + | then if ((cP.caller == this)) | |
892 | 893 | then true | |
893 | - | else | |
894 | + | else gn | |
894 | 895 | else throw("Match error") | |
895 | 896 | } | |
896 | 897 | ||
897 | 898 | ||
898 | - | @Callable( | |
899 | + | @Callable(cP) | |
899 | 900 | func constructor (Y) = { | |
900 | - | let | |
901 | - | if (( | |
901 | + | let ex = gq(cP) | |
902 | + | if ((ex == ex)) | |
902 | 903 | then [StringEntry(Y(), Y)] | |
903 | 904 | else throw("Strict value is not equal to itself.") | |
904 | 905 | } | |
905 | 906 | ||
906 | 907 | ||
907 | 908 | ||
908 | - | @Callable( | |
909 | - | func setManager ( | |
910 | - | let | |
911 | - | if (( | |
909 | + | @Callable(cP) | |
910 | + | func setManager (gr) = { | |
911 | + | let ex = gq(cP) | |
912 | + | if ((ex == ex)) | |
912 | 913 | then { | |
913 | - | let | |
914 | - | if (( | |
915 | - | then [StringEntry(aa(), | |
914 | + | let gs = fromBase58String(gr) | |
915 | + | if ((gs == gs)) | |
916 | + | then [StringEntry(aa(), gr)] | |
916 | 917 | else throw("Strict value is not equal to itself.") | |
917 | 918 | } | |
918 | 919 | else throw("Strict value is not equal to itself.") | |
919 | 920 | } | |
920 | 921 | ||
921 | 922 | ||
922 | 923 | ||
923 | - | @Callable( | |
924 | + | @Callable(cP) | |
924 | 925 | func confirmManager () = { | |
925 | - | let | |
926 | - | let | |
926 | + | let cu = gm() | |
927 | + | let gt = if (isDefined(cu)) | |
927 | 928 | then true | |
928 | 929 | else throw("No pending manager") | |
929 | - | if (( | |
930 | + | if ((gt == gt)) | |
930 | 931 | then { | |
931 | - | let | |
932 | + | let gu = if ((cP.callerPublicKey == value(cu))) | |
932 | 933 | then true | |
933 | 934 | else throw("You are not pending manager") | |
934 | - | if (( | |
935 | - | then [StringEntry(Z(), toBase58String(value( | |
935 | + | if ((gu == gu)) | |
936 | + | then [StringEntry(Z(), toBase58String(value(cu))), DeleteEntry(aa())] | |
936 | 937 | else throw("Strict value is not equal to itself.") | |
937 | 938 | } | |
938 | 939 | else throw("Strict value is not equal to itself.") | |
939 | 940 | } | |
940 | 941 | ||
941 | 942 | ||
942 | 943 | ||
943 | - | @Callable( | |
944 | - | func put ( | |
945 | - | let | |
946 | - | let | |
947 | - | let | |
948 | - | if ((0 > | |
944 | + | @Callable(cP) | |
945 | + | func put (gv,gw) = { | |
946 | + | let gx = bs() | |
947 | + | let gy = valueOrErrorMessage(addressFromString(gx[C]), "Wr st addr") | |
948 | + | let gz = valueOrErrorMessage(addressFromString(gx[E]), "Wr sl addr") | |
949 | + | if ((0 > gv)) | |
949 | 950 | then throw("Wrong slippage") | |
950 | - | else if ((size( | |
951 | + | else if ((size(cP.payments) != 2)) | |
951 | 952 | then throw("2 pmnts expd") | |
952 | 953 | else { | |
953 | - | let | |
954 | - | let | |
955 | - | let | |
956 | - | if (( | |
954 | + | let gA = toBigInt(value(cP.payments[0]).amount) | |
955 | + | let gB = toBigInt(value(cP.payments[1]).amount) | |
956 | + | let eO = (toBigInt(bN(be(bm))) - gA) | |
957 | + | if ((eO == eO)) | |
957 | 958 | then { | |
958 | - | let | |
959 | - | if (( | |
959 | + | let eP = (toBigInt(bN(be(bn))) - gB) | |
960 | + | if ((eP == eP)) | |
960 | 961 | then { | |
961 | - | let | |
962 | - | if (( | |
962 | + | let eQ = toBigInt(value(assetInfo(bl)).quantity) | |
963 | + | if ((eQ == eQ)) | |
963 | 964 | then { | |
964 | - | let | |
965 | - | if (( | |
965 | + | let eR = eK(gA, gB, toBigInt(0)) | |
966 | + | if ((eR == eR)) | |
966 | 967 | then { | |
967 | - | let | |
968 | - | let | |
969 | - | let | |
970 | - | let | |
971 | - | let | |
972 | - | let | |
973 | - | let | |
974 | - | let | |
975 | - | let | |
976 | - | if (( | |
968 | + | let gC = fl(toString(cP.caller), toBase58String(cP.transactionId), AttachedPayment(value(cP.payments[0]).assetId, value(cP.payments[0]).amount), cP.payments[1], gv, true, false, true, 0, "") | |
969 | + | let el = gC._2 | |
970 | + | let gD = gC._7 | |
971 | + | let dB = gC._9 | |
972 | + | let em = gC._10 | |
973 | + | let en = gC._11 | |
974 | + | let dj = gC._12 | |
975 | + | let dk = gC._13 | |
976 | + | let dX = invoke(aQ, "emit", [el], nil) | |
977 | + | if ((dX == dX)) | |
977 | 978 | then { | |
978 | - | let | |
979 | - | let | |
980 | - | if ($isInstanceOf( | |
979 | + | let gE = { | |
980 | + | let gl = dX | |
981 | + | if ($isInstanceOf(gl, "Address")) | |
981 | 982 | then { | |
982 | - | let | |
983 | - | invoke( | |
983 | + | let gF = gl | |
984 | + | invoke(gF, "emit", [el], nil) | |
984 | 985 | } | |
985 | 986 | else unit | |
986 | 987 | } | |
987 | - | if (( | |
988 | + | if ((gE == gE)) | |
988 | 989 | then { | |
989 | - | let | |
990 | - | then invoke( | |
990 | + | let gG = if ((em > 0)) | |
991 | + | then invoke(gz, "put", nil, [AttachedPayment(dj, em)]) | |
991 | 992 | else nil | |
992 | - | if (( | |
993 | + | if ((gG == gG)) | |
993 | 994 | then { | |
994 | - | let | |
995 | - | then invoke( | |
995 | + | let gH = if ((en > 0)) | |
996 | + | then invoke(gz, "put", nil, [AttachedPayment(dk, en)]) | |
996 | 997 | else nil | |
997 | - | if (( | |
998 | + | if ((gH == gH)) | |
998 | 999 | then { | |
999 | - | let | |
1000 | + | let gI = if (gw) | |
1000 | 1001 | then { | |
1001 | - | let | |
1002 | - | if (( | |
1002 | + | let gJ = invoke(gy, "stake", nil, [AttachedPayment(gD, el)]) | |
1003 | + | if ((gJ == gJ)) | |
1003 | 1004 | then nil | |
1004 | 1005 | else throw("Strict value is not equal to itself.") | |
1005 | 1006 | } | |
1006 | - | else [ScriptTransfer( | |
1007 | - | let | |
1008 | - | let | |
1009 | - | let | |
1010 | - | let | |
1007 | + | else [ScriptTransfer(cP.caller, el, gD)] | |
1008 | + | let gK = eS(0, 0, 0) | |
1009 | + | let gi = gK._1 | |
1010 | + | let eJ = gK._2 | |
1011 | + | let gL = if ((eJ >= eR)) | |
1011 | 1012 | then true | |
1012 | - | else | |
1013 | - | if (( | |
1013 | + | else aN(makeString(["updated DLp lower than current DLp", toString(eO), toString(eP), toString(eQ), toString(eR), toString(eJ), toString(em), toString(en)], " ")) | |
1014 | + | if ((gL == gL)) | |
1014 | 1015 | then { | |
1015 | - | let | |
1016 | - | if (( | |
1017 | - | then (( | |
1016 | + | let gM = value(assetInfo(bl)).quantity | |
1017 | + | if ((gM == gM)) | |
1018 | + | then ((dB ++ gI) ++ gi) | |
1018 | 1019 | else throw("Strict value is not equal to itself.") | |
1019 | 1020 | } | |
1020 | 1021 | else throw("Strict value is not equal to itself.") | |
1021 | 1022 | } | |
1022 | 1023 | else throw("Strict value is not equal to itself.") | |
1023 | 1024 | } | |
1024 | 1025 | else throw("Strict value is not equal to itself.") | |
1025 | 1026 | } | |
1026 | 1027 | else throw("Strict value is not equal to itself.") | |
1027 | 1028 | } | |
1028 | 1029 | else throw("Strict value is not equal to itself.") | |
1029 | 1030 | } | |
1030 | 1031 | else throw("Strict value is not equal to itself.") | |
1031 | 1032 | } | |
1032 | 1033 | else throw("Strict value is not equal to itself.") | |
1033 | 1034 | } | |
1034 | 1035 | else throw("Strict value is not equal to itself.") | |
1035 | 1036 | } | |
1036 | 1037 | else throw("Strict value is not equal to itself.") | |
1037 | 1038 | } | |
1038 | 1039 | } | |
1039 | 1040 | ||
1040 | 1041 | ||
1041 | 1042 | ||
1042 | - | @Callable( | |
1043 | - | func putOneTknV2 ( | |
1044 | - | let | |
1045 | - | let | |
1046 | - | if ($isInstanceOf( | |
1047 | - | then | |
1048 | - | else throw(($getType( | |
1043 | + | @Callable(cP) | |
1044 | + | func putOneTknV2 (fM,gw) = { | |
1045 | + | let gN = { | |
1046 | + | let aS = invoke(aQ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
1047 | + | if ($isInstanceOf(aS, "Boolean")) | |
1048 | + | then aS | |
1049 | + | else throw(($getType(aS) + " couldn't be cast to Boolean")) | |
1049 | 1050 | } | |
1050 | - | let | |
1051 | + | let gO = if (if (if (aV()) | |
1051 | 1052 | then true | |
1052 | - | else ( | |
1053 | + | else (bk == q)) | |
1053 | 1054 | then true | |
1054 | - | else ( | |
1055 | + | else (bk == s)) | |
1055 | 1056 | then true | |
1056 | - | else | |
1057 | - | let | |
1057 | + | else gN | |
1058 | + | let gP = [if (if (!(gO)) | |
1058 | 1059 | then true | |
1059 | - | else | |
1060 | + | else go(cP)) | |
1060 | 1061 | then true | |
1061 | - | else | |
1062 | + | else aN("put operation is blocked by admin"), if ((size(cP.payments) == 1)) | |
1062 | 1063 | then true | |
1063 | - | else | |
1064 | - | if (( | |
1064 | + | else aN("exactly 1 payment are expected")] | |
1065 | + | if ((gP == gP)) | |
1065 | 1066 | then { | |
1066 | - | let di = toBase58String(value(bl)) | |
1067 | 1067 | let dj = toBase58String(value(bm)) | |
1068 | - | let dh = bk | |
1069 | - | let fO = bn | |
1070 | - | let fP = bo | |
1071 | - | let dg = if ((cO.caller == this)) | |
1072 | - | then cO.originCaller | |
1073 | - | else cO.caller | |
1074 | - | let fi = value(cO.payments[0]) | |
1075 | - | let de = toBase58String(value(fi.assetId)) | |
1076 | - | let dK = fi.amount | |
1077 | - | let eQ = if ((fi.assetId == bl)) | |
1078 | - | then eJ(toBigInt(dK), toBigInt(0), toBigInt(0)) | |
1079 | - | else eJ(toBigInt(0), toBigInt(dK), toBigInt(0)) | |
1080 | - | if ((eQ == eQ)) | |
1068 | + | let dk = toBase58String(value(bn)) | |
1069 | + | let di = bl | |
1070 | + | let fQ = bo | |
1071 | + | let fR = bp | |
1072 | + | let dh = if ((cP.caller == this)) | |
1073 | + | then cP.originCaller | |
1074 | + | else cP.caller | |
1075 | + | let fk = value(cP.payments[0]) | |
1076 | + | let df = toBase58String(value(fk.assetId)) | |
1077 | + | let dL = fk.amount | |
1078 | + | let eR = if ((fk.assetId == bm)) | |
1079 | + | then eK(toBigInt(dL), toBigInt(0), toBigInt(0)) | |
1080 | + | else eK(toBigInt(0), toBigInt(dL), toBigInt(0)) | |
1081 | + | if ((eR == eR)) | |
1081 | 1082 | then { | |
1082 | - | let | |
1083 | - | if (( | |
1083 | + | let gQ = fp(dL, df, toString(dh), toBase58String(cP.transactionId), true) | |
1084 | + | if ((gQ == gQ)) | |
1084 | 1085 | then { | |
1085 | - | let | |
1086 | - | let | |
1087 | - | let | |
1088 | - | let | |
1089 | - | then ( | |
1086 | + | let cx = gQ._3 | |
1087 | + | let dB = gQ._2 | |
1088 | + | let gR = gQ._1 | |
1089 | + | let el = if (if ((fM > 0)) | |
1090 | + | then (fM > gR) | |
1090 | 1091 | else false) | |
1091 | - | then | |
1092 | - | else | |
1093 | - | let | |
1094 | - | if (( | |
1092 | + | then aN(makeString(["amount to receive is less than ", toString(fM)], "")) | |
1093 | + | else gR | |
1094 | + | let gC = invoke(aQ, "emit", [el], nil) | |
1095 | + | if ((gC == gC)) | |
1095 | 1096 | then { | |
1096 | - | let | |
1097 | - | let | |
1098 | - | if ($isInstanceOf( | |
1097 | + | let gE = { | |
1098 | + | let gl = gC | |
1099 | + | if ($isInstanceOf(gl, "Address")) | |
1099 | 1100 | then { | |
1100 | - | let | |
1101 | - | invoke( | |
1101 | + | let gF = gl | |
1102 | + | invoke(gF, "emit", [el], nil) | |
1102 | 1103 | } | |
1103 | 1104 | else unit | |
1104 | 1105 | } | |
1105 | - | if (( | |
1106 | + | if ((gE == gE)) | |
1106 | 1107 | then { | |
1107 | - | let | |
1108 | + | let gI = if (gw) | |
1108 | 1109 | then { | |
1109 | - | let | |
1110 | - | if (( | |
1110 | + | let gJ = invoke(bu, "stake", nil, [AttachedPayment(di, el)]) | |
1111 | + | if ((gJ == gJ)) | |
1111 | 1112 | then nil | |
1112 | 1113 | else throw("Strict value is not equal to itself.") | |
1113 | 1114 | } | |
1114 | - | else [ScriptTransfer( | |
1115 | - | let | |
1116 | - | then [ScriptTransfer( | |
1115 | + | else [ScriptTransfer(cP.caller, el, di)] | |
1116 | + | let gc = if ((cx > 0)) | |
1117 | + | then [ScriptTransfer(aX, cx, fromBase58String(df))] | |
1117 | 1118 | else nil | |
1118 | - | let | |
1119 | + | let gS = if ((this == aX)) | |
1119 | 1120 | then $Tuple2(0, 0) | |
1120 | 1121 | else { | |
1121 | - | let | |
1122 | + | let gT = if ((fk.assetId == bm)) | |
1122 | 1123 | then true | |
1123 | 1124 | else false | |
1124 | - | if ( | |
1125 | - | then $Tuple2(-( | |
1126 | - | else $Tuple2(0, -( | |
1125 | + | if (gT) | |
1126 | + | then $Tuple2(-(cx), 0) | |
1127 | + | else $Tuple2(0, -(cx)) | |
1127 | 1128 | } | |
1128 | - | let | |
1129 | - | let | |
1130 | - | let | |
1131 | - | let | |
1132 | - | let | |
1133 | - | let | |
1134 | - | if (( | |
1135 | - | then $Tuple2(((( | |
1129 | + | let eT = gS._1 | |
1130 | + | let eU = gS._2 | |
1131 | + | let gU = eS(eT, eU, 0) | |
1132 | + | let gi = gU._1 | |
1133 | + | let eJ = gU._2 | |
1134 | + | let gj = eW(eR, eJ) | |
1135 | + | if ((gj == gj)) | |
1136 | + | then $Tuple2((((dB ++ gI) ++ gc) ++ gi), el) | |
1136 | 1137 | else throw("Strict value is not equal to itself.") | |
1137 | 1138 | } | |
1138 | 1139 | else throw("Strict value is not equal to itself.") | |
1139 | 1140 | } | |
1140 | 1141 | else throw("Strict value is not equal to itself.") | |
1141 | 1142 | } | |
1142 | 1143 | else throw("Strict value is not equal to itself.") | |
1143 | 1144 | } | |
1144 | 1145 | else throw("Strict value is not equal to itself.") | |
1145 | 1146 | } | |
1146 | 1147 | else throw("Strict value is not equal to itself.") | |
1147 | 1148 | } | |
1148 | 1149 | ||
1149 | 1150 | ||
1150 | 1151 | ||
1151 | - | @Callable( | |
1152 | - | func putForFree ( | |
1152 | + | @Callable(cP) | |
1153 | + | func putForFree (gV) = if ((0 > gV)) | |
1153 | 1154 | then throw("Wrong slpg") | |
1154 | - | else if ((size( | |
1155 | + | else if ((size(cP.payments) != 2)) | |
1155 | 1156 | then throw("2 pmnts expd") | |
1156 | 1157 | else { | |
1157 | - | let | |
1158 | - | let | |
1159 | - | let | |
1160 | - | let | |
1161 | - | let | |
1162 | - | if (( | |
1158 | + | let gW = fl(toString(cP.caller), toBase58String(cP.transactionId), AttachedPayment(value(cP.payments[0]).assetId, value(cP.payments[0]).amount), cP.payments[1], gV, false, false, true, 0, "") | |
1159 | + | let dB = gW._9 | |
1160 | + | let gA = toBigInt(value(cP.payments[0]).amount) | |
1161 | + | let gB = toBigInt(value(cP.payments[1]).amount) | |
1162 | + | let eR = eK(gA, gB, toBigInt(0)) | |
1163 | + | if ((eR == eR)) | |
1163 | 1164 | then { | |
1164 | - | let | |
1165 | - | let | |
1166 | - | let | |
1167 | - | let | |
1168 | - | if (( | |
1169 | - | then ( | |
1165 | + | let gX = eS(0, 0, 0) | |
1166 | + | let gi = gX._1 | |
1167 | + | let eJ = gX._2 | |
1168 | + | let gj = eW(eR, eJ) | |
1169 | + | if ((gj == gj)) | |
1170 | + | then (dB ++ gi) | |
1170 | 1171 | else throw("Strict value is not equal to itself.") | |
1171 | 1172 | } | |
1172 | 1173 | else throw("Strict value is not equal to itself.") | |
1173 | 1174 | } | |
1174 | 1175 | ||
1175 | 1176 | ||
1176 | 1177 | ||
1177 | - | @Callable( | |
1178 | + | @Callable(cP) | |
1178 | 1179 | func get () = { | |
1179 | - | let | |
1180 | - | if (( | |
1180 | + | let eR = eK(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1181 | + | if ((eR == eR)) | |
1181 | 1182 | then { | |
1182 | - | let | |
1183 | - | let | |
1184 | - | let | |
1185 | - | let | |
1186 | - | let | |
1187 | - | let | |
1188 | - | let | |
1189 | - | if (( | |
1183 | + | let dX = fj(cP) | |
1184 | + | let gY = dX._1 | |
1185 | + | let dA = dX._2 | |
1186 | + | let dL = dX._3 | |
1187 | + | let df = dX._4 | |
1188 | + | let dB = dX._5 | |
1189 | + | let ey = invoke(aQ, "burn", [dL], [AttachedPayment(df, dL)]) | |
1190 | + | if ((ey == ey)) | |
1190 | 1191 | then { | |
1191 | - | let | |
1192 | - | let | |
1193 | - | let | |
1194 | - | let | |
1195 | - | if (( | |
1196 | - | then ( | |
1192 | + | let gZ = eS(-(gY), -(dA), 0) | |
1193 | + | let gi = gZ._1 | |
1194 | + | let eJ = gZ._2 | |
1195 | + | let gj = eW(eR, eJ) | |
1196 | + | if ((gj == gj)) | |
1197 | + | then (dB ++ gi) | |
1197 | 1198 | else throw("Strict value is not equal to itself.") | |
1198 | 1199 | } | |
1199 | 1200 | else throw("Strict value is not equal to itself.") | |
1200 | 1201 | } | |
1201 | 1202 | else throw("Strict value is not equal to itself.") | |
1202 | 1203 | } | |
1203 | 1204 | ||
1204 | 1205 | ||
1205 | 1206 | ||
1206 | - | @Callable( | |
1207 | - | func getOneTknV2 ( | |
1208 | - | let | |
1209 | - | let | |
1210 | - | if ($isInstanceOf( | |
1211 | - | then | |
1212 | - | else throw(($getType( | |
1207 | + | @Callable(cP) | |
1208 | + | func getOneTknV2 (fL,fM) = { | |
1209 | + | let gN = { | |
1210 | + | let aS = invoke(aQ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
1211 | + | if ($isInstanceOf(aS, "Boolean")) | |
1212 | + | then aS | |
1213 | + | else throw(($getType(aS) + " couldn't be cast to Boolean")) | |
1213 | 1214 | } | |
1214 | - | let | |
1215 | + | let ha = if (if (aV()) | |
1215 | 1216 | then true | |
1216 | - | else ( | |
1217 | + | else (bk == s)) | |
1217 | 1218 | then true | |
1218 | - | else | |
1219 | - | let | |
1219 | + | else gN | |
1220 | + | let gP = [if (if (!(ha)) | |
1220 | 1221 | then true | |
1221 | - | else | |
1222 | + | else go(cP)) | |
1222 | 1223 | then true | |
1223 | - | else | |
1224 | + | else aN("get operation is blocked by admin"), if ((size(cP.payments) == 1)) | |
1224 | 1225 | then true | |
1225 | - | else | |
1226 | - | if (( | |
1226 | + | else aN("exactly 1 payment are expected")] | |
1227 | + | if ((gP == gP)) | |
1227 | 1228 | then { | |
1228 | - | let | |
1229 | - | let | |
1230 | - | let | |
1231 | - | $Tuple2( | |
1229 | + | let hb = fK(fL, fM, cP.payments, cP.caller, cP.originCaller, cP.transactionId) | |
1230 | + | let dB = hb._1 | |
1231 | + | let fV = hb._2 | |
1232 | + | $Tuple2(dB, fV) | |
1232 | 1233 | } | |
1233 | 1234 | else throw("Strict value is not equal to itself.") | |
1234 | 1235 | } | |
1235 | 1236 | ||
1236 | 1237 | ||
1237 | 1238 | ||
1238 | - | @Callable( | |
1239 | + | @Callable(cP) | |
1239 | 1240 | func refreshDLp () = { | |
1240 | - | let | |
1241 | - | let | |
1241 | + | let hc = valueOrElse(getInteger(aq), 0) | |
1242 | + | let hd = if (((height - hc) >= at)) | |
1242 | 1243 | then unit | |
1243 | - | else | |
1244 | - | if (( | |
1244 | + | else aN(makeString([toString(at), " blocks have not passed since the previous call"], "")) | |
1245 | + | if ((hd == hd)) | |
1245 | 1246 | then { | |
1246 | - | let | |
1247 | - | let | |
1248 | - | let | |
1249 | - | let | |
1250 | - | let | |
1251 | - | then | |
1252 | - | else | |
1253 | - | $Tuple2( | |
1247 | + | let fd = valueOrErrorMessage(parseBigInt(valueOrElse(getString(this, ap), "0")), aP("invalid dLp")) | |
1248 | + | let he = eS(0, 0, 0) | |
1249 | + | let hf = he._1 | |
1250 | + | let eJ = he._2 | |
1251 | + | let eV = if ((fd != eJ)) | |
1252 | + | then hf | |
1253 | + | else aN("nothing to refresh") | |
1254 | + | $Tuple2(eV, toString(eJ)) | |
1254 | 1255 | } | |
1255 | 1256 | else throw("Strict value is not equal to itself.") | |
1256 | 1257 | } | |
1257 | 1258 | ||
1258 | 1259 | ||
1259 | 1260 | ||
1260 | - | @Callable(cO) | |
1261 | - | func getOneTknV2READONLY (fJ,he) = { | |
1261 | + | @Callable(cP) | |
1262 | + | func getOneTknV2READONLY (fL,hg) = { | |
1263 | + | let dj = toBase58String(value(bm)) | |
1264 | + | let dk = toBase58String(value(bn)) | |
1262 | 1265 | let di = toBase58String(value(bl)) | |
1263 | - | let dj = toBase58String(value(bm)) | |
1264 | - | let dh = toBase58String(value(bk)) | |
1265 | - | let cy = [toBigInt(bM(di)), toBigInt(bM(dj))] | |
1266 | - | let eH = toBigInt(valueOrErrorMessage(assetInfo(fromBase58String(dh)), "invalid lp asset").quantity) | |
1267 | - | let ca = cx(cy) | |
1268 | - | let bZ = (ca - fraction(toBigInt(he), ca, eH)) | |
1269 | - | let hf = if ((fJ == di)) | |
1266 | + | let cz = [toBigInt(bN(dj)), toBigInt(bN(dk))] | |
1267 | + | let eI = toBigInt(valueOrErrorMessage(assetInfo(fromBase58String(di)), "invalid lp asset").quantity) | |
1268 | + | let cb = cy(cz) | |
1269 | + | let ca = (cb - fraction(toBigInt(hg), cb, eI)) | |
1270 | + | let hh = if ((fL == dj)) | |
1270 | 1271 | then 0 | |
1271 | - | else if (( | |
1272 | + | else if ((fL == dk)) | |
1272 | 1273 | then 1 | |
1273 | 1274 | else throw("invalid out asset id") | |
1274 | - | let | |
1275 | - | let | |
1276 | - | let | |
1277 | - | let | |
1278 | - | let | |
1279 | - | let | |
1280 | - | $Tuple2(nil, $Tuple2( | |
1275 | + | let hi = es(cz, hh, ca) | |
1276 | + | let hj = (cz[hh] - hi) | |
1277 | + | let hk = max([0, toInt((hj - f))]) | |
1278 | + | let hl = cv(hk, aT) | |
1279 | + | let fU = hl._1 | |
1280 | + | let cx = hl._2 | |
1281 | + | $Tuple2(nil, $Tuple2(fU, cx)) | |
1281 | 1282 | } | |
1282 | 1283 | ||
1283 | 1284 | ||
1284 | 1285 | ||
1285 | - | @Callable(cO) | |
1286 | - | func getOneTknV2WithBonusREADONLY (fJ,he) = { | |
1286 | + | @Callable(cP) | |
1287 | + | func getOneTknV2WithBonusREADONLY (fL,hg) = { | |
1288 | + | let dj = toBase58String(value(bm)) | |
1289 | + | let dk = toBase58String(value(bn)) | |
1287 | 1290 | let di = toBase58String(value(bl)) | |
1288 | - | let dj = toBase58String(value(bm)) | |
1289 | - | let dh = toBase58String(value(bk)) | |
1290 | - | let do = bM(di) | |
1291 | - | let dq = bM(dj) | |
1292 | - | let hk = { | |
1293 | - | let aR = invoke(this, "getOneTknV2READONLY", [fJ, he], nil) | |
1294 | - | if ($isInstanceOf(aR, "(Int, Int)")) | |
1295 | - | then aR | |
1296 | - | else throw(($getType(aR) + " couldn't be cast to (Int, Int)")) | |
1291 | + | let dp = bN(dj) | |
1292 | + | let dr = bN(dk) | |
1293 | + | let hm = { | |
1294 | + | let aS = invoke(this, "getOneTknV2READONLY", [fL, hg], nil) | |
1295 | + | if ($isInstanceOf(aS, "(Int, Int)")) | |
1296 | + | then aS | |
1297 | + | else throw(($getType(aS) + " couldn't be cast to (Int, Int)")) | |
1297 | 1298 | } | |
1298 | - | let | |
1299 | - | let | |
1300 | - | let | |
1301 | - | let | |
1302 | - | let | |
1303 | - | let | |
1304 | - | let | |
1305 | - | then if (( | |
1299 | + | let fU = hm._1 | |
1300 | + | let cx = hm._2 | |
1301 | + | let dX = dd("", di, hg, this) | |
1302 | + | let dz = dX._1 | |
1303 | + | let dA = dX._2 | |
1304 | + | let hn = (dz + dA) | |
1305 | + | let fJ = if ((hn == 0)) | |
1306 | + | then if ((fU == 0)) | |
1306 | 1307 | then 0 | |
1307 | 1308 | else throw("bonus calculation error") | |
1308 | - | else fraction(( | |
1309 | - | $Tuple2(nil, $Tuple3( | |
1309 | + | else fraction((fU - hn), a, hn) | |
1310 | + | $Tuple2(nil, $Tuple3(fU, cx, fJ)) | |
1310 | 1311 | } | |
1311 | 1312 | ||
1312 | 1313 | ||
1313 | 1314 | ||
1314 | - | @Callable( | |
1315 | - | func getNoLess ( | |
1316 | - | let | |
1317 | - | let | |
1318 | - | let | |
1319 | - | let | |
1320 | - | let | |
1321 | - | let | |
1322 | - | if (( | |
1323 | - | then throw(((("Failed: " + toString( | |
1324 | - | else if (( | |
1325 | - | then throw(((("Failed: " + toString( | |
1315 | + | @Callable(cP) | |
1316 | + | func getNoLess (ho,hp) = { | |
1317 | + | let dX = fj(cP) | |
1318 | + | let dz = dX._1 | |
1319 | + | let dA = dX._2 | |
1320 | + | let dL = dX._3 | |
1321 | + | let df = dX._4 | |
1322 | + | let dB = dX._5 | |
1323 | + | if ((ho > dz)) | |
1324 | + | then throw(((("Failed: " + toString(dz)) + " < ") + toString(ho))) | |
1325 | + | else if ((hp > dA)) | |
1326 | + | then throw(((("Failed: " + toString(dA)) + " < ") + toString(hp))) | |
1326 | 1327 | else { | |
1327 | - | let | |
1328 | - | if (( | |
1328 | + | let eR = eK(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1329 | + | if ((eR == eR)) | |
1329 | 1330 | then { | |
1330 | - | let | |
1331 | - | if (( | |
1331 | + | let hq = invoke(aQ, "burn", [dL], [AttachedPayment(df, dL)]) | |
1332 | + | if ((hq == hq)) | |
1332 | 1333 | then { | |
1333 | - | let | |
1334 | - | let | |
1335 | - | let | |
1336 | - | let | |
1337 | - | if (( | |
1338 | - | then ( | |
1334 | + | let hr = eS(-(dz), -(dA), 0) | |
1335 | + | let gi = hr._1 | |
1336 | + | let eJ = hr._2 | |
1337 | + | let gj = eW(eR, eJ) | |
1338 | + | if ((gj == gj)) | |
1339 | + | then (dB ++ gi) | |
1339 | 1340 | else throw("Strict value is not equal to itself.") | |
1340 | 1341 | } | |
1341 | 1342 | else throw("Strict value is not equal to itself.") | |
1342 | 1343 | } | |
1343 | 1344 | else throw("Strict value is not equal to itself.") | |
1344 | 1345 | } | |
1345 | 1346 | } | |
1346 | 1347 | ||
1347 | 1348 | ||
1348 | 1349 | ||
1349 | - | @Callable( | |
1350 | - | func unstakeAndGet ( | |
1351 | - | let | |
1350 | + | @Callable(cP) | |
1351 | + | func unstakeAndGet (cw) = { | |
1352 | + | let hs = if ((size(cP.payments) != 0)) | |
1352 | 1353 | then throw("No pmnts expd") | |
1353 | 1354 | else true | |
1354 | - | if (( | |
1355 | + | if ((hs == hs)) | |
1355 | 1356 | then { | |
1356 | - | let | |
1357 | - | let | |
1358 | - | let | |
1359 | - | let | |
1360 | - | if (( | |
1357 | + | let ht = bs() | |
1358 | + | let gD = bl | |
1359 | + | let hu = valueOrErrorMessage(addressFromString(ht[C]), "Wr st addr") | |
1360 | + | let eR = eK(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1361 | + | if ((eR == eR)) | |
1361 | 1362 | then { | |
1362 | - | let | |
1363 | - | if (( | |
1363 | + | let hv = invoke(hu, "unstake", [toBase58String(gD), cw], nil) | |
1364 | + | if ((hv == hv)) | |
1364 | 1365 | then { | |
1365 | - | let | |
1366 | - | let | |
1367 | - | let | |
1368 | - | let | |
1369 | - | let | |
1370 | - | let | |
1366 | + | let dX = dd(toBase58String(cP.transactionId), toBase58String(gD), cw, cP.caller) | |
1367 | + | let dz = dX._1 | |
1368 | + | let dA = dX._2 | |
1369 | + | let dn = parseIntValue(dX._9) | |
1370 | + | let dB = dX._10 | |
1371 | + | let hw = if (if (aV()) | |
1371 | 1372 | then true | |
1372 | - | else ( | |
1373 | - | then throw(("Blocked: " + toString( | |
1373 | + | else (dn == s)) | |
1374 | + | then throw(("Blocked: " + toString(dn))) | |
1374 | 1375 | else true | |
1375 | - | if (( | |
1376 | + | if ((hw == hw)) | |
1376 | 1377 | then { | |
1377 | - | let | |
1378 | - | if (( | |
1378 | + | let hx = invoke(aQ, "burn", [cw], [AttachedPayment(gD, cw)]) | |
1379 | + | if ((hx == hx)) | |
1379 | 1380 | then { | |
1380 | - | let | |
1381 | - | let | |
1382 | - | let | |
1383 | - | let | |
1384 | - | if (( | |
1385 | - | then ( | |
1381 | + | let hy = eS(-(dz), -(dA), 0) | |
1382 | + | let gi = hy._1 | |
1383 | + | let eJ = hy._2 | |
1384 | + | let gj = eW(eR, eJ) | |
1385 | + | if ((gj == gj)) | |
1386 | + | then (dB ++ gi) | |
1386 | 1387 | else throw("Strict value is not equal to itself.") | |
1387 | 1388 | } | |
1388 | 1389 | else throw("Strict value is not equal to itself.") | |
1389 | 1390 | } | |
1390 | 1391 | else throw("Strict value is not equal to itself.") | |
1391 | 1392 | } | |
1392 | 1393 | else throw("Strict value is not equal to itself.") | |
1393 | 1394 | } | |
1394 | 1395 | else throw("Strict value is not equal to itself.") | |
1395 | 1396 | } | |
1396 | 1397 | else throw("Strict value is not equal to itself.") | |
1397 | 1398 | } | |
1398 | 1399 | ||
1399 | 1400 | ||
1400 | 1401 | ||
1401 | - | @Callable( | |
1402 | - | func unstakeAndGetNoLess ( | |
1403 | - | let | |
1402 | + | @Callable(cP) | |
1403 | + | func unstakeAndGetNoLess (hz,hA,hp) = { | |
1404 | + | let ha = if (aV()) | |
1404 | 1405 | then true | |
1405 | - | else ( | |
1406 | - | let | |
1406 | + | else (bk == s) | |
1407 | + | let gP = [if (!(ha)) | |
1407 | 1408 | then true | |
1408 | - | else throw("get operation is blocked by admin"), if ((size( | |
1409 | + | else throw("get operation is blocked by admin"), if ((size(cP.payments) == 0)) | |
1409 | 1410 | then true | |
1410 | 1411 | else throw("no payments are expected")] | |
1411 | - | if (( | |
1412 | + | if ((gP == gP)) | |
1412 | 1413 | then { | |
1413 | - | let | |
1414 | - | if (( | |
1414 | + | let eR = eK(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1415 | + | if ((eR == eR)) | |
1415 | 1416 | then { | |
1416 | - | let | |
1417 | - | if (( | |
1417 | + | let hv = invoke(bu, "unstake", [toBase58String(bl), hz], nil) | |
1418 | + | if ((hv == hv)) | |
1418 | 1419 | then { | |
1419 | - | let | |
1420 | - | let | |
1421 | - | let | |
1422 | - | let | |
1423 | - | let | |
1420 | + | let hB = dd(toBase58String(cP.transactionId), toBase58String(bl), hz, cP.caller) | |
1421 | + | let dz = hB._1 | |
1422 | + | let dA = hB._2 | |
1423 | + | let dB = hB._10 | |
1424 | + | let hC = [if ((dz >= hA)) | |
1424 | 1425 | then true | |
1425 | - | else throw(makeString(["amount asset amount to receive is less than ", toString( | |
1426 | + | else throw(makeString(["amount asset amount to receive is less than ", toString(hA)], "")), if ((dA >= hp)) | |
1426 | 1427 | then true | |
1427 | - | else throw(makeString(["price asset amount to receive is less than ", toString( | |
1428 | - | if (( | |
1428 | + | else throw(makeString(["price asset amount to receive is less than ", toString(hp)], ""))] | |
1429 | + | if ((hC == hC)) | |
1429 | 1430 | then { | |
1430 | - | let | |
1431 | - | if (( | |
1431 | + | let hq = invoke(aQ, "burn", [hz], [AttachedPayment(bl, hz)]) | |
1432 | + | if ((hq == hq)) | |
1432 | 1433 | then { | |
1433 | - | let | |
1434 | - | let | |
1435 | - | let | |
1436 | - | let | |
1437 | - | if (( | |
1438 | - | then ( | |
1434 | + | let hD = eS(-(dz), -(dA), 0) | |
1435 | + | let gi = hD._1 | |
1436 | + | let eJ = hD._2 | |
1437 | + | let gj = eW(eR, eJ) | |
1438 | + | if ((gj == gj)) | |
1439 | + | then (dB ++ gi) | |
1439 | 1440 | else throw("Strict value is not equal to itself.") | |
1440 | 1441 | } | |
1441 | 1442 | else throw("Strict value is not equal to itself.") | |
1442 | 1443 | } | |
1443 | 1444 | else throw("Strict value is not equal to itself.") | |
1444 | 1445 | } | |
1445 | 1446 | else throw("Strict value is not equal to itself.") | |
1446 | 1447 | } | |
1447 | 1448 | else throw("Strict value is not equal to itself.") | |
1448 | 1449 | } | |
1449 | 1450 | else throw("Strict value is not equal to itself.") | |
1450 | 1451 | } | |
1451 | 1452 | ||
1452 | 1453 | ||
1453 | 1454 | ||
1454 | - | @Callable( | |
1455 | - | func unstakeAndGetOneTknV2 ( | |
1456 | - | let | |
1457 | - | let | |
1458 | - | if ($isInstanceOf( | |
1459 | - | then | |
1460 | - | else throw(($getType( | |
1455 | + | @Callable(cP) | |
1456 | + | func unstakeAndGetOneTknV2 (hz,fL,fM) = { | |
1457 | + | let gN = { | |
1458 | + | let aS = invoke(aQ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
1459 | + | if ($isInstanceOf(aS, "Boolean")) | |
1460 | + | then aS | |
1461 | + | else throw(($getType(aS) + " couldn't be cast to Boolean")) | |
1461 | 1462 | } | |
1462 | - | let | |
1463 | + | let ha = if (if (aV()) | |
1463 | 1464 | then true | |
1464 | - | else ( | |
1465 | + | else (bk == s)) | |
1465 | 1466 | then true | |
1466 | - | else | |
1467 | - | let | |
1467 | + | else gN | |
1468 | + | let gP = [if (if (!(ha)) | |
1468 | 1469 | then true | |
1469 | - | else | |
1470 | + | else go(cP)) | |
1470 | 1471 | then true | |
1471 | - | else | |
1472 | + | else aN("get operation is blocked by admin"), if ((size(cP.payments) == 0)) | |
1472 | 1473 | then true | |
1473 | - | else | |
1474 | - | if (( | |
1474 | + | else aN("no payments are expected")] | |
1475 | + | if ((gP == gP)) | |
1475 | 1476 | then { | |
1476 | - | let | |
1477 | - | let | |
1478 | - | let | |
1479 | - | let | |
1480 | - | if (( | |
1477 | + | let ht = bs() | |
1478 | + | let gD = bl | |
1479 | + | let hu = valueOrErrorMessage(addressFromString(ht[C]), "Wr st addr") | |
1480 | + | let hv = invoke(hu, "unstake", [toBase58String(gD), hz], nil) | |
1481 | + | if ((hv == hv)) | |
1481 | 1482 | then { | |
1482 | - | let | |
1483 | - | let | |
1484 | - | let | |
1485 | - | $Tuple2( | |
1483 | + | let hE = fK(fL, fM, [AttachedPayment(gD, hz)], cP.caller, cP.originCaller, cP.transactionId) | |
1484 | + | let dB = hE._1 | |
1485 | + | let fV = hE._2 | |
1486 | + | $Tuple2(dB, fV) | |
1486 | 1487 | } | |
1487 | 1488 | else throw("Strict value is not equal to itself.") | |
1488 | 1489 | } | |
1489 | 1490 | else throw("Strict value is not equal to itself.") | |
1490 | 1491 | } | |
1491 | 1492 | ||
1492 | 1493 | ||
1493 | 1494 | ||
1494 | - | @Callable( | |
1495 | - | func putOneTknV2WithBonusREADONLY ( | |
1496 | - | let | |
1497 | - | let | |
1498 | - | let | |
1499 | - | let | |
1500 | - | let | |
1501 | - | $Tuple2(nil, $Tuple3( | |
1495 | + | @Callable(cP) | |
1496 | + | func putOneTknV2WithBonusREADONLY (hF,hG) = { | |
1497 | + | let hH = fp(hF, hG, "", "", true) | |
1498 | + | let fE = hH._1 | |
1499 | + | let dB = hH._2 | |
1500 | + | let cx = hH._3 | |
1501 | + | let fJ = hH._4 | |
1502 | + | $Tuple2(nil, $Tuple3(fE, cx, fJ)) | |
1502 | 1503 | } | |
1503 | 1504 | ||
1504 | 1505 | ||
1505 | 1506 | ||
1506 | - | @Callable( | |
1507 | - | func putOneTknV2WithoutTakeFeeREADONLY ( | |
1508 | - | let | |
1509 | - | let | |
1510 | - | let | |
1511 | - | let | |
1512 | - | let | |
1513 | - | $Tuple2(nil, $Tuple3( | |
1507 | + | @Callable(cP) | |
1508 | + | func putOneTknV2WithoutTakeFeeREADONLY (hF,hG) = { | |
1509 | + | let hI = fp(hF, hG, "", "", false) | |
1510 | + | let fE = hI._1 | |
1511 | + | let dB = hI._2 | |
1512 | + | let cx = hI._3 | |
1513 | + | let fJ = hI._4 | |
1514 | + | $Tuple2(nil, $Tuple3(fE, cx, fJ)) | |
1514 | 1515 | } | |
1515 | 1516 | ||
1516 | 1517 | ||
1517 | 1518 | ||
1518 | - | @Callable( | |
1519 | - | func activate ( | |
1519 | + | @Callable(cP) | |
1520 | + | func activate (hJ,hK) = if ((toString(cP.caller) != toString(aQ))) | |
1520 | 1521 | then throw("denied") | |
1521 | - | else $Tuple2([StringEntry(aj(), | |
1522 | + | else $Tuple2([StringEntry(aj(), hJ), StringEntry(ak(), hK)], "success") | |
1522 | 1523 | ||
1523 | 1524 | ||
1524 | 1525 | ||
1525 | - | @Callable( | |
1526 | - | func setS ( | |
1527 | - | then | |
1528 | - | else [StringEntry( | |
1526 | + | @Callable(cP) | |
1527 | + | func setS (hL,hw) = if ((toString(cP.caller) != aJ(this, am()))) | |
1528 | + | then gn | |
1529 | + | else [StringEntry(hL, hw)] | |
1529 | 1530 | ||
1530 | 1531 | ||
1531 | 1532 | ||
1532 | - | @Callable( | |
1533 | - | func setI ( | |
1534 | - | then | |
1535 | - | else [IntegerEntry( | |
1533 | + | @Callable(cP) | |
1534 | + | func setI (hL,hw) = if ((toString(cP.caller) != aJ(this, am()))) | |
1535 | + | then gn | |
1536 | + | else [IntegerEntry(hL, hw)] | |
1536 | 1537 | ||
1537 | 1538 | ||
1538 | 1539 | ||
1539 | - | @Callable( | |
1540 | - | func getPoolConfigWrapperREADONLY () = $Tuple2(nil, | |
1540 | + | @Callable(cP) | |
1541 | + | func getPoolConfigWrapperREADONLY () = $Tuple2(nil, aY()) | |
1541 | 1542 | ||
1542 | 1543 | ||
1543 | 1544 | ||
1544 | - | @Callable( | |
1545 | - | func getAccBalanceWrapperREADONLY ( | |
1545 | + | @Callable(cP) | |
1546 | + | func getAccBalanceWrapperREADONLY (bO) = $Tuple2(nil, bN(bO)) | |
1546 | 1547 | ||
1547 | 1548 | ||
1548 | 1549 | ||
1549 | - | @Callable( | |
1550 | - | func calcPricesWrapperREADONLY ( | |
1551 | - | let | |
1552 | - | $Tuple2(nil, [toString( | |
1550 | + | @Callable(cP) | |
1551 | + | func calcPricesWrapperREADONLY (ch,ci,cm) = { | |
1552 | + | let hM = cl(ch, ci, cm) | |
1553 | + | $Tuple2(nil, [toString(hM[0]), toString(hM[1]), toString(hM[2])]) | |
1553 | 1554 | } | |
1554 | 1555 | ||
1555 | 1556 | ||
1556 | 1557 | ||
1557 | - | @Callable( | |
1558 | - | func fromX18WrapperREADONLY (M, | |
1558 | + | @Callable(cP) | |
1559 | + | func fromX18WrapperREADONLY (M,hN) = $Tuple2(nil, L(parseBigIntValue(M), hN)) | |
1559 | 1560 | ||
1560 | 1561 | ||
1561 | 1562 | ||
1562 | - | @Callable( | |
1563 | + | @Callable(cP) | |
1563 | 1564 | func toX18WrapperREADONLY (I,J) = $Tuple2(nil, toString(H(I, J))) | |
1564 | 1565 | ||
1565 | 1566 | ||
1566 | 1567 | ||
1567 | - | @Callable( | |
1568 | - | func calcPriceBigIntWrapperREADONLY ( | |
1568 | + | @Callable(cP) | |
1569 | + | func calcPriceBigIntWrapperREADONLY (bQ,bR) = $Tuple2(nil, toString(bP(parseBigIntValue(bQ), parseBigIntValue(bR)))) | |
1569 | 1570 | ||
1570 | 1571 | ||
1571 | 1572 | ||
1572 | - | @Callable( | |
1573 | - | func estimatePutOperationWrapperREADONLY ( | |
1573 | + | @Callable(cP) | |
1574 | + | func estimatePutOperationWrapperREADONLY (de,bW,dD,dE,dF,dG,hO,dH,dI) = $Tuple2(nil, dC(de, bW, dD, dE, dF, dG, hO, dH, dI, true, false, 0, "")) | |
1574 | 1575 | ||
1575 | 1576 | ||
1576 | 1577 | ||
1577 | - | @Callable( | |
1578 | - | func estimateGetOperationWrapperREADONLY ( | |
1579 | - | let | |
1580 | - | $Tuple2(nil, $Tuple10( | |
1578 | + | @Callable(cP) | |
1579 | + | func estimateGetOperationWrapperREADONLY (de,hP,dg,hO) = { | |
1580 | + | let dX = dd(de, hP, dg, addressFromStringValue(hO)) | |
1581 | + | $Tuple2(nil, $Tuple10(dX._1, dX._2, dX._3, dX._4, dX._5, dX._6, dX._7, toString(dX._8), dX._9, dX._10)) | |
1581 | 1582 | } | |
1582 | 1583 | ||
1583 | 1584 | ||
1584 | - | @Verifier( | |
1585 | - | func | |
1586 | - | let | |
1587 | - | let | |
1588 | - | if ($isInstanceOf( | |
1585 | + | @Verifier(hQ) | |
1586 | + | func hR () = { | |
1587 | + | let hS = { | |
1588 | + | let gl = gk() | |
1589 | + | if ($isInstanceOf(gl, "ByteVector")) | |
1589 | 1590 | then { | |
1590 | - | let | |
1591 | - | | |
1591 | + | let gp = gl | |
1592 | + | gp | |
1592 | 1593 | } | |
1593 | - | else if ($isInstanceOf( | |
1594 | - | then | |
1594 | + | else if ($isInstanceOf(gl, "Unit")) | |
1595 | + | then hQ.senderPublicKey | |
1595 | 1596 | else throw("Match error") | |
1596 | 1597 | } | |
1597 | - | let | |
1598 | - | if ($isInstanceOf( | |
1598 | + | let gl = hQ | |
1599 | + | if ($isInstanceOf(gl, "Order")) | |
1599 | 1600 | then { | |
1600 | - | let eY = gj | |
1601 | - | let hR = aV() | |
1602 | - | let hS = eX(eY) | |
1603 | - | let hT = sigVerify(eY.bodyBytes, eY.proofs[0], eY.senderPublicKey) | |
1604 | - | let hU = sigVerify(eY.bodyBytes, eY.proofs[1], hR) | |
1605 | - | if (if (if (hS) | |
1606 | - | then hT | |
1601 | + | let eZ = gl | |
1602 | + | let hT = aW() | |
1603 | + | let hU = eY(eZ) | |
1604 | + | let aF = hU._1 | |
1605 | + | let aG = hU._2 | |
1606 | + | let aH = sigVerify(eZ.bodyBytes, eZ.proofs[0], eZ.senderPublicKey) | |
1607 | + | let aI = sigVerify(eZ.bodyBytes, eZ.proofs[1], hT) | |
1608 | + | if (if (if (aF) | |
1609 | + | then aH | |
1607 | 1610 | else false) | |
1608 | - | then | |
1611 | + | then aI | |
1609 | 1612 | else false) | |
1610 | 1613 | then true | |
1611 | - | else aE( | |
1614 | + | else aE(aF, aG, aH, aI) | |
1612 | 1615 | } | |
1613 | - | else if ($isInstanceOf( | |
1616 | + | else if ($isInstanceOf(gl, "SetScriptTransaction")) | |
1614 | 1617 | then { | |
1615 | - | let | |
1616 | - | if (sigVerify( | |
1618 | + | let cC = gl | |
1619 | + | if (sigVerify(hQ.bodyBytes, hQ.proofs[0], hS)) | |
1617 | 1620 | then true | |
1618 | 1621 | else { | |
1619 | - | let hV = blake2b256(value( | |
1620 | - | let hW = fromBase64String(value(getString( | |
1622 | + | let hV = blake2b256(value(cC.script)) | |
1623 | + | let hW = fromBase64String(value(getString(aQ, aC()))) | |
1621 | 1624 | let hX = scriptHash(this) | |
1622 | 1625 | if ((hW == hV)) | |
1623 | 1626 | then (hX != hV) | |
1624 | 1627 | else false | |
1625 | 1628 | } | |
1626 | 1629 | } | |
1627 | - | else sigVerify( | |
1630 | + | else sigVerify(hQ.bodyBytes, hQ.proofs[0], hS) | |
1628 | 1631 | } | |
1629 | 1632 |
github/deemru/w8io/169f3d6 641.97 ms ◑