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:BgLdIQgCEgMKAQgSAwoBCBIECgIICBIJCgcBERERGAgYEgcKBRERERgIEgcKBQEBAQgIEgASAwoBCBIECgIIARIECgIIARIECgIIARIDCgEIEgUKAwEYGBIDCgEYEgMKAQgSACIGU0NBTEU4IgVNVUxUOCIHU0NBTEUxOCIGTVVMVDE4IgNTRVAiDlBPT0xXRUlHSFRNVUxUIgp6ZXJvQmlnSW50Ig5pZHhQb29sQWRkcmVzcyINaWR4UG9vbFN0YXR1cyIQaWR4UG9vbExQQXNzZXRJZCINaWR4QW10QXNzZXRJZCIPaWR4UHJpY2VBc3NldElkIg5pZHhBbXRBc3NldERjbSIQaWR4UHJpY2VBc3NldERjbSIOaWR4SUFtdEFzc2V0SWQiEGlkeElQcmljZUFzc2V0SWQiDWlkeExQQXNzZXREY20iD2dldFN0cmluZ09yRmFpbCIDa2V5IhhnZXRTdHJpbmdCeUFkZHJlc3NPckZhaWwiB2FkZHJlc3MiDGdldEludE9yWmVybyIMZ2V0SW50T3JGYWlsIglhc0FueUxpc3QiA3ZhbCIHJG1hdGNoMCIKdmFsQW55THlzdCIFYXNJbnQiBnZhbEludC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ib2R5Qnl0ZXMJAJEDAggFAmRaBnByb29mcwAABQJlYnfI6sI=", "chainId": 84, "height": 2298316, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: oZphfpjiAh6XS7JGv64HBkSi5Zx1xfzAiYepE8CJrQP Next: 7bZPH8agqtUr9AL9pd7HpGAyzxprJBZjgrdFjypHxyJE Diff:
OldNewDifferences
278278 }
279279
280280
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 () = {
282291 let z = getString(G())
283292 if ($isInstanceOf(z, "String"))
284293 then {
285- let bv = z
286- fromBase58String(bv)
294+ let by = z
295+ fromBase58String(by)
287296 }
288297 else if ($isInstanceOf(z, "Unit"))
289298 then unit
291300 }
292301
293302
294-func bw () = {
303+func bz () = {
295304 let z = getString(H())
296305 if ($isInstanceOf(z, "String"))
297306 then {
298- let bv = z
299- fromBase58String(bv)
307+ let by = z
308+ fromBase58String(by)
300309 }
301310 else if ($isInstanceOf(z, "Unit"))
302311 then unit
304313 }
305314
306315
307-func bx (by) = {
308- let bz = throw("Permission denied")
309- let z = bu()
316+func bA (bB) = {
317+ let bC = throw("Permission denied")
318+ let z = bx()
310319 if ($isInstanceOf(z, "ByteVector"))
311320 then {
312- let bA = z
313- if ((by.callerPublicKey == bA))
321+ let bD = z
322+ if ((bB.callerPublicKey == bD))
314323 then true
315- else bz
324+ else bC
316325 }
317326 else if ($isInstanceOf(z, "Unit"))
318- then if ((by.caller == this))
327+ then if ((bB.caller == this))
319328 then true
320- else bz
329+ else bC
321330 else throw("Match error")
322331 }
323332
324333
325-@Callable(by)
326-func constructor (bB) = {
327- let bC = bx(by)
328- if ((bC == bC))
329- then [StringEntry(F(), bB)]
334+@Callable(bB)
335+func constructor (bE) = {
336+ let bF = bA(bB)
337+ if ((bF == bF))
338+ then [StringEntry(F(), bE)]
330339 else throw("Strict value is not equal to itself.")
331340 }
332341
333342
334343
335-@Callable(by)
344+@Callable(bB)
336345 func currentRewardRateREADONLY (bd) = {
337- let bD = bc(bd)
338- let bh = bD[0]
339- let bm = bD[1]
340- let bn = bD[2]
346+ let bG = bc(bd)
347+ let bh = bG[0]
348+ let bm = bG[1]
349+ let bn = bG[2]
341350 $Tuple2(nil, makeString(["%d%d%d", toString(bh), toString(bm), toString(bn)], e))
342351 }
343352
344353
345354
346-@Callable(by)
355+@Callable(bB)
347356 func currentUserRewardRateREADONLY (bd,am) = {
348- let bD = bc(bd)
349- let bh = bD[0]
350- let bm = bD[1]
351- let bn = bD[2]
352- let bE = v(aM, aE(am, bd))
353- let bF = split(D(invoke(aM, "claimWxREADONLY", [bd, am], nil)), e)
354- let bG = valueOrErrorMessage(parseInt(bF[5]), "couldn't parse minRewardPart")
355- let bH = valueOrErrorMessage(parseInt(bF[6]), "couldn't parse boostRewardPart")
356- let bI = bF[7]
357- let bJ = if ((bH == 0))
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))
358367 then (1 * b)
359- else fraction((bG + bH), b, bG)
360- $Tuple2(nil, makeString(["%d%d%d%d%d%s", toString(bh), toString(bm), toString(bn), toString(bE), toString(bJ), bI], e))
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))
361370 }
362371
363372
364373
365-@Callable(by)
366-func calcBoostBulkInternalREADONLY (bK,bL,bM,bN,bO,bP,bQ) = if ((bK == size(bL)))
367- then $Tuple2(nil, bQ)
374+@Callable(bB)
375+func calcBoostBulkInternalREADONLY (bN,bO,bP,bQ,bR,bS,bT) = if ((bN == size(bO)))
376+ then $Tuple2(nil, bT)
368377 else {
369- let bR = bL[bK]
370- let bS = bM[bK]
371- let bT = bN[bK]
372- let bU = bO[bK]
373- let bV = {
374- let bW = invoke(this, "calcBoostREADONLY", [bR, bS, bT, bU, bP], nil)
375- if ($isInstanceOf(bW, "String"))
376- then bW
377- else throw(($getType(bW) + " couldn't be cast to String"))
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"))
378387 }
379- let bX = (bQ :+ bV)
380- let bY = {
381- let bW = invoke(this, "calcBoostBulkInternalREADONLY", [(bK + 1), bL, bM, bN, bO, bP, bX], nil)
382- if ($isInstanceOf(bW, "List[Any]"))
383- then bW
384- else throw(($getType(bW) + " couldn't be cast to List[Any]"))
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]"))
385394 }
386- if ((bY == bY))
387- then $Tuple2(nil, bY)
395+ if ((cb == cb))
396+ then $Tuple2(nil, cb)
388397 else throw("Strict value is not equal to itself.")
389398 }
390399
391400
392401
393-@Callable(by)
394-func calcBoostBulkREADONLY (bR,bS,bT,bU,bP) = {
395- let bX = invoke(this, "calcBoostBulkInternalREADONLY", [0, bR, bS, bT, bU, bP, nil], nil)
396- $Tuple2(nil, bX)
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)
397406 }
398407
399408
400409
401-@Callable(by)
402-func calcBoostREADONLY (bR,bS,bT,bU,bP) = {
403- let bZ = ba
404- let ca = "empty"
405- let cb = parseIntValue(split(t(bb, ag()), e)[4])
406- let aG = if ((bU == ""))
407- then ca
408- else bU
409- let aF = if ((bP == ""))
410- then ca
411- else bP
412- let cc = valueOrElse(getString(bb, al(bP)), ca)
413- let cd = valueOrElse(getInteger(bb, ap(cc)), 0)
414- let ce = valueOrElse(getInteger(bb, ar(cc)), height)
415- let bq = valueOrElse(getInteger(bb, as(cc)), 0)
416- let cf = (ce + bq)
417- let cg = max([(cf - height), 0])
418- let ch = (cd + bR)
419- let ci = min([(cg + bS), cb])
420- let cj = B(x(invoke(bb, "gwxUserInfoREADONLY", [aF], nil))[0])
421- let ck = bo(ch, ci, cb)[0]
422- let cl = x(invoke(bZ, "calcGwxParamsREADONLY", [ck, height, ci], nil))
423- let cm = (ck - cj)
424- let cn = B(cl[0])
425- let co = B(cl[1])
426- let aw = toString(B(cl[2]))
427- let cp = aA()
428- let cq = aD()
429- let cr = ((ck * ci) / 2)
430- let cs = v(bb, cp)
431- let ct = valueOrElse(getInteger(bb, cq), 0)
432- let cu = 1000
433- let cv = (w(aZ, aN()) * cu)
434- let cw = aE(aF, aG)
435- let cx = aH(aG)
436- let cy = aL(aM, cw)
437- let cz = aL(aM, cx)
438- let cA = (cy + bT)
439- let cB = (cz + bT)
440- let bg = if ((aG != ca))
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))
441450 then {
442451 let be = valueOrErrorMessage(getString(aX, R(aG)), ("unsupported lp asset " + aG))
443452 getIntegerValue(aX, V(be))
444453 }
445454 else 0
446- let cC = fraction(cv, bg, (f * 3))
447- let cD = if ((cB != 0))
448- then fraction(cC, b, cB)
455+ let cF = fraction(cy, bg, (f * 3))
456+ let cG = if ((cE != 0))
457+ then fraction(cF, b, cE)
449458 else 0
450- let cE = fraction(cD, cA, b)
451- let cF = (cC * 2)
452- let cG = fraction(ck, cF, (ct + cm))
453- let cH = min([cG, (cE * 2)])
454- let cI = if ((cE == 0))
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))
455464 then (1 * b)
456- else fraction((cH + cE), b, cE)
457- $Tuple2(nil, makeString(["%d%d%s", toString(ck), toString(cI), "d"], e))
465+ else fraction((cK + cH), b, cH)
466+ $Tuple2(nil, makeString(["%d%d%s", toString(cn), toString(cL), "d"], e))
458467 }
459468
460469
461470
462-@Callable(by)
471+@Callable(bB)
463472 func wxEmissionStatsREADONLY () = {
464- let cJ = toString(b)
465- let cK = "1"
473+ let cM = toString(b)
474+ let cN = "1"
466475 let bh = w(aZ, aN())
467- let cL = w(aZ, aP())
468- let cM = if ((cL > height))
476+ let cO = w(aZ, aP())
477+ let cP = if ((cO > height))
469478 then 0
470- else (height - cL)
471- let cN = (1440 * 365)
472- let cO = (201000000 * b)
473- let cP = if ((cM > cN))
474- then cO
475- else fraction(cO, cM, cN)
476- let cQ = ((bh * cM) + cP)
477- let cR = v(bb, ah())
478- let cS = v(bb, ai())
479- let cT = v(bb, aj())
480- $Tuple2(nil, makeString(["%d%d%d%d", toString(cQ), toString(cR), toString(cS), toString(cT)], e))
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))
481490 }
482491
483492
484493
485-@Callable(by)
486-func poolStatsREADONLY (cU) = {
487- let aU = addressFromStringValue(t(aX, U(cU)))
488- let cV = x(invoke(aU, "getPoolConfigWrapperREADONLY", nil, nil))
489- let bd = fromBase58String(D(cV[j]))
490- let cW = D(cV[k])
491- let cX = D(cV[l])
492- let cY = D(cV[o])
493- let cZ = D(cV[p])
494- let da = parseIntValue(D(cV[m]))
495- let db = parseIntValue(D(cV[n]))
496- let dc = valueOrErrorMessage(assetInfo(bd), (("Asset " + toBase58String(bd)) + " doesn't exist")).quantity
497- let dd = B(invoke(aU, "getAccBalanceWrapperREADONLY", [cW], nil))
498- let de = B(invoke(aU, "getAccBalanceWrapperREADONLY", [cX], nil))
499- let df = if ((dc == 0))
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))
500509 then [toString(g), toString(g), toString(g)]
501- else x(invoke(aU, "calcPricesWrapperREADONLY", [dd, de, dc], nil))
502- let dg = 0
503- let dh = B(invoke(aU, "fromX18WrapperREADONLY", [df[1], b], nil))
504- let di = B(invoke(aU, "fromX18WrapperREADONLY", [df[2], b], nil))
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))
505514 let bg = getIntegerValue(aX, V(toString(aU)))
506- let dj = aT(aU)
507- let dk = {
508- let bW = invoke(aX, "isPoolOneTokenOperationsDisabledREADONLY", [toString(aU)], nil)
509- if ($isInstanceOf(bW, "Boolean"))
510- then bW
511- else throw(($getType(bW) + " couldn't be cast to Boolean"))
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"))
512521 }
513- let dl = !(dk)
514- $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%s", toString(dd), toString(de), toString(dc), toString(dg), toString(dh), toString(di), toString(bg), toString(dj), toString(dl)], e))
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))
515524 }
516525
517526
518527
519-@Callable(by)
520-func poolEvaluatePutByAmountAssetREADONLY (cU,dm) = {
521- let aU = addressFromStringValue(t(aX, U(cU)))
522- let cV = x(invoke(aU, "getPoolConfigWrapperREADONLY", nil, nil))
523- let bd = fromBase58String(D(cV[j]))
524- let dn = D(cV[k])
525- let do = fromBase58String(dn)
526- let dp = D(cV[l])
527- let dq = fromBase58String(dp)
528- let da = parseIntValue(D(cV[m]))
529- let db = parseIntValue(D(cV[n]))
530- let dr = D(cV[i])
531- let dc = valueOrErrorMessage(assetInfo(bd), (("Asset " + toBase58String(bd)) + " doesn't exist")).quantity
532- let dd = B(invoke(aU, "getAccBalanceWrapperREADONLY", [dn], nil))
533- let de = B(invoke(aU, "getAccBalanceWrapperREADONLY", [dp], nil))
534- let ds = parseBigIntValue(D(invoke(aU, "toX18WrapperREADONLY", [dd, da], nil)))
535- let dt = parseBigIntValue(D(invoke(aU, "toX18WrapperREADONLY", [de, db], nil)))
536- let du = if ((dc == 0))
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))
537546 then g
538- else parseBigIntValue(D(invoke(aU, "calcPriceBigIntWrapperREADONLY", [toString(dt), toString(ds)], nil)))
539- let dg = B(invoke(aU, "fromX18WrapperREADONLY", [toString(du), b], nil))
540- let dv = parseBigIntValue(D(invoke(aU, "toX18WrapperREADONLY", [dm, da], nil)))
541- let dw = fraction(dv, du, d)
542- let dx = B(invoke(aU, "fromX18WrapperREADONLY", [toString(dw), db], nil))
543- let bX = invoke(aU, "estimatePutOperationWrapperREADONLY", ["", 500000, dm, do, dx, dq, "", true, false], nil)
544- let dy = {
545- let z = bX
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
546555 if (if (if ($isInstanceOf(z._1, "Int"))
547556 then if ($isInstanceOf(z._3, "Int"))
548557 then if ($isInstanceOf(z._4, "Int"))
555564 then (size(z) == 13)
556565 else false)
557566 then {
558- let dz = z._1
559- let dA = z._3
560- let dB = z._4
561- let dC = z._5
562- let dD = z._6
563- $Tuple5(dz, dA, dB, dC, dD)
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)
564573 }
565574 else throw("Couldn't cast types")
566575 }
567- let dz = dy._1
568- let dA = dy._2
569- let dB = dy._3
570- let dC = dy._4
571- let dD = dy._5
572- $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(dz), toString(dg), toString(dB), toString(dC), toString(dD), dr, toString(dm), toString(dx)], e))
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))
573582 }
574583
575584
576585
577-@Callable(by)
578-func poolEvaluatePutByPriceAssetREADONLY (cU,dx) = {
579- let aU = addressFromStringValue(t(aX, U(cU)))
580- let cV = x(invoke(aU, "getPoolConfigWrapperREADONLY", nil, nil))
581- let bd = fromBase58String(D(cV[j]))
582- let dn = D(cV[k])
583- let do = fromBase58String(dn)
584- let dp = D(cV[l])
585- let dq = fromBase58String(dp)
586- let da = parseIntValue(D(cV[m]))
587- let db = parseIntValue(D(cV[n]))
588- let dr = D(cV[i])
589- let dc = valueOrErrorMessage(assetInfo(bd), (("Asset " + toBase58String(bd)) + " doesn't exist")).quantity
590- let dE = B(invoke(aU, "getAccBalanceWrapperREADONLY", [dn], nil))
591- let dF = B(invoke(aU, "getAccBalanceWrapperREADONLY", [dp], nil))
592- let dG = parseBigIntValue(D(invoke(aU, "toX18WrapperREADONLY", [dE, da], nil)))
593- let dH = parseBigIntValue(D(invoke(aU, "toX18WrapperREADONLY", [dF, db], nil)))
594- let du = if ((dc == 0))
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))
595604 then g
596- else parseBigIntValue(D(invoke(aU, "calcPriceBigIntWrapperREADONLY", [toString(dH), toString(dG)], nil)))
597- let dg = B(invoke(aU, "fromX18WrapperREADONLY", [toString(du), b], nil))
598- let dw = parseBigIntValue(D(invoke(aU, "toX18WrapperREADONLY", [dx, db], nil)))
599- let dv = fraction(dw, d, du)
600- let dm = B(invoke(aU, "fromX18WrapperREADONLY", [toString(dv), da], nil))
601- let bX = invoke(aU, "estimatePutOperationWrapperREADONLY", ["", 500000, dm, do, dx, dq, "", true, false], nil)
602- let dI = {
603- let z = bX
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
604613 if (if (if ($isInstanceOf(z._1, "Int"))
605614 then if ($isInstanceOf(z._3, "Int"))
606615 then if ($isInstanceOf(z._4, "Int"))
613622 then (size(z) == 13)
614623 else false)
615624 then {
616- let dz = z._1
617- let dA = z._3
618- let dB = z._4
619- let dC = z._5
620- let dD = z._6
621- $Tuple5(dz, dA, dB, dC, dD)
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)
622631 }
623632 else throw("Couldn't cast types")
624633 }
625- let dz = dI._1
626- let dA = dI._2
627- let dB = dI._3
628- let dC = dI._4
629- let dD = dI._5
630- $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(dz), toString(dg), toString(dB), toString(dC), toString(dD), dr, toString(dm), toString(dx)], e))
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))
631640 }
632641
633642
634643
635-@Callable(by)
636-func poolEvaluateGetREADONLY (dJ,dK) = {
637- let aU = addressFromStringValue(t(aX, U(dJ)))
638- let bX = invoke(aU, "estimateGetOperationWrapperREADONLY", ["", dJ, dK, toString(aU)], nil)
639- let dL = {
640- let z = bX
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
641650 if (if (if ($isInstanceOf(z._1, "Int"))
642651 then if ($isInstanceOf(z._2, "Int"))
643652 then if ($isInstanceOf(z._5, "Int"))
654663 then (size(z) == 10)
655664 else false)
656665 then {
657- let dM = z._1
658- let dN = z._2
659- let dB = z._5
660- let dC = z._6
661- let dD = z._7
662- let dg = z._8
663- let dr = z._9
664- $Tuple7(dM, dN, dB, dC, dD, dg, dr)
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)
665674 }
666675 else throw("Couldn't cast types")
667676 }
668- let dM = dL._1
669- let dN = dL._2
670- let dB = dL._3
671- let dC = dL._4
672- let dD = dL._5
673- let dg = dL._6
674- let dr = dL._7
675- $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(dM), toString(dN), toString(dB), toString(dC), toString(dD), dg, dr], e))
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))
676685 }
677686
678687
679688
680-@Callable(by)
689+@Callable(bB)
681690 func gwxUserInfoREADONLY (am) = {
682- let dO = x(invoke(bb, "gwxUserInfoREADONLY", [am], nil))
683- let dP = B(dO[0])
684- $Tuple2(nil, makeString(["%d", toString(dP)], e))
691+ let dR = x(invoke(bb, "gwxUserInfoREADONLY", [am], nil))
692+ let dS = B(dR[0])
693+ $Tuple2(nil, makeString(["%d", toString(dS)], e))
685694 }
686695
687696
688697
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))
693725 then {
694- let dR = fromBase58String(dQ)
695- if ((dR == dR))
696- then [StringEntry(H(), dQ)]
726+ let dV = fromBase58String(dU)
727+ if ((dV == dV))
728+ then [StringEntry(H(), dU)]
697729 else throw("Strict value is not equal to itself.")
698730 }
699731 else throw("Strict value is not equal to itself.")
701733
702734
703735
704-@Callable(by)
736+@Callable(bB)
705737 func confirmManager () = {
706- let dS = bw()
707- let dT = if (isDefined(dS))
738+ let dW = bz()
739+ let dX = if (isDefined(dW))
708740 then true
709741 else throw("No pending manager")
710- if ((dT == dT))
742+ if ((dX == dX))
711743 then {
712- let dU = if ((by.callerPublicKey == value(dS)))
744+ let dY = if ((bB.callerPublicKey == value(dW)))
713745 then true
714746 else throw("You are not pending manager")
715- if ((dU == dU))
716- then [StringEntry(G(), toBase58String(value(dS))), DeleteEntry(H())]
747+ if ((dY == dY))
748+ then [StringEntry(G(), toBase58String(value(dW))), DeleteEntry(H())]
717749 else throw("Strict value is not equal to itself.")
718750 }
719751 else throw("Strict value is not equal to itself.")
720752 }
721753
722754
723-@Verifier(dV)
724-func dW () = {
725- let dX = {
726- let z = bu()
755+@Verifier(dZ)
756+func ea () = {
757+ let eb = {
758+ let z = bx()
727759 if ($isInstanceOf(z, "ByteVector"))
728760 then {
729- let bA = z
730- bA
761+ let bD = z
762+ bD
731763 }
732764 else if ($isInstanceOf(z, "Unit"))
733- then dV.senderPublicKey
765+ then dZ.senderPublicKey
734766 else throw("Match error")
735767 }
736- sigVerify(dV.bodyBytes, dV.proofs[0], dX)
768+ sigVerify(dZ.bodyBytes, dZ.proofs[0], eb)
737769 }
738770
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = 8
55
66 let b = 100000000
77
88 let c = 18
99
1010 let d = toBigInt(1000000000000000000)
1111
1212 let e = "__"
1313
1414 let f = b
1515
1616 let g = toBigInt(0)
1717
1818 let h = 1
1919
2020 let i = 2
2121
2222 let j = 3
2323
2424 let k = 4
2525
2626 let l = 5
2727
2828 let m = 6
2929
3030 let n = 7
3131
3232 let o = 8
3333
3434 let p = 9
3535
3636 let q = 10
3737
3838 func r (s) = valueOrErrorMessage(getString(s), (("mandatory this." + s) + " is not defined"))
3939
4040
4141 func t (u,s) = valueOrErrorMessage(getString(u, s), (((("mandatory " + toString(u)) + ".") + s) + " is not defined"))
4242
4343
4444 func v (u,s) = valueOrElse(getInteger(u, s), 0)
4545
4646
4747 func w (u,s) = valueOrErrorMessage(getInteger(u, s), (("mandatory this." + s) + " is not defined"))
4848
4949
5050 func x (y) = {
5151 let z = y
5252 if ($isInstanceOf(z, "List[Any]"))
5353 then {
5454 let A = z
5555 A
5656 }
5757 else throw("fail to cast into List[Any]")
5858 }
5959
6060
6161 func B (y) = {
6262 let z = y
6363 if ($isInstanceOf(z, "Int"))
6464 then {
6565 let C = z
6666 C
6767 }
6868 else throw("fail to cast into Int")
6969 }
7070
7171
7272 func D (y) = {
7373 let z = y
7474 if ($isInstanceOf(z, "String"))
7575 then {
7676 let E = z
7777 E
7878 }
7979 else throw("fail to cast into String")
8080 }
8181
8282
8383 func F () = "%s%s__config__factoryAddress"
8484
8585
8686 func G () = "%s__managerPublicKey"
8787
8888
8989 func H () = "%s__pendingManagerPublicKey"
9090
9191
9292 let I = 1
9393
9494 let J = 2
9595
9696 let K = 3
9797
9898 let L = 4
9999
100100 let M = 5
101101
102102 let N = 6
103103
104104 let O = 7
105105
106106 let P = 8
107107
108108 func Q () = "%s__factoryConfig"
109109
110110
111111 func R (S) = makeString(["%s%s%s", S, "mappings__lpAsset2PoolContract"], e)
112112
113113
114114 func T () = "%s__lpTokensList"
115115
116116
117117 func U (S) = makeString(["%s%s%s", S, "mappings__lpAsset2PoolContract"], e)
118118
119119
120120 func V (W) = makeString(["%s%s", "poolWeight", W], e)
121121
122122
123123 func X () = addressFromStringValue(r(F()))
124124
125125
126126 func Y () = split(valueOrElse(getString(X(), T()), ""), e)
127127
128128
129129 func Z (aa) = split(t(aa, Q()), e)
130130
131131
132132 func ab (ac) = addressFromStringValue(ac[J])
133133
134134
135135 func ad (ac) = addressFromStringValue(ac[M])
136136
137137
138138 func ae (ac) = addressFromStringValue(ac[I])
139139
140140
141141 func af (ac) = addressFromStringValue(ac[P])
142142
143143
144144 func ag () = "%s__config"
145145
146146
147147 func ah () = "%s%s__stats__activeTotalLocked"
148148
149149
150150 func ai () = "%s%s__stats__locksDurationSumInBlocks"
151151
152152
153153 func aj () = "%s%s__stats__locksCount"
154154
155155
156156 func ak () = "%s%s__stats__activeUsersCount"
157157
158158
159159 func al (am) = makeString(["%s%s%s__mapping__user2num", am], e)
160160
161161
162162 func an (ao) = makeString(["%s%s%s__mapping__num2user", ao], e)
163163
164164
165165 func ap (aq) = makeString(["%s%d%s__paramByUserNum", aq, "amount"], e)
166166
167167
168168 func ar (aq) = makeString(["%s%d%s__paramByUserNum", aq, "start"], e)
169169
170170
171171 func as (aq) = makeString(["%s%d%s__paramByUserNum", aq, "duration"], e)
172172
173173
174174 func at (aq) = makeString(["%s%d%s__paramByUserNum", aq, "k"], e)
175175
176176
177177 func au (aq) = makeString(["%s%d%s__paramByUserNum", aq, "b"], e)
178178
179179
180180 func av (aq,aw) = makeString(["%s%d%s%d__paramByPeriod", aq, "k", aw], e)
181181
182182
183183 func ax (aq,aw) = makeString(["%s%d%s%d__paramByPeriod", aq, "b", aw], e)
184184
185185
186186 func ay (aq) = makeString(["%s%d__userBoostEmissionLastInt", aq], e)
187187
188188
189189 func az (aq) = makeString(["%s%d__maxBoostInt", aq], e)
190190
191191
192192 func aA () = "%s%s__maxBoostInt__total"
193193
194194
195195 func aB (aq) = makeString(["%s%d__userBoostAvaliableToClaimTotal", aq], e)
196196
197197
198198 func aC (aq) = makeString(["%s%d__userBoostClaimed", aq], e)
199199
200200
201201 func aD () = "%s%s__gwxCached__total"
202202
203203
204204 func aE (aF,aG) = makeString(["%s%s%s__staked", aF, aG], e)
205205
206206
207207 func aH (aG) = ("%s%s%s__staked__total__" + aG)
208208
209209
210210 func aI (aG,aF) = makeString(["%s%s%s__claimed", aF, aG], e)
211211
212212
213213 func aJ (aG,aF) = makeString(["%s%s%s__claimedMinReward", aF, aG], e)
214214
215215
216216 func aK (aG,aF) = makeString(["%s%s%s__claimedBoostReward", aF, aG], e)
217217
218218
219219 func aL (aM,s) = valueOrElse(getInteger(aM, s), 0)
220220
221221
222222 func aN () = "%s%s__ratePerBlock__current"
223223
224224
225225 func aO () = "%s%s__ratePerBlockMax__current"
226226
227227
228228 func aP () = "%s%s__emission__startBlock"
229229
230230
231231 func aQ () = "%s%s__emission__duration"
232232
233233
234234 func aR () = "%s%s__emission__endBlock"
235235
236236
237237 func aS () = "%s__addonAddr"
238238
239239
240240 func aT (aU) = {
241241 let aV = fraction(5, b, 10000)
242242 let aW = "%s__fee"
243243 valueOrElse(getInteger(aU, aW), aV)
244244 }
245245
246246
247247 let aX = X()
248248
249249 let aY = Z(aX)
250250
251251 let aZ = ad(aY)
252252
253253 let aM = ae(aY)
254254
255255 let ba = af(aY)
256256
257257 let bb = ab(aY)
258258
259259 func bc (bd) = {
260260 let be = t(aX, U(bd))
261261 let bf = b
262262 let bg = getIntegerValue(aX, V(be))
263263 let bh = w(aZ, aN())
264264 let bi = w(aZ, aO())
265265 let bj = 3
266266 let bk = (fraction(bh, bg, bf) / bj)
267267 let bl = fraction(bi, bg, bf)
268268 let bm = (bj * b)
269269 let bn = v(aM, aH(bd))
270270 [bk, bm, bn]
271271 }
272272
273273
274274 func bo (bp,bq,br) = {
275275 let bs = fraction(bq, b, br)
276276 let bt = fraction(bp, bs, b)
277277 [bt]
278278 }
279279
280280
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 () = {
282291 let z = getString(G())
283292 if ($isInstanceOf(z, "String"))
284293 then {
285- let bv = z
286- fromBase58String(bv)
294+ let by = z
295+ fromBase58String(by)
287296 }
288297 else if ($isInstanceOf(z, "Unit"))
289298 then unit
290299 else throw("Match error")
291300 }
292301
293302
294-func bw () = {
303+func bz () = {
295304 let z = getString(H())
296305 if ($isInstanceOf(z, "String"))
297306 then {
298- let bv = z
299- fromBase58String(bv)
307+ let by = z
308+ fromBase58String(by)
300309 }
301310 else if ($isInstanceOf(z, "Unit"))
302311 then unit
303312 else throw("Match error")
304313 }
305314
306315
307-func bx (by) = {
308- let bz = throw("Permission denied")
309- let z = bu()
316+func bA (bB) = {
317+ let bC = throw("Permission denied")
318+ let z = bx()
310319 if ($isInstanceOf(z, "ByteVector"))
311320 then {
312- let bA = z
313- if ((by.callerPublicKey == bA))
321+ let bD = z
322+ if ((bB.callerPublicKey == bD))
314323 then true
315- else bz
324+ else bC
316325 }
317326 else if ($isInstanceOf(z, "Unit"))
318- then if ((by.caller == this))
327+ then if ((bB.caller == this))
319328 then true
320- else bz
329+ else bC
321330 else throw("Match error")
322331 }
323332
324333
325-@Callable(by)
326-func constructor (bB) = {
327- let bC = bx(by)
328- if ((bC == bC))
329- then [StringEntry(F(), bB)]
334+@Callable(bB)
335+func constructor (bE) = {
336+ let bF = bA(bB)
337+ if ((bF == bF))
338+ then [StringEntry(F(), bE)]
330339 else throw("Strict value is not equal to itself.")
331340 }
332341
333342
334343
335-@Callable(by)
344+@Callable(bB)
336345 func currentRewardRateREADONLY (bd) = {
337- let bD = bc(bd)
338- let bh = bD[0]
339- let bm = bD[1]
340- let bn = bD[2]
346+ let bG = bc(bd)
347+ let bh = bG[0]
348+ let bm = bG[1]
349+ let bn = bG[2]
341350 $Tuple2(nil, makeString(["%d%d%d", toString(bh), toString(bm), toString(bn)], e))
342351 }
343352
344353
345354
346-@Callable(by)
355+@Callable(bB)
347356 func currentUserRewardRateREADONLY (bd,am) = {
348- let bD = bc(bd)
349- let bh = bD[0]
350- let bm = bD[1]
351- let bn = bD[2]
352- let bE = v(aM, aE(am, bd))
353- let bF = split(D(invoke(aM, "claimWxREADONLY", [bd, am], nil)), e)
354- let bG = valueOrErrorMessage(parseInt(bF[5]), "couldn't parse minRewardPart")
355- let bH = valueOrErrorMessage(parseInt(bF[6]), "couldn't parse boostRewardPart")
356- let bI = bF[7]
357- let bJ = if ((bH == 0))
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))
358367 then (1 * b)
359- else fraction((bG + bH), b, bG)
360- $Tuple2(nil, makeString(["%d%d%d%d%d%s", toString(bh), toString(bm), toString(bn), toString(bE), toString(bJ), bI], e))
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))
361370 }
362371
363372
364373
365-@Callable(by)
366-func calcBoostBulkInternalREADONLY (bK,bL,bM,bN,bO,bP,bQ) = if ((bK == size(bL)))
367- then $Tuple2(nil, bQ)
374+@Callable(bB)
375+func calcBoostBulkInternalREADONLY (bN,bO,bP,bQ,bR,bS,bT) = if ((bN == size(bO)))
376+ then $Tuple2(nil, bT)
368377 else {
369- let bR = bL[bK]
370- let bS = bM[bK]
371- let bT = bN[bK]
372- let bU = bO[bK]
373- let bV = {
374- let bW = invoke(this, "calcBoostREADONLY", [bR, bS, bT, bU, bP], nil)
375- if ($isInstanceOf(bW, "String"))
376- then bW
377- else throw(($getType(bW) + " couldn't be cast to String"))
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"))
378387 }
379- let bX = (bQ :+ bV)
380- let bY = {
381- let bW = invoke(this, "calcBoostBulkInternalREADONLY", [(bK + 1), bL, bM, bN, bO, bP, bX], nil)
382- if ($isInstanceOf(bW, "List[Any]"))
383- then bW
384- else throw(($getType(bW) + " couldn't be cast to List[Any]"))
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]"))
385394 }
386- if ((bY == bY))
387- then $Tuple2(nil, bY)
395+ if ((cb == cb))
396+ then $Tuple2(nil, cb)
388397 else throw("Strict value is not equal to itself.")
389398 }
390399
391400
392401
393-@Callable(by)
394-func calcBoostBulkREADONLY (bR,bS,bT,bU,bP) = {
395- let bX = invoke(this, "calcBoostBulkInternalREADONLY", [0, bR, bS, bT, bU, bP, nil], nil)
396- $Tuple2(nil, bX)
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)
397406 }
398407
399408
400409
401-@Callable(by)
402-func calcBoostREADONLY (bR,bS,bT,bU,bP) = {
403- let bZ = ba
404- let ca = "empty"
405- let cb = parseIntValue(split(t(bb, ag()), e)[4])
406- let aG = if ((bU == ""))
407- then ca
408- else bU
409- let aF = if ((bP == ""))
410- then ca
411- else bP
412- let cc = valueOrElse(getString(bb, al(bP)), ca)
413- let cd = valueOrElse(getInteger(bb, ap(cc)), 0)
414- let ce = valueOrElse(getInteger(bb, ar(cc)), height)
415- let bq = valueOrElse(getInteger(bb, as(cc)), 0)
416- let cf = (ce + bq)
417- let cg = max([(cf - height), 0])
418- let ch = (cd + bR)
419- let ci = min([(cg + bS), cb])
420- let cj = B(x(invoke(bb, "gwxUserInfoREADONLY", [aF], nil))[0])
421- let ck = bo(ch, ci, cb)[0]
422- let cl = x(invoke(bZ, "calcGwxParamsREADONLY", [ck, height, ci], nil))
423- let cm = (ck - cj)
424- let cn = B(cl[0])
425- let co = B(cl[1])
426- let aw = toString(B(cl[2]))
427- let cp = aA()
428- let cq = aD()
429- let cr = ((ck * ci) / 2)
430- let cs = v(bb, cp)
431- let ct = valueOrElse(getInteger(bb, cq), 0)
432- let cu = 1000
433- let cv = (w(aZ, aN()) * cu)
434- let cw = aE(aF, aG)
435- let cx = aH(aG)
436- let cy = aL(aM, cw)
437- let cz = aL(aM, cx)
438- let cA = (cy + bT)
439- let cB = (cz + bT)
440- let bg = if ((aG != ca))
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))
441450 then {
442451 let be = valueOrErrorMessage(getString(aX, R(aG)), ("unsupported lp asset " + aG))
443452 getIntegerValue(aX, V(be))
444453 }
445454 else 0
446- let cC = fraction(cv, bg, (f * 3))
447- let cD = if ((cB != 0))
448- then fraction(cC, b, cB)
455+ let cF = fraction(cy, bg, (f * 3))
456+ let cG = if ((cE != 0))
457+ then fraction(cF, b, cE)
449458 else 0
450- let cE = fraction(cD, cA, b)
451- let cF = (cC * 2)
452- let cG = fraction(ck, cF, (ct + cm))
453- let cH = min([cG, (cE * 2)])
454- let cI = if ((cE == 0))
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))
455464 then (1 * b)
456- else fraction((cH + cE), b, cE)
457- $Tuple2(nil, makeString(["%d%d%s", toString(ck), toString(cI), "d"], e))
465+ else fraction((cK + cH), b, cH)
466+ $Tuple2(nil, makeString(["%d%d%s", toString(cn), toString(cL), "d"], e))
458467 }
459468
460469
461470
462-@Callable(by)
471+@Callable(bB)
463472 func wxEmissionStatsREADONLY () = {
464- let cJ = toString(b)
465- let cK = "1"
473+ let cM = toString(b)
474+ let cN = "1"
466475 let bh = w(aZ, aN())
467- let cL = w(aZ, aP())
468- let cM = if ((cL > height))
476+ let cO = w(aZ, aP())
477+ let cP = if ((cO > height))
469478 then 0
470- else (height - cL)
471- let cN = (1440 * 365)
472- let cO = (201000000 * b)
473- let cP = if ((cM > cN))
474- then cO
475- else fraction(cO, cM, cN)
476- let cQ = ((bh * cM) + cP)
477- let cR = v(bb, ah())
478- let cS = v(bb, ai())
479- let cT = v(bb, aj())
480- $Tuple2(nil, makeString(["%d%d%d%d", toString(cQ), toString(cR), toString(cS), toString(cT)], e))
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))
481490 }
482491
483492
484493
485-@Callable(by)
486-func poolStatsREADONLY (cU) = {
487- let aU = addressFromStringValue(t(aX, U(cU)))
488- let cV = x(invoke(aU, "getPoolConfigWrapperREADONLY", nil, nil))
489- let bd = fromBase58String(D(cV[j]))
490- let cW = D(cV[k])
491- let cX = D(cV[l])
492- let cY = D(cV[o])
493- let cZ = D(cV[p])
494- let da = parseIntValue(D(cV[m]))
495- let db = parseIntValue(D(cV[n]))
496- let dc = valueOrErrorMessage(assetInfo(bd), (("Asset " + toBase58String(bd)) + " doesn't exist")).quantity
497- let dd = B(invoke(aU, "getAccBalanceWrapperREADONLY", [cW], nil))
498- let de = B(invoke(aU, "getAccBalanceWrapperREADONLY", [cX], nil))
499- let df = if ((dc == 0))
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))
500509 then [toString(g), toString(g), toString(g)]
501- else x(invoke(aU, "calcPricesWrapperREADONLY", [dd, de, dc], nil))
502- let dg = 0
503- let dh = B(invoke(aU, "fromX18WrapperREADONLY", [df[1], b], nil))
504- let di = B(invoke(aU, "fromX18WrapperREADONLY", [df[2], b], nil))
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))
505514 let bg = getIntegerValue(aX, V(toString(aU)))
506- let dj = aT(aU)
507- let dk = {
508- let bW = invoke(aX, "isPoolOneTokenOperationsDisabledREADONLY", [toString(aU)], nil)
509- if ($isInstanceOf(bW, "Boolean"))
510- then bW
511- else throw(($getType(bW) + " couldn't be cast to Boolean"))
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"))
512521 }
513- let dl = !(dk)
514- $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%s", toString(dd), toString(de), toString(dc), toString(dg), toString(dh), toString(di), toString(bg), toString(dj), toString(dl)], e))
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))
515524 }
516525
517526
518527
519-@Callable(by)
520-func poolEvaluatePutByAmountAssetREADONLY (cU,dm) = {
521- let aU = addressFromStringValue(t(aX, U(cU)))
522- let cV = x(invoke(aU, "getPoolConfigWrapperREADONLY", nil, nil))
523- let bd = fromBase58String(D(cV[j]))
524- let dn = D(cV[k])
525- let do = fromBase58String(dn)
526- let dp = D(cV[l])
527- let dq = fromBase58String(dp)
528- let da = parseIntValue(D(cV[m]))
529- let db = parseIntValue(D(cV[n]))
530- let dr = D(cV[i])
531- let dc = valueOrErrorMessage(assetInfo(bd), (("Asset " + toBase58String(bd)) + " doesn't exist")).quantity
532- let dd = B(invoke(aU, "getAccBalanceWrapperREADONLY", [dn], nil))
533- let de = B(invoke(aU, "getAccBalanceWrapperREADONLY", [dp], nil))
534- let ds = parseBigIntValue(D(invoke(aU, "toX18WrapperREADONLY", [dd, da], nil)))
535- let dt = parseBigIntValue(D(invoke(aU, "toX18WrapperREADONLY", [de, db], nil)))
536- let du = if ((dc == 0))
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))
537546 then g
538- else parseBigIntValue(D(invoke(aU, "calcPriceBigIntWrapperREADONLY", [toString(dt), toString(ds)], nil)))
539- let dg = B(invoke(aU, "fromX18WrapperREADONLY", [toString(du), b], nil))
540- let dv = parseBigIntValue(D(invoke(aU, "toX18WrapperREADONLY", [dm, da], nil)))
541- let dw = fraction(dv, du, d)
542- let dx = B(invoke(aU, "fromX18WrapperREADONLY", [toString(dw), db], nil))
543- let bX = invoke(aU, "estimatePutOperationWrapperREADONLY", ["", 500000, dm, do, dx, dq, "", true, false], nil)
544- let dy = {
545- let z = bX
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
546555 if (if (if ($isInstanceOf(z._1, "Int"))
547556 then if ($isInstanceOf(z._3, "Int"))
548557 then if ($isInstanceOf(z._4, "Int"))
549558 then if ($isInstanceOf(z._5, "Int"))
550559 then $isInstanceOf(z._6, "Int")
551560 else false
552561 else false
553562 else false
554563 else false)
555564 then (size(z) == 13)
556565 else false)
557566 then {
558- let dz = z._1
559- let dA = z._3
560- let dB = z._4
561- let dC = z._5
562- let dD = z._6
563- $Tuple5(dz, dA, dB, dC, dD)
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)
564573 }
565574 else throw("Couldn't cast types")
566575 }
567- let dz = dy._1
568- let dA = dy._2
569- let dB = dy._3
570- let dC = dy._4
571- let dD = dy._5
572- $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(dz), toString(dg), toString(dB), toString(dC), toString(dD), dr, toString(dm), toString(dx)], e))
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))
573582 }
574583
575584
576585
577-@Callable(by)
578-func poolEvaluatePutByPriceAssetREADONLY (cU,dx) = {
579- let aU = addressFromStringValue(t(aX, U(cU)))
580- let cV = x(invoke(aU, "getPoolConfigWrapperREADONLY", nil, nil))
581- let bd = fromBase58String(D(cV[j]))
582- let dn = D(cV[k])
583- let do = fromBase58String(dn)
584- let dp = D(cV[l])
585- let dq = fromBase58String(dp)
586- let da = parseIntValue(D(cV[m]))
587- let db = parseIntValue(D(cV[n]))
588- let dr = D(cV[i])
589- let dc = valueOrErrorMessage(assetInfo(bd), (("Asset " + toBase58String(bd)) + " doesn't exist")).quantity
590- let dE = B(invoke(aU, "getAccBalanceWrapperREADONLY", [dn], nil))
591- let dF = B(invoke(aU, "getAccBalanceWrapperREADONLY", [dp], nil))
592- let dG = parseBigIntValue(D(invoke(aU, "toX18WrapperREADONLY", [dE, da], nil)))
593- let dH = parseBigIntValue(D(invoke(aU, "toX18WrapperREADONLY", [dF, db], nil)))
594- let du = if ((dc == 0))
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))
595604 then g
596- else parseBigIntValue(D(invoke(aU, "calcPriceBigIntWrapperREADONLY", [toString(dH), toString(dG)], nil)))
597- let dg = B(invoke(aU, "fromX18WrapperREADONLY", [toString(du), b], nil))
598- let dw = parseBigIntValue(D(invoke(aU, "toX18WrapperREADONLY", [dx, db], nil)))
599- let dv = fraction(dw, d, du)
600- let dm = B(invoke(aU, "fromX18WrapperREADONLY", [toString(dv), da], nil))
601- let bX = invoke(aU, "estimatePutOperationWrapperREADONLY", ["", 500000, dm, do, dx, dq, "", true, false], nil)
602- let dI = {
603- let z = bX
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
604613 if (if (if ($isInstanceOf(z._1, "Int"))
605614 then if ($isInstanceOf(z._3, "Int"))
606615 then if ($isInstanceOf(z._4, "Int"))
607616 then if ($isInstanceOf(z._5, "Int"))
608617 then $isInstanceOf(z._6, "Int")
609618 else false
610619 else false
611620 else false
612621 else false)
613622 then (size(z) == 13)
614623 else false)
615624 then {
616- let dz = z._1
617- let dA = z._3
618- let dB = z._4
619- let dC = z._5
620- let dD = z._6
621- $Tuple5(dz, dA, dB, dC, dD)
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)
622631 }
623632 else throw("Couldn't cast types")
624633 }
625- let dz = dI._1
626- let dA = dI._2
627- let dB = dI._3
628- let dC = dI._4
629- let dD = dI._5
630- $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(dz), toString(dg), toString(dB), toString(dC), toString(dD), dr, toString(dm), toString(dx)], e))
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))
631640 }
632641
633642
634643
635-@Callable(by)
636-func poolEvaluateGetREADONLY (dJ,dK) = {
637- let aU = addressFromStringValue(t(aX, U(dJ)))
638- let bX = invoke(aU, "estimateGetOperationWrapperREADONLY", ["", dJ, dK, toString(aU)], nil)
639- let dL = {
640- let z = bX
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
641650 if (if (if ($isInstanceOf(z._1, "Int"))
642651 then if ($isInstanceOf(z._2, "Int"))
643652 then if ($isInstanceOf(z._5, "Int"))
644653 then if ($isInstanceOf(z._6, "Int"))
645654 then if ($isInstanceOf(z._7, "Int"))
646655 then if ($isInstanceOf(z._8, "String"))
647656 then $isInstanceOf(z._9, "String")
648657 else false
649658 else false
650659 else false
651660 else false
652661 else false
653662 else false)
654663 then (size(z) == 10)
655664 else false)
656665 then {
657- let dM = z._1
658- let dN = z._2
659- let dB = z._5
660- let dC = z._6
661- let dD = z._7
662- let dg = z._8
663- let dr = z._9
664- $Tuple7(dM, dN, dB, dC, dD, dg, dr)
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)
665674 }
666675 else throw("Couldn't cast types")
667676 }
668- let dM = dL._1
669- let dN = dL._2
670- let dB = dL._3
671- let dC = dL._4
672- let dD = dL._5
673- let dg = dL._6
674- let dr = dL._7
675- $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(dM), toString(dN), toString(dB), toString(dC), toString(dD), dg, dr], e))
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))
676685 }
677686
678687
679688
680-@Callable(by)
689+@Callable(bB)
681690 func gwxUserInfoREADONLY (am) = {
682- let dO = x(invoke(bb, "gwxUserInfoREADONLY", [am], nil))
683- let dP = B(dO[0])
684- $Tuple2(nil, makeString(["%d", toString(dP)], e))
691+ let dR = x(invoke(bb, "gwxUserInfoREADONLY", [am], nil))
692+ let dS = B(dR[0])
693+ $Tuple2(nil, makeString(["%d", toString(dS)], e))
685694 }
686695
687696
688697
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))
693725 then {
694- let dR = fromBase58String(dQ)
695- if ((dR == dR))
696- then [StringEntry(H(), dQ)]
726+ let dV = fromBase58String(dU)
727+ if ((dV == dV))
728+ then [StringEntry(H(), dU)]
697729 else throw("Strict value is not equal to itself.")
698730 }
699731 else throw("Strict value is not equal to itself.")
700732 }
701733
702734
703735
704-@Callable(by)
736+@Callable(bB)
705737 func confirmManager () = {
706- let dS = bw()
707- let dT = if (isDefined(dS))
738+ let dW = bz()
739+ let dX = if (isDefined(dW))
708740 then true
709741 else throw("No pending manager")
710- if ((dT == dT))
742+ if ((dX == dX))
711743 then {
712- let dU = if ((by.callerPublicKey == value(dS)))
744+ let dY = if ((bB.callerPublicKey == value(dW)))
713745 then true
714746 else throw("You are not pending manager")
715- if ((dU == dU))
716- then [StringEntry(G(), toBase58String(value(dS))), DeleteEntry(H())]
747+ if ((dY == dY))
748+ then [StringEntry(G(), toBase58String(value(dW))), DeleteEntry(H())]
717749 else throw("Strict value is not equal to itself.")
718750 }
719751 else throw("Strict value is not equal to itself.")
720752 }
721753
722754
723-@Verifier(dV)
724-func dW () = {
725- let dX = {
726- let z = bu()
755+@Verifier(dZ)
756+func ea () = {
757+ let eb = {
758+ let z = bx()
727759 if ($isInstanceOf(z, "ByteVector"))
728760 then {
729- let bA = z
730- bA
761+ let bD = z
762+ bD
731763 }
732764 else if ($isInstanceOf(z, "Unit"))
733- then dV.senderPublicKey
765+ then dZ.senderPublicKey
734766 else throw("Match error")
735767 }
736- sigVerify(dV.bodyBytes, dV.proofs[0], dX)
768+ sigVerify(dZ.bodyBytes, dZ.proofs[0], eb)
737769 }
738770

github/deemru/w8io/169f3d6 
170.94 ms