tx · Brua41sNS1zpvgVF94FQr2H65z87wYXjzq9tZzQDv4Xg 3MsNhK6uve98J6DeqbuwGFBRh9GoHPGUFgp: -0.02200000 Waves 2022.11.01 19:55 [2298316] smart account 3MsNhK6uve98J6DeqbuwGFBRh9GoHPGUFgp > SELF 0.00000000 Waves
{ "type": 13, "id": "Brua41sNS1zpvgVF94FQr2H65z87wYXjzq9tZzQDv4Xg", "fee": 2200000, "feeAssetId": null, "timestamp": 1667321722605, "version": 1, "sender": "3MsNhK6uve98J6DeqbuwGFBRh9GoHPGUFgp", "senderPublicKey": "86RHVxKovtU7yKnepY8wKsd8niDxGAsiwuA1XA1DNqrS", "proofs": [ "5p6c1wBJ3kuY4LYHE8FwV9qEk9d8U1FR6oDS71rFXkiEfny6dtFwq99HV2bpUd6BCkHc6f7JZ9ko3n5Ziak18jwo" ], "script": "base64:BgLdIQgCEgMKAQgSAwoBCBIECgIICBIJCgcBERERGAgYEgcKBRERERgIEgcKBQEBAQgIEgASAwoBCBIECgIIARIECgIIARIECgIIARIDCgEIEgUKAwEYGBIDCgEYEgMKAQgSACIGU0NBTEU4IgVNVUxUOCIHU0NBTEUxOCIGTVVMVDE4IgNTRVAiDlBPT0xXRUlHSFRNVUxUIgp6ZXJvQmlnSW50Ig5pZHhQb29sQWRkcmVzcyINaWR4UG9vbFN0YXR1cyIQaWR4UG9vbExQQXNzZXRJZCINaWR4QW10QXNzZXRJZCIPaWR4UHJpY2VBc3NldElkIg5pZHhBbXRBc3NldERjbSIQaWR4UHJpY2VBc3NldERjbSIOaWR4SUFtdEFzc2V0SWQiEGlkeElQcmljZUFzc2V0SWQiDWlkeExQQXNzZXREY20iD2dldFN0cmluZ09yRmFpbCIDa2V5IhhnZXRTdHJpbmdCeUFkZHJlc3NPckZhaWwiB2FkZHJlc3MiDGdldEludE9yWmVybyIMZ2V0SW50T3JGYWlsIglhc0FueUxpc3QiA3ZhbCIHJG1hdGNoMCIKdmFsQW55THlzdCIFYXNJbnQiBnZhbEludCI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2R5Qnl0ZXMJAJEDAggFAmRaBnByb29mcwAABQJlYnfI6sI=", "chainId": 84, "height": 2298316, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: oZphfpjiAh6XS7JGv64HBkSi5Zx1xfzAiYepE8CJrQP Next: 7bZPH8agqtUr9AL9pd7HpGAyzxprJBZjgrdFjypHxyJE Diff:
Old | New | Differences | |
---|---|---|---|
278 | 278 | } | |
279 | 279 | ||
280 | 280 | ||
281 | - | func bu () = { | |
281 | + | func bu (bv,s,bw) = if ((bw == "string")) | |
282 | + | then getStringValue(bv, s) | |
283 | + | else if ((bw == "int")) | |
284 | + | then toString(getIntegerValue(bv, s)) | |
285 | + | else if ((bw == "boolean")) | |
286 | + | then toString(getBooleanValue(bv, s)) | |
287 | + | else throw("unknown type. expected string/int/boolean") | |
288 | + | ||
289 | + | ||
290 | + | func bx () = { | |
282 | 291 | let z = getString(G()) | |
283 | 292 | if ($isInstanceOf(z, "String")) | |
284 | 293 | then { | |
285 | - | let | |
286 | - | fromBase58String( | |
294 | + | let by = z | |
295 | + | fromBase58String(by) | |
287 | 296 | } | |
288 | 297 | else if ($isInstanceOf(z, "Unit")) | |
289 | 298 | then unit | |
291 | 300 | } | |
292 | 301 | ||
293 | 302 | ||
294 | - | func | |
303 | + | func bz () = { | |
295 | 304 | let z = getString(H()) | |
296 | 305 | if ($isInstanceOf(z, "String")) | |
297 | 306 | then { | |
298 | - | let | |
299 | - | fromBase58String( | |
307 | + | let by = z | |
308 | + | fromBase58String(by) | |
300 | 309 | } | |
301 | 310 | else if ($isInstanceOf(z, "Unit")) | |
302 | 311 | then unit | |
304 | 313 | } | |
305 | 314 | ||
306 | 315 | ||
307 | - | func | |
308 | - | let | |
309 | - | let z = | |
316 | + | func bA (bB) = { | |
317 | + | let bC = throw("Permission denied") | |
318 | + | let z = bx() | |
310 | 319 | if ($isInstanceOf(z, "ByteVector")) | |
311 | 320 | then { | |
312 | - | let | |
313 | - | if (( | |
321 | + | let bD = z | |
322 | + | if ((bB.callerPublicKey == bD)) | |
314 | 323 | then true | |
315 | - | else | |
324 | + | else bC | |
316 | 325 | } | |
317 | 326 | else if ($isInstanceOf(z, "Unit")) | |
318 | - | then if (( | |
327 | + | then if ((bB.caller == this)) | |
319 | 328 | then true | |
320 | - | else | |
329 | + | else bC | |
321 | 330 | else throw("Match error") | |
322 | 331 | } | |
323 | 332 | ||
324 | 333 | ||
325 | - | @Callable( | |
326 | - | func constructor ( | |
327 | - | let | |
328 | - | if (( | |
329 | - | then [StringEntry(F(), | |
334 | + | @Callable(bB) | |
335 | + | func constructor (bE) = { | |
336 | + | let bF = bA(bB) | |
337 | + | if ((bF == bF)) | |
338 | + | then [StringEntry(F(), bE)] | |
330 | 339 | else throw("Strict value is not equal to itself.") | |
331 | 340 | } | |
332 | 341 | ||
333 | 342 | ||
334 | 343 | ||
335 | - | @Callable( | |
344 | + | @Callable(bB) | |
336 | 345 | func currentRewardRateREADONLY (bd) = { | |
337 | - | let | |
338 | - | let bh = | |
339 | - | let bm = | |
340 | - | let bn = | |
346 | + | let bG = bc(bd) | |
347 | + | let bh = bG[0] | |
348 | + | let bm = bG[1] | |
349 | + | let bn = bG[2] | |
341 | 350 | $Tuple2(nil, makeString(["%d%d%d", toString(bh), toString(bm), toString(bn)], e)) | |
342 | 351 | } | |
343 | 352 | ||
344 | 353 | ||
345 | 354 | ||
346 | - | @Callable( | |
355 | + | @Callable(bB) | |
347 | 356 | func currentUserRewardRateREADONLY (bd,am) = { | |
348 | - | let | |
349 | - | let bh = | |
350 | - | let bm = | |
351 | - | let bn = | |
352 | - | let | |
353 | - | let | |
354 | - | let | |
355 | - | let | |
356 | - | let | |
357 | - | let | |
357 | + | let bG = bc(bd) | |
358 | + | let bh = bG[0] | |
359 | + | let bm = bG[1] | |
360 | + | let bn = bG[2] | |
361 | + | let bH = v(aM, aE(am, bd)) | |
362 | + | let bI = split(D(invoke(aM, "claimWxREADONLY", [bd, am], nil)), e) | |
363 | + | let bJ = valueOrErrorMessage(parseInt(bI[5]), "couldn't parse minRewardPart") | |
364 | + | let bK = valueOrErrorMessage(parseInt(bI[6]), "couldn't parse boostRewardPart") | |
365 | + | let bL = bI[7] | |
366 | + | let bM = if ((bK == 0)) | |
358 | 367 | then (1 * b) | |
359 | - | else fraction(( | |
360 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%s", toString(bh), toString(bm), toString(bn), toString( | |
368 | + | else fraction((bJ + bK), b, bJ) | |
369 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%s", toString(bh), toString(bm), toString(bn), toString(bH), toString(bM), bL], e)) | |
361 | 370 | } | |
362 | 371 | ||
363 | 372 | ||
364 | 373 | ||
365 | - | @Callable( | |
366 | - | func calcBoostBulkInternalREADONLY ( | |
367 | - | then $Tuple2(nil, | |
374 | + | @Callable(bB) | |
375 | + | func calcBoostBulkInternalREADONLY (bN,bO,bP,bQ,bR,bS,bT) = if ((bN == size(bO))) | |
376 | + | then $Tuple2(nil, bT) | |
368 | 377 | else { | |
369 | - | let | |
370 | - | let | |
371 | - | let | |
372 | - | let | |
373 | - | let | |
374 | - | let | |
375 | - | if ($isInstanceOf( | |
376 | - | then | |
377 | - | else throw(($getType( | |
378 | + | let bU = bO[bN] | |
379 | + | let bV = bP[bN] | |
380 | + | let bW = bQ[bN] | |
381 | + | let bX = bR[bN] | |
382 | + | let bY = { | |
383 | + | let bZ = invoke(this, "calcBoostREADONLY", [bU, bV, bW, bX, bS], nil) | |
384 | + | if ($isInstanceOf(bZ, "String")) | |
385 | + | then bZ | |
386 | + | else throw(($getType(bZ) + " couldn't be cast to String")) | |
378 | 387 | } | |
379 | - | let | |
380 | - | let | |
381 | - | let | |
382 | - | if ($isInstanceOf( | |
383 | - | then | |
384 | - | else throw(($getType( | |
388 | + | let ca = (bT :+ bY) | |
389 | + | let cb = { | |
390 | + | let bZ = invoke(this, "calcBoostBulkInternalREADONLY", [(bN + 1), bO, bP, bQ, bR, bS, ca], nil) | |
391 | + | if ($isInstanceOf(bZ, "List[Any]")) | |
392 | + | then bZ | |
393 | + | else throw(($getType(bZ) + " couldn't be cast to List[Any]")) | |
385 | 394 | } | |
386 | - | if (( | |
387 | - | then $Tuple2(nil, | |
395 | + | if ((cb == cb)) | |
396 | + | then $Tuple2(nil, cb) | |
388 | 397 | else throw("Strict value is not equal to itself.") | |
389 | 398 | } | |
390 | 399 | ||
391 | 400 | ||
392 | 401 | ||
393 | - | @Callable( | |
394 | - | func calcBoostBulkREADONLY ( | |
395 | - | let | |
396 | - | $Tuple2(nil, | |
402 | + | @Callable(bB) | |
403 | + | func calcBoostBulkREADONLY (bU,bV,bW,bX,bS) = { | |
404 | + | let ca = invoke(this, "calcBoostBulkInternalREADONLY", [0, bU, bV, bW, bX, bS, nil], nil) | |
405 | + | $Tuple2(nil, ca) | |
397 | 406 | } | |
398 | 407 | ||
399 | 408 | ||
400 | 409 | ||
401 | - | @Callable( | |
402 | - | func calcBoostREADONLY ( | |
403 | - | let | |
404 | - | let | |
405 | - | let | |
406 | - | let aG = if (( | |
407 | - | then | |
408 | - | else | |
409 | - | let aF = if (( | |
410 | - | then | |
411 | - | else | |
412 | - | let | |
413 | - | let | |
414 | - | let | |
415 | - | let bq = valueOrElse(getInteger(bb, as( | |
416 | - | let | |
417 | - | let | |
418 | - | let | |
419 | - | let | |
420 | - | let | |
421 | - | let | |
422 | - | let | |
423 | - | let | |
424 | - | let | |
425 | - | let | |
426 | - | let aw = toString(B( | |
427 | - | let | |
428 | - | let | |
429 | - | let | |
430 | - | let | |
431 | - | let | |
432 | - | let | |
433 | - | let | |
434 | - | let | |
435 | - | let | |
436 | - | let | |
437 | - | let | |
438 | - | let | |
439 | - | let | |
440 | - | let bg = if ((aG != | |
410 | + | @Callable(bB) | |
411 | + | func calcBoostREADONLY (bU,bV,bW,bX,bS) = { | |
412 | + | let cc = ba | |
413 | + | let cd = "empty" | |
414 | + | let ce = parseIntValue(split(t(bb, ag()), e)[4]) | |
415 | + | let aG = if ((bX == "")) | |
416 | + | then cd | |
417 | + | else bX | |
418 | + | let aF = if ((bS == "")) | |
419 | + | then cd | |
420 | + | else bS | |
421 | + | let cf = valueOrElse(getString(bb, al(bS)), cd) | |
422 | + | let cg = valueOrElse(getInteger(bb, ap(cf)), 0) | |
423 | + | let ch = valueOrElse(getInteger(bb, ar(cf)), height) | |
424 | + | let bq = valueOrElse(getInteger(bb, as(cf)), 0) | |
425 | + | let ci = (ch + bq) | |
426 | + | let cj = max([(ci - height), 0]) | |
427 | + | let ck = (cg + bU) | |
428 | + | let cl = min([(cj + bV), ce]) | |
429 | + | let cm = B(x(invoke(bb, "gwxUserInfoREADONLY", [aF], nil))[0]) | |
430 | + | let cn = bo(ck, cl, ce)[0] | |
431 | + | let co = x(invoke(cc, "calcGwxParamsREADONLY", [cn, height, cl], nil)) | |
432 | + | let cp = (cn - cm) | |
433 | + | let cq = B(co[0]) | |
434 | + | let cr = B(co[1]) | |
435 | + | let aw = toString(B(co[2])) | |
436 | + | let cs = aA() | |
437 | + | let ct = aD() | |
438 | + | let cu = ((cn * cl) / 2) | |
439 | + | let cv = v(bb, cs) | |
440 | + | let cw = valueOrElse(getInteger(bb, ct), 0) | |
441 | + | let cx = 1000 | |
442 | + | let cy = (w(aZ, aN()) * cx) | |
443 | + | let cz = aE(aF, aG) | |
444 | + | let cA = aH(aG) | |
445 | + | let cB = aL(aM, cz) | |
446 | + | let cC = aL(aM, cA) | |
447 | + | let cD = (cB + bW) | |
448 | + | let cE = (cC + bW) | |
449 | + | let bg = if ((aG != cd)) | |
441 | 450 | then { | |
442 | 451 | let be = valueOrErrorMessage(getString(aX, R(aG)), ("unsupported lp asset " + aG)) | |
443 | 452 | getIntegerValue(aX, V(be)) | |
444 | 453 | } | |
445 | 454 | else 0 | |
446 | - | let | |
447 | - | let | |
448 | - | then fraction( | |
455 | + | let cF = fraction(cy, bg, (f * 3)) | |
456 | + | let cG = if ((cE != 0)) | |
457 | + | then fraction(cF, b, cE) | |
449 | 458 | else 0 | |
450 | - | let | |
451 | - | let | |
452 | - | let | |
453 | - | let | |
454 | - | let | |
459 | + | let cH = fraction(cG, cD, b) | |
460 | + | let cI = (cF * 2) | |
461 | + | let cJ = fraction(cn, cI, (cw + cp)) | |
462 | + | let cK = min([cJ, (cH * 2)]) | |
463 | + | let cL = if ((cH == 0)) | |
455 | 464 | then (1 * b) | |
456 | - | else fraction(( | |
457 | - | $Tuple2(nil, makeString(["%d%d%s", toString( | |
465 | + | else fraction((cK + cH), b, cH) | |
466 | + | $Tuple2(nil, makeString(["%d%d%s", toString(cn), toString(cL), "d"], e)) | |
458 | 467 | } | |
459 | 468 | ||
460 | 469 | ||
461 | 470 | ||
462 | - | @Callable( | |
471 | + | @Callable(bB) | |
463 | 472 | func wxEmissionStatsREADONLY () = { | |
464 | - | let | |
465 | - | let | |
473 | + | let cM = toString(b) | |
474 | + | let cN = "1" | |
466 | 475 | let bh = w(aZ, aN()) | |
467 | - | let | |
468 | - | let | |
476 | + | let cO = w(aZ, aP()) | |
477 | + | let cP = if ((cO > height)) | |
469 | 478 | then 0 | |
470 | - | else (height - | |
471 | - | let | |
472 | - | let | |
473 | - | let | |
474 | - | then | |
475 | - | else fraction( | |
476 | - | let | |
477 | - | let | |
478 | - | let | |
479 | - | let | |
480 | - | $Tuple2(nil, makeString(["%d%d%d%d", toString( | |
479 | + | else (height - cO) | |
480 | + | let cQ = (1440 * 365) | |
481 | + | let cR = (201000000 * b) | |
482 | + | let cS = if ((cP > cQ)) | |
483 | + | then cR | |
484 | + | else fraction(cR, cP, cQ) | |
485 | + | let cT = ((bh * cP) + cS) | |
486 | + | let cU = v(bb, ah()) | |
487 | + | let cV = v(bb, ai()) | |
488 | + | let cW = v(bb, aj()) | |
489 | + | $Tuple2(nil, makeString(["%d%d%d%d", toString(cT), toString(cU), toString(cV), toString(cW)], e)) | |
481 | 490 | } | |
482 | 491 | ||
483 | 492 | ||
484 | 493 | ||
485 | - | @Callable( | |
486 | - | func poolStatsREADONLY ( | |
487 | - | let aU = addressFromStringValue(t(aX, U( | |
488 | - | let | |
489 | - | let bd = fromBase58String(D( | |
490 | - | let | |
491 | - | let | |
492 | - | let | |
493 | - | let | |
494 | - | let | |
495 | - | let | |
496 | - | let | |
497 | - | let | |
498 | - | let | |
499 | - | let | |
494 | + | @Callable(bB) | |
495 | + | func poolStatsREADONLY (cX) = { | |
496 | + | let aU = addressFromStringValue(t(aX, U(cX))) | |
497 | + | let cY = x(invoke(aU, "getPoolConfigWrapperREADONLY", nil, nil)) | |
498 | + | let bd = fromBase58String(D(cY[j])) | |
499 | + | let cZ = D(cY[k]) | |
500 | + | let da = D(cY[l]) | |
501 | + | let db = D(cY[o]) | |
502 | + | let dc = D(cY[p]) | |
503 | + | let dd = parseIntValue(D(cY[m])) | |
504 | + | let de = parseIntValue(D(cY[n])) | |
505 | + | let df = valueOrErrorMessage(assetInfo(bd), (("Asset " + toBase58String(bd)) + " doesn't exist")).quantity | |
506 | + | let dg = B(invoke(aU, "getAccBalanceWrapperREADONLY", [cZ], nil)) | |
507 | + | let dh = B(invoke(aU, "getAccBalanceWrapperREADONLY", [da], nil)) | |
508 | + | let di = if ((df == 0)) | |
500 | 509 | then [toString(g), toString(g), toString(g)] | |
501 | - | else x(invoke(aU, "calcPricesWrapperREADONLY", [ | |
502 | - | let | |
503 | - | let | |
504 | - | let | |
510 | + | else x(invoke(aU, "calcPricesWrapperREADONLY", [dg, dh, df], nil)) | |
511 | + | let dj = 0 | |
512 | + | let dk = B(invoke(aU, "fromX18WrapperREADONLY", [di[1], b], nil)) | |
513 | + | let dl = B(invoke(aU, "fromX18WrapperREADONLY", [di[2], b], nil)) | |
505 | 514 | let bg = getIntegerValue(aX, V(toString(aU))) | |
506 | - | let | |
507 | - | let | |
508 | - | let | |
509 | - | if ($isInstanceOf( | |
510 | - | then | |
511 | - | else throw(($getType( | |
515 | + | let dm = aT(aU) | |
516 | + | let dn = { | |
517 | + | let bZ = invoke(aX, "isPoolOneTokenOperationsDisabledREADONLY", [toString(aU)], nil) | |
518 | + | if ($isInstanceOf(bZ, "Boolean")) | |
519 | + | then bZ | |
520 | + | else throw(($getType(bZ) + " couldn't be cast to Boolean")) | |
512 | 521 | } | |
513 | - | let | |
514 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%s", toString( | |
522 | + | let do = !(dn) | |
523 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%s", toString(dg), toString(dh), toString(df), toString(dj), toString(dk), toString(dl), toString(bg), toString(dm), toString(do)], e)) | |
515 | 524 | } | |
516 | 525 | ||
517 | 526 | ||
518 | 527 | ||
519 | - | @Callable( | |
520 | - | func poolEvaluatePutByAmountAssetREADONLY ( | |
521 | - | let aU = addressFromStringValue(t(aX, U( | |
522 | - | let | |
523 | - | let bd = fromBase58String(D( | |
524 | - | let | |
525 | - | let | |
526 | - | let | |
527 | - | let | |
528 | - | let | |
529 | - | let | |
530 | - | let | |
531 | - | let | |
532 | - | let | |
533 | - | let | |
534 | - | let | |
535 | - | let | |
536 | - | let | |
528 | + | @Callable(bB) | |
529 | + | func poolEvaluatePutByAmountAssetREADONLY (cX,dp) = { | |
530 | + | let aU = addressFromStringValue(t(aX, U(cX))) | |
531 | + | let cY = x(invoke(aU, "getPoolConfigWrapperREADONLY", nil, nil)) | |
532 | + | let bd = fromBase58String(D(cY[j])) | |
533 | + | let dq = D(cY[k]) | |
534 | + | let dr = fromBase58String(dq) | |
535 | + | let ds = D(cY[l]) | |
536 | + | let dt = fromBase58String(ds) | |
537 | + | let dd = parseIntValue(D(cY[m])) | |
538 | + | let de = parseIntValue(D(cY[n])) | |
539 | + | let du = D(cY[i]) | |
540 | + | let df = valueOrErrorMessage(assetInfo(bd), (("Asset " + toBase58String(bd)) + " doesn't exist")).quantity | |
541 | + | let dg = B(invoke(aU, "getAccBalanceWrapperREADONLY", [dq], nil)) | |
542 | + | let dh = B(invoke(aU, "getAccBalanceWrapperREADONLY", [ds], nil)) | |
543 | + | let dv = parseBigIntValue(D(invoke(aU, "toX18WrapperREADONLY", [dg, dd], nil))) | |
544 | + | let dw = parseBigIntValue(D(invoke(aU, "toX18WrapperREADONLY", [dh, de], nil))) | |
545 | + | let dx = if ((df == 0)) | |
537 | 546 | then g | |
538 | - | else parseBigIntValue(D(invoke(aU, "calcPriceBigIntWrapperREADONLY", [toString( | |
539 | - | let | |
540 | - | let | |
541 | - | let | |
542 | - | let | |
543 | - | let | |
544 | - | let | |
545 | - | let z = | |
547 | + | else parseBigIntValue(D(invoke(aU, "calcPriceBigIntWrapperREADONLY", [toString(dw), toString(dv)], nil))) | |
548 | + | let dj = B(invoke(aU, "fromX18WrapperREADONLY", [toString(dx), b], nil)) | |
549 | + | let dy = parseBigIntValue(D(invoke(aU, "toX18WrapperREADONLY", [dp, dd], nil))) | |
550 | + | let dz = fraction(dy, dx, d) | |
551 | + | let dA = B(invoke(aU, "fromX18WrapperREADONLY", [toString(dz), de], nil)) | |
552 | + | let ca = invoke(aU, "estimatePutOperationWrapperREADONLY", ["", 500000, dp, dr, dA, dt, "", true, false], nil) | |
553 | + | let dB = { | |
554 | + | let z = ca | |
546 | 555 | if (if (if ($isInstanceOf(z._1, "Int")) | |
547 | 556 | then if ($isInstanceOf(z._3, "Int")) | |
548 | 557 | then if ($isInstanceOf(z._4, "Int")) | |
555 | 564 | then (size(z) == 13) | |
556 | 565 | else false) | |
557 | 566 | then { | |
558 | - | let | |
559 | - | let | |
560 | - | let | |
561 | - | let | |
562 | - | let | |
563 | - | $Tuple5( | |
567 | + | let dC = z._1 | |
568 | + | let dD = z._3 | |
569 | + | let dE = z._4 | |
570 | + | let dF = z._5 | |
571 | + | let dG = z._6 | |
572 | + | $Tuple5(dC, dD, dE, dF, dG) | |
564 | 573 | } | |
565 | 574 | else throw("Couldn't cast types") | |
566 | 575 | } | |
567 | - | let | |
568 | - | let | |
569 | - | let | |
570 | - | let | |
571 | - | let | |
572 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString( | |
576 | + | let dC = dB._1 | |
577 | + | let dD = dB._2 | |
578 | + | let dE = dB._3 | |
579 | + | let dF = dB._4 | |
580 | + | let dG = dB._5 | |
581 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(dC), toString(dj), toString(dE), toString(dF), toString(dG), du, toString(dp), toString(dA)], e)) | |
573 | 582 | } | |
574 | 583 | ||
575 | 584 | ||
576 | 585 | ||
577 | - | @Callable( | |
578 | - | func poolEvaluatePutByPriceAssetREADONLY ( | |
579 | - | let aU = addressFromStringValue(t(aX, U( | |
580 | - | let | |
581 | - | let bd = fromBase58String(D( | |
582 | - | let | |
583 | - | let | |
584 | - | let | |
585 | - | let | |
586 | - | let | |
587 | - | let | |
588 | - | let | |
589 | - | let | |
590 | - | let | |
591 | - | let | |
592 | - | let | |
593 | - | let | |
594 | - | let | |
586 | + | @Callable(bB) | |
587 | + | func poolEvaluatePutByPriceAssetREADONLY (cX,dA) = { | |
588 | + | let aU = addressFromStringValue(t(aX, U(cX))) | |
589 | + | let cY = x(invoke(aU, "getPoolConfigWrapperREADONLY", nil, nil)) | |
590 | + | let bd = fromBase58String(D(cY[j])) | |
591 | + | let dq = D(cY[k]) | |
592 | + | let dr = fromBase58String(dq) | |
593 | + | let ds = D(cY[l]) | |
594 | + | let dt = fromBase58String(ds) | |
595 | + | let dd = parseIntValue(D(cY[m])) | |
596 | + | let de = parseIntValue(D(cY[n])) | |
597 | + | let du = D(cY[i]) | |
598 | + | let df = valueOrErrorMessage(assetInfo(bd), (("Asset " + toBase58String(bd)) + " doesn't exist")).quantity | |
599 | + | let dH = B(invoke(aU, "getAccBalanceWrapperREADONLY", [dq], nil)) | |
600 | + | let dI = B(invoke(aU, "getAccBalanceWrapperREADONLY", [ds], nil)) | |
601 | + | let dJ = parseBigIntValue(D(invoke(aU, "toX18WrapperREADONLY", [dH, dd], nil))) | |
602 | + | let dK = parseBigIntValue(D(invoke(aU, "toX18WrapperREADONLY", [dI, de], nil))) | |
603 | + | let dx = if ((df == 0)) | |
595 | 604 | then g | |
596 | - | else parseBigIntValue(D(invoke(aU, "calcPriceBigIntWrapperREADONLY", [toString( | |
597 | - | let | |
598 | - | let | |
599 | - | let | |
600 | - | let | |
601 | - | let | |
602 | - | let | |
603 | - | let z = | |
605 | + | else parseBigIntValue(D(invoke(aU, "calcPriceBigIntWrapperREADONLY", [toString(dK), toString(dJ)], nil))) | |
606 | + | let dj = B(invoke(aU, "fromX18WrapperREADONLY", [toString(dx), b], nil)) | |
607 | + | let dz = parseBigIntValue(D(invoke(aU, "toX18WrapperREADONLY", [dA, de], nil))) | |
608 | + | let dy = fraction(dz, d, dx) | |
609 | + | let dp = B(invoke(aU, "fromX18WrapperREADONLY", [toString(dy), dd], nil)) | |
610 | + | let ca = invoke(aU, "estimatePutOperationWrapperREADONLY", ["", 500000, dp, dr, dA, dt, "", true, false], nil) | |
611 | + | let dL = { | |
612 | + | let z = ca | |
604 | 613 | if (if (if ($isInstanceOf(z._1, "Int")) | |
605 | 614 | then if ($isInstanceOf(z._3, "Int")) | |
606 | 615 | then if ($isInstanceOf(z._4, "Int")) | |
613 | 622 | then (size(z) == 13) | |
614 | 623 | else false) | |
615 | 624 | then { | |
616 | - | let | |
617 | - | let | |
618 | - | let | |
619 | - | let | |
620 | - | let | |
621 | - | $Tuple5( | |
625 | + | let dC = z._1 | |
626 | + | let dD = z._3 | |
627 | + | let dE = z._4 | |
628 | + | let dF = z._5 | |
629 | + | let dG = z._6 | |
630 | + | $Tuple5(dC, dD, dE, dF, dG) | |
622 | 631 | } | |
623 | 632 | else throw("Couldn't cast types") | |
624 | 633 | } | |
625 | - | let | |
626 | - | let | |
627 | - | let | |
628 | - | let | |
629 | - | let | |
630 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString( | |
634 | + | let dC = dL._1 | |
635 | + | let dD = dL._2 | |
636 | + | let dE = dL._3 | |
637 | + | let dF = dL._4 | |
638 | + | let dG = dL._5 | |
639 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(dC), toString(dj), toString(dE), toString(dF), toString(dG), du, toString(dp), toString(dA)], e)) | |
631 | 640 | } | |
632 | 641 | ||
633 | 642 | ||
634 | 643 | ||
635 | - | @Callable( | |
636 | - | func poolEvaluateGetREADONLY ( | |
637 | - | let aU = addressFromStringValue(t(aX, U( | |
638 | - | let | |
639 | - | let | |
640 | - | let z = | |
644 | + | @Callable(bB) | |
645 | + | func poolEvaluateGetREADONLY (dM,dN) = { | |
646 | + | let aU = addressFromStringValue(t(aX, U(dM))) | |
647 | + | let ca = invoke(aU, "estimateGetOperationWrapperREADONLY", ["", dM, dN, toString(aU)], nil) | |
648 | + | let dO = { | |
649 | + | let z = ca | |
641 | 650 | if (if (if ($isInstanceOf(z._1, "Int")) | |
642 | 651 | then if ($isInstanceOf(z._2, "Int")) | |
643 | 652 | then if ($isInstanceOf(z._5, "Int")) | |
654 | 663 | then (size(z) == 10) | |
655 | 664 | else false) | |
656 | 665 | then { | |
657 | - | let | |
658 | - | let | |
659 | - | let | |
660 | - | let | |
661 | - | let | |
662 | - | let | |
663 | - | let | |
664 | - | $Tuple7( | |
666 | + | let dP = z._1 | |
667 | + | let dQ = z._2 | |
668 | + | let dE = z._5 | |
669 | + | let dF = z._6 | |
670 | + | let dG = z._7 | |
671 | + | let dj = z._8 | |
672 | + | let du = z._9 | |
673 | + | $Tuple7(dP, dQ, dE, dF, dG, dj, du) | |
665 | 674 | } | |
666 | 675 | else throw("Couldn't cast types") | |
667 | 676 | } | |
668 | - | let | |
669 | - | let | |
670 | - | let | |
671 | - | let | |
672 | - | let | |
673 | - | let | |
674 | - | let | |
675 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString( | |
677 | + | let dP = dO._1 | |
678 | + | let dQ = dO._2 | |
679 | + | let dE = dO._3 | |
680 | + | let dF = dO._4 | |
681 | + | let dG = dO._5 | |
682 | + | let dj = dO._6 | |
683 | + | let du = dO._7 | |
684 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(dP), toString(dQ), toString(dE), toString(dF), toString(dG), dj, du], e)) | |
676 | 685 | } | |
677 | 686 | ||
678 | 687 | ||
679 | 688 | ||
680 | - | @Callable( | |
689 | + | @Callable(bB) | |
681 | 690 | func gwxUserInfoREADONLY (am) = { | |
682 | - | let | |
683 | - | let | |
684 | - | $Tuple2(nil, makeString(["%d", toString( | |
691 | + | let dR = x(invoke(bb, "gwxUserInfoREADONLY", [am], nil)) | |
692 | + | let dS = B(dR[0]) | |
693 | + | $Tuple2(nil, makeString(["%d", toString(dS)], e)) | |
685 | 694 | } | |
686 | 695 | ||
687 | 696 | ||
688 | 697 | ||
689 | - | @Callable(by) | |
690 | - | func setManager (dQ) = { | |
691 | - | let bC = bx(by) | |
692 | - | if ((bC == bC)) | |
698 | + | @Callable(bB) | |
699 | + | func getKeysBulkInternal (bN,dT,bT) = if ((bN == size(dT))) | |
700 | + | then $Tuple2(nil, bT) | |
701 | + | else { | |
702 | + | let s = split(dT[bN], e) | |
703 | + | let y = bu(addressFromStringValue(s[0]), s[1], s[2]) | |
704 | + | let ca = (bT :+ y) | |
705 | + | let cb = invoke(this, "getKeysBulkInternal", [(bN + 1), dT, ca], nil) | |
706 | + | if ((cb == cb)) | |
707 | + | then $Tuple2(nil, cb) | |
708 | + | else throw("Strict value is not equal to itself.") | |
709 | + | } | |
710 | + | ||
711 | + | ||
712 | + | ||
713 | + | @Callable(bB) | |
714 | + | func getKeysBulk (dT) = { | |
715 | + | let ca = invoke(this, "getKeysBulkInternal", [0, dT, nil], nil) | |
716 | + | $Tuple2(nil, ca) | |
717 | + | } | |
718 | + | ||
719 | + | ||
720 | + | ||
721 | + | @Callable(bB) | |
722 | + | func setManager (dU) = { | |
723 | + | let bF = bA(bB) | |
724 | + | if ((bF == bF)) | |
693 | 725 | then { | |
694 | - | let | |
695 | - | if (( | |
696 | - | then [StringEntry(H(), | |
726 | + | let dV = fromBase58String(dU) | |
727 | + | if ((dV == dV)) | |
728 | + | then [StringEntry(H(), dU)] | |
697 | 729 | else throw("Strict value is not equal to itself.") | |
698 | 730 | } | |
699 | 731 | else throw("Strict value is not equal to itself.") | |
701 | 733 | ||
702 | 734 | ||
703 | 735 | ||
704 | - | @Callable( | |
736 | + | @Callable(bB) | |
705 | 737 | func confirmManager () = { | |
706 | - | let | |
707 | - | let | |
738 | + | let dW = bz() | |
739 | + | let dX = if (isDefined(dW)) | |
708 | 740 | then true | |
709 | 741 | else throw("No pending manager") | |
710 | - | if (( | |
742 | + | if ((dX == dX)) | |
711 | 743 | then { | |
712 | - | let | |
744 | + | let dY = if ((bB.callerPublicKey == value(dW))) | |
713 | 745 | then true | |
714 | 746 | else throw("You are not pending manager") | |
715 | - | if (( | |
716 | - | then [StringEntry(G(), toBase58String(value( | |
747 | + | if ((dY == dY)) | |
748 | + | then [StringEntry(G(), toBase58String(value(dW))), DeleteEntry(H())] | |
717 | 749 | else throw("Strict value is not equal to itself.") | |
718 | 750 | } | |
719 | 751 | else throw("Strict value is not equal to itself.") | |
720 | 752 | } | |
721 | 753 | ||
722 | 754 | ||
723 | - | @Verifier( | |
724 | - | func | |
725 | - | let | |
726 | - | let z = | |
755 | + | @Verifier(dZ) | |
756 | + | func ea () = { | |
757 | + | let eb = { | |
758 | + | let z = bx() | |
727 | 759 | if ($isInstanceOf(z, "ByteVector")) | |
728 | 760 | then { | |
729 | - | let | |
730 | - | | |
761 | + | let bD = z | |
762 | + | bD | |
731 | 763 | } | |
732 | 764 | else if ($isInstanceOf(z, "Unit")) | |
733 | - | then | |
765 | + | then dZ.senderPublicKey | |
734 | 766 | else throw("Match error") | |
735 | 767 | } | |
736 | - | sigVerify( | |
768 | + | sigVerify(dZ.bodyBytes, dZ.proofs[0], eb) | |
737 | 769 | } | |
738 | 770 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 8 | |
5 | 5 | ||
6 | 6 | let b = 100000000 | |
7 | 7 | ||
8 | 8 | let c = 18 | |
9 | 9 | ||
10 | 10 | let d = toBigInt(1000000000000000000) | |
11 | 11 | ||
12 | 12 | let e = "__" | |
13 | 13 | ||
14 | 14 | let f = b | |
15 | 15 | ||
16 | 16 | let g = toBigInt(0) | |
17 | 17 | ||
18 | 18 | let h = 1 | |
19 | 19 | ||
20 | 20 | let i = 2 | |
21 | 21 | ||
22 | 22 | let j = 3 | |
23 | 23 | ||
24 | 24 | let k = 4 | |
25 | 25 | ||
26 | 26 | let l = 5 | |
27 | 27 | ||
28 | 28 | let m = 6 | |
29 | 29 | ||
30 | 30 | let n = 7 | |
31 | 31 | ||
32 | 32 | let o = 8 | |
33 | 33 | ||
34 | 34 | let p = 9 | |
35 | 35 | ||
36 | 36 | let q = 10 | |
37 | 37 | ||
38 | 38 | func r (s) = valueOrErrorMessage(getString(s), (("mandatory this." + s) + " is not defined")) | |
39 | 39 | ||
40 | 40 | ||
41 | 41 | func t (u,s) = valueOrErrorMessage(getString(u, s), (((("mandatory " + toString(u)) + ".") + s) + " is not defined")) | |
42 | 42 | ||
43 | 43 | ||
44 | 44 | func v (u,s) = valueOrElse(getInteger(u, s), 0) | |
45 | 45 | ||
46 | 46 | ||
47 | 47 | func w (u,s) = valueOrErrorMessage(getInteger(u, s), (("mandatory this." + s) + " is not defined")) | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | func x (y) = { | |
51 | 51 | let z = y | |
52 | 52 | if ($isInstanceOf(z, "List[Any]")) | |
53 | 53 | then { | |
54 | 54 | let A = z | |
55 | 55 | A | |
56 | 56 | } | |
57 | 57 | else throw("fail to cast into List[Any]") | |
58 | 58 | } | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | func B (y) = { | |
62 | 62 | let z = y | |
63 | 63 | if ($isInstanceOf(z, "Int")) | |
64 | 64 | then { | |
65 | 65 | let C = z | |
66 | 66 | C | |
67 | 67 | } | |
68 | 68 | else throw("fail to cast into Int") | |
69 | 69 | } | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | func D (y) = { | |
73 | 73 | let z = y | |
74 | 74 | if ($isInstanceOf(z, "String")) | |
75 | 75 | then { | |
76 | 76 | let E = z | |
77 | 77 | E | |
78 | 78 | } | |
79 | 79 | else throw("fail to cast into String") | |
80 | 80 | } | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func F () = "%s%s__config__factoryAddress" | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func G () = "%s__managerPublicKey" | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func H () = "%s__pendingManagerPublicKey" | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | let I = 1 | |
93 | 93 | ||
94 | 94 | let J = 2 | |
95 | 95 | ||
96 | 96 | let K = 3 | |
97 | 97 | ||
98 | 98 | let L = 4 | |
99 | 99 | ||
100 | 100 | let M = 5 | |
101 | 101 | ||
102 | 102 | let N = 6 | |
103 | 103 | ||
104 | 104 | let O = 7 | |
105 | 105 | ||
106 | 106 | let P = 8 | |
107 | 107 | ||
108 | 108 | func Q () = "%s__factoryConfig" | |
109 | 109 | ||
110 | 110 | ||
111 | 111 | func R (S) = makeString(["%s%s%s", S, "mappings__lpAsset2PoolContract"], e) | |
112 | 112 | ||
113 | 113 | ||
114 | 114 | func T () = "%s__lpTokensList" | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | func U (S) = makeString(["%s%s%s", S, "mappings__lpAsset2PoolContract"], e) | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | func V (W) = makeString(["%s%s", "poolWeight", W], e) | |
121 | 121 | ||
122 | 122 | ||
123 | 123 | func X () = addressFromStringValue(r(F())) | |
124 | 124 | ||
125 | 125 | ||
126 | 126 | func Y () = split(valueOrElse(getString(X(), T()), ""), e) | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | func Z (aa) = split(t(aa, Q()), e) | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | func ab (ac) = addressFromStringValue(ac[J]) | |
133 | 133 | ||
134 | 134 | ||
135 | 135 | func ad (ac) = addressFromStringValue(ac[M]) | |
136 | 136 | ||
137 | 137 | ||
138 | 138 | func ae (ac) = addressFromStringValue(ac[I]) | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | func af (ac) = addressFromStringValue(ac[P]) | |
142 | 142 | ||
143 | 143 | ||
144 | 144 | func ag () = "%s__config" | |
145 | 145 | ||
146 | 146 | ||
147 | 147 | func ah () = "%s%s__stats__activeTotalLocked" | |
148 | 148 | ||
149 | 149 | ||
150 | 150 | func ai () = "%s%s__stats__locksDurationSumInBlocks" | |
151 | 151 | ||
152 | 152 | ||
153 | 153 | func aj () = "%s%s__stats__locksCount" | |
154 | 154 | ||
155 | 155 | ||
156 | 156 | func ak () = "%s%s__stats__activeUsersCount" | |
157 | 157 | ||
158 | 158 | ||
159 | 159 | func al (am) = makeString(["%s%s%s__mapping__user2num", am], e) | |
160 | 160 | ||
161 | 161 | ||
162 | 162 | func an (ao) = makeString(["%s%s%s__mapping__num2user", ao], e) | |
163 | 163 | ||
164 | 164 | ||
165 | 165 | func ap (aq) = makeString(["%s%d%s__paramByUserNum", aq, "amount"], e) | |
166 | 166 | ||
167 | 167 | ||
168 | 168 | func ar (aq) = makeString(["%s%d%s__paramByUserNum", aq, "start"], e) | |
169 | 169 | ||
170 | 170 | ||
171 | 171 | func as (aq) = makeString(["%s%d%s__paramByUserNum", aq, "duration"], e) | |
172 | 172 | ||
173 | 173 | ||
174 | 174 | func at (aq) = makeString(["%s%d%s__paramByUserNum", aq, "k"], e) | |
175 | 175 | ||
176 | 176 | ||
177 | 177 | func au (aq) = makeString(["%s%d%s__paramByUserNum", aq, "b"], e) | |
178 | 178 | ||
179 | 179 | ||
180 | 180 | func av (aq,aw) = makeString(["%s%d%s%d__paramByPeriod", aq, "k", aw], e) | |
181 | 181 | ||
182 | 182 | ||
183 | 183 | func ax (aq,aw) = makeString(["%s%d%s%d__paramByPeriod", aq, "b", aw], e) | |
184 | 184 | ||
185 | 185 | ||
186 | 186 | func ay (aq) = makeString(["%s%d__userBoostEmissionLastInt", aq], e) | |
187 | 187 | ||
188 | 188 | ||
189 | 189 | func az (aq) = makeString(["%s%d__maxBoostInt", aq], e) | |
190 | 190 | ||
191 | 191 | ||
192 | 192 | func aA () = "%s%s__maxBoostInt__total" | |
193 | 193 | ||
194 | 194 | ||
195 | 195 | func aB (aq) = makeString(["%s%d__userBoostAvaliableToClaimTotal", aq], e) | |
196 | 196 | ||
197 | 197 | ||
198 | 198 | func aC (aq) = makeString(["%s%d__userBoostClaimed", aq], e) | |
199 | 199 | ||
200 | 200 | ||
201 | 201 | func aD () = "%s%s__gwxCached__total" | |
202 | 202 | ||
203 | 203 | ||
204 | 204 | func aE (aF,aG) = makeString(["%s%s%s__staked", aF, aG], e) | |
205 | 205 | ||
206 | 206 | ||
207 | 207 | func aH (aG) = ("%s%s%s__staked__total__" + aG) | |
208 | 208 | ||
209 | 209 | ||
210 | 210 | func aI (aG,aF) = makeString(["%s%s%s__claimed", aF, aG], e) | |
211 | 211 | ||
212 | 212 | ||
213 | 213 | func aJ (aG,aF) = makeString(["%s%s%s__claimedMinReward", aF, aG], e) | |
214 | 214 | ||
215 | 215 | ||
216 | 216 | func aK (aG,aF) = makeString(["%s%s%s__claimedBoostReward", aF, aG], e) | |
217 | 217 | ||
218 | 218 | ||
219 | 219 | func aL (aM,s) = valueOrElse(getInteger(aM, s), 0) | |
220 | 220 | ||
221 | 221 | ||
222 | 222 | func aN () = "%s%s__ratePerBlock__current" | |
223 | 223 | ||
224 | 224 | ||
225 | 225 | func aO () = "%s%s__ratePerBlockMax__current" | |
226 | 226 | ||
227 | 227 | ||
228 | 228 | func aP () = "%s%s__emission__startBlock" | |
229 | 229 | ||
230 | 230 | ||
231 | 231 | func aQ () = "%s%s__emission__duration" | |
232 | 232 | ||
233 | 233 | ||
234 | 234 | func aR () = "%s%s__emission__endBlock" | |
235 | 235 | ||
236 | 236 | ||
237 | 237 | func aS () = "%s__addonAddr" | |
238 | 238 | ||
239 | 239 | ||
240 | 240 | func aT (aU) = { | |
241 | 241 | let aV = fraction(5, b, 10000) | |
242 | 242 | let aW = "%s__fee" | |
243 | 243 | valueOrElse(getInteger(aU, aW), aV) | |
244 | 244 | } | |
245 | 245 | ||
246 | 246 | ||
247 | 247 | let aX = X() | |
248 | 248 | ||
249 | 249 | let aY = Z(aX) | |
250 | 250 | ||
251 | 251 | let aZ = ad(aY) | |
252 | 252 | ||
253 | 253 | let aM = ae(aY) | |
254 | 254 | ||
255 | 255 | let ba = af(aY) | |
256 | 256 | ||
257 | 257 | let bb = ab(aY) | |
258 | 258 | ||
259 | 259 | func bc (bd) = { | |
260 | 260 | let be = t(aX, U(bd)) | |
261 | 261 | let bf = b | |
262 | 262 | let bg = getIntegerValue(aX, V(be)) | |
263 | 263 | let bh = w(aZ, aN()) | |
264 | 264 | let bi = w(aZ, aO()) | |
265 | 265 | let bj = 3 | |
266 | 266 | let bk = (fraction(bh, bg, bf) / bj) | |
267 | 267 | let bl = fraction(bi, bg, bf) | |
268 | 268 | let bm = (bj * b) | |
269 | 269 | let bn = v(aM, aH(bd)) | |
270 | 270 | [bk, bm, bn] | |
271 | 271 | } | |
272 | 272 | ||
273 | 273 | ||
274 | 274 | func bo (bp,bq,br) = { | |
275 | 275 | let bs = fraction(bq, b, br) | |
276 | 276 | let bt = fraction(bp, bs, b) | |
277 | 277 | [bt] | |
278 | 278 | } | |
279 | 279 | ||
280 | 280 | ||
281 | - | func bu () = { | |
281 | + | func bu (bv,s,bw) = if ((bw == "string")) | |
282 | + | then getStringValue(bv, s) | |
283 | + | else if ((bw == "int")) | |
284 | + | then toString(getIntegerValue(bv, s)) | |
285 | + | else if ((bw == "boolean")) | |
286 | + | then toString(getBooleanValue(bv, s)) | |
287 | + | else throw("unknown type. expected string/int/boolean") | |
288 | + | ||
289 | + | ||
290 | + | func bx () = { | |
282 | 291 | let z = getString(G()) | |
283 | 292 | if ($isInstanceOf(z, "String")) | |
284 | 293 | then { | |
285 | - | let | |
286 | - | fromBase58String( | |
294 | + | let by = z | |
295 | + | fromBase58String(by) | |
287 | 296 | } | |
288 | 297 | else if ($isInstanceOf(z, "Unit")) | |
289 | 298 | then unit | |
290 | 299 | else throw("Match error") | |
291 | 300 | } | |
292 | 301 | ||
293 | 302 | ||
294 | - | func | |
303 | + | func bz () = { | |
295 | 304 | let z = getString(H()) | |
296 | 305 | if ($isInstanceOf(z, "String")) | |
297 | 306 | then { | |
298 | - | let | |
299 | - | fromBase58String( | |
307 | + | let by = z | |
308 | + | fromBase58String(by) | |
300 | 309 | } | |
301 | 310 | else if ($isInstanceOf(z, "Unit")) | |
302 | 311 | then unit | |
303 | 312 | else throw("Match error") | |
304 | 313 | } | |
305 | 314 | ||
306 | 315 | ||
307 | - | func | |
308 | - | let | |
309 | - | let z = | |
316 | + | func bA (bB) = { | |
317 | + | let bC = throw("Permission denied") | |
318 | + | let z = bx() | |
310 | 319 | if ($isInstanceOf(z, "ByteVector")) | |
311 | 320 | then { | |
312 | - | let | |
313 | - | if (( | |
321 | + | let bD = z | |
322 | + | if ((bB.callerPublicKey == bD)) | |
314 | 323 | then true | |
315 | - | else | |
324 | + | else bC | |
316 | 325 | } | |
317 | 326 | else if ($isInstanceOf(z, "Unit")) | |
318 | - | then if (( | |
327 | + | then if ((bB.caller == this)) | |
319 | 328 | then true | |
320 | - | else | |
329 | + | else bC | |
321 | 330 | else throw("Match error") | |
322 | 331 | } | |
323 | 332 | ||
324 | 333 | ||
325 | - | @Callable( | |
326 | - | func constructor ( | |
327 | - | let | |
328 | - | if (( | |
329 | - | then [StringEntry(F(), | |
334 | + | @Callable(bB) | |
335 | + | func constructor (bE) = { | |
336 | + | let bF = bA(bB) | |
337 | + | if ((bF == bF)) | |
338 | + | then [StringEntry(F(), bE)] | |
330 | 339 | else throw("Strict value is not equal to itself.") | |
331 | 340 | } | |
332 | 341 | ||
333 | 342 | ||
334 | 343 | ||
335 | - | @Callable( | |
344 | + | @Callable(bB) | |
336 | 345 | func currentRewardRateREADONLY (bd) = { | |
337 | - | let | |
338 | - | let bh = | |
339 | - | let bm = | |
340 | - | let bn = | |
346 | + | let bG = bc(bd) | |
347 | + | let bh = bG[0] | |
348 | + | let bm = bG[1] | |
349 | + | let bn = bG[2] | |
341 | 350 | $Tuple2(nil, makeString(["%d%d%d", toString(bh), toString(bm), toString(bn)], e)) | |
342 | 351 | } | |
343 | 352 | ||
344 | 353 | ||
345 | 354 | ||
346 | - | @Callable( | |
355 | + | @Callable(bB) | |
347 | 356 | func currentUserRewardRateREADONLY (bd,am) = { | |
348 | - | let | |
349 | - | let bh = | |
350 | - | let bm = | |
351 | - | let bn = | |
352 | - | let | |
353 | - | let | |
354 | - | let | |
355 | - | let | |
356 | - | let | |
357 | - | let | |
357 | + | let bG = bc(bd) | |
358 | + | let bh = bG[0] | |
359 | + | let bm = bG[1] | |
360 | + | let bn = bG[2] | |
361 | + | let bH = v(aM, aE(am, bd)) | |
362 | + | let bI = split(D(invoke(aM, "claimWxREADONLY", [bd, am], nil)), e) | |
363 | + | let bJ = valueOrErrorMessage(parseInt(bI[5]), "couldn't parse minRewardPart") | |
364 | + | let bK = valueOrErrorMessage(parseInt(bI[6]), "couldn't parse boostRewardPart") | |
365 | + | let bL = bI[7] | |
366 | + | let bM = if ((bK == 0)) | |
358 | 367 | then (1 * b) | |
359 | - | else fraction(( | |
360 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%s", toString(bh), toString(bm), toString(bn), toString( | |
368 | + | else fraction((bJ + bK), b, bJ) | |
369 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%s", toString(bh), toString(bm), toString(bn), toString(bH), toString(bM), bL], e)) | |
361 | 370 | } | |
362 | 371 | ||
363 | 372 | ||
364 | 373 | ||
365 | - | @Callable( | |
366 | - | func calcBoostBulkInternalREADONLY ( | |
367 | - | then $Tuple2(nil, | |
374 | + | @Callable(bB) | |
375 | + | func calcBoostBulkInternalREADONLY (bN,bO,bP,bQ,bR,bS,bT) = if ((bN == size(bO))) | |
376 | + | then $Tuple2(nil, bT) | |
368 | 377 | else { | |
369 | - | let | |
370 | - | let | |
371 | - | let | |
372 | - | let | |
373 | - | let | |
374 | - | let | |
375 | - | if ($isInstanceOf( | |
376 | - | then | |
377 | - | else throw(($getType( | |
378 | + | let bU = bO[bN] | |
379 | + | let bV = bP[bN] | |
380 | + | let bW = bQ[bN] | |
381 | + | let bX = bR[bN] | |
382 | + | let bY = { | |
383 | + | let bZ = invoke(this, "calcBoostREADONLY", [bU, bV, bW, bX, bS], nil) | |
384 | + | if ($isInstanceOf(bZ, "String")) | |
385 | + | then bZ | |
386 | + | else throw(($getType(bZ) + " couldn't be cast to String")) | |
378 | 387 | } | |
379 | - | let | |
380 | - | let | |
381 | - | let | |
382 | - | if ($isInstanceOf( | |
383 | - | then | |
384 | - | else throw(($getType( | |
388 | + | let ca = (bT :+ bY) | |
389 | + | let cb = { | |
390 | + | let bZ = invoke(this, "calcBoostBulkInternalREADONLY", [(bN + 1), bO, bP, bQ, bR, bS, ca], nil) | |
391 | + | if ($isInstanceOf(bZ, "List[Any]")) | |
392 | + | then bZ | |
393 | + | else throw(($getType(bZ) + " couldn't be cast to List[Any]")) | |
385 | 394 | } | |
386 | - | if (( | |
387 | - | then $Tuple2(nil, | |
395 | + | if ((cb == cb)) | |
396 | + | then $Tuple2(nil, cb) | |
388 | 397 | else throw("Strict value is not equal to itself.") | |
389 | 398 | } | |
390 | 399 | ||
391 | 400 | ||
392 | 401 | ||
393 | - | @Callable( | |
394 | - | func calcBoostBulkREADONLY ( | |
395 | - | let | |
396 | - | $Tuple2(nil, | |
402 | + | @Callable(bB) | |
403 | + | func calcBoostBulkREADONLY (bU,bV,bW,bX,bS) = { | |
404 | + | let ca = invoke(this, "calcBoostBulkInternalREADONLY", [0, bU, bV, bW, bX, bS, nil], nil) | |
405 | + | $Tuple2(nil, ca) | |
397 | 406 | } | |
398 | 407 | ||
399 | 408 | ||
400 | 409 | ||
401 | - | @Callable( | |
402 | - | func calcBoostREADONLY ( | |
403 | - | let | |
404 | - | let | |
405 | - | let | |
406 | - | let aG = if (( | |
407 | - | then | |
408 | - | else | |
409 | - | let aF = if (( | |
410 | - | then | |
411 | - | else | |
412 | - | let | |
413 | - | let | |
414 | - | let | |
415 | - | let bq = valueOrElse(getInteger(bb, as( | |
416 | - | let | |
417 | - | let | |
418 | - | let | |
419 | - | let | |
420 | - | let | |
421 | - | let | |
422 | - | let | |
423 | - | let | |
424 | - | let | |
425 | - | let | |
426 | - | let aw = toString(B( | |
427 | - | let | |
428 | - | let | |
429 | - | let | |
430 | - | let | |
431 | - | let | |
432 | - | let | |
433 | - | let | |
434 | - | let | |
435 | - | let | |
436 | - | let | |
437 | - | let | |
438 | - | let | |
439 | - | let | |
440 | - | let bg = if ((aG != | |
410 | + | @Callable(bB) | |
411 | + | func calcBoostREADONLY (bU,bV,bW,bX,bS) = { | |
412 | + | let cc = ba | |
413 | + | let cd = "empty" | |
414 | + | let ce = parseIntValue(split(t(bb, ag()), e)[4]) | |
415 | + | let aG = if ((bX == "")) | |
416 | + | then cd | |
417 | + | else bX | |
418 | + | let aF = if ((bS == "")) | |
419 | + | then cd | |
420 | + | else bS | |
421 | + | let cf = valueOrElse(getString(bb, al(bS)), cd) | |
422 | + | let cg = valueOrElse(getInteger(bb, ap(cf)), 0) | |
423 | + | let ch = valueOrElse(getInteger(bb, ar(cf)), height) | |
424 | + | let bq = valueOrElse(getInteger(bb, as(cf)), 0) | |
425 | + | let ci = (ch + bq) | |
426 | + | let cj = max([(ci - height), 0]) | |
427 | + | let ck = (cg + bU) | |
428 | + | let cl = min([(cj + bV), ce]) | |
429 | + | let cm = B(x(invoke(bb, "gwxUserInfoREADONLY", [aF], nil))[0]) | |
430 | + | let cn = bo(ck, cl, ce)[0] | |
431 | + | let co = x(invoke(cc, "calcGwxParamsREADONLY", [cn, height, cl], nil)) | |
432 | + | let cp = (cn - cm) | |
433 | + | let cq = B(co[0]) | |
434 | + | let cr = B(co[1]) | |
435 | + | let aw = toString(B(co[2])) | |
436 | + | let cs = aA() | |
437 | + | let ct = aD() | |
438 | + | let cu = ((cn * cl) / 2) | |
439 | + | let cv = v(bb, cs) | |
440 | + | let cw = valueOrElse(getInteger(bb, ct), 0) | |
441 | + | let cx = 1000 | |
442 | + | let cy = (w(aZ, aN()) * cx) | |
443 | + | let cz = aE(aF, aG) | |
444 | + | let cA = aH(aG) | |
445 | + | let cB = aL(aM, cz) | |
446 | + | let cC = aL(aM, cA) | |
447 | + | let cD = (cB + bW) | |
448 | + | let cE = (cC + bW) | |
449 | + | let bg = if ((aG != cd)) | |
441 | 450 | then { | |
442 | 451 | let be = valueOrErrorMessage(getString(aX, R(aG)), ("unsupported lp asset " + aG)) | |
443 | 452 | getIntegerValue(aX, V(be)) | |
444 | 453 | } | |
445 | 454 | else 0 | |
446 | - | let | |
447 | - | let | |
448 | - | then fraction( | |
455 | + | let cF = fraction(cy, bg, (f * 3)) | |
456 | + | let cG = if ((cE != 0)) | |
457 | + | then fraction(cF, b, cE) | |
449 | 458 | else 0 | |
450 | - | let | |
451 | - | let | |
452 | - | let | |
453 | - | let | |
454 | - | let | |
459 | + | let cH = fraction(cG, cD, b) | |
460 | + | let cI = (cF * 2) | |
461 | + | let cJ = fraction(cn, cI, (cw + cp)) | |
462 | + | let cK = min([cJ, (cH * 2)]) | |
463 | + | let cL = if ((cH == 0)) | |
455 | 464 | then (1 * b) | |
456 | - | else fraction(( | |
457 | - | $Tuple2(nil, makeString(["%d%d%s", toString( | |
465 | + | else fraction((cK + cH), b, cH) | |
466 | + | $Tuple2(nil, makeString(["%d%d%s", toString(cn), toString(cL), "d"], e)) | |
458 | 467 | } | |
459 | 468 | ||
460 | 469 | ||
461 | 470 | ||
462 | - | @Callable( | |
471 | + | @Callable(bB) | |
463 | 472 | func wxEmissionStatsREADONLY () = { | |
464 | - | let | |
465 | - | let | |
473 | + | let cM = toString(b) | |
474 | + | let cN = "1" | |
466 | 475 | let bh = w(aZ, aN()) | |
467 | - | let | |
468 | - | let | |
476 | + | let cO = w(aZ, aP()) | |
477 | + | let cP = if ((cO > height)) | |
469 | 478 | then 0 | |
470 | - | else (height - | |
471 | - | let | |
472 | - | let | |
473 | - | let | |
474 | - | then | |
475 | - | else fraction( | |
476 | - | let | |
477 | - | let | |
478 | - | let | |
479 | - | let | |
480 | - | $Tuple2(nil, makeString(["%d%d%d%d", toString( | |
479 | + | else (height - cO) | |
480 | + | let cQ = (1440 * 365) | |
481 | + | let cR = (201000000 * b) | |
482 | + | let cS = if ((cP > cQ)) | |
483 | + | then cR | |
484 | + | else fraction(cR, cP, cQ) | |
485 | + | let cT = ((bh * cP) + cS) | |
486 | + | let cU = v(bb, ah()) | |
487 | + | let cV = v(bb, ai()) | |
488 | + | let cW = v(bb, aj()) | |
489 | + | $Tuple2(nil, makeString(["%d%d%d%d", toString(cT), toString(cU), toString(cV), toString(cW)], e)) | |
481 | 490 | } | |
482 | 491 | ||
483 | 492 | ||
484 | 493 | ||
485 | - | @Callable( | |
486 | - | func poolStatsREADONLY ( | |
487 | - | let aU = addressFromStringValue(t(aX, U( | |
488 | - | let | |
489 | - | let bd = fromBase58String(D( | |
490 | - | let | |
491 | - | let | |
492 | - | let | |
493 | - | let | |
494 | - | let | |
495 | - | let | |
496 | - | let | |
497 | - | let | |
498 | - | let | |
499 | - | let | |
494 | + | @Callable(bB) | |
495 | + | func poolStatsREADONLY (cX) = { | |
496 | + | let aU = addressFromStringValue(t(aX, U(cX))) | |
497 | + | let cY = x(invoke(aU, "getPoolConfigWrapperREADONLY", nil, nil)) | |
498 | + | let bd = fromBase58String(D(cY[j])) | |
499 | + | let cZ = D(cY[k]) | |
500 | + | let da = D(cY[l]) | |
501 | + | let db = D(cY[o]) | |
502 | + | let dc = D(cY[p]) | |
503 | + | let dd = parseIntValue(D(cY[m])) | |
504 | + | let de = parseIntValue(D(cY[n])) | |
505 | + | let df = valueOrErrorMessage(assetInfo(bd), (("Asset " + toBase58String(bd)) + " doesn't exist")).quantity | |
506 | + | let dg = B(invoke(aU, "getAccBalanceWrapperREADONLY", [cZ], nil)) | |
507 | + | let dh = B(invoke(aU, "getAccBalanceWrapperREADONLY", [da], nil)) | |
508 | + | let di = if ((df == 0)) | |
500 | 509 | then [toString(g), toString(g), toString(g)] | |
501 | - | else x(invoke(aU, "calcPricesWrapperREADONLY", [ | |
502 | - | let | |
503 | - | let | |
504 | - | let | |
510 | + | else x(invoke(aU, "calcPricesWrapperREADONLY", [dg, dh, df], nil)) | |
511 | + | let dj = 0 | |
512 | + | let dk = B(invoke(aU, "fromX18WrapperREADONLY", [di[1], b], nil)) | |
513 | + | let dl = B(invoke(aU, "fromX18WrapperREADONLY", [di[2], b], nil)) | |
505 | 514 | let bg = getIntegerValue(aX, V(toString(aU))) | |
506 | - | let | |
507 | - | let | |
508 | - | let | |
509 | - | if ($isInstanceOf( | |
510 | - | then | |
511 | - | else throw(($getType( | |
515 | + | let dm = aT(aU) | |
516 | + | let dn = { | |
517 | + | let bZ = invoke(aX, "isPoolOneTokenOperationsDisabledREADONLY", [toString(aU)], nil) | |
518 | + | if ($isInstanceOf(bZ, "Boolean")) | |
519 | + | then bZ | |
520 | + | else throw(($getType(bZ) + " couldn't be cast to Boolean")) | |
512 | 521 | } | |
513 | - | let | |
514 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%s", toString( | |
522 | + | let do = !(dn) | |
523 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%s", toString(dg), toString(dh), toString(df), toString(dj), toString(dk), toString(dl), toString(bg), toString(dm), toString(do)], e)) | |
515 | 524 | } | |
516 | 525 | ||
517 | 526 | ||
518 | 527 | ||
519 | - | @Callable( | |
520 | - | func poolEvaluatePutByAmountAssetREADONLY ( | |
521 | - | let aU = addressFromStringValue(t(aX, U( | |
522 | - | let | |
523 | - | let bd = fromBase58String(D( | |
524 | - | let | |
525 | - | let | |
526 | - | let | |
527 | - | let | |
528 | - | let | |
529 | - | let | |
530 | - | let | |
531 | - | let | |
532 | - | let | |
533 | - | let | |
534 | - | let | |
535 | - | let | |
536 | - | let | |
528 | + | @Callable(bB) | |
529 | + | func poolEvaluatePutByAmountAssetREADONLY (cX,dp) = { | |
530 | + | let aU = addressFromStringValue(t(aX, U(cX))) | |
531 | + | let cY = x(invoke(aU, "getPoolConfigWrapperREADONLY", nil, nil)) | |
532 | + | let bd = fromBase58String(D(cY[j])) | |
533 | + | let dq = D(cY[k]) | |
534 | + | let dr = fromBase58String(dq) | |
535 | + | let ds = D(cY[l]) | |
536 | + | let dt = fromBase58String(ds) | |
537 | + | let dd = parseIntValue(D(cY[m])) | |
538 | + | let de = parseIntValue(D(cY[n])) | |
539 | + | let du = D(cY[i]) | |
540 | + | let df = valueOrErrorMessage(assetInfo(bd), (("Asset " + toBase58String(bd)) + " doesn't exist")).quantity | |
541 | + | let dg = B(invoke(aU, "getAccBalanceWrapperREADONLY", [dq], nil)) | |
542 | + | let dh = B(invoke(aU, "getAccBalanceWrapperREADONLY", [ds], nil)) | |
543 | + | let dv = parseBigIntValue(D(invoke(aU, "toX18WrapperREADONLY", [dg, dd], nil))) | |
544 | + | let dw = parseBigIntValue(D(invoke(aU, "toX18WrapperREADONLY", [dh, de], nil))) | |
545 | + | let dx = if ((df == 0)) | |
537 | 546 | then g | |
538 | - | else parseBigIntValue(D(invoke(aU, "calcPriceBigIntWrapperREADONLY", [toString( | |
539 | - | let | |
540 | - | let | |
541 | - | let | |
542 | - | let | |
543 | - | let | |
544 | - | let | |
545 | - | let z = | |
547 | + | else parseBigIntValue(D(invoke(aU, "calcPriceBigIntWrapperREADONLY", [toString(dw), toString(dv)], nil))) | |
548 | + | let dj = B(invoke(aU, "fromX18WrapperREADONLY", [toString(dx), b], nil)) | |
549 | + | let dy = parseBigIntValue(D(invoke(aU, "toX18WrapperREADONLY", [dp, dd], nil))) | |
550 | + | let dz = fraction(dy, dx, d) | |
551 | + | let dA = B(invoke(aU, "fromX18WrapperREADONLY", [toString(dz), de], nil)) | |
552 | + | let ca = invoke(aU, "estimatePutOperationWrapperREADONLY", ["", 500000, dp, dr, dA, dt, "", true, false], nil) | |
553 | + | let dB = { | |
554 | + | let z = ca | |
546 | 555 | if (if (if ($isInstanceOf(z._1, "Int")) | |
547 | 556 | then if ($isInstanceOf(z._3, "Int")) | |
548 | 557 | then if ($isInstanceOf(z._4, "Int")) | |
549 | 558 | then if ($isInstanceOf(z._5, "Int")) | |
550 | 559 | then $isInstanceOf(z._6, "Int") | |
551 | 560 | else false | |
552 | 561 | else false | |
553 | 562 | else false | |
554 | 563 | else false) | |
555 | 564 | then (size(z) == 13) | |
556 | 565 | else false) | |
557 | 566 | then { | |
558 | - | let | |
559 | - | let | |
560 | - | let | |
561 | - | let | |
562 | - | let | |
563 | - | $Tuple5( | |
567 | + | let dC = z._1 | |
568 | + | let dD = z._3 | |
569 | + | let dE = z._4 | |
570 | + | let dF = z._5 | |
571 | + | let dG = z._6 | |
572 | + | $Tuple5(dC, dD, dE, dF, dG) | |
564 | 573 | } | |
565 | 574 | else throw("Couldn't cast types") | |
566 | 575 | } | |
567 | - | let | |
568 | - | let | |
569 | - | let | |
570 | - | let | |
571 | - | let | |
572 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString( | |
576 | + | let dC = dB._1 | |
577 | + | let dD = dB._2 | |
578 | + | let dE = dB._3 | |
579 | + | let dF = dB._4 | |
580 | + | let dG = dB._5 | |
581 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(dC), toString(dj), toString(dE), toString(dF), toString(dG), du, toString(dp), toString(dA)], e)) | |
573 | 582 | } | |
574 | 583 | ||
575 | 584 | ||
576 | 585 | ||
577 | - | @Callable( | |
578 | - | func poolEvaluatePutByPriceAssetREADONLY ( | |
579 | - | let aU = addressFromStringValue(t(aX, U( | |
580 | - | let | |
581 | - | let bd = fromBase58String(D( | |
582 | - | let | |
583 | - | let | |
584 | - | let | |
585 | - | let | |
586 | - | let | |
587 | - | let | |
588 | - | let | |
589 | - | let | |
590 | - | let | |
591 | - | let | |
592 | - | let | |
593 | - | let | |
594 | - | let | |
586 | + | @Callable(bB) | |
587 | + | func poolEvaluatePutByPriceAssetREADONLY (cX,dA) = { | |
588 | + | let aU = addressFromStringValue(t(aX, U(cX))) | |
589 | + | let cY = x(invoke(aU, "getPoolConfigWrapperREADONLY", nil, nil)) | |
590 | + | let bd = fromBase58String(D(cY[j])) | |
591 | + | let dq = D(cY[k]) | |
592 | + | let dr = fromBase58String(dq) | |
593 | + | let ds = D(cY[l]) | |
594 | + | let dt = fromBase58String(ds) | |
595 | + | let dd = parseIntValue(D(cY[m])) | |
596 | + | let de = parseIntValue(D(cY[n])) | |
597 | + | let du = D(cY[i]) | |
598 | + | let df = valueOrErrorMessage(assetInfo(bd), (("Asset " + toBase58String(bd)) + " doesn't exist")).quantity | |
599 | + | let dH = B(invoke(aU, "getAccBalanceWrapperREADONLY", [dq], nil)) | |
600 | + | let dI = B(invoke(aU, "getAccBalanceWrapperREADONLY", [ds], nil)) | |
601 | + | let dJ = parseBigIntValue(D(invoke(aU, "toX18WrapperREADONLY", [dH, dd], nil))) | |
602 | + | let dK = parseBigIntValue(D(invoke(aU, "toX18WrapperREADONLY", [dI, de], nil))) | |
603 | + | let dx = if ((df == 0)) | |
595 | 604 | then g | |
596 | - | else parseBigIntValue(D(invoke(aU, "calcPriceBigIntWrapperREADONLY", [toString( | |
597 | - | let | |
598 | - | let | |
599 | - | let | |
600 | - | let | |
601 | - | let | |
602 | - | let | |
603 | - | let z = | |
605 | + | else parseBigIntValue(D(invoke(aU, "calcPriceBigIntWrapperREADONLY", [toString(dK), toString(dJ)], nil))) | |
606 | + | let dj = B(invoke(aU, "fromX18WrapperREADONLY", [toString(dx), b], nil)) | |
607 | + | let dz = parseBigIntValue(D(invoke(aU, "toX18WrapperREADONLY", [dA, de], nil))) | |
608 | + | let dy = fraction(dz, d, dx) | |
609 | + | let dp = B(invoke(aU, "fromX18WrapperREADONLY", [toString(dy), dd], nil)) | |
610 | + | let ca = invoke(aU, "estimatePutOperationWrapperREADONLY", ["", 500000, dp, dr, dA, dt, "", true, false], nil) | |
611 | + | let dL = { | |
612 | + | let z = ca | |
604 | 613 | if (if (if ($isInstanceOf(z._1, "Int")) | |
605 | 614 | then if ($isInstanceOf(z._3, "Int")) | |
606 | 615 | then if ($isInstanceOf(z._4, "Int")) | |
607 | 616 | then if ($isInstanceOf(z._5, "Int")) | |
608 | 617 | then $isInstanceOf(z._6, "Int") | |
609 | 618 | else false | |
610 | 619 | else false | |
611 | 620 | else false | |
612 | 621 | else false) | |
613 | 622 | then (size(z) == 13) | |
614 | 623 | else false) | |
615 | 624 | then { | |
616 | - | let | |
617 | - | let | |
618 | - | let | |
619 | - | let | |
620 | - | let | |
621 | - | $Tuple5( | |
625 | + | let dC = z._1 | |
626 | + | let dD = z._3 | |
627 | + | let dE = z._4 | |
628 | + | let dF = z._5 | |
629 | + | let dG = z._6 | |
630 | + | $Tuple5(dC, dD, dE, dF, dG) | |
622 | 631 | } | |
623 | 632 | else throw("Couldn't cast types") | |
624 | 633 | } | |
625 | - | let | |
626 | - | let | |
627 | - | let | |
628 | - | let | |
629 | - | let | |
630 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString( | |
634 | + | let dC = dL._1 | |
635 | + | let dD = dL._2 | |
636 | + | let dE = dL._3 | |
637 | + | let dF = dL._4 | |
638 | + | let dG = dL._5 | |
639 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(dC), toString(dj), toString(dE), toString(dF), toString(dG), du, toString(dp), toString(dA)], e)) | |
631 | 640 | } | |
632 | 641 | ||
633 | 642 | ||
634 | 643 | ||
635 | - | @Callable( | |
636 | - | func poolEvaluateGetREADONLY ( | |
637 | - | let aU = addressFromStringValue(t(aX, U( | |
638 | - | let | |
639 | - | let | |
640 | - | let z = | |
644 | + | @Callable(bB) | |
645 | + | func poolEvaluateGetREADONLY (dM,dN) = { | |
646 | + | let aU = addressFromStringValue(t(aX, U(dM))) | |
647 | + | let ca = invoke(aU, "estimateGetOperationWrapperREADONLY", ["", dM, dN, toString(aU)], nil) | |
648 | + | let dO = { | |
649 | + | let z = ca | |
641 | 650 | if (if (if ($isInstanceOf(z._1, "Int")) | |
642 | 651 | then if ($isInstanceOf(z._2, "Int")) | |
643 | 652 | then if ($isInstanceOf(z._5, "Int")) | |
644 | 653 | then if ($isInstanceOf(z._6, "Int")) | |
645 | 654 | then if ($isInstanceOf(z._7, "Int")) | |
646 | 655 | then if ($isInstanceOf(z._8, "String")) | |
647 | 656 | then $isInstanceOf(z._9, "String") | |
648 | 657 | else false | |
649 | 658 | else false | |
650 | 659 | else false | |
651 | 660 | else false | |
652 | 661 | else false | |
653 | 662 | else false) | |
654 | 663 | then (size(z) == 10) | |
655 | 664 | else false) | |
656 | 665 | then { | |
657 | - | let | |
658 | - | let | |
659 | - | let | |
660 | - | let | |
661 | - | let | |
662 | - | let | |
663 | - | let | |
664 | - | $Tuple7( | |
666 | + | let dP = z._1 | |
667 | + | let dQ = z._2 | |
668 | + | let dE = z._5 | |
669 | + | let dF = z._6 | |
670 | + | let dG = z._7 | |
671 | + | let dj = z._8 | |
672 | + | let du = z._9 | |
673 | + | $Tuple7(dP, dQ, dE, dF, dG, dj, du) | |
665 | 674 | } | |
666 | 675 | else throw("Couldn't cast types") | |
667 | 676 | } | |
668 | - | let | |
669 | - | let | |
670 | - | let | |
671 | - | let | |
672 | - | let | |
673 | - | let | |
674 | - | let | |
675 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString( | |
677 | + | let dP = dO._1 | |
678 | + | let dQ = dO._2 | |
679 | + | let dE = dO._3 | |
680 | + | let dF = dO._4 | |
681 | + | let dG = dO._5 | |
682 | + | let dj = dO._6 | |
683 | + | let du = dO._7 | |
684 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(dP), toString(dQ), toString(dE), toString(dF), toString(dG), dj, du], e)) | |
676 | 685 | } | |
677 | 686 | ||
678 | 687 | ||
679 | 688 | ||
680 | - | @Callable( | |
689 | + | @Callable(bB) | |
681 | 690 | func gwxUserInfoREADONLY (am) = { | |
682 | - | let | |
683 | - | let | |
684 | - | $Tuple2(nil, makeString(["%d", toString( | |
691 | + | let dR = x(invoke(bb, "gwxUserInfoREADONLY", [am], nil)) | |
692 | + | let dS = B(dR[0]) | |
693 | + | $Tuple2(nil, makeString(["%d", toString(dS)], e)) | |
685 | 694 | } | |
686 | 695 | ||
687 | 696 | ||
688 | 697 | ||
689 | - | @Callable(by) | |
690 | - | func setManager (dQ) = { | |
691 | - | let bC = bx(by) | |
692 | - | if ((bC == bC)) | |
698 | + | @Callable(bB) | |
699 | + | func getKeysBulkInternal (bN,dT,bT) = if ((bN == size(dT))) | |
700 | + | then $Tuple2(nil, bT) | |
701 | + | else { | |
702 | + | let s = split(dT[bN], e) | |
703 | + | let y = bu(addressFromStringValue(s[0]), s[1], s[2]) | |
704 | + | let ca = (bT :+ y) | |
705 | + | let cb = invoke(this, "getKeysBulkInternal", [(bN + 1), dT, ca], nil) | |
706 | + | if ((cb == cb)) | |
707 | + | then $Tuple2(nil, cb) | |
708 | + | else throw("Strict value is not equal to itself.") | |
709 | + | } | |
710 | + | ||
711 | + | ||
712 | + | ||
713 | + | @Callable(bB) | |
714 | + | func getKeysBulk (dT) = { | |
715 | + | let ca = invoke(this, "getKeysBulkInternal", [0, dT, nil], nil) | |
716 | + | $Tuple2(nil, ca) | |
717 | + | } | |
718 | + | ||
719 | + | ||
720 | + | ||
721 | + | @Callable(bB) | |
722 | + | func setManager (dU) = { | |
723 | + | let bF = bA(bB) | |
724 | + | if ((bF == bF)) | |
693 | 725 | then { | |
694 | - | let | |
695 | - | if (( | |
696 | - | then [StringEntry(H(), | |
726 | + | let dV = fromBase58String(dU) | |
727 | + | if ((dV == dV)) | |
728 | + | then [StringEntry(H(), dU)] | |
697 | 729 | else throw("Strict value is not equal to itself.") | |
698 | 730 | } | |
699 | 731 | else throw("Strict value is not equal to itself.") | |
700 | 732 | } | |
701 | 733 | ||
702 | 734 | ||
703 | 735 | ||
704 | - | @Callable( | |
736 | + | @Callable(bB) | |
705 | 737 | func confirmManager () = { | |
706 | - | let | |
707 | - | let | |
738 | + | let dW = bz() | |
739 | + | let dX = if (isDefined(dW)) | |
708 | 740 | then true | |
709 | 741 | else throw("No pending manager") | |
710 | - | if (( | |
742 | + | if ((dX == dX)) | |
711 | 743 | then { | |
712 | - | let | |
744 | + | let dY = if ((bB.callerPublicKey == value(dW))) | |
713 | 745 | then true | |
714 | 746 | else throw("You are not pending manager") | |
715 | - | if (( | |
716 | - | then [StringEntry(G(), toBase58String(value( | |
747 | + | if ((dY == dY)) | |
748 | + | then [StringEntry(G(), toBase58String(value(dW))), DeleteEntry(H())] | |
717 | 749 | else throw("Strict value is not equal to itself.") | |
718 | 750 | } | |
719 | 751 | else throw("Strict value is not equal to itself.") | |
720 | 752 | } | |
721 | 753 | ||
722 | 754 | ||
723 | - | @Verifier( | |
724 | - | func | |
725 | - | let | |
726 | - | let z = | |
755 | + | @Verifier(dZ) | |
756 | + | func ea () = { | |
757 | + | let eb = { | |
758 | + | let z = bx() | |
727 | 759 | if ($isInstanceOf(z, "ByteVector")) | |
728 | 760 | then { | |
729 | - | let | |
730 | - | | |
761 | + | let bD = z | |
762 | + | bD | |
731 | 763 | } | |
732 | 764 | else if ($isInstanceOf(z, "Unit")) | |
733 | - | then | |
765 | + | then dZ.senderPublicKey | |
734 | 766 | else throw("Match error") | |
735 | 767 | } | |
736 | - | sigVerify( | |
768 | + | sigVerify(dZ.bodyBytes, dZ.proofs[0], eb) | |
737 | 769 | } | |
738 | 770 |
github/deemru/w8io/169f3d6 170.94 ms ◑