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