tx · 4vzT63LRv1LELbTyZ6kyXMNVSTqMRb2e4P95sd3nc3K2

3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz:  -0.02300000 Waves

2023.05.10 13:16 [2571656] smart account 3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz > SELF 0.00000000 Waves

{ "type": 13, "id": "4vzT63LRv1LELbTyZ6kyXMNVSTqMRb2e4P95sd3nc3K2", "fee": 2300000, "feeAssetId": null, "timestamp": 1683713826961, "version": 2, "chainId": 84, "sender": "3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz", "senderPublicKey": "D28XoueZWsMfm8Y5pa6C5ZFuYoWgre2Wm8tzJANJgMnq", "proofs": [ "275m1fCNC3HVMB39ku6VRm7T4NbJktRxbUAjENDKBHvyoUVGRqBfnfM1DKw8Kf3W4kJXVbB7hv6bC47JKYMFEBLn" ], "script": "base64:BgLXHwgCEgMKAQgSAwoBCBIAEgMKAQgSBAoCCAESBgoEAgECAhIDCgEIEgMKAQgSBQoDCAgEEgYKBAEYCBgSBAoCGAgSBAoCCAgSBAoCCAgSAwoBCBIDCgEIEgQKAggIIgZTQ0FMRTgiBU1VTFQzIgVNVUxUOCIHU0NBTEUxOCIGTVVMVDE4IgNTRVAiDlBPT0xXRUlHSFRNVUxUIgp6ZXJvQmlnSW50IglvbmVCaWdJbnQiB3dyYXBFcnIiA21zZyIIdGhyb3dFcnIiCWFzQW55TGlzdCIDdmFsIgckbWF0Y2gwIgp2YWxBbnlMeXN0IgVhc0ludCIGdmFsSW50Ighhc1N0cmluZyIGdmFsU3RyIgxhc0J5dGVWZWN0b3IiBnZhbEJpbiIPZ2V0U3RyaW5nT3JGYWlsIgdhZGRyZXNzIgNrZXkiGGdldFN0cmluZ0J5QWRkcmVzc09yRmFpbCIMZ2V0SW50T3JaZXJvIg9nZXRJbnRPckRlZmF1bHQiCmRlZmF1bHRWYWwiDGdldEludE9yRmFpbCIZZ2V0QmlnSW50RnJvbVN0cmluZ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AwIIBQJkdwZwcm9vZnMAAAUCZHkyO9aQ", "height": 2571656, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Djz7ee27LvVChWjoBCadUpWCKSCUBWaybYSjtGtfcEVH Next: FiAPZWT3mqGXGSk3bxPBLk5jCTLnzvUabUv9pCnqxFH9 Diff:
OldNewDifferences
132132 func W () = "%s__managerPublicKey"
133133
134134
135-func X () = "%s__pendingManagerPublicKey"
135+func X () = "%s__managerVaultAddress"
136136
137137
138138 func Y (Z) = makeString(["%s%s%s", Z, "mappings__lpAsset2PoolContract"], f)
162162 func ak (ai) = addressFromStringValue(ai[O])
163163
164164
165-func al () = "%s%s__ratePerBlock__current"
166-
167-
168-func am () = "%s%s__ratePerBlockMax__current"
169-
170-
171-func an () = "%s%s__emission__startBlock"
172-
173-
174-func ao () = "%s%s__emission__duration"
175-
176-
177-func ap () = "%s%s__emission__endBlock"
178-
179-
180-func aq (ar,as) = makeString(["%s%s%s__staked", ar, as], f)
181-
182-
183-func at (as) = ("%s%s%s__staked__total__" + as)
184-
185-
186-func au (as,ar) = makeString(["%s%s%s__claimed", ar, as], f)
187-
188-
189-func av (as,ar) = makeString(["%s%s%s__claimedMinReward", ar, as], f)
190-
191-
192-func aw (as,ar) = makeString(["%s%s%s__claimedBoostReward", ar, as], f)
193-
194-
195-func ax (as) = makeString(["%s%s%s__claimed__total", as], f)
196-
197-
198-func ay (y) = valueOrElse(getInteger(this, y), 0)
199-
200-
201-func az (aA) = makeString(["%s%s%s", aA, "total", "bal"], f)
202-
203-
204-func aB (aA,aC) = makeString(["%s%s%s", aA, aC, "bal"], f)
205-
206-
207-func aD (aA) = makeString(["%s%s%s", aA, "total", "balINT"], f)
208-
209-
210-func aE (aA,aC) = makeString(["%s%s%s", aA, aC, "balINT"], f)
211-
212-
213-func aF (aA) = makeString(["%s%s%s", aA, "total", "lastUpd"], f)
214-
215-
216-func aG (aA,aC) = makeString(["%s%s%s", aA, aC, "lastUpd"], f)
217-
218-
219-func aH (aA) = makeString(["%s%s%s%s", aA, "common", "lpInt"], f)
220-
221-
222-func aI (aA) = makeString(["%s%s%s%s", aA, "common", "lpIntH"], f)
223-
224-
225-func aJ (aA,aC) = makeString(["%s%s%s%s", aA, aC, "lpInt"], f)
226-
227-
228-func aK (aA,aC) = makeString(["%s%s%s%s", aA, aC, "lpIntH"], f)
229-
230-
231-func aL (aA) = makeString(["%s", aA, "wxPerLp"], f)
232-
233-
234-func aM (aA) = makeString(["%s", aA, "wxPerLpX18"], f)
235-
236-
237-func aN (aA,aC) = makeString(["%s%s%s%s", aA, aC, "uIntL"], f)
238-
239-
240-func aO (aP,aC,aQ) = makeString(["%s%s%s%s__history", aP, aC, aQ], f)
241-
242-
243-func aR (aC,aA,aP,aS) = makeString(["%s%s%s%d%d%d", aC, aA, aP, toString(height), toString(lastBlock.timestamp), toString(aS)], f)
244-
245-
246-func aT (aP,aC,aA,aS,aU) = StringEntry(aO(aP, aC, toBase58String(aU)), aR(aC, aA, aP, aS))
247-
248-
249-let aV = w(this, M())
250-
251-let aW = addressFromStringValue(aV)
252-
253-let ai = ag(aW)
254-
255-let aX = aj(ai)
256-
257-let aY = ah(ai)
258-
259-let aZ = {
260- let ba = invoke(aX, "getBoostCoeffREADONLY", nil, nil)
261- if ($isInstanceOf(ba, "Int"))
262- then ba
263- else throw(($getType(ba) + " couldn't be cast to Int"))
264- }
265-
266-let bb = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(makeString(["%s", "lpStakingPoolsContract"], f)), j("lp_staking_pools contract address is undefined"))), j("invalid lp_staking_pools contract address"))
267-
268-func bc (aA) = makeString(["%s%s", aA, "nextUser"], f)
269-
270-
271-func bd (aA) = makeString(["users", aA], f)
272-
273-
274-func be (bf) = makeString(["%s%s%s", bf, "head"], f)
275-
276-
277-func bg (bf) = makeString(["%s%s%s", bf, "size"], f)
278-
279-
280-func bh (bf,bi) = makeString(["%s%s%s%s", bf, bi, "prev"], f)
281-
282-
283-func bj (bf,bi) = makeString(["%s%s%s%s", bf, bi, "next"], f)
284-
285-
286-func bk (bf,bi) = {
287- let bl = getString(this, be(bf))
288- let bm = getString(this, bh(bf, bi))
289- let bn = getString(this, bj(bf, bi))
290- if (if ((bi == valueOrElse(bl, "")))
291- then true
292- else (bm != unit))
293- then true
294- else (bn != unit)
165+func al () = {
166+ let o = getString(X())
167+ if ($isInstanceOf(o, "String"))
168+ then {
169+ let G = o
170+ addressFromStringValue(G)
171+ }
172+ else this
295173 }
296174
297175
298-func bo (bf,bi) = {
299- let bl = getString(this, be(bf))
300- let bp = valueOrElse(getInteger(this, bg(bf)), 0)
301- let bq = if (!(bk(bf, bi)))
176+func am () = "%s%s__ratePerBlock__current"
177+
178+
179+func an () = "%s%s__ratePerBlockMax__current"
180+
181+
182+func ao () = "%s%s__emission__startBlock"
183+
184+
185+func ap () = "%s%s__emission__duration"
186+
187+
188+func aq () = "%s%s__emission__endBlock"
189+
190+
191+func ar (as,at) = makeString(["%s%s%s__staked", as, at], f)
192+
193+
194+func au (at) = ("%s%s%s__staked__total__" + at)
195+
196+
197+func av (at,as) = makeString(["%s%s%s__claimed", as, at], f)
198+
199+
200+func aw (at,as) = makeString(["%s%s%s__claimedMinReward", as, at], f)
201+
202+
203+func ax (at,as) = makeString(["%s%s%s__claimedBoostReward", as, at], f)
204+
205+
206+func ay (at) = makeString(["%s%s%s__claimed__total", at], f)
207+
208+
209+func az (y) = valueOrElse(getInteger(this, y), 0)
210+
211+
212+func aA (aB) = makeString(["%s%s%s", aB, "total", "bal"], f)
213+
214+
215+func aC (aB,aD) = makeString(["%s%s%s", aB, aD, "bal"], f)
216+
217+
218+func aE (aB) = makeString(["%s%s%s", aB, "total", "balINT"], f)
219+
220+
221+func aF (aB,aD) = makeString(["%s%s%s", aB, aD, "balINT"], f)
222+
223+
224+func aG (aB) = makeString(["%s%s%s", aB, "total", "lastUpd"], f)
225+
226+
227+func aH (aB,aD) = makeString(["%s%s%s", aB, aD, "lastUpd"], f)
228+
229+
230+func aI (aB) = makeString(["%s%s%s%s", aB, "common", "lpInt"], f)
231+
232+
233+func aJ (aB) = makeString(["%s%s%s%s", aB, "common", "lpIntH"], f)
234+
235+
236+func aK (aB,aD) = makeString(["%s%s%s%s", aB, aD, "lpInt"], f)
237+
238+
239+func aL (aB,aD) = makeString(["%s%s%s%s", aB, aD, "lpIntH"], f)
240+
241+
242+func aM (aB) = makeString(["%s", aB, "wxPerLp"], f)
243+
244+
245+func aN (aB) = makeString(["%s", aB, "wxPerLpX18"], f)
246+
247+
248+func aO (aB,aD) = makeString(["%s%s%s%s", aB, aD, "uIntL"], f)
249+
250+
251+func aP (aQ,aD,aR) = makeString(["%s%s%s%s__history", aQ, aD, aR], f)
252+
253+
254+func aS (aD,aB,aQ,aT) = makeString(["%s%s%s%d%d%d", aD, aB, aQ, toString(height), toString(lastBlock.timestamp), toString(aT)], f)
255+
256+
257+func aU (aQ,aD,aB,aT,aV) = StringEntry(aP(aQ, aD, toBase58String(aV)), aS(aD, aB, aQ, aT))
258+
259+
260+let aW = w(this, M())
261+
262+let aX = addressFromStringValue(aW)
263+
264+let ai = ag(aX)
265+
266+let aY = aj(ai)
267+
268+let aZ = ah(ai)
269+
270+let ba = {
271+ let bb = invoke(aY, "getBoostCoeffREADONLY", nil, nil)
272+ if ($isInstanceOf(bb, "Int"))
273+ then bb
274+ else throw(($getType(bb) + " couldn't be cast to Int"))
275+ }
276+
277+let bc = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(makeString(["%s", "lpStakingPoolsContract"], f)), j("lp_staking_pools contract address is undefined"))), j("invalid lp_staking_pools contract address"))
278+
279+func bd (aB) = makeString(["%s%s", aB, "nextUser"], f)
280+
281+
282+func be (aB) = makeString(["users", aB], f)
283+
284+
285+func bf (bg) = makeString(["%s%s%s", bg, "head"], f)
286+
287+
288+func bh (bg) = makeString(["%s%s%s", bg, "size"], f)
289+
290+
291+func bi (bg,bj) = makeString(["%s%s%s%s", bg, bj, "prev"], f)
292+
293+
294+func bk (bg,bj) = makeString(["%s%s%s%s", bg, bj, "next"], f)
295+
296+
297+func bl (bg,bj) = {
298+ let bm = getString(this, bf(bg))
299+ let bn = getString(this, bi(bg, bj))
300+ let bo = getString(this, bk(bg, bj))
301+ if (if ((bj == valueOrElse(bm, "")))
302+ then true
303+ else (bn != unit))
304+ then true
305+ else (bo != unit)
306+ }
307+
308+
309+func bp (bg,bj) = {
310+ let bm = getString(this, bf(bg))
311+ let bq = valueOrElse(getInteger(this, bh(bg)), 0)
312+ let br = if (!(bl(bg, bj)))
302313 then true
303314 else l("Node exists")
304- if ((bq == bq))
305- then (([IntegerEntry(bg(bf), (bp + 1))] ++ (if ((bl != unit))
306- then [StringEntry(bj(bf, bi), value(bl)), StringEntry(bh(bf, value(bl)), bi)]
307- else nil)) ++ [StringEntry(be(bf), bi)])
315+ if ((br == br))
316+ then (([IntegerEntry(bh(bg), (bq + 1))] ++ (if ((bm != unit))
317+ then [StringEntry(bk(bg, bj), value(bm)), StringEntry(bi(bg, value(bm)), bj)]
318+ else nil)) ++ [StringEntry(bf(bg), bj)])
308319 else throw("Strict value is not equal to itself.")
309320 }
310321
311322
312-func br (bf,bi) = {
313- let bl = getString(this, be(bf))
314- let bp = valueOrElse(getInteger(this, bg(bf)), 0)
315- let bm = getString(this, bh(bf, bi))
316- let bn = getString(this, bj(bf, bi))
317- ([IntegerEntry(bg(bf), (bp - 1))] ++ (if (if ((bm != unit))
318- then (bn != unit)
323+func bs (bg,bj) = {
324+ let bm = getString(this, bf(bg))
325+ let bq = valueOrElse(getInteger(this, bh(bg)), 0)
326+ let bn = getString(this, bi(bg, bj))
327+ let bo = getString(this, bk(bg, bj))
328+ ([IntegerEntry(bh(bg), (bq - 1))] ++ (if (if ((bn != unit))
329+ then (bo != unit)
319330 else false)
320- then [StringEntry(bj(bf, value(bm)), value(bn)), StringEntry(bh(bf, value(bn)), value(bm)), DeleteEntry(bh(bf, bi)), DeleteEntry(bj(bf, bi))]
321- else if ((bn != unit))
322- then [StringEntry(be(bf), value(bn)), DeleteEntry(bj(bf, bi)), DeleteEntry(bh(bf, value(bn)))]
323- else if ((bm != unit))
324- then [DeleteEntry(bh(bf, bi)), DeleteEntry(bj(bf, value(bm)))]
325- else if ((bi == valueOrElse(bl, "")))
326- then [DeleteEntry(be(bf))]
327- else l(((("invalid node: " + bf) + ".") + bi))))
331+ then [StringEntry(bk(bg, value(bn)), value(bo)), StringEntry(bi(bg, value(bo)), value(bn)), DeleteEntry(bi(bg, bj)), DeleteEntry(bk(bg, bj))]
332+ else if ((bo != unit))
333+ then [StringEntry(bf(bg), value(bo)), DeleteEntry(bk(bg, bj)), DeleteEntry(bi(bg, value(bo)))]
334+ else if ((bn != unit))
335+ then [DeleteEntry(bi(bg, bj)), DeleteEntry(bk(bg, value(bn)))]
336+ else if ((bj == valueOrElse(bm, "")))
337+ then [DeleteEntry(bf(bg))]
338+ else l(((("invalid node: " + bg) + ".") + bj))))
328339 }
329340
330341
331-func bs (bt,bu,bv,bw) = if (if ((bu == h))
332- then (bt > h)
342+func bt (bu,bv,bw,bx) = if (if ((bv == h))
343+ then (bu > h)
333344 else false)
334345 then h
335- else if ((bt == h))
336- then bv
337- else if (if ((bu > h))
338- then (bt > h)
346+ else if ((bu == h))
347+ then bw
348+ else if (if ((bv > h))
349+ then (bu > h)
339350 else false)
340- then value(parseBigInt(w(this, bw)))
351+ then value(parseBigInt(w(this, bx)))
341352 else l("calcWxPerLpIntegralUserLast: unexpected state")
342353
343354
344-func bx (as,by,bz) = {
345- let bA = at(as)
346- let bB = toBigInt(ay(bA))
347- let bC = if ((bB == h))
355+func by (at,bz,bA) = {
356+ let bB = au(at)
357+ let bC = toBigInt(az(bB))
358+ let bD = if ((bC == h))
348359 then i
349- else bB
350- let bD = getIntegerValue(aW, ac(by))
351- let bE = D(aX, an())
352- let bF = (D(aX, al()) * b)
353- let bG = fraction(bF, bD, (g * aZ))
354- let bH = aH(as)
355- let bI = aI(as)
356- let bJ = aL(as)
357- let bK = B(this, bI, bE)
358- let bL = E(this, bH)
359- let bM = 0
360- let bN = max([(height - bK), 0])
361- let bO = if ((bM != 0))
362- then toBigInt(bM)
363- else fraction(toBigInt(bG), toBigInt(c), bC)
364- let bP = (bB + toBigInt(bz))
365- let bQ = if ((bP == h))
360+ else bC
361+ let bE = getIntegerValue(aX, ac(bz))
362+ let bF = D(aY, ao())
363+ let bG = (D(aY, am()) * b)
364+ let bH = fraction(bG, bE, (g * ba))
365+ let bI = aI(at)
366+ let bJ = aJ(at)
367+ let bK = aM(at)
368+ let bL = B(this, bJ, bF)
369+ let bM = E(this, bI)
370+ let bN = 0
371+ let bO = max([(height - bL), 0])
372+ let bP = if ((bN != 0))
373+ then toBigInt(bN)
374+ else fraction(toBigInt(bH), toBigInt(c), bD)
375+ let bQ = (bC + toBigInt(bA))
376+ let bR = if ((bQ == h))
366377 then i
367- else bP
368- let bv = (bL + (bO * toBigInt(bN)))
369- let bR = (toBigInt(bG) / bQ)
370- let bS = height
371- let bT = makeString([toString(bv), toString(bN), toString(bO), toString(bB), toString(bG), toString(bF), toString(bD)], "::")
372- $Tuple3(bv, [StringEntry(bH, toString(bv)), IntegerEntry(bI, bS), StringEntry(bJ, toString(bR))], bT)
378+ else bQ
379+ let bw = (bM + (bP * toBigInt(bO)))
380+ let bS = (toBigInt(bH) / bR)
381+ let bT = height
382+ let bU = makeString([toString(bw), toString(bO), toString(bP), toString(bC), toString(bH), toString(bG), toString(bE)], "::")
383+ $Tuple3(bw, [StringEntry(bI, toString(bw)), IntegerEntry(bJ, bT), StringEntry(bK, toString(bS))], bU)
373384 }
374385
375386
376-func bU (as,ar,by,bz) = {
377- let bV = bx(as, by, bz)
378- let bv = bV._1
379- let bW = bV._2
380- let bX = bV._3
381- let bY = aq(ar, as)
382- let bt = ay(bY)
383- let bZ = aJ(as, ar)
384- let ca = aK(as, ar)
385- let bw = aN(as, ar)
386- let cb = E(this, bZ)
387- let bu = A(this, ca)
388- let cc = bs(toBigInt(bt), toBigInt(bu), bv, bw)
389- let cd = (c * b)
390- let ce = max([(cb + fraction((bv - cc), toBigInt(bt), toBigInt(cd))), h])
391- let cf = bv
392- let cg = height
393- let bT = makeString([toString(cb), toString(cc), toString(bt), bX, toString(height)], "::")
394- $Tuple3(ce, (bW ++ [StringEntry(bZ, toString(ce)), IntegerEntry(ca, cg), StringEntry(bw, toString(cf))]), bT)
387+func bV (at,as,bz,bA) = {
388+ let bW = by(at, bz, bA)
389+ let bw = bW._1
390+ let bX = bW._2
391+ let bY = bW._3
392+ let bZ = ar(as, at)
393+ let bu = az(bZ)
394+ let ca = aK(at, as)
395+ let cb = aL(at, as)
396+ let bx = aO(at, as)
397+ let cc = E(this, ca)
398+ let bv = A(this, cb)
399+ let cd = bt(toBigInt(bu), toBigInt(bv), bw, bx)
400+ let ce = (c * b)
401+ let cf = max([(cc + fraction((bw - cd), toBigInt(bu), toBigInt(ce))), h])
402+ let cg = bw
403+ let ch = height
404+ let bU = makeString([toString(cc), toString(cd), toString(bu), bY, toString(height)], "::")
405+ $Tuple3(cf, (bX ++ [StringEntry(ca, toString(cf)), IntegerEntry(cb, ch), StringEntry(bx, toString(cg))]), bU)
395406 }
396407
397408
398-func ch () = {
399- let o = getString(W())
409+func ci () = {
410+ let cj = al()
411+ let o = getString(cj, W())
400412 if ($isInstanceOf(o, "String"))
401413 then {
402414 let G = o
408420 }
409421
410422
411-func ci () = {
412- let o = getString(X())
413- if ($isInstanceOf(o, "String"))
423+let ck = l("Permission denied")
424+
425+func cl (cm) = if ((cm.caller == this))
426+ then true
427+ else ck
428+
429+
430+func cn (cm) = {
431+ let o = ci()
432+ if ($isInstanceOf(o, "ByteVector"))
414433 then {
415- let G = o
416- fromBase58String(G)
434+ let co = o
435+ if ((cm.callerPublicKey == co))
436+ then true
437+ else ck
417438 }
418439 else if ($isInstanceOf(o, "Unit"))
419- then unit
440+ then if ((cm.caller == this))
441+ then true
442+ else ck
420443 else throw("Match error")
421444 }
422445
423446
424-let cj = l("Permission denied")
425-
426-func ck (cl) = if ((cl.caller == this))
427- then true
428- else cj
429-
430-
431-func cm (cl) = {
432- let o = ch()
433- if ($isInstanceOf(o, "ByteVector"))
447+func cp (cm,aB,cq,aD,aT) = {
448+ let as = toString(aD)
449+ let at = toBase58String(aB)
450+ let bz = toString(cq)
451+ let bZ = ar(as, at)
452+ let bB = au(at)
453+ let bu = az(bZ)
454+ let cr = if ((bu == 0))
455+ then invoke(aZ, "onStakedVoteUpdate", [at, as, true], nil)
456+ else unit
457+ if ((cr == cr))
434458 then {
435- let cn = o
436- if ((cl.callerPublicKey == cn))
437- then true
438- else cj
439- }
440- else if ($isInstanceOf(o, "Unit"))
441- then if ((cl.caller == this))
442- then true
443- else cj
444- else throw("Match error")
445- }
446-
447-
448-func co (cl,aA,cp,aC,aS) = {
449- let ar = toString(aC)
450- let as = toBase58String(aA)
451- let by = toString(cp)
452- let bY = aq(ar, as)
453- let bA = at(as)
454- let bt = ay(bY)
455- let cq = if ((bt == 0))
456- then invoke(aY, "onStakedVoteUpdate", [as, ar, true], nil)
457- else unit
458- if ((cq == cq))
459- then {
460- let bB = ay(bA)
461- let cr = bU(as, ar, by, aS)
462- let ce = cr._1
463- let cs = cr._2
464- let bT = cr._3
465- let bf = bd(as)
466- let ct = if (bk(bf, ar))
459+ let bC = az(bB)
460+ let cs = bV(at, as, bz, aT)
461+ let cf = cs._1
462+ let ct = cs._2
463+ let bU = cs._3
464+ let bg = be(at)
465+ let cu = if (bl(bg, as))
467466 then nil
468- else bo(bf, ar)
469- (([IntegerEntry(bY, (bt + aS)), IntegerEntry(bA, (bB + aS)), aT("stake", ar, as, aS, cl.transactionId)] ++ cs) ++ ct)
467+ else bp(bg, as)
468+ (([IntegerEntry(bZ, (bu + aT)), IntegerEntry(bB, (bC + aT)), aU("stake", as, at, aT, cm.transactionId)] ++ ct) ++ cu)
470469 }
471470 else throw("Strict value is not equal to itself.")
472471 }
473472
474473
475-func cu (cl,aA,cp,aC,cv,aS) = {
476- let ar = toString(aC)
477- let as = toBase58String(aA)
478- let by = toString(cp)
479- let bY = aq(ar, as)
480- let bA = at(as)
481- let bt = ay(bY)
482- let bB = ay(bA)
483- let cs = bU(as, ar, by, -(aS))._2
484- let bf = bd(as)
485- let ct = if (if (bk(bf, ar))
486- then (aS == bt)
474+func cv (cm,aB,cq,aD,cw,aT) = {
475+ let as = toString(aD)
476+ let at = toBase58String(aB)
477+ let bz = toString(cq)
478+ let bZ = ar(as, at)
479+ let bB = au(at)
480+ let bu = az(bZ)
481+ let bC = az(bB)
482+ let ct = bV(at, as, bz, -(aT))._2
483+ let bg = be(at)
484+ let cu = if (if (bl(bg, as))
485+ then (aT == bu)
487486 else false)
488- then br(bf, ar)
487+ then bs(bg, as)
489488 else nil
490- let cq = if ((aS == bt))
491- then invoke(aY, "onStakedVoteUpdate", [as, ar, false], nil)
489+ let cr = if ((aT == bu))
490+ then invoke(aZ, "onStakedVoteUpdate", [at, as, false], nil)
492491 else unit
493- if ((cq == cq))
492+ if ((cr == cr))
494493 then {
495- let cw = E(this, av(as, ar))
496- let ce = bU(as, ar, by, 0)._1
497- let cx = (ce - cw)
498- let cy = true
499- let cz = if ((cx > h))
500- then invoke(this, "claimWxINTERNAL", [as, ar, cy], nil)
494+ let cx = E(this, aw(at, as))
495+ let cf = bV(at, as, bz, 0)._1
496+ let cy = (cf - cx)
497+ let cz = true
498+ let cA = if ((cy > h))
499+ then invoke(this, "claimWxINTERNAL", [at, as, cz], nil)
501500 else unit
502- if ((cz == cz))
503- then if ((aS > bt))
504- then l(((((((("passed amount=" + toString(aS)) + " is greater than available=") + toString(bt)) + ". lpAssetId=") + as) + ". stakedByUserKEY=") + bY))
505- else (([IntegerEntry(bY, (bt - aS)), IntegerEntry(bA, (bB - aS)), ScriptTransfer(cv, aS, aA), aT("unstake", ar, as, aS, cl.transactionId)] ++ cs) ++ ct)
501+ if ((cA == cA))
502+ then if ((aT > bu))
503+ then l(((((((("passed amount=" + toString(aT)) + " is greater than available=") + toString(bu)) + ". lpAssetId=") + at) + ". stakedByUserKEY=") + bZ))
504+ else (([IntegerEntry(bZ, (bu - aT)), IntegerEntry(bB, (bC - aT)), ScriptTransfer(cw, aT, aB), aU("unstake", as, at, aT, cm.transactionId)] ++ ct) ++ cu)
506505 else throw("Strict value is not equal to itself.")
507506 }
508507 else throw("Strict value is not equal to itself.")
509508 }
510509
511510
512-@Callable(cl)
513-func constructor (cA) = {
514- let cB = cm(cl)
515- if ((cB == cB))
516- then [StringEntry(M(), cA)]
511+@Callable(cm)
512+func constructor (cB) = {
513+ let cC = cn(cm)
514+ if ((cC == cC))
515+ then [StringEntry(M(), cB)]
517516 else throw("Strict value is not equal to itself.")
518517 }
519518
520519
521520
522-@Callable(cl)
523-func constructorV2 (cC) = {
524- let cD = [cm(cl), if ((addressFromString(cC) != unit))
521+@Callable(cm)
522+func constructorV2 (cD) = {
523+ let cE = [cn(cm), if ((addressFromString(cD) != unit))
525524 then true
526525 else "invalid voting emission contract address"]
527- if ((cD == cD))
528- then [StringEntry(N(), cC)]
526+ if ((cE == cE))
527+ then [StringEntry(N(), cD)]
529528 else throw("Strict value is not equal to itself.")
530529 }
531530
532531
533532
534-@Callable(cl)
535-func setManager (cE) = {
536- let cB = cm(cl)
537- if ((cB == cB))
538- then {
539- let cF = fromBase58String(cE)
540- if ((cF == cF))
541- then [StringEntry(X(), cE)]
542- else throw("Strict value is not equal to itself.")
543- }
533+@Callable(cm)
534+func stake () = if ((size(cm.payments) != 1))
535+ then l("invalid payment - exact one payment must be attached")
536+ else {
537+ let cF = cm.payments[0]
538+ let aB = value(cF.assetId)
539+ let at = toBase58String(aB)
540+ let aT = cF.amount
541+ let bz = valueOrErrorMessage(getString(aX, Y(at)), j(("unsupported lp asset " + at)))
542+ let cq = addressFromStringValue(bz)
543+ let aD = if ((cm.caller == cq))
544+ then cm.originCaller
545+ else cm.caller
546+ cp(cm, aB, cq, aD, aT)
547+ }
548+
549+
550+
551+@Callable(cm)
552+func stakeFor (as) = if ((size(cm.payments) != 1))
553+ then l("invalid payment - exact one payment must be attached")
554+ else {
555+ let cF = cm.payments[0]
556+ let aB = value(cF.assetId)
557+ let at = toBase58String(aB)
558+ let aT = cF.amount
559+ let bz = valueOrErrorMessage(getString(aX, Y(at)), j(("unsupported lp asset " + at)))
560+ let cq = addressFromStringValue(bz)
561+ let aD = valueOrErrorMessage(addressFromString(as), j("invalid user address"))
562+ cp(cm, aB, cq, aD, aT)
563+ }
564+
565+
566+
567+@Callable(cm)
568+func unstake (at,aT) = {
569+ let aB = fromBase58String(at)
570+ let bz = valueOrErrorMessage(getString(aX, Y(at)), j(("unsupported lp asset " + at)))
571+ let cq = addressFromStringValue(bz)
572+ let cG = toString(cm.caller)
573+ let aD = if ((cG == bz))
574+ then cm.originCaller
575+ else cm.caller
576+ let cw = cm.caller
577+ cv(cm, aB, cq, aD, cw, aT)
578+ }
579+
580+
581+
582+@Callable(cm)
583+func unstakeINTERNAL (aB,aT,aD,cw) = {
584+ let at = toBase58String(aB)
585+ let cq = addressFromStringValue(valueOrErrorMessage(getString(aX, Y(at)), j(("unsupported lp asset " + at))))
586+ let cC = if ((cm.caller == cq))
587+ then true
588+ else ck
589+ if ((cC == cC))
590+ then cv(cm, aB, cq, Address(aD), Address(cw), aT)
544591 else throw("Strict value is not equal to itself.")
545592 }
546593
547594
548595
549-@Callable(cl)
550-func confirmManager () = {
551- let cG = ci()
552- let cH = if (isDefined(cG))
553- then true
554- else l("No pending manager")
555- if ((cH == cH))
556- then {
557- let cI = if ((cl.callerPublicKey == value(cG)))
558- then true
559- else l("You are not pending manager")
560- if ((cI == cI))
561- then [StringEntry(W(), toBase58String(value(cG))), DeleteEntry(X())]
562- else throw("Strict value is not equal to itself.")
563- }
564- else throw("Strict value is not equal to itself.")
596+@Callable(cm)
597+func claimWx (at) = {
598+ let as = toString(cm.caller)
599+ let cz = true
600+ let cH = invoke(this, "claimWxINTERNAL", [at, as, cz], nil)
601+ $Tuple2(nil, cH)
565602 }
566603
567604
568605
569-@Callable(cl)
570-func stake () = if ((size(cl.payments) != 1))
571- then l("invalid payment - exact one payment must be attached")
572- else {
573- let cJ = cl.payments[0]
574- let aA = value(cJ.assetId)
575- let as = toBase58String(aA)
576- let aS = cJ.amount
577- let by = valueOrErrorMessage(getString(aW, Y(as)), j(("unsupported lp asset " + as)))
578- let cp = addressFromStringValue(by)
579- let aC = if ((cl.caller == cp))
580- then cl.originCaller
581- else cl.caller
582- co(cl, aA, cp, aC, aS)
583- }
584-
585-
586-
587-@Callable(cl)
588-func stakeFor (ar) = if ((size(cl.payments) != 1))
589- then l("invalid payment - exact one payment must be attached")
590- else {
591- let cJ = cl.payments[0]
592- let aA = value(cJ.assetId)
593- let as = toBase58String(aA)
594- let aS = cJ.amount
595- let by = valueOrErrorMessage(getString(aW, Y(as)), j(("unsupported lp asset " + as)))
596- let cp = addressFromStringValue(by)
597- let aC = valueOrErrorMessage(addressFromString(ar), j("invalid user address"))
598- co(cl, aA, cp, aC, aS)
599- }
600-
601-
602-
603-@Callable(cl)
604-func unstake (as,aS) = {
605- let aA = fromBase58String(as)
606- let by = valueOrErrorMessage(getString(aW, Y(as)), j(("unsupported lp asset " + as)))
607- let cp = addressFromStringValue(by)
608- let cK = toString(cl.caller)
609- let aC = if ((cK == by))
610- then cl.originCaller
611- else cl.caller
612- let cv = cl.caller
613- cu(cl, aA, cp, aC, cv, aS)
606+@Callable(cm)
607+func claimWxDoNotThrow (at) = {
608+ let as = toString(cm.caller)
609+ let cz = false
610+ let cH = invoke(this, "claimWxINTERNAL", [at, as, cz], nil)
611+ $Tuple2(nil, cH)
614612 }
615613
616614
617615
618-@Callable(cl)
619-func unstakeINTERNAL (aA,aS,aC,cv) = {
620- let as = toBase58String(aA)
621- let cp = addressFromStringValue(valueOrErrorMessage(getString(aW, Y(as)), j(("unsupported lp asset " + as))))
622- let cB = if ((cl.caller == cp))
623- then true
624- else cj
625- if ((cB == cB))
626- then cu(cl, aA, cp, Address(aC), Address(cv), aS)
627- else throw("Strict value is not equal to itself.")
628- }
629-
630-
631-
632-@Callable(cl)
633-func claimWx (as) = {
634- let ar = toString(cl.caller)
635- let cy = true
636- let cL = invoke(this, "claimWxINTERNAL", [as, ar, cy], nil)
637- $Tuple2(nil, cL)
638- }
639-
640-
641-
642-@Callable(cl)
643-func claimWxDoNotThrow (as) = {
644- let ar = toString(cl.caller)
645- let cy = false
646- let cL = invoke(this, "claimWxINTERNAL", [as, ar, cy], nil)
647- $Tuple2(nil, cL)
648- }
649-
650-
651-
652-@Callable(cl)
653-func claimWxINTERNAL (as,ar,cy) = {
654- let cB = ck(cl)
655- if ((cB == cB))
616+@Callable(cm)
617+func claimWxINTERNAL (at,as,cz) = {
618+ let cC = cl(cm)
619+ if ((cC == cC))
656620 then {
657- let aC = valueOrErrorMessage(addressFromString(ar), j("claimWxINTERNAL: invalid user address"))
658- let by = z(aW, ab(as))
659- let cM = au(as, ar)
660- let cN = ax(as)
661- let cO = av(as, ar)
662- let cP = aw(as, ar)
663- let cQ = E(this, cM)
664- let cw = E(this, cO)
665- let cR = E(this, cP)
666- let cS = E(this, cN)
667- let cT = bU(as, ar, by, 0)
668- let ce = cT._1
669- let cs = cT._2
670- let bT = cT._3
671- let cx = max([(ce - cw), h])
672- if ((h >= cx))
673- then if (cy)
621+ let aD = valueOrErrorMessage(addressFromString(as), j("claimWxINTERNAL: invalid user address"))
622+ let bz = z(aX, ab(at))
623+ let cI = av(at, as)
624+ let cJ = ay(at)
625+ let cK = aw(at, as)
626+ let cL = ax(at, as)
627+ let cM = E(this, cI)
628+ let cx = E(this, cK)
629+ let cN = E(this, cL)
630+ let cO = E(this, cJ)
631+ let cP = bV(at, as, bz, 0)
632+ let cf = cP._1
633+ let ct = cP._2
634+ let bU = cP._3
635+ let cy = max([(cf - cx), h])
636+ if ((h >= cy))
637+ then if (cz)
674638 then l("nothing to claim")
675639 else $Tuple2(nil, 0)
676640 else {
677- let cU = max([q(m(invoke(aY, "claimWxBoost", [as, ar], nil))[0]), 0])
678- let cV = cx
679- let cW = min([(cV * toBigInt((aZ - 1))), toBigInt(cU)])
680- let cX = (cV + cW)
681- let cY = u(m(invoke(aX, "emit", [toInt(cV)], nil))[0])
682- let cZ = m(invoke(aX, "emit", [toInt(cW)], nil))
683- if ((cZ == cZ))
641+ let cQ = max([q(m(invoke(aZ, "claimWxBoost", [at, as], nil))[0]), 0])
642+ let cR = cy
643+ let cS = min([(cR * toBigInt((ba - 1))), toBigInt(cQ)])
644+ let cT = (cR + cS)
645+ let cU = u(m(invoke(aY, "emit", [toInt(cR)], nil))[0])
646+ let cV = m(invoke(aY, "emit", [toInt(cS)], nil))
647+ if ((cV == cV))
684648 then {
685- let da = ((cQ + cV) + cW)
686- let db = (cw + cV)
687- let dc = (cR + cW)
688- let dd = (cS + cx)
689- $Tuple2([StringEntry(cM, toString(da)), StringEntry(cO, toString(db)), StringEntry(cP, toString(dc)), StringEntry(cN, toString(dd)), ScriptTransfer(aC, toInt(cV), cY), ScriptTransfer(aC, toInt(cW), cY), aT("claim", ar, as, toInt(cx), cl.transactionId)], toInt(cX))
649+ let cW = ((cM + cR) + cS)
650+ let cX = (cx + cR)
651+ let cY = (cN + cS)
652+ let cZ = (cO + cy)
653+ $Tuple2([StringEntry(cI, toString(cW)), StringEntry(cK, toString(cX)), StringEntry(cL, toString(cY)), StringEntry(cJ, toString(cZ)), ScriptTransfer(aD, toInt(cR), cU), ScriptTransfer(aD, toInt(cS), cU), aU("claim", as, at, toInt(cy), cm.transactionId)], toInt(cT))
690654 }
691655 else throw("Strict value is not equal to itself.")
692656 }
696660
697661
698662
699-@Callable(cl)
700-func claimWxBulkInternalREADONLY (de,df,ar,dg) = if ((de == size(df)))
701- then $Tuple2(nil, dg)
663+@Callable(cm)
664+func claimWxBulkInternalREADONLY (da,db,as,dc) = if ((da == size(db)))
665+ then $Tuple2(nil, dc)
702666 else {
703- let aA = df[de]
704- let dh = split({
705- let ba = invoke(this, "claimWxREADONLY", [aA, ar], nil)
706- if ($isInstanceOf(ba, "String"))
707- then ba
708- else throw(($getType(ba) + " couldn't be cast to String"))
667+ let aB = db[da]
668+ let dd = split({
669+ let bb = invoke(this, "claimWxREADONLY", [aB, as], nil)
670+ if ($isInstanceOf(bb, "String"))
671+ then bb
672+ else throw(($getType(bb) + " couldn't be cast to String"))
709673 }, f)
710- let di = dh[3]
711- let dj = dh[4]
712- let dk = {
713- let ba = invoke(aY, "getUserVoteFinalizedREADONLY", [aA, ar], nil)
714- if ($isInstanceOf(ba, "Int"))
715- then ba
716- else throw(($getType(ba) + " couldn't be cast to Int"))
674+ let de = dd[3]
675+ let df = dd[4]
676+ let dg = {
677+ let bb = invoke(aZ, "getUserVoteFinalizedREADONLY", [aB, as], nil)
678+ if ($isInstanceOf(bb, "Int"))
679+ then bb
680+ else throw(($getType(bb) + " couldn't be cast to Int"))
717681 }
718- let dl = (dg :+ makeString(["%d%d%d", di, dj, toString(dk)], f))
719- let dm = {
720- let ba = invoke(this, "claimWxBulkInternalREADONLY", [(de + 1), df, ar, dl], nil)
721- if ($isInstanceOf(ba, "List[Any]"))
722- then ba
723- else throw(($getType(ba) + " couldn't be cast to List[Any]"))
682+ let dh = (dc :+ makeString(["%d%d%d", de, df, toString(dg)], f))
683+ let di = {
684+ let bb = invoke(this, "claimWxBulkInternalREADONLY", [(da + 1), db, as, dh], nil)
685+ if ($isInstanceOf(bb, "List[Any]"))
686+ then bb
687+ else throw(($getType(bb) + " couldn't be cast to List[Any]"))
724688 }
725- if ((dm == dm))
726- then $Tuple2(nil, dm)
689+ if ((di == di))
690+ then $Tuple2(nil, di)
727691 else throw("Strict value is not equal to itself.")
728692 }
729693
730694
731695
732-@Callable(cl)
733-func claimWxBulkREADONLY (df,ar) = {
734- let dl = invoke(this, "claimWxBulkInternalREADONLY", [0, df, ar, nil], nil)
735- $Tuple2(nil, dl)
696+@Callable(cm)
697+func claimWxBulkREADONLY (db,as) = {
698+ let dh = invoke(this, "claimWxBulkInternalREADONLY", [0, db, as, nil], nil)
699+ $Tuple2(nil, dh)
736700 }
737701
738702
739703
740-@Callable(cl)
741-func claimWxREADONLY (as,ar) = {
742- let bY = aq(ar, as)
743- let bA = at(as)
744- let cM = au(as, ar)
745- let cO = av(as, ar)
746- let bt = ay(bY)
747- let bB = ay(bA)
748- let cQ = E(this, cM)
749- let cw = E(this, cO)
750- let by = z(aW, ab(as))
751- let bD = getIntegerValue(aW, ac(by))
752- let dn = D(aX, al())
753- let bE = D(aX, an())
754- let do = if ((bE > height))
704+@Callable(cm)
705+func claimWxREADONLY (at,as) = {
706+ let bZ = ar(as, at)
707+ let bB = au(at)
708+ let cI = av(at, as)
709+ let cK = aw(at, as)
710+ let bu = az(bZ)
711+ let bC = az(bB)
712+ let cM = E(this, cI)
713+ let cx = E(this, cK)
714+ let bz = z(aX, ab(at))
715+ let bE = getIntegerValue(aX, ac(bz))
716+ let dj = D(aY, am())
717+ let bF = D(aY, ao())
718+ let dk = if ((bF > height))
755719 then 0
756- else (height - bE)
757- let dp = fraction((dn * do), bD, g)
758- let dq = fraction(dp, bt, bB)
759- let dr = bU(as, ar, by, 0)
760- let ce = dr._1
761- let cs = dr._2
762- let bT = dr._3
763- let cx = max([(ce - cw), h])
764- let ds = m(invoke(aY, "claimWxBoostREADONLY", [as, ar], nil))
765- let cU = max([q(ds[0]), 0])
766- let dt = s(ds[1])
767- let cV = cx
768- let cW = min([(cV * toBigInt((aZ - 1))), toBigInt(cU)])
769- let cX = (cV + cW)
770- $Tuple2(nil, makeString(["%s%s%d%d%d%d%s", as, ar, toString(cX), toString(cQ), toString(cV), toString(cW), "soon"], f))
720+ else (height - bF)
721+ let dl = fraction((dj * dk), bE, g)
722+ let dm = fraction(dl, bu, bC)
723+ let dn = bV(at, as, bz, 0)
724+ let cf = dn._1
725+ let ct = dn._2
726+ let bU = dn._3
727+ let cy = max([(cf - cx), h])
728+ let do = m(invoke(aZ, "claimWxBoostREADONLY", [at, as], nil))
729+ let cQ = max([q(do[0]), 0])
730+ let dp = s(do[1])
731+ let cR = cy
732+ let cS = min([(cR * toBigInt((ba - 1))), toBigInt(cQ)])
733+ let cT = (cR + cS)
734+ $Tuple2(nil, makeString(["%s%s%d%d%d%d%s", at, as, toString(cT), toString(cM), toString(cR), toString(cS), "soon"], f))
771735 }
772736
773737
774738
775-@Callable(cl)
776-func stakedByUserREADONLY (as,ar) = {
777- let bt = valueOrElse(getInteger(aq(ar, as)), 0)
778- $Tuple2(nil, bt)
739+@Callable(cm)
740+func stakedByUserREADONLY (at,as) = {
741+ let bu = valueOrElse(getInteger(ar(as, at)), 0)
742+ $Tuple2(nil, bu)
779743 }
780744
781745
782746
783-@Callable(cl)
784-func stakedTotalREADONLY (as) = {
785- let bB = valueOrElse(getInteger(at(as)), 0)
786- $Tuple2(nil, bB)
747+@Callable(cm)
748+func stakedTotalREADONLY (at) = {
749+ let bC = valueOrElse(getInteger(au(at)), 0)
750+ $Tuple2(nil, bC)
787751 }
788752
789753
790754
791-@Callable(cl)
792-func usersListTraversal (aA) = {
793- let cB = if ((toBase58String(cl.caller.bytes) == valueOrElse(getString(this, N()), "")))
755+@Callable(cm)
756+func usersListTraversal (aB) = {
757+ let cC = if ((toBase58String(cm.caller.bytes) == valueOrElse(getString(this, N()), "")))
794758 then true
795- else cm(cl)
796- if ((cB == cB))
759+ else cn(cm)
760+ if ((cC == cC))
797761 then {
798- let bf = bd(aA)
799- let du = getString(bc(aA))
800- let bl = getString(be(bf))
801- let o = du
762+ let bg = be(aB)
763+ let dq = getString(bd(aB))
764+ let bm = getString(bf(bg))
765+ let o = dq
802766 if ($isInstanceOf(o, "Unit"))
803767 then {
804- let dv = bl
805- if ($isInstanceOf(dv, "Unit"))
768+ let dr = bm
769+ if ($isInstanceOf(dr, "Unit"))
806770 then $Tuple2(nil, false)
807- else if ($isInstanceOf(dv, "String"))
771+ else if ($isInstanceOf(dr, "String"))
808772 then {
809- let dw = dv
810- $Tuple2([StringEntry(bc(aA), dw)], true)
773+ let ds = dr
774+ $Tuple2([StringEntry(bd(aB), ds)], true)
811775 }
812776 else throw("Match error")
813777 }
814778 else if ($isInstanceOf(o, "String"))
815779 then {
816- let aC = o
817- let cw = E(this, av(aA, aC))
818- let cp = z(aW, ab(aA))
819- let ce = bU(aA, aC, cp, 0)._1
820- let cx = (ce - cw)
821- let cy = true
822- let cz = if ((cx > h))
823- then invoke(this, "claimWxINTERNAL", [aA, aC, cy], nil)
780+ let aD = o
781+ let cx = E(this, aw(aB, aD))
782+ let cq = z(aX, ab(aB))
783+ let cf = bV(aB, aD, cq, 0)._1
784+ let cy = (cf - cx)
785+ let cz = true
786+ let cA = if ((cy > h))
787+ then invoke(this, "claimWxINTERNAL", [aB, aD, cz], nil)
824788 else unit
825- if ((cz == cz))
789+ if ((cA == cA))
826790 then {
827- let dx = getString(bj(bf, aC))
828- let dv = dx
829- if ($isInstanceOf(dv, "Unit"))
830- then $Tuple2([DeleteEntry(bc(aA))], false)
831- else if ($isInstanceOf(dv, "String"))
791+ let dt = getString(bk(bg, aD))
792+ let dr = dt
793+ if ($isInstanceOf(dr, "Unit"))
794+ then $Tuple2([DeleteEntry(bd(aB))], false)
795+ else if ($isInstanceOf(dr, "String"))
832796 then {
833- let dy = dv
834- $Tuple2([StringEntry(bc(aA), dy)], true)
797+ let du = dr
798+ $Tuple2([StringEntry(bd(aB), du)], true)
835799 }
836800 else throw("Match error")
837801 }
844808
845809
846810
847-@Callable(cl)
848-func onModifyWeight (as,by) = if ((cl.caller != aW))
811+@Callable(cm)
812+func onModifyWeight (at,bz) = if ((cm.caller != aX))
849813 then l("permissions denied")
850814 else {
851- let dz = bx(as, by, 0)
852- let bv = dz._1
853- let bW = dz._2
854- let bX = dz._3
855- bW
815+ let dv = by(at, bz, 0)
816+ let bw = dv._1
817+ let bX = dv._2
818+ let bY = dv._3
819+ bX
856820 }
857821
858822
859-@Verifier(dA)
860-func dB () = {
861- let dC = {
862- let o = ch()
823+@Verifier(dw)
824+func dx () = {
825+ let dy = {
826+ let o = ci()
863827 if ($isInstanceOf(o, "ByteVector"))
864828 then {
865- let cn = o
866- cn
829+ let co = o
830+ co
867831 }
868832 else if ($isInstanceOf(o, "Unit"))
869- then dA.senderPublicKey
833+ then dw.senderPublicKey
870834 else throw("Match error")
871835 }
872- sigVerify(dA.bodyBytes, dA.proofs[0], dC)
836+ sigVerify(dw.bodyBytes, dw.proofs[0], dy)
873837 }
874838
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = 8
55
66 let b = 1000
77
88 let c = 100000000
99
1010 let d = 18
1111
1212 let e = toBigInt(1000000000000000000)
1313
1414 let f = "__"
1515
1616 let g = c
1717
1818 let h = toBigInt(0)
1919
2020 let i = toBigInt(1)
2121
2222 func j (k) = makeString(["staking.ride:", toString(this), k], " ")
2323
2424
2525 func l (k) = throw(j(k))
2626
2727
2828 func m (n) = {
2929 let o = n
3030 if ($isInstanceOf(o, "List[Any]"))
3131 then {
3232 let p = o
3333 p
3434 }
3535 else l("fail to cast into List[Any]")
3636 }
3737
3838
3939 func q (n) = {
4040 let o = n
4141 if ($isInstanceOf(o, "Int"))
4242 then {
4343 let r = o
4444 r
4545 }
4646 else l("fail to cast into Int")
4747 }
4848
4949
5050 func s (n) = {
5151 let o = n
5252 if ($isInstanceOf(o, "String"))
5353 then {
5454 let t = o
5555 t
5656 }
5757 else l("fail to cast into Int")
5858 }
5959
6060
6161 func u (n) = {
6262 let o = n
6363 if ($isInstanceOf(o, "ByteVector"))
6464 then {
6565 let v = o
6666 v
6767 }
6868 else l("fail to cast into Int")
6969 }
7070
7171
7272 func w (x,y) = valueOrErrorMessage(getString(x, y), j((("mandatory this." + y) + " is not defined")))
7373
7474
7575 func z (x,y) = valueOrErrorMessage(getString(x, y), j((((("mandatory " + toString(x)) + ".") + y) + " is not defined")))
7676
7777
7878 func A (x,y) = valueOrElse(getInteger(x, y), 0)
7979
8080
8181 func B (x,y,C) = valueOrElse(getInteger(x, y), C)
8282
8383
8484 func D (x,y) = valueOrErrorMessage(getInteger(x, y), j((("mandatory this." + y) + " is not defined")))
8585
8686
8787 func E (x,y) = value(parseBigInt(valueOrElse(getString(x, y), "0")))
8888
8989
9090 func F (x,y,C) = {
9191 let o = getString(x, y)
9292 if ($isInstanceOf(o, "String"))
9393 then {
9494 let G = o
9595 value(parseBigInt(G))
9696 }
9797 else if ($isInstanceOf(o, "Unit"))
9898 then C
9999 else throw("Match error")
100100 }
101101
102102
103103 func H (I,J) = fraction(toBigInt(I), e, toBigInt(J))
104104
105105
106106 func K (n,L) = toInt(fraction(n, toBigInt(L), e))
107107
108108
109109 func M () = "%s%s__config__factoryAddress"
110110
111111
112112 func N () = "%s__votingEmissionContract"
113113
114114
115115 let O = 1
116116
117117 let P = 2
118118
119119 let Q = 3
120120
121121 let R = 4
122122
123123 let S = 5
124124
125125 let T = 6
126126
127127 let U = 7
128128
129129 func V () = "%s__factoryConfig"
130130
131131
132132 func W () = "%s__managerPublicKey"
133133
134134
135-func X () = "%s__pendingManagerPublicKey"
135+func X () = "%s__managerVaultAddress"
136136
137137
138138 func Y (Z) = makeString(["%s%s%s", Z, "mappings__lpAsset2PoolContract"], f)
139139
140140
141141 func aa () = "%s__lpTokensList"
142142
143143
144144 func ab (Z) = makeString(["%s%s%s", Z, "mappings__lpAsset2PoolContract"], f)
145145
146146
147147 func ac (ad) = makeString(["%s%s", "poolWeight", ad], f)
148148
149149
150150 func ae (af) = split(valueOrElse(getString(af, aa()), ""), f)
151151
152152
153153 func ag (af) = split(z(af, V()), f)
154154
155155
156156 func ah (ai) = addressFromStringValue(ai[P])
157157
158158
159159 func aj (ai) = addressFromStringValue(ai[S])
160160
161161
162162 func ak (ai) = addressFromStringValue(ai[O])
163163
164164
165-func al () = "%s%s__ratePerBlock__current"
166-
167-
168-func am () = "%s%s__ratePerBlockMax__current"
169-
170-
171-func an () = "%s%s__emission__startBlock"
172-
173-
174-func ao () = "%s%s__emission__duration"
175-
176-
177-func ap () = "%s%s__emission__endBlock"
178-
179-
180-func aq (ar,as) = makeString(["%s%s%s__staked", ar, as], f)
181-
182-
183-func at (as) = ("%s%s%s__staked__total__" + as)
184-
185-
186-func au (as,ar) = makeString(["%s%s%s__claimed", ar, as], f)
187-
188-
189-func av (as,ar) = makeString(["%s%s%s__claimedMinReward", ar, as], f)
190-
191-
192-func aw (as,ar) = makeString(["%s%s%s__claimedBoostReward", ar, as], f)
193-
194-
195-func ax (as) = makeString(["%s%s%s__claimed__total", as], f)
196-
197-
198-func ay (y) = valueOrElse(getInteger(this, y), 0)
199-
200-
201-func az (aA) = makeString(["%s%s%s", aA, "total", "bal"], f)
202-
203-
204-func aB (aA,aC) = makeString(["%s%s%s", aA, aC, "bal"], f)
205-
206-
207-func aD (aA) = makeString(["%s%s%s", aA, "total", "balINT"], f)
208-
209-
210-func aE (aA,aC) = makeString(["%s%s%s", aA, aC, "balINT"], f)
211-
212-
213-func aF (aA) = makeString(["%s%s%s", aA, "total", "lastUpd"], f)
214-
215-
216-func aG (aA,aC) = makeString(["%s%s%s", aA, aC, "lastUpd"], f)
217-
218-
219-func aH (aA) = makeString(["%s%s%s%s", aA, "common", "lpInt"], f)
220-
221-
222-func aI (aA) = makeString(["%s%s%s%s", aA, "common", "lpIntH"], f)
223-
224-
225-func aJ (aA,aC) = makeString(["%s%s%s%s", aA, aC, "lpInt"], f)
226-
227-
228-func aK (aA,aC) = makeString(["%s%s%s%s", aA, aC, "lpIntH"], f)
229-
230-
231-func aL (aA) = makeString(["%s", aA, "wxPerLp"], f)
232-
233-
234-func aM (aA) = makeString(["%s", aA, "wxPerLpX18"], f)
235-
236-
237-func aN (aA,aC) = makeString(["%s%s%s%s", aA, aC, "uIntL"], f)
238-
239-
240-func aO (aP,aC,aQ) = makeString(["%s%s%s%s__history", aP, aC, aQ], f)
241-
242-
243-func aR (aC,aA,aP,aS) = makeString(["%s%s%s%d%d%d", aC, aA, aP, toString(height), toString(lastBlock.timestamp), toString(aS)], f)
244-
245-
246-func aT (aP,aC,aA,aS,aU) = StringEntry(aO(aP, aC, toBase58String(aU)), aR(aC, aA, aP, aS))
247-
248-
249-let aV = w(this, M())
250-
251-let aW = addressFromStringValue(aV)
252-
253-let ai = ag(aW)
254-
255-let aX = aj(ai)
256-
257-let aY = ah(ai)
258-
259-let aZ = {
260- let ba = invoke(aX, "getBoostCoeffREADONLY", nil, nil)
261- if ($isInstanceOf(ba, "Int"))
262- then ba
263- else throw(($getType(ba) + " couldn't be cast to Int"))
264- }
265-
266-let bb = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(makeString(["%s", "lpStakingPoolsContract"], f)), j("lp_staking_pools contract address is undefined"))), j("invalid lp_staking_pools contract address"))
267-
268-func bc (aA) = makeString(["%s%s", aA, "nextUser"], f)
269-
270-
271-func bd (aA) = makeString(["users", aA], f)
272-
273-
274-func be (bf) = makeString(["%s%s%s", bf, "head"], f)
275-
276-
277-func bg (bf) = makeString(["%s%s%s", bf, "size"], f)
278-
279-
280-func bh (bf,bi) = makeString(["%s%s%s%s", bf, bi, "prev"], f)
281-
282-
283-func bj (bf,bi) = makeString(["%s%s%s%s", bf, bi, "next"], f)
284-
285-
286-func bk (bf,bi) = {
287- let bl = getString(this, be(bf))
288- let bm = getString(this, bh(bf, bi))
289- let bn = getString(this, bj(bf, bi))
290- if (if ((bi == valueOrElse(bl, "")))
291- then true
292- else (bm != unit))
293- then true
294- else (bn != unit)
165+func al () = {
166+ let o = getString(X())
167+ if ($isInstanceOf(o, "String"))
168+ then {
169+ let G = o
170+ addressFromStringValue(G)
171+ }
172+ else this
295173 }
296174
297175
298-func bo (bf,bi) = {
299- let bl = getString(this, be(bf))
300- let bp = valueOrElse(getInteger(this, bg(bf)), 0)
301- let bq = if (!(bk(bf, bi)))
176+func am () = "%s%s__ratePerBlock__current"
177+
178+
179+func an () = "%s%s__ratePerBlockMax__current"
180+
181+
182+func ao () = "%s%s__emission__startBlock"
183+
184+
185+func ap () = "%s%s__emission__duration"
186+
187+
188+func aq () = "%s%s__emission__endBlock"
189+
190+
191+func ar (as,at) = makeString(["%s%s%s__staked", as, at], f)
192+
193+
194+func au (at) = ("%s%s%s__staked__total__" + at)
195+
196+
197+func av (at,as) = makeString(["%s%s%s__claimed", as, at], f)
198+
199+
200+func aw (at,as) = makeString(["%s%s%s__claimedMinReward", as, at], f)
201+
202+
203+func ax (at,as) = makeString(["%s%s%s__claimedBoostReward", as, at], f)
204+
205+
206+func ay (at) = makeString(["%s%s%s__claimed__total", at], f)
207+
208+
209+func az (y) = valueOrElse(getInteger(this, y), 0)
210+
211+
212+func aA (aB) = makeString(["%s%s%s", aB, "total", "bal"], f)
213+
214+
215+func aC (aB,aD) = makeString(["%s%s%s", aB, aD, "bal"], f)
216+
217+
218+func aE (aB) = makeString(["%s%s%s", aB, "total", "balINT"], f)
219+
220+
221+func aF (aB,aD) = makeString(["%s%s%s", aB, aD, "balINT"], f)
222+
223+
224+func aG (aB) = makeString(["%s%s%s", aB, "total", "lastUpd"], f)
225+
226+
227+func aH (aB,aD) = makeString(["%s%s%s", aB, aD, "lastUpd"], f)
228+
229+
230+func aI (aB) = makeString(["%s%s%s%s", aB, "common", "lpInt"], f)
231+
232+
233+func aJ (aB) = makeString(["%s%s%s%s", aB, "common", "lpIntH"], f)
234+
235+
236+func aK (aB,aD) = makeString(["%s%s%s%s", aB, aD, "lpInt"], f)
237+
238+
239+func aL (aB,aD) = makeString(["%s%s%s%s", aB, aD, "lpIntH"], f)
240+
241+
242+func aM (aB) = makeString(["%s", aB, "wxPerLp"], f)
243+
244+
245+func aN (aB) = makeString(["%s", aB, "wxPerLpX18"], f)
246+
247+
248+func aO (aB,aD) = makeString(["%s%s%s%s", aB, aD, "uIntL"], f)
249+
250+
251+func aP (aQ,aD,aR) = makeString(["%s%s%s%s__history", aQ, aD, aR], f)
252+
253+
254+func aS (aD,aB,aQ,aT) = makeString(["%s%s%s%d%d%d", aD, aB, aQ, toString(height), toString(lastBlock.timestamp), toString(aT)], f)
255+
256+
257+func aU (aQ,aD,aB,aT,aV) = StringEntry(aP(aQ, aD, toBase58String(aV)), aS(aD, aB, aQ, aT))
258+
259+
260+let aW = w(this, M())
261+
262+let aX = addressFromStringValue(aW)
263+
264+let ai = ag(aX)
265+
266+let aY = aj(ai)
267+
268+let aZ = ah(ai)
269+
270+let ba = {
271+ let bb = invoke(aY, "getBoostCoeffREADONLY", nil, nil)
272+ if ($isInstanceOf(bb, "Int"))
273+ then bb
274+ else throw(($getType(bb) + " couldn't be cast to Int"))
275+ }
276+
277+let bc = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(makeString(["%s", "lpStakingPoolsContract"], f)), j("lp_staking_pools contract address is undefined"))), j("invalid lp_staking_pools contract address"))
278+
279+func bd (aB) = makeString(["%s%s", aB, "nextUser"], f)
280+
281+
282+func be (aB) = makeString(["users", aB], f)
283+
284+
285+func bf (bg) = makeString(["%s%s%s", bg, "head"], f)
286+
287+
288+func bh (bg) = makeString(["%s%s%s", bg, "size"], f)
289+
290+
291+func bi (bg,bj) = makeString(["%s%s%s%s", bg, bj, "prev"], f)
292+
293+
294+func bk (bg,bj) = makeString(["%s%s%s%s", bg, bj, "next"], f)
295+
296+
297+func bl (bg,bj) = {
298+ let bm = getString(this, bf(bg))
299+ let bn = getString(this, bi(bg, bj))
300+ let bo = getString(this, bk(bg, bj))
301+ if (if ((bj == valueOrElse(bm, "")))
302+ then true
303+ else (bn != unit))
304+ then true
305+ else (bo != unit)
306+ }
307+
308+
309+func bp (bg,bj) = {
310+ let bm = getString(this, bf(bg))
311+ let bq = valueOrElse(getInteger(this, bh(bg)), 0)
312+ let br = if (!(bl(bg, bj)))
302313 then true
303314 else l("Node exists")
304- if ((bq == bq))
305- then (([IntegerEntry(bg(bf), (bp + 1))] ++ (if ((bl != unit))
306- then [StringEntry(bj(bf, bi), value(bl)), StringEntry(bh(bf, value(bl)), bi)]
307- else nil)) ++ [StringEntry(be(bf), bi)])
315+ if ((br == br))
316+ then (([IntegerEntry(bh(bg), (bq + 1))] ++ (if ((bm != unit))
317+ then [StringEntry(bk(bg, bj), value(bm)), StringEntry(bi(bg, value(bm)), bj)]
318+ else nil)) ++ [StringEntry(bf(bg), bj)])
308319 else throw("Strict value is not equal to itself.")
309320 }
310321
311322
312-func br (bf,bi) = {
313- let bl = getString(this, be(bf))
314- let bp = valueOrElse(getInteger(this, bg(bf)), 0)
315- let bm = getString(this, bh(bf, bi))
316- let bn = getString(this, bj(bf, bi))
317- ([IntegerEntry(bg(bf), (bp - 1))] ++ (if (if ((bm != unit))
318- then (bn != unit)
323+func bs (bg,bj) = {
324+ let bm = getString(this, bf(bg))
325+ let bq = valueOrElse(getInteger(this, bh(bg)), 0)
326+ let bn = getString(this, bi(bg, bj))
327+ let bo = getString(this, bk(bg, bj))
328+ ([IntegerEntry(bh(bg), (bq - 1))] ++ (if (if ((bn != unit))
329+ then (bo != unit)
319330 else false)
320- then [StringEntry(bj(bf, value(bm)), value(bn)), StringEntry(bh(bf, value(bn)), value(bm)), DeleteEntry(bh(bf, bi)), DeleteEntry(bj(bf, bi))]
321- else if ((bn != unit))
322- then [StringEntry(be(bf), value(bn)), DeleteEntry(bj(bf, bi)), DeleteEntry(bh(bf, value(bn)))]
323- else if ((bm != unit))
324- then [DeleteEntry(bh(bf, bi)), DeleteEntry(bj(bf, value(bm)))]
325- else if ((bi == valueOrElse(bl, "")))
326- then [DeleteEntry(be(bf))]
327- else l(((("invalid node: " + bf) + ".") + bi))))
331+ then [StringEntry(bk(bg, value(bn)), value(bo)), StringEntry(bi(bg, value(bo)), value(bn)), DeleteEntry(bi(bg, bj)), DeleteEntry(bk(bg, bj))]
332+ else if ((bo != unit))
333+ then [StringEntry(bf(bg), value(bo)), DeleteEntry(bk(bg, bj)), DeleteEntry(bi(bg, value(bo)))]
334+ else if ((bn != unit))
335+ then [DeleteEntry(bi(bg, bj)), DeleteEntry(bk(bg, value(bn)))]
336+ else if ((bj == valueOrElse(bm, "")))
337+ then [DeleteEntry(bf(bg))]
338+ else l(((("invalid node: " + bg) + ".") + bj))))
328339 }
329340
330341
331-func bs (bt,bu,bv,bw) = if (if ((bu == h))
332- then (bt > h)
342+func bt (bu,bv,bw,bx) = if (if ((bv == h))
343+ then (bu > h)
333344 else false)
334345 then h
335- else if ((bt == h))
336- then bv
337- else if (if ((bu > h))
338- then (bt > h)
346+ else if ((bu == h))
347+ then bw
348+ else if (if ((bv > h))
349+ then (bu > h)
339350 else false)
340- then value(parseBigInt(w(this, bw)))
351+ then value(parseBigInt(w(this, bx)))
341352 else l("calcWxPerLpIntegralUserLast: unexpected state")
342353
343354
344-func bx (as,by,bz) = {
345- let bA = at(as)
346- let bB = toBigInt(ay(bA))
347- let bC = if ((bB == h))
355+func by (at,bz,bA) = {
356+ let bB = au(at)
357+ let bC = toBigInt(az(bB))
358+ let bD = if ((bC == h))
348359 then i
349- else bB
350- let bD = getIntegerValue(aW, ac(by))
351- let bE = D(aX, an())
352- let bF = (D(aX, al()) * b)
353- let bG = fraction(bF, bD, (g * aZ))
354- let bH = aH(as)
355- let bI = aI(as)
356- let bJ = aL(as)
357- let bK = B(this, bI, bE)
358- let bL = E(this, bH)
359- let bM = 0
360- let bN = max([(height - bK), 0])
361- let bO = if ((bM != 0))
362- then toBigInt(bM)
363- else fraction(toBigInt(bG), toBigInt(c), bC)
364- let bP = (bB + toBigInt(bz))
365- let bQ = if ((bP == h))
360+ else bC
361+ let bE = getIntegerValue(aX, ac(bz))
362+ let bF = D(aY, ao())
363+ let bG = (D(aY, am()) * b)
364+ let bH = fraction(bG, bE, (g * ba))
365+ let bI = aI(at)
366+ let bJ = aJ(at)
367+ let bK = aM(at)
368+ let bL = B(this, bJ, bF)
369+ let bM = E(this, bI)
370+ let bN = 0
371+ let bO = max([(height - bL), 0])
372+ let bP = if ((bN != 0))
373+ then toBigInt(bN)
374+ else fraction(toBigInt(bH), toBigInt(c), bD)
375+ let bQ = (bC + toBigInt(bA))
376+ let bR = if ((bQ == h))
366377 then i
367- else bP
368- let bv = (bL + (bO * toBigInt(bN)))
369- let bR = (toBigInt(bG) / bQ)
370- let bS = height
371- let bT = makeString([toString(bv), toString(bN), toString(bO), toString(bB), toString(bG), toString(bF), toString(bD)], "::")
372- $Tuple3(bv, [StringEntry(bH, toString(bv)), IntegerEntry(bI, bS), StringEntry(bJ, toString(bR))], bT)
378+ else bQ
379+ let bw = (bM + (bP * toBigInt(bO)))
380+ let bS = (toBigInt(bH) / bR)
381+ let bT = height
382+ let bU = makeString([toString(bw), toString(bO), toString(bP), toString(bC), toString(bH), toString(bG), toString(bE)], "::")
383+ $Tuple3(bw, [StringEntry(bI, toString(bw)), IntegerEntry(bJ, bT), StringEntry(bK, toString(bS))], bU)
373384 }
374385
375386
376-func bU (as,ar,by,bz) = {
377- let bV = bx(as, by, bz)
378- let bv = bV._1
379- let bW = bV._2
380- let bX = bV._3
381- let bY = aq(ar, as)
382- let bt = ay(bY)
383- let bZ = aJ(as, ar)
384- let ca = aK(as, ar)
385- let bw = aN(as, ar)
386- let cb = E(this, bZ)
387- let bu = A(this, ca)
388- let cc = bs(toBigInt(bt), toBigInt(bu), bv, bw)
389- let cd = (c * b)
390- let ce = max([(cb + fraction((bv - cc), toBigInt(bt), toBigInt(cd))), h])
391- let cf = bv
392- let cg = height
393- let bT = makeString([toString(cb), toString(cc), toString(bt), bX, toString(height)], "::")
394- $Tuple3(ce, (bW ++ [StringEntry(bZ, toString(ce)), IntegerEntry(ca, cg), StringEntry(bw, toString(cf))]), bT)
387+func bV (at,as,bz,bA) = {
388+ let bW = by(at, bz, bA)
389+ let bw = bW._1
390+ let bX = bW._2
391+ let bY = bW._3
392+ let bZ = ar(as, at)
393+ let bu = az(bZ)
394+ let ca = aK(at, as)
395+ let cb = aL(at, as)
396+ let bx = aO(at, as)
397+ let cc = E(this, ca)
398+ let bv = A(this, cb)
399+ let cd = bt(toBigInt(bu), toBigInt(bv), bw, bx)
400+ let ce = (c * b)
401+ let cf = max([(cc + fraction((bw - cd), toBigInt(bu), toBigInt(ce))), h])
402+ let cg = bw
403+ let ch = height
404+ let bU = makeString([toString(cc), toString(cd), toString(bu), bY, toString(height)], "::")
405+ $Tuple3(cf, (bX ++ [StringEntry(ca, toString(cf)), IntegerEntry(cb, ch), StringEntry(bx, toString(cg))]), bU)
395406 }
396407
397408
398-func ch () = {
399- let o = getString(W())
409+func ci () = {
410+ let cj = al()
411+ let o = getString(cj, W())
400412 if ($isInstanceOf(o, "String"))
401413 then {
402414 let G = o
403415 fromBase58String(G)
404416 }
405417 else if ($isInstanceOf(o, "Unit"))
406418 then unit
407419 else throw("Match error")
408420 }
409421
410422
411-func ci () = {
412- let o = getString(X())
413- if ($isInstanceOf(o, "String"))
423+let ck = l("Permission denied")
424+
425+func cl (cm) = if ((cm.caller == this))
426+ then true
427+ else ck
428+
429+
430+func cn (cm) = {
431+ let o = ci()
432+ if ($isInstanceOf(o, "ByteVector"))
414433 then {
415- let G = o
416- fromBase58String(G)
434+ let co = o
435+ if ((cm.callerPublicKey == co))
436+ then true
437+ else ck
417438 }
418439 else if ($isInstanceOf(o, "Unit"))
419- then unit
440+ then if ((cm.caller == this))
441+ then true
442+ else ck
420443 else throw("Match error")
421444 }
422445
423446
424-let cj = l("Permission denied")
425-
426-func ck (cl) = if ((cl.caller == this))
427- then true
428- else cj
429-
430-
431-func cm (cl) = {
432- let o = ch()
433- if ($isInstanceOf(o, "ByteVector"))
447+func cp (cm,aB,cq,aD,aT) = {
448+ let as = toString(aD)
449+ let at = toBase58String(aB)
450+ let bz = toString(cq)
451+ let bZ = ar(as, at)
452+ let bB = au(at)
453+ let bu = az(bZ)
454+ let cr = if ((bu == 0))
455+ then invoke(aZ, "onStakedVoteUpdate", [at, as, true], nil)
456+ else unit
457+ if ((cr == cr))
434458 then {
435- let cn = o
436- if ((cl.callerPublicKey == cn))
437- then true
438- else cj
439- }
440- else if ($isInstanceOf(o, "Unit"))
441- then if ((cl.caller == this))
442- then true
443- else cj
444- else throw("Match error")
445- }
446-
447-
448-func co (cl,aA,cp,aC,aS) = {
449- let ar = toString(aC)
450- let as = toBase58String(aA)
451- let by = toString(cp)
452- let bY = aq(ar, as)
453- let bA = at(as)
454- let bt = ay(bY)
455- let cq = if ((bt == 0))
456- then invoke(aY, "onStakedVoteUpdate", [as, ar, true], nil)
457- else unit
458- if ((cq == cq))
459- then {
460- let bB = ay(bA)
461- let cr = bU(as, ar, by, aS)
462- let ce = cr._1
463- let cs = cr._2
464- let bT = cr._3
465- let bf = bd(as)
466- let ct = if (bk(bf, ar))
459+ let bC = az(bB)
460+ let cs = bV(at, as, bz, aT)
461+ let cf = cs._1
462+ let ct = cs._2
463+ let bU = cs._3
464+ let bg = be(at)
465+ let cu = if (bl(bg, as))
467466 then nil
468- else bo(bf, ar)
469- (([IntegerEntry(bY, (bt + aS)), IntegerEntry(bA, (bB + aS)), aT("stake", ar, as, aS, cl.transactionId)] ++ cs) ++ ct)
467+ else bp(bg, as)
468+ (([IntegerEntry(bZ, (bu + aT)), IntegerEntry(bB, (bC + aT)), aU("stake", as, at, aT, cm.transactionId)] ++ ct) ++ cu)
470469 }
471470 else throw("Strict value is not equal to itself.")
472471 }
473472
474473
475-func cu (cl,aA,cp,aC,cv,aS) = {
476- let ar = toString(aC)
477- let as = toBase58String(aA)
478- let by = toString(cp)
479- let bY = aq(ar, as)
480- let bA = at(as)
481- let bt = ay(bY)
482- let bB = ay(bA)
483- let cs = bU(as, ar, by, -(aS))._2
484- let bf = bd(as)
485- let ct = if (if (bk(bf, ar))
486- then (aS == bt)
474+func cv (cm,aB,cq,aD,cw,aT) = {
475+ let as = toString(aD)
476+ let at = toBase58String(aB)
477+ let bz = toString(cq)
478+ let bZ = ar(as, at)
479+ let bB = au(at)
480+ let bu = az(bZ)
481+ let bC = az(bB)
482+ let ct = bV(at, as, bz, -(aT))._2
483+ let bg = be(at)
484+ let cu = if (if (bl(bg, as))
485+ then (aT == bu)
487486 else false)
488- then br(bf, ar)
487+ then bs(bg, as)
489488 else nil
490- let cq = if ((aS == bt))
491- then invoke(aY, "onStakedVoteUpdate", [as, ar, false], nil)
489+ let cr = if ((aT == bu))
490+ then invoke(aZ, "onStakedVoteUpdate", [at, as, false], nil)
492491 else unit
493- if ((cq == cq))
492+ if ((cr == cr))
494493 then {
495- let cw = E(this, av(as, ar))
496- let ce = bU(as, ar, by, 0)._1
497- let cx = (ce - cw)
498- let cy = true
499- let cz = if ((cx > h))
500- then invoke(this, "claimWxINTERNAL", [as, ar, cy], nil)
494+ let cx = E(this, aw(at, as))
495+ let cf = bV(at, as, bz, 0)._1
496+ let cy = (cf - cx)
497+ let cz = true
498+ let cA = if ((cy > h))
499+ then invoke(this, "claimWxINTERNAL", [at, as, cz], nil)
501500 else unit
502- if ((cz == cz))
503- then if ((aS > bt))
504- then l(((((((("passed amount=" + toString(aS)) + " is greater than available=") + toString(bt)) + ". lpAssetId=") + as) + ". stakedByUserKEY=") + bY))
505- else (([IntegerEntry(bY, (bt - aS)), IntegerEntry(bA, (bB - aS)), ScriptTransfer(cv, aS, aA), aT("unstake", ar, as, aS, cl.transactionId)] ++ cs) ++ ct)
501+ if ((cA == cA))
502+ then if ((aT > bu))
503+ then l(((((((("passed amount=" + toString(aT)) + " is greater than available=") + toString(bu)) + ". lpAssetId=") + at) + ". stakedByUserKEY=") + bZ))
504+ else (([IntegerEntry(bZ, (bu - aT)), IntegerEntry(bB, (bC - aT)), ScriptTransfer(cw, aT, aB), aU("unstake", as, at, aT, cm.transactionId)] ++ ct) ++ cu)
506505 else throw("Strict value is not equal to itself.")
507506 }
508507 else throw("Strict value is not equal to itself.")
509508 }
510509
511510
512-@Callable(cl)
513-func constructor (cA) = {
514- let cB = cm(cl)
515- if ((cB == cB))
516- then [StringEntry(M(), cA)]
511+@Callable(cm)
512+func constructor (cB) = {
513+ let cC = cn(cm)
514+ if ((cC == cC))
515+ then [StringEntry(M(), cB)]
517516 else throw("Strict value is not equal to itself.")
518517 }
519518
520519
521520
522-@Callable(cl)
523-func constructorV2 (cC) = {
524- let cD = [cm(cl), if ((addressFromString(cC) != unit))
521+@Callable(cm)
522+func constructorV2 (cD) = {
523+ let cE = [cn(cm), if ((addressFromString(cD) != unit))
525524 then true
526525 else "invalid voting emission contract address"]
527- if ((cD == cD))
528- then [StringEntry(N(), cC)]
526+ if ((cE == cE))
527+ then [StringEntry(N(), cD)]
529528 else throw("Strict value is not equal to itself.")
530529 }
531530
532531
533532
534-@Callable(cl)
535-func setManager (cE) = {
536- let cB = cm(cl)
537- if ((cB == cB))
538- then {
539- let cF = fromBase58String(cE)
540- if ((cF == cF))
541- then [StringEntry(X(), cE)]
542- else throw("Strict value is not equal to itself.")
543- }
533+@Callable(cm)
534+func stake () = if ((size(cm.payments) != 1))
535+ then l("invalid payment - exact one payment must be attached")
536+ else {
537+ let cF = cm.payments[0]
538+ let aB = value(cF.assetId)
539+ let at = toBase58String(aB)
540+ let aT = cF.amount
541+ let bz = valueOrErrorMessage(getString(aX, Y(at)), j(("unsupported lp asset " + at)))
542+ let cq = addressFromStringValue(bz)
543+ let aD = if ((cm.caller == cq))
544+ then cm.originCaller
545+ else cm.caller
546+ cp(cm, aB, cq, aD, aT)
547+ }
548+
549+
550+
551+@Callable(cm)
552+func stakeFor (as) = if ((size(cm.payments) != 1))
553+ then l("invalid payment - exact one payment must be attached")
554+ else {
555+ let cF = cm.payments[0]
556+ let aB = value(cF.assetId)
557+ let at = toBase58String(aB)
558+ let aT = cF.amount
559+ let bz = valueOrErrorMessage(getString(aX, Y(at)), j(("unsupported lp asset " + at)))
560+ let cq = addressFromStringValue(bz)
561+ let aD = valueOrErrorMessage(addressFromString(as), j("invalid user address"))
562+ cp(cm, aB, cq, aD, aT)
563+ }
564+
565+
566+
567+@Callable(cm)
568+func unstake (at,aT) = {
569+ let aB = fromBase58String(at)
570+ let bz = valueOrErrorMessage(getString(aX, Y(at)), j(("unsupported lp asset " + at)))
571+ let cq = addressFromStringValue(bz)
572+ let cG = toString(cm.caller)
573+ let aD = if ((cG == bz))
574+ then cm.originCaller
575+ else cm.caller
576+ let cw = cm.caller
577+ cv(cm, aB, cq, aD, cw, aT)
578+ }
579+
580+
581+
582+@Callable(cm)
583+func unstakeINTERNAL (aB,aT,aD,cw) = {
584+ let at = toBase58String(aB)
585+ let cq = addressFromStringValue(valueOrErrorMessage(getString(aX, Y(at)), j(("unsupported lp asset " + at))))
586+ let cC = if ((cm.caller == cq))
587+ then true
588+ else ck
589+ if ((cC == cC))
590+ then cv(cm, aB, cq, Address(aD), Address(cw), aT)
544591 else throw("Strict value is not equal to itself.")
545592 }
546593
547594
548595
549-@Callable(cl)
550-func confirmManager () = {
551- let cG = ci()
552- let cH = if (isDefined(cG))
553- then true
554- else l("No pending manager")
555- if ((cH == cH))
556- then {
557- let cI = if ((cl.callerPublicKey == value(cG)))
558- then true
559- else l("You are not pending manager")
560- if ((cI == cI))
561- then [StringEntry(W(), toBase58String(value(cG))), DeleteEntry(X())]
562- else throw("Strict value is not equal to itself.")
563- }
564- else throw("Strict value is not equal to itself.")
596+@Callable(cm)
597+func claimWx (at) = {
598+ let as = toString(cm.caller)
599+ let cz = true
600+ let cH = invoke(this, "claimWxINTERNAL", [at, as, cz], nil)
601+ $Tuple2(nil, cH)
565602 }
566603
567604
568605
569-@Callable(cl)
570-func stake () = if ((size(cl.payments) != 1))
571- then l("invalid payment - exact one payment must be attached")
572- else {
573- let cJ = cl.payments[0]
574- let aA = value(cJ.assetId)
575- let as = toBase58String(aA)
576- let aS = cJ.amount
577- let by = valueOrErrorMessage(getString(aW, Y(as)), j(("unsupported lp asset " + as)))
578- let cp = addressFromStringValue(by)
579- let aC = if ((cl.caller == cp))
580- then cl.originCaller
581- else cl.caller
582- co(cl, aA, cp, aC, aS)
583- }
584-
585-
586-
587-@Callable(cl)
588-func stakeFor (ar) = if ((size(cl.payments) != 1))
589- then l("invalid payment - exact one payment must be attached")
590- else {
591- let cJ = cl.payments[0]
592- let aA = value(cJ.assetId)
593- let as = toBase58String(aA)
594- let aS = cJ.amount
595- let by = valueOrErrorMessage(getString(aW, Y(as)), j(("unsupported lp asset " + as)))
596- let cp = addressFromStringValue(by)
597- let aC = valueOrErrorMessage(addressFromString(ar), j("invalid user address"))
598- co(cl, aA, cp, aC, aS)
599- }
600-
601-
602-
603-@Callable(cl)
604-func unstake (as,aS) = {
605- let aA = fromBase58String(as)
606- let by = valueOrErrorMessage(getString(aW, Y(as)), j(("unsupported lp asset " + as)))
607- let cp = addressFromStringValue(by)
608- let cK = toString(cl.caller)
609- let aC = if ((cK == by))
610- then cl.originCaller
611- else cl.caller
612- let cv = cl.caller
613- cu(cl, aA, cp, aC, cv, aS)
606+@Callable(cm)
607+func claimWxDoNotThrow (at) = {
608+ let as = toString(cm.caller)
609+ let cz = false
610+ let cH = invoke(this, "claimWxINTERNAL", [at, as, cz], nil)
611+ $Tuple2(nil, cH)
614612 }
615613
616614
617615
618-@Callable(cl)
619-func unstakeINTERNAL (aA,aS,aC,cv) = {
620- let as = toBase58String(aA)
621- let cp = addressFromStringValue(valueOrErrorMessage(getString(aW, Y(as)), j(("unsupported lp asset " + as))))
622- let cB = if ((cl.caller == cp))
623- then true
624- else cj
625- if ((cB == cB))
626- then cu(cl, aA, cp, Address(aC), Address(cv), aS)
627- else throw("Strict value is not equal to itself.")
628- }
629-
630-
631-
632-@Callable(cl)
633-func claimWx (as) = {
634- let ar = toString(cl.caller)
635- let cy = true
636- let cL = invoke(this, "claimWxINTERNAL", [as, ar, cy], nil)
637- $Tuple2(nil, cL)
638- }
639-
640-
641-
642-@Callable(cl)
643-func claimWxDoNotThrow (as) = {
644- let ar = toString(cl.caller)
645- let cy = false
646- let cL = invoke(this, "claimWxINTERNAL", [as, ar, cy], nil)
647- $Tuple2(nil, cL)
648- }
649-
650-
651-
652-@Callable(cl)
653-func claimWxINTERNAL (as,ar,cy) = {
654- let cB = ck(cl)
655- if ((cB == cB))
616+@Callable(cm)
617+func claimWxINTERNAL (at,as,cz) = {
618+ let cC = cl(cm)
619+ if ((cC == cC))
656620 then {
657- let aC = valueOrErrorMessage(addressFromString(ar), j("claimWxINTERNAL: invalid user address"))
658- let by = z(aW, ab(as))
659- let cM = au(as, ar)
660- let cN = ax(as)
661- let cO = av(as, ar)
662- let cP = aw(as, ar)
663- let cQ = E(this, cM)
664- let cw = E(this, cO)
665- let cR = E(this, cP)
666- let cS = E(this, cN)
667- let cT = bU(as, ar, by, 0)
668- let ce = cT._1
669- let cs = cT._2
670- let bT = cT._3
671- let cx = max([(ce - cw), h])
672- if ((h >= cx))
673- then if (cy)
621+ let aD = valueOrErrorMessage(addressFromString(as), j("claimWxINTERNAL: invalid user address"))
622+ let bz = z(aX, ab(at))
623+ let cI = av(at, as)
624+ let cJ = ay(at)
625+ let cK = aw(at, as)
626+ let cL = ax(at, as)
627+ let cM = E(this, cI)
628+ let cx = E(this, cK)
629+ let cN = E(this, cL)
630+ let cO = E(this, cJ)
631+ let cP = bV(at, as, bz, 0)
632+ let cf = cP._1
633+ let ct = cP._2
634+ let bU = cP._3
635+ let cy = max([(cf - cx), h])
636+ if ((h >= cy))
637+ then if (cz)
674638 then l("nothing to claim")
675639 else $Tuple2(nil, 0)
676640 else {
677- let cU = max([q(m(invoke(aY, "claimWxBoost", [as, ar], nil))[0]), 0])
678- let cV = cx
679- let cW = min([(cV * toBigInt((aZ - 1))), toBigInt(cU)])
680- let cX = (cV + cW)
681- let cY = u(m(invoke(aX, "emit", [toInt(cV)], nil))[0])
682- let cZ = m(invoke(aX, "emit", [toInt(cW)], nil))
683- if ((cZ == cZ))
641+ let cQ = max([q(m(invoke(aZ, "claimWxBoost", [at, as], nil))[0]), 0])
642+ let cR = cy
643+ let cS = min([(cR * toBigInt((ba - 1))), toBigInt(cQ)])
644+ let cT = (cR + cS)
645+ let cU = u(m(invoke(aY, "emit", [toInt(cR)], nil))[0])
646+ let cV = m(invoke(aY, "emit", [toInt(cS)], nil))
647+ if ((cV == cV))
684648 then {
685- let da = ((cQ + cV) + cW)
686- let db = (cw + cV)
687- let dc = (cR + cW)
688- let dd = (cS + cx)
689- $Tuple2([StringEntry(cM, toString(da)), StringEntry(cO, toString(db)), StringEntry(cP, toString(dc)), StringEntry(cN, toString(dd)), ScriptTransfer(aC, toInt(cV), cY), ScriptTransfer(aC, toInt(cW), cY), aT("claim", ar, as, toInt(cx), cl.transactionId)], toInt(cX))
649+ let cW = ((cM + cR) + cS)
650+ let cX = (cx + cR)
651+ let cY = (cN + cS)
652+ let cZ = (cO + cy)
653+ $Tuple2([StringEntry(cI, toString(cW)), StringEntry(cK, toString(cX)), StringEntry(cL, toString(cY)), StringEntry(cJ, toString(cZ)), ScriptTransfer(aD, toInt(cR), cU), ScriptTransfer(aD, toInt(cS), cU), aU("claim", as, at, toInt(cy), cm.transactionId)], toInt(cT))
690654 }
691655 else throw("Strict value is not equal to itself.")
692656 }
693657 }
694658 else throw("Strict value is not equal to itself.")
695659 }
696660
697661
698662
699-@Callable(cl)
700-func claimWxBulkInternalREADONLY (de,df,ar,dg) = if ((de == size(df)))
701- then $Tuple2(nil, dg)
663+@Callable(cm)
664+func claimWxBulkInternalREADONLY (da,db,as,dc) = if ((da == size(db)))
665+ then $Tuple2(nil, dc)
702666 else {
703- let aA = df[de]
704- let dh = split({
705- let ba = invoke(this, "claimWxREADONLY", [aA, ar], nil)
706- if ($isInstanceOf(ba, "String"))
707- then ba
708- else throw(($getType(ba) + " couldn't be cast to String"))
667+ let aB = db[da]
668+ let dd = split({
669+ let bb = invoke(this, "claimWxREADONLY", [aB, as], nil)
670+ if ($isInstanceOf(bb, "String"))
671+ then bb
672+ else throw(($getType(bb) + " couldn't be cast to String"))
709673 }, f)
710- let di = dh[3]
711- let dj = dh[4]
712- let dk = {
713- let ba = invoke(aY, "getUserVoteFinalizedREADONLY", [aA, ar], nil)
714- if ($isInstanceOf(ba, "Int"))
715- then ba
716- else throw(($getType(ba) + " couldn't be cast to Int"))
674+ let de = dd[3]
675+ let df = dd[4]
676+ let dg = {
677+ let bb = invoke(aZ, "getUserVoteFinalizedREADONLY", [aB, as], nil)
678+ if ($isInstanceOf(bb, "Int"))
679+ then bb
680+ else throw(($getType(bb) + " couldn't be cast to Int"))
717681 }
718- let dl = (dg :+ makeString(["%d%d%d", di, dj, toString(dk)], f))
719- let dm = {
720- let ba = invoke(this, "claimWxBulkInternalREADONLY", [(de + 1), df, ar, dl], nil)
721- if ($isInstanceOf(ba, "List[Any]"))
722- then ba
723- else throw(($getType(ba) + " couldn't be cast to List[Any]"))
682+ let dh = (dc :+ makeString(["%d%d%d", de, df, toString(dg)], f))
683+ let di = {
684+ let bb = invoke(this, "claimWxBulkInternalREADONLY", [(da + 1), db, as, dh], nil)
685+ if ($isInstanceOf(bb, "List[Any]"))
686+ then bb
687+ else throw(($getType(bb) + " couldn't be cast to List[Any]"))
724688 }
725- if ((dm == dm))
726- then $Tuple2(nil, dm)
689+ if ((di == di))
690+ then $Tuple2(nil, di)
727691 else throw("Strict value is not equal to itself.")
728692 }
729693
730694
731695
732-@Callable(cl)
733-func claimWxBulkREADONLY (df,ar) = {
734- let dl = invoke(this, "claimWxBulkInternalREADONLY", [0, df, ar, nil], nil)
735- $Tuple2(nil, dl)
696+@Callable(cm)
697+func claimWxBulkREADONLY (db,as) = {
698+ let dh = invoke(this, "claimWxBulkInternalREADONLY", [0, db, as, nil], nil)
699+ $Tuple2(nil, dh)
736700 }
737701
738702
739703
740-@Callable(cl)
741-func claimWxREADONLY (as,ar) = {
742- let bY = aq(ar, as)
743- let bA = at(as)
744- let cM = au(as, ar)
745- let cO = av(as, ar)
746- let bt = ay(bY)
747- let bB = ay(bA)
748- let cQ = E(this, cM)
749- let cw = E(this, cO)
750- let by = z(aW, ab(as))
751- let bD = getIntegerValue(aW, ac(by))
752- let dn = D(aX, al())
753- let bE = D(aX, an())
754- let do = if ((bE > height))
704+@Callable(cm)
705+func claimWxREADONLY (at,as) = {
706+ let bZ = ar(as, at)
707+ let bB = au(at)
708+ let cI = av(at, as)
709+ let cK = aw(at, as)
710+ let bu = az(bZ)
711+ let bC = az(bB)
712+ let cM = E(this, cI)
713+ let cx = E(this, cK)
714+ let bz = z(aX, ab(at))
715+ let bE = getIntegerValue(aX, ac(bz))
716+ let dj = D(aY, am())
717+ let bF = D(aY, ao())
718+ let dk = if ((bF > height))
755719 then 0
756- else (height - bE)
757- let dp = fraction((dn * do), bD, g)
758- let dq = fraction(dp, bt, bB)
759- let dr = bU(as, ar, by, 0)
760- let ce = dr._1
761- let cs = dr._2
762- let bT = dr._3
763- let cx = max([(ce - cw), h])
764- let ds = m(invoke(aY, "claimWxBoostREADONLY", [as, ar], nil))
765- let cU = max([q(ds[0]), 0])
766- let dt = s(ds[1])
767- let cV = cx
768- let cW = min([(cV * toBigInt((aZ - 1))), toBigInt(cU)])
769- let cX = (cV + cW)
770- $Tuple2(nil, makeString(["%s%s%d%d%d%d%s", as, ar, toString(cX), toString(cQ), toString(cV), toString(cW), "soon"], f))
720+ else (height - bF)
721+ let dl = fraction((dj * dk), bE, g)
722+ let dm = fraction(dl, bu, bC)
723+ let dn = bV(at, as, bz, 0)
724+ let cf = dn._1
725+ let ct = dn._2
726+ let bU = dn._3
727+ let cy = max([(cf - cx), h])
728+ let do = m(invoke(aZ, "claimWxBoostREADONLY", [at, as], nil))
729+ let cQ = max([q(do[0]), 0])
730+ let dp = s(do[1])
731+ let cR = cy
732+ let cS = min([(cR * toBigInt((ba - 1))), toBigInt(cQ)])
733+ let cT = (cR + cS)
734+ $Tuple2(nil, makeString(["%s%s%d%d%d%d%s", at, as, toString(cT), toString(cM), toString(cR), toString(cS), "soon"], f))
771735 }
772736
773737
774738
775-@Callable(cl)
776-func stakedByUserREADONLY (as,ar) = {
777- let bt = valueOrElse(getInteger(aq(ar, as)), 0)
778- $Tuple2(nil, bt)
739+@Callable(cm)
740+func stakedByUserREADONLY (at,as) = {
741+ let bu = valueOrElse(getInteger(ar(as, at)), 0)
742+ $Tuple2(nil, bu)
779743 }
780744
781745
782746
783-@Callable(cl)
784-func stakedTotalREADONLY (as) = {
785- let bB = valueOrElse(getInteger(at(as)), 0)
786- $Tuple2(nil, bB)
747+@Callable(cm)
748+func stakedTotalREADONLY (at) = {
749+ let bC = valueOrElse(getInteger(au(at)), 0)
750+ $Tuple2(nil, bC)
787751 }
788752
789753
790754
791-@Callable(cl)
792-func usersListTraversal (aA) = {
793- let cB = if ((toBase58String(cl.caller.bytes) == valueOrElse(getString(this, N()), "")))
755+@Callable(cm)
756+func usersListTraversal (aB) = {
757+ let cC = if ((toBase58String(cm.caller.bytes) == valueOrElse(getString(this, N()), "")))
794758 then true
795- else cm(cl)
796- if ((cB == cB))
759+ else cn(cm)
760+ if ((cC == cC))
797761 then {
798- let bf = bd(aA)
799- let du = getString(bc(aA))
800- let bl = getString(be(bf))
801- let o = du
762+ let bg = be(aB)
763+ let dq = getString(bd(aB))
764+ let bm = getString(bf(bg))
765+ let o = dq
802766 if ($isInstanceOf(o, "Unit"))
803767 then {
804- let dv = bl
805- if ($isInstanceOf(dv, "Unit"))
768+ let dr = bm
769+ if ($isInstanceOf(dr, "Unit"))
806770 then $Tuple2(nil, false)
807- else if ($isInstanceOf(dv, "String"))
771+ else if ($isInstanceOf(dr, "String"))
808772 then {
809- let dw = dv
810- $Tuple2([StringEntry(bc(aA), dw)], true)
773+ let ds = dr
774+ $Tuple2([StringEntry(bd(aB), ds)], true)
811775 }
812776 else throw("Match error")
813777 }
814778 else if ($isInstanceOf(o, "String"))
815779 then {
816- let aC = o
817- let cw = E(this, av(aA, aC))
818- let cp = z(aW, ab(aA))
819- let ce = bU(aA, aC, cp, 0)._1
820- let cx = (ce - cw)
821- let cy = true
822- let cz = if ((cx > h))
823- then invoke(this, "claimWxINTERNAL", [aA, aC, cy], nil)
780+ let aD = o
781+ let cx = E(this, aw(aB, aD))
782+ let cq = z(aX, ab(aB))
783+ let cf = bV(aB, aD, cq, 0)._1
784+ let cy = (cf - cx)
785+ let cz = true
786+ let cA = if ((cy > h))
787+ then invoke(this, "claimWxINTERNAL", [aB, aD, cz], nil)
824788 else unit
825- if ((cz == cz))
789+ if ((cA == cA))
826790 then {
827- let dx = getString(bj(bf, aC))
828- let dv = dx
829- if ($isInstanceOf(dv, "Unit"))
830- then $Tuple2([DeleteEntry(bc(aA))], false)
831- else if ($isInstanceOf(dv, "String"))
791+ let dt = getString(bk(bg, aD))
792+ let dr = dt
793+ if ($isInstanceOf(dr, "Unit"))
794+ then $Tuple2([DeleteEntry(bd(aB))], false)
795+ else if ($isInstanceOf(dr, "String"))
832796 then {
833- let dy = dv
834- $Tuple2([StringEntry(bc(aA), dy)], true)
797+ let du = dr
798+ $Tuple2([StringEntry(bd(aB), du)], true)
835799 }
836800 else throw("Match error")
837801 }
838802 else throw("Strict value is not equal to itself.")
839803 }
840804 else throw("Match error")
841805 }
842806 else throw("Strict value is not equal to itself.")
843807 }
844808
845809
846810
847-@Callable(cl)
848-func onModifyWeight (as,by) = if ((cl.caller != aW))
811+@Callable(cm)
812+func onModifyWeight (at,bz) = if ((cm.caller != aX))
849813 then l("permissions denied")
850814 else {
851- let dz = bx(as, by, 0)
852- let bv = dz._1
853- let bW = dz._2
854- let bX = dz._3
855- bW
815+ let dv = by(at, bz, 0)
816+ let bw = dv._1
817+ let bX = dv._2
818+ let bY = dv._3
819+ bX
856820 }
857821
858822
859-@Verifier(dA)
860-func dB () = {
861- let dC = {
862- let o = ch()
823+@Verifier(dw)
824+func dx () = {
825+ let dy = {
826+ let o = ci()
863827 if ($isInstanceOf(o, "ByteVector"))
864828 then {
865- let cn = o
866- cn
829+ let co = o
830+ co
867831 }
868832 else if ($isInstanceOf(o, "Unit"))
869- then dA.senderPublicKey
833+ then dw.senderPublicKey
870834 else throw("Match error")
871835 }
872- sigVerify(dA.bodyBytes, dA.proofs[0], dC)
836+ sigVerify(dw.bodyBytes, dw.proofs[0], dy)
873837 }
874838

github/deemru/w8io/169f3d6 
219.60 ms