tx · AJfoLY7Sbk8L34gs3UYKCYV3n36smMVUkSitSTmtmLfC

3Myn55vLkduxbX3ZXfiDCZhaQsLxYp1kmCy:  -0.02600000 Waves

2023.08.31 11:56 [2734645] smart account 3Myn55vLkduxbX3ZXfiDCZhaQsLxYp1kmCy > SELF 0.00000000 Waves

{ "type": 13, "id": "AJfoLY7Sbk8L34gs3UYKCYV3n36smMVUkSitSTmtmLfC", "fee": 2600000, "feeAssetId": null, "timestamp": 1693472223363, "version": 2, "chainId": 84, "sender": "3Myn55vLkduxbX3ZXfiDCZhaQsLxYp1kmCy", "senderPublicKey": "9W33iCCNfmFxUbiC6XZcH5x7f6xfwC7Jb3BoExT5q2PV", "proofs": [ "5DbSTW4N3pEcUnwFvbjRQAP585w96pnsrKN9LENCtuw2wRyBJtpoYmGpLkhz81r1HB5fyX4zfnvTe3HCDZ4ns9LM" ], "script": "base64:BgK2LQgCEgUKAwEIAhIDCgEBEgQKAggIEgQKAggIEgMKAQgSAwoBCBIDCgEIEgQKAggBEgMKAQgSABIAEgUKAwgIBBIDCgEIEgMKAQgSBAoCCAgSBAoCCAgSAwoBBCIDU0VQIgZTQ0FMRTgiBU1VTFQ4Ig5QT09MV0VJR0hUTVVMVCIQY29udHJhY3RGaWxlbmFtZSIHU0NBTEUxOCIGTVVMVDE4IghNVUxUMThCSSIOREVDQVlfQ09OU1RBTlQiB3dyYXBFcnIiA21zZyIIdGhyb3dFcnIiD2dldFN0cmluZ09yRmFpbCIHYWRkcmVzcyIDa2V5IgxnZXRJbnRPclplcm8iD2dldEludE9yRGVmYXVsdCIKZGVmYXVsdFZhbCIMZ2V0SW50T3JGYWlsIgNhYnMiA3ZhbCIOZW5zdXJlUG9zaXRpdmUiAXYiAW0iG2tleVJlZmVycmFsc0NvbnRyYWN0QWRkcmVzcyIecmVmZXJyYWxzQ29udHJhY3RBZGRyZXNzT3JGYWlsIhZrZXlSZWZlcnJhbFByb2dyYW1OYW1lIhpyZWZlcnJhbFByb2dyYW1OYW1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AJhSgkBAmFMAAMJAAECBQJhSgIKQnl0ZVZlY3RvcgQCYVEFAmFKBQJhUQMJAAECBQJhSgIEVW5pdAgFAmVWD3NlbmRlclB1YmxpY0tleQkAAgECC01hdGNoIGVycm9yCQD0AwMIBQJlVglib2R5Qnl0ZXMJAJEDAggFAmVWBnByb29mcwAABQJlWEmSeWg=", "height": 2734645, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3XtQb5iVGAgH6CCTKnebu3M95kiD8t3sS8mkbYEvDs7u Next: BkHd8EfLoabZ6orf7VCraMbdRkLcFyLVSAgE35Me34UD Diff:
OldNewDifferences
176176
177177 let aE = valueOrErrorMessage(parseInt(ax[au]), j("invalid lock step blocks"))
178178
179-func aF () = {
180- let aG = getString(ag())
181- if ($isInstanceOf(aG, "String"))
179+let aF = "%s__suspension"
180+
181+let aG = valueOrElse(getBoolean(this, aF), false)
182+
183+func aH () = if (!(aG))
184+ then true
185+ else l("suspended")
186+
187+
188+func aI () = {
189+ let aJ = getString(ag())
190+ if ($isInstanceOf(aJ, "String"))
182191 then {
183- let aH = aG
184- addressFromStringValue(aH)
192+ let aK = aJ
193+ addressFromStringValue(aK)
185194 }
186195 else this
187196 }
188197
189198
190-func aI () = {
191- let aJ = aF()
192- let aG = getString(aJ, af())
193- if ($isInstanceOf(aG, "String"))
199+func aL () = {
200+ let aM = aI()
201+ let aJ = getString(aM, af())
202+ if ($isInstanceOf(aJ, "String"))
194203 then {
195- let aH = aG
196- fromBase58String(aH)
204+ let aK = aJ
205+ fromBase58String(aK)
197206 }
198- else if ($isInstanceOf(aG, "Unit"))
207+ else if ($isInstanceOf(aJ, "Unit"))
199208 then unit
200209 else throw("Match error")
201210 }
202211
203212
204-func aK (aL) = {
205- let aM = l("Permission denied")
206- let aG = aI()
207- if ($isInstanceOf(aG, "ByteVector"))
213+func aN (aO) = {
214+ let aP = l("Permission denied")
215+ let aJ = aL()
216+ if ($isInstanceOf(aJ, "ByteVector"))
208217 then {
209- let aN = aG
210- if ((aL.callerPublicKey == aN))
218+ let aQ = aJ
219+ if ((aO.callerPublicKey == aQ))
211220 then true
212- else aM
221+ else aP
213222 }
214- else if ($isInstanceOf(aG, "Unit"))
215- then if ((aL.caller == this))
223+ else if ($isInstanceOf(aJ, "Unit"))
224+ then if ((aO.caller == this))
216225 then true
217- else aM
226+ else aP
218227 else throw("Match error")
219228 }
220229
221230
222-let aO = 1
231+let aR = 1
223232
224-let aP = 2
233+let aS = 2
225234
226-let aQ = 3
235+let aT = 3
227236
228-let aR = 4
237+let aU = 4
229238
230-let aS = 5
239+let aV = 5
231240
232-let aT = 6
241+let aW = 6
233242
234-func aU (aV,aW) = makeString(["%s%s%s__lock", toString(aV), {
235- let aG = aW
236- if ($isInstanceOf(aG, "ByteVector"))
243+func aX (aY,aZ) = makeString(["%s%s%s__lock", toString(aY), {
244+ let aJ = aZ
245+ if ($isInstanceOf(aJ, "ByteVector"))
237246 then {
238- let aX = aG
239- toBase58String(aX)
247+ let ba = aJ
248+ toBase58String(ba)
240249 }
241- else if ($isInstanceOf(aG, "Unit"))
250+ else if ($isInstanceOf(aJ, "Unit"))
242251 then "legacy"
243252 else throw("Match error")
244253 }], a)
245254
246255
247-func aY (aV,aW) = split(m(this, aU(aV, aW)), a)
256+func bb (aY,aZ) = split(m(this, aX(aY, aZ)), a)
248257
249258
250-func aZ (aV) = makeString(["%s%s__gwxAmountTotal", toString(aV)], a)
259+func bc (aY) = makeString(["%s%s__gwxAmountTotal", toString(aY)], a)
251260
252261
253-func ba (bb,bc,bd,be,bf) = makeString(["%d%d%d%d%d%d", toString(bb), toString(bc), toString(bd), toString(lastBlock.timestamp), toString(be), toString(bf)], a)
262+func bd (be,bf,bg,bh,bi) = makeString(["%d%d%d%d%d%d", toString(be), toString(bf), toString(bg), toString(lastBlock.timestamp), toString(bh), toString(bi)], a)
254263
255264
256-func bg () = "%s__nextUserNum"
265+func bj () = "%s__nextUserNum"
257266
258267
259-func bh (aV) = makeString(["%s%s%s__mapping__user2num", aV], a)
268+func bk (aY) = makeString(["%s%s%s__mapping__user2num", aY], a)
260269
261270
262-func bi (W) = makeString(["%s%s%s__mapping__num2user", W], a)
271+func bl (W) = makeString(["%s%s%s__mapping__num2user", W], a)
263272
264273
265-func bj () = "%s%s__stats__activeTotalLocked"
274+func bm () = "%s%s__stats__activeTotalLocked"
266275
267276
268-func bk () = "%s%s__stats__locksDurationSumInBlocks"
277+func bn () = "%s%s__stats__locksDurationSumInBlocks"
269278
270279
271-func bl () = "%s%s__stats__locksCount"
280+func bo () = "%s%s__stats__locksCount"
272281
273282
274-func bm () = "%s%s__stats__activeUsersCount"
283+func bp () = "%s%s__stats__activeUsersCount"
275284
276285
277-func bn (bo) = makeString(["%s%d__userBoostEmissionLastIntV2", toString(bo)], a)
286+func bq (br) = makeString(["%s%d__userBoostEmissionLastIntV2", toString(br)], a)
278287
279288
280-func bp (bo,bq) = makeString(["%s%d__userBoostEmissionLastIntV2", toString(bo), bq], a)
289+func bs (br,bt) = makeString(["%s%d__userBoostEmissionLastIntV2", toString(br), bt], a)
281290
282291
283-func br (bo) = makeString(["%s%d__maxBoostInt", toString(bo)], a)
292+func bu (br) = makeString(["%s%d__maxBoostInt", toString(br)], a)
284293
285294
286-func bs () = "%s%s__maxBoostInt__total"
295+func bv () = "%s%s__maxBoostInt__total"
287296
288297
289-func bt (bo) = makeString(["%s%d__userBoostAvaliableToClaimTotal", toString(bo)], a)
298+func bw (br) = makeString(["%s%d__userBoostAvaliableToClaimTotal", toString(br)], a)
290299
291300
292-func bu (bo) = makeString(["%s%d__userBoostClaimed", toString(bo)], a)
301+func bx (br) = makeString(["%s%d__userBoostClaimed", toString(br)], a)
293302
294303
295-func bv () = "%s%s__gwx__total"
304+func by () = "%s%s__gwx__total"
296305
297306
298-func bw (bx,by,n,bz) = makeString(["%s%s%s%s%d", "vote", bx, by, toString(n), toString(bz)], a)
307+func bz (bA,bB,n,bC) = makeString(["%s%s%s%s%d", "vote", bA, bB, toString(n), toString(bC)], a)
299308
300309
301-func bA (bz) = makeString(["%s%d", "startHeight", toString(bz)], a)
310+func bD (bC) = makeString(["%s%d", "startHeight", toString(bC)], a)
302311
303312
304-func bB () = makeString(["%s", "currentEpochUi"], a)
313+func bE () = makeString(["%s", "currentEpochUi"], a)
305314
306315
307-func bC (bD,bz) = makeString(["%s%s%d", "votingResultStaked", bD, toString(bz)], a)
316+func bF (bG,bC) = makeString(["%s%s%d", "votingResultStaked", bG, toString(bC)], a)
308317
309318
310-func bE (bD,bz) = makeString(["%s%s%d", "votingResultStakedIntegral", bD, toString(bz)], a)
319+func bH (bG,bC) = makeString(["%s%s%d", "votingResultStakedIntegral", bG, toString(bC)], a)
311320
312321
313-func bF (bD,bz) = makeString(["%s%s%d", "votingResultStakedIntegralLastUpdateHeight", bD, toString(bz)], a)
322+func bI (bG,bC) = makeString(["%s%s%d", "votingResultStakedIntegralLastUpdateHeight", bG, toString(bC)], a)
314323
315324
316-func bG (bD,n,bz) = makeString(["%s%s%s%d", "votingResultStakedIntegralLast", bD, toString(n), toString(bz)], a)
325+func bJ (bG,n,bC) = makeString(["%s%s%s%d", "votingResultStakedIntegralLast", bG, toString(n), toString(bC)], a)
317326
318327
319-func bH (bD,n,bz) = makeString(["%s%s%s%d", "voteStakedIntegral", bD, toString(n), toString(bz)], a)
328+func bK (bG,n,bC) = makeString(["%s%s%s%d", "voteStakedIntegral", bG, toString(n), toString(bC)], a)
320329
321330
322-func bI (bD,n,bz) = makeString(["%s%s%s%d", "voteStakedIntegralLastUpdateHeight", bD, toString(n), toString(bz)], a)
331+func bL (bG,n,bC) = makeString(["%s%s%s%d", "voteStakedIntegralLastUpdateHeight", bG, toString(n), toString(bC)], a)
323332
324333
325-func bJ (bD,n,bz) = makeString(["%s%s%s%d", "voteStakedIntegralLast", bD, toString(n), toString(bz)], a)
334+func bM (bG,n,bC) = makeString(["%s%s%s%d", "voteStakedIntegralLast", bG, toString(n), toString(bC)], a)
326335
327336
328-func bK (bL,bD) = makeString(["%s%s%s", "staked", bL, bD], a)
337+func bN (bO,bG) = makeString(["%s%s%s", "staked", bO, bG], a)
329338
330339
331-let bM = X()
340+let bP = X()
332341
333-let ab = Y(bM)
342+let ab = Y(bP)
334343
335-let bN = ac(ab)
344+let bQ = ac(ab)
336345
337-let bO = ad(ab)
346+let bR = ad(ab)
338347
339-let bP = ae(ab)
348+let bS = ae(ab)
340349
341-let bQ = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(makeString(["%s", "lpStakingPoolsContract"], a)), j("lp_staking_pools contract address is undefined"))), j("invalid lp_staking_pools contract address"))
350+let bT = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(makeString(["%s", "lpStakingPoolsContract"], a)), j("lp_staking_pools contract address is undefined"))), j("invalid lp_staking_pools contract address"))
342351
343-let bR = makeString(["%s", "votingEmissionContract"], a)
352+let bU = makeString(["%s", "votingEmissionContract"], a)
344353
345-let bS = addressFromStringValue(getStringValue(bM, bR))
354+let bV = addressFromStringValue(getStringValue(bP, bU))
346355
347-let bT = makeString(["%s", "votingEmissionRateContract"], a)
356+let bW = makeString(["%s", "votingEmissionRateContract"], a)
348357
349-let bU = {
350- let bV = invoke(bN, "getBoostCoeffREADONLY", nil, nil)
351- if ($isInstanceOf(bV, "Int"))
352- then bV
353- else throw(($getType(bV) + " couldn't be cast to Int"))
358+let bX = {
359+ let bY = invoke(bQ, "getBoostCoeffREADONLY", nil, nil)
360+ if ($isInstanceOf(bY, "Int"))
361+ then bY
362+ else throw(($getType(bY) + " couldn't be cast to Int"))
354363 }
355364
356-func bW (aV) = {
357- let aG = getString(this, bh(toString(aV)))
358- if ($isInstanceOf(aG, "String"))
365+func bZ (aY) = {
366+ let aJ = getString(this, bk(toString(aY)))
367+ if ($isInstanceOf(aJ, "String"))
359368 then {
360- let aH = aG
361- valueOrErrorMessage(parseInt(aH), j("invalid user number"))
369+ let aK = aJ
370+ valueOrErrorMessage(parseInt(aK), j("invalid user number"))
362371 }
363- else if ($isInstanceOf(aG, "Unit"))
372+ else if ($isInstanceOf(aJ, "Unit"))
364373 then l("invalid user")
365374 else throw("Match error")
366375 }
367376
368377
369-func bX () = valueOrElse(getInteger(this, bv()), 0)
378+func ca () = valueOrElse(getInteger(this, by()), 0)
370379
371380
372-func bY (aV) = {
373- let bZ = "getLockedGwxAmount"
374- let ca = valueOrErrorMessage({
375- let aG = getString(bS, bT)
376- if ($isInstanceOf(aG, "Unit"))
381+func cb (aY) = {
382+ let cc = "getLockedGwxAmount"
383+ let cd = valueOrErrorMessage({
384+ let aJ = getString(bV, bW)
385+ if ($isInstanceOf(aJ, "Unit"))
377386 then unit
378- else if ($isInstanceOf(aG, "String"))
387+ else if ($isInstanceOf(aJ, "String"))
379388 then {
380- let aH = aG
381- addressFromString(aH)
389+ let aK = aJ
390+ addressFromString(aK)
382391 }
383392 else throw("Match error")
384393 }, j("invalid voting emission rate address"))
385- let cb = {
386- let bV = invoke(bS, bZ, [toString(aV)], nil)
387- if ($isInstanceOf(bV, "Int"))
388- then bV
389- else throw(($getType(bV) + " couldn't be cast to Int"))
394+ let ce = {
395+ let bY = invoke(bV, cc, [toString(aY)], nil)
396+ if ($isInstanceOf(bY, "Int"))
397+ then bY
398+ else throw(($getType(bY) + " couldn't be cast to Int"))
390399 }
391- let cc = {
392- let bV = invoke(ca, bZ, [toString(aV)], nil)
393- if ($isInstanceOf(bV, "Int"))
394- then bV
395- else throw(($getType(bV) + " couldn't be cast to Int"))
400+ let cf = {
401+ let bY = invoke(cd, cc, [toString(aY)], nil)
402+ if ($isInstanceOf(bY, "Int"))
403+ then bY
404+ else throw(($getType(bY) + " couldn't be cast to Int"))
396405 }
397- let cd = max([cb, cc])
398- cd
406+ let cg = max([ce, cf])
407+ cg
399408 }
400409
401410
402-func ce (cf,cg,bb,ch,bd,be,aL) = {
403- let ci = makeString(["%s%s%s%s__history", cf, cg, toBase58String(aL.transactionId)], a)
404- let cj = makeString(["%d%d%d%d%d%d%d", toString(lastBlock.height), toString(lastBlock.timestamp), toString(bb), toString(ch), toString(bd), toString(be)], a)
405- StringEntry(ci, cj)
411+func ch (ci,cj,be,ck,bg,bh,aO) = {
412+ let cl = makeString(["%s%s%s%s__history", ci, cj, toBase58String(aO.transactionId)], a)
413+ let cm = makeString(["%d%d%d%d%d%d%d", toString(lastBlock.height), toString(lastBlock.timestamp), toString(be), toString(ck), toString(bg), toString(bh)], a)
414+ StringEntry(cl, cm)
406415 }
407416
408417
409-func ck (cl,cm,cn,co) = {
410- let cp = bk()
411- let cq = bl()
412- let cr = bm()
413- let cs = bj()
414- let ct = p(this, cp)
415- let cu = p(this, cq)
416- let cv = p(this, cr)
418+func cn (co,cp,cq,cr) = {
419+ let cs = bn()
420+ let ct = bo()
421+ let cu = bp()
422+ let cv = bm()
417423 let cw = p(this, cs)
418-[IntegerEntry(cp, (ct + cm)), IntegerEntry(cq, (cu + cn)), IntegerEntry(cr, (cv + co)), IntegerEntry(cs, (cw + cl))]
424+ let cx = p(this, ct)
425+ let cy = p(this, cu)
426+ let cz = p(this, cv)
427+[IntegerEntry(cs, (cw + cp)), IntegerEntry(ct, (cx + cq)), IntegerEntry(cu, (cy + cr)), IntegerEntry(cv, (cz + co))]
419428 }
420429
421430
422-func cx (aV,aW,bb,bc,bd,be,bf) = [StringEntry(aU(aV, aW), ba(bb, bc, bd, be, bf))]
431+func cA (aY,aZ,be,bf,bg,bh,bi) = [StringEntry(aX(aY, aZ), bd(be, bf, bg, bh, bi))]
423432
424433
425-func cy (aL,cz) = if ((size(aL.payments) > 1))
434+func cB (aO,cC) = if ((size(aO.payments) > 1))
426435 then l("only one payment is allowed")
427- else if ((size(aL.payments) == 0))
436+ else if ((size(aO.payments) == 0))
428437 then 0
429438 else {
430- let cA = aL.payments[0]
431- if ((value(cA.assetId) != cz))
439+ let cD = aO.payments[0]
440+ if ((value(cD.assetId) != cC))
432441 then l("invalid asset id in payment")
433- else cA.amount
442+ else cD.amount
434443 }
435444
436445
437-func cB (aV) = valueOrElse(getInteger(this, aZ(aV)), 0)
446+func cE (aY) = valueOrElse(getInteger(this, bc(aY)), 0)
438447
439448
440-func cC () = {
441- let cD = {
442- let cE = value(getInteger(bS, bB()))
443- let cF = (cE - 1)
444- if ((0 > cF))
449+func cF () = {
450+ let cG = {
451+ let cH = value(getInteger(bV, bE()))
452+ let cI = (cH - 1)
453+ if ((0 > cI))
445454 then l("invalid epoch")
446- else $Tuple2(cE, cF)
455+ else $Tuple2(cH, cI)
447456 }
448- let cE = cD._1
449- let cF = cD._2
450- let cG = value(getInteger(bS, bA(cE)))
451- $Tuple2(cF, cG)
457+ let cH = cG._1
458+ let cI = cG._2
459+ let cJ = value(getInteger(bV, bD(cH)))
460+ $Tuple2(cI, cJ)
452461 }
453462
454463
455-func cH (bD) = {
456- let cI = 4
457- let cJ = 5
458- let cK = {
459- let bV = invoke(bM, "getPoolConfigByLpAssetIdREADONLY", [bD], nil)
460- if ($isInstanceOf(bV, "List[Any]"))
461- then bV
462- else throw(($getType(bV) + " couldn't be cast to List[Any]"))
464+func cK (bG) = {
465+ let cL = 4
466+ let cM = 5
467+ let cN = {
468+ let bY = invoke(bP, "getPoolConfigByLpAssetIdREADONLY", [bG], nil)
469+ if ($isInstanceOf(bY, "List[Any]"))
470+ then bY
471+ else throw(($getType(bY) + " couldn't be cast to List[Any]"))
463472 }
464- let bx = {
465- let bV = cK[cI]
466- if ($isInstanceOf(bV, "String"))
467- then bV
468- else throw(($getType(bV) + " couldn't be cast to String"))
473+ let bA = {
474+ let bY = cN[cL]
475+ if ($isInstanceOf(bY, "String"))
476+ then bY
477+ else throw(($getType(bY) + " couldn't be cast to String"))
469478 }
470- let by = {
471- let bV = cK[cJ]
472- if ($isInstanceOf(bV, "String"))
473- then bV
474- else throw(($getType(bV) + " couldn't be cast to String"))
479+ let bB = {
480+ let bY = cN[cM]
481+ if ($isInstanceOf(bY, "String"))
482+ then bY
483+ else throw(($getType(bY) + " couldn't be cast to String"))
475484 }
476- $Tuple2(bx, by)
485+ $Tuple2(bA, bB)
477486 }
478487
479488
480-func cL (bD,bL) = {
481- let aV = addressFromStringValue(bL)
482- let cM = cC()
483- let cF = cM._1
484- let cG = cM._2
485- let cN = cH(bD)
486- let bx = cN._1
487- let by = cN._2
488- let cO = bw(bx, by, aV, cF)
489- let cP = valueOrElse(getInteger(bS, cO), 0)
490- cP
489+func cO (bG,bO) = {
490+ let aY = addressFromStringValue(bO)
491+ let cP = cF()
492+ let cI = cP._1
493+ let cJ = cP._2
494+ let cQ = cK(bG)
495+ let bA = cQ._1
496+ let bB = cQ._2
497+ let cR = bz(bA, bB, aY, cI)
498+ let cS = valueOrElse(getInteger(bV, cR), 0)
499+ cS
491500 }
492501
493502
494-func cQ (bD,bL) = {
495- let cR = valueOrElse(getInteger(bO, bK(bL, bD)), 0)
496- let cP = cL(bD, bL)
497- if ((cR == 0))
503+func cT (bG,bO) = {
504+ let cU = valueOrElse(getInteger(bR, bN(bO, bG)), 0)
505+ let cS = cO(bG, bO)
506+ if ((cU == 0))
498507 then 0
499- else cP
508+ else cS
500509 }
501510
502511
503-func cS (bD) = {
504- let cT = cC()
505- let cF = cT._1
506- let cG = cT._2
507- let cU = valueOrElse(getInteger(bS, bC(bD, cF)), 0)
508- let cV = valueOrElse(getInteger(this, bC(bD, cF)), cU)
509- cV
512+func cV (bG) = {
513+ let cW = cF()
514+ let cI = cW._1
515+ let cJ = cW._2
516+ let cX = valueOrElse(getInteger(bV, bF(bG, cI)), 0)
517+ let cY = valueOrElse(getInteger(this, bF(bG, cI)), cX)
518+ cY
510519 }
511520
512521
513-func cW (bD) = {
514- let cX = cC()
515- let cF = cX._1
516- let cG = cX._2
517- let cV = cS(bD)
518- let cY = valueOrElse(getInteger(this, bE(bD, cF)), 0)
519- let cZ = valueOrElse(getInteger(this, bF(bD, cF)), cG)
520- let da = (height - cZ)
521- let db = ((da * cV) + cY)
522- db
522+func cZ (bG) = {
523+ let da = cF()
524+ let cI = da._1
525+ let cJ = da._2
526+ let cY = cV(bG)
527+ let db = valueOrElse(getInteger(this, bH(bG, cI)), 0)
528+ let dc = valueOrElse(getInteger(this, bI(bG, cI)), cJ)
529+ let dd = (height - dc)
530+ let de = ((dd * cY) + db)
531+ de
523532 }
524533
525534
526-func dc (bD,dd) = {
527- let de = cC()
528- let cF = de._1
529- let cG = de._2
530- let cV = cS(bD)
531- let df = (cV + dd)
532- let db = cW(bD)
533-[IntegerEntry(bC(bD, cF), df), IntegerEntry(bF(bD, cF), height), IntegerEntry(bE(bD, cF), db)]
535+func df (bG,dg) = {
536+ let dh = cF()
537+ let cI = dh._1
538+ let cJ = dh._2
539+ let cY = cV(bG)
540+ let di = (cY + dg)
541+ let de = cZ(bG)
542+[IntegerEntry(bF(bG, cI), di), IntegerEntry(bI(bG, cI), height), IntegerEntry(bH(bG, cI), de)]
534543 }
535544
536545
537-func dg (bD,bL) = {
538- let dh = cC()
539- let cF = dh._1
540- let cG = dh._2
541- let aV = addressFromStringValue(bL)
542- let di = cQ(bD, bL)
543- let dj = valueOrElse(getInteger(this, bH(bD, aV, cF)), 0)
544- let dk = valueOrElse(getInteger(this, bI(bD, aV, cF)), cG)
545- let dl = (height - dk)
546- let dm = ((dl * di) + dj)
547- dm
546+func dj (bG,bO) = {
547+ let dk = cF()
548+ let cI = dk._1
549+ let cJ = dk._2
550+ let aY = addressFromStringValue(bO)
551+ let dl = cT(bG, bO)
552+ let dm = valueOrElse(getInteger(this, bK(bG, aY, cI)), 0)
553+ let dn = valueOrElse(getInteger(this, bL(bG, aY, cI)), cJ)
554+ let do = (height - dn)
555+ let dp = ((do * dl) + dm)
556+ dp
548557 }
549558
550559
551-func dn (bD,bL,do) = {
552- let dp = cC()
553- let cF = dp._1
554- let cG = dp._2
555- let aV = addressFromStringValue(bL)
556- let dq = cL(bD, bL)
557- let dr = if ((dq == 0))
560+func dq (bG,bO,dr) = {
561+ let ds = cF()
562+ let cI = ds._1
563+ let cJ = ds._2
564+ let aY = addressFromStringValue(bO)
565+ let dt = cO(bG, bO)
566+ let du = if ((dt == 0))
558567 then nil
559568 else {
560- let dd = if (do)
561- then dq
562- else -(dq)
563- let ds = dc(bD, dd)
564- let dm = dg(bD, bL)
565- let dt = [IntegerEntry(bI(bD, aV, cF), height), IntegerEntry(bH(bD, aV, cF), dm)]
566- (ds ++ dt)
569+ let dg = if (dr)
570+ then dt
571+ else -(dt)
572+ let dv = df(bG, dg)
573+ let dp = dj(bG, bO)
574+ let dw = [IntegerEntry(bL(bG, aY, cI), height), IntegerEntry(bK(bG, aY, cI), dp)]
575+ (dv ++ dw)
567576 }
568- dr
577+ du
569578 }
570579
571580
572-func du (bD,bL) = {
573- let dv = cC()
574- let cF = dv._1
575- let cG = dv._2
576- let aV = addressFromStringValue(bL)
577- let dw = bJ(bD, aV, cF)
578- let dx = valueOrElse(getInteger(this, dw), 0)
579- let dy = bG(bD, aV, cF)
580- let dz = valueOrElse(getInteger(this, dy), 0)
581- let dm = dg(bD, bL)
582- let db = cW(bD)
583- let dA = (dm - dx)
584- let dB = (db - dz)
585- $Tuple3([IntegerEntry(dw, dm), IntegerEntry(dy, db)], dA, dB)
581+func dx (bG,bO) = {
582+ let dy = cF()
583+ let cI = dy._1
584+ let cJ = dy._2
585+ let aY = addressFromStringValue(bO)
586+ let dz = bM(bG, aY, cI)
587+ let dA = valueOrElse(getInteger(this, dz), 0)
588+ let dB = bJ(bG, aY, cI)
589+ let dC = valueOrElse(getInteger(this, dB), 0)
590+ let dp = dj(bG, bO)
591+ let de = cZ(bG)
592+ let dD = (dp - dA)
593+ let dE = (de - dC)
594+ $Tuple3([IntegerEntry(dz, dp), IntegerEntry(dB, de)], dD, dE)
586595 }
587596
588597
589-func dC () = {
590- let dD = s(bN, ah())
591- let dE = getInteger(this, ak())
592- let dF = getInteger(this, al())
593- let dG = s(bN, an())
594- let dH = if ((height > dG))
595- then dG
598+func dF () = {
599+ let dG = s(bQ, ah())
600+ let dH = getInteger(this, ak())
601+ let dI = getInteger(this, al())
602+ let dJ = s(bQ, an())
603+ let dK = if ((height > dJ))
604+ then dJ
596605 else height
597- let dI = {
598- let aG = dE
599- if ($isInstanceOf(aG, "Int"))
606+ let dL = {
607+ let aJ = dH
608+ if ($isInstanceOf(aJ, "Int"))
600609 then {
601- let dJ = aG
602- max([(dH - dJ), 0])
610+ let dM = aJ
611+ max([(dK - dM), 0])
603612 }
604- else if ($isInstanceOf(aG, "Unit"))
613+ else if ($isInstanceOf(aJ, "Unit"))
605614 then 0
606615 else throw("Match error")
607616 }
608- let dK = ((dD * (bU - 1)) / bU)
609- let dL = valueOrElse(dF, 0)
610- let dM = ((dK * dI) + dL)
611- $Tuple2([IntegerEntry(al(), dM), IntegerEntry(ak(), height)], dM)
617+ let dN = ((dG * (bX - 1)) / bX)
618+ let dO = valueOrElse(dI, 0)
619+ let dP = ((dN * dL) + dO)
620+ $Tuple2([IntegerEntry(al(), dP), IntegerEntry(ak(), height)], dP)
612621 }
613622
614623
615-func dN (bD,bL,dO) = {
616- let aV = valueOrErrorMessage(addressFromString(bL), j("invalid user address"))
617- let bo = bW(aV)
618- if ((bo == bo))
624+func dQ (bG,bO,dR) = {
625+ let aY = valueOrErrorMessage(addressFromString(bO), j("invalid user address"))
626+ let br = bZ(aY)
627+ if ((br == br))
619628 then {
620- let dP = "empty"
621- let dQ = if ((bD != dP))
629+ let dS = "empty"
630+ let dT = if ((bG != dS))
622631 then {
623- let dR = valueOrErrorMessage(getString(bM, Q(bD)), j(("unsupported lp asset " + bD)))
624- getIntegerValue(bM, S(dR))
632+ let dU = valueOrErrorMessage(getString(bP, Q(bG)), j(("unsupported lp asset " + bG)))
633+ getIntegerValue(bP, S(dU))
625634 }
626- else if (dO)
635+ else if (dR)
627636 then 0
628- else l(("not readonly mode: unsupported lp asset " + bD))
629- let dS = bp(bo, bD)
630- let dT = bn(bo)
631- let dU = valueOrElse(getInteger(this, dS), p(this, dT))
632- let dM = dC()._2
633- let dV = (dM - dU)
634- if ((0 > dV))
637+ else l(("not readonly mode: unsupported lp asset " + bG))
638+ let dV = bs(br, bG)
639+ let dW = bq(br)
640+ let dX = valueOrElse(getInteger(this, dV), p(this, dW))
641+ let dP = dF()._2
642+ let dY = (dP - dX)
643+ if ((0 > dY))
635644 then l("wrong calculations")
636645 else {
637- let dW = du(bD, bL)
638- let dX = dW._1
639- let dY = dW._2
640- let dZ = dW._3
641- let ea = fraction(dV, dQ, d)
642- let eb = if ((dZ == 0))
646+ let dZ = dx(bG, bO)
647+ let ea = dZ._1
648+ let eb = dZ._2
649+ let ec = dZ._3
650+ let ed = fraction(dY, dT, d)
651+ let ee = if ((ec == 0))
643652 then 0
644- else fraction(ea, dY, dZ)
645- let ec = ([IntegerEntry(dS, dM)] ++ dX)
646- let ed = makeString([toString(dU), toString(dV), toString(dQ), toString(dY), toString(dZ)], ":")
647- $Tuple3(eb, ec, ed)
653+ else fraction(ed, eb, ec)
654+ let ef = ([IntegerEntry(dV, dP)] ++ ea)
655+ let eg = makeString([toString(dX), toString(dY), toString(dT), toString(eb), toString(ec)], ":")
656+ $Tuple3(ee, ef, eg)
648657 }
649658 }
650659 else throw("Strict value is not equal to itself.")
651660 }
652661
653662
654-func ee (aL,bd) = {
655- let ef = toBase58String(ay)
656- if ((size(aL.payments) != 1))
663+func eh (aO,bg) = {
664+ let ei = toBase58String(ay)
665+ if ((size(aO.payments) != 1))
657666 then l("invalid payment - exact one payment must be attached")
658667 else {
659- let cA = aL.payments[0]
660- let eg = cA.amount
661- if ((ay != value(cA.assetId)))
662- then l((("invalid asset is in payment - " + ef) + " is expected"))
668+ let cD = aO.payments[0]
669+ let ej = cD.amount
670+ if ((ay != value(cD.assetId)))
671+ then l((("invalid asset is in payment - " + ei) + " is expected"))
663672 else {
664- let eh = bg()
665- let aV = aL.caller
666- let bL = toString(aV)
667- let ei = isDefined(getString(bh(bL)))
668- let ej = if (ei)
669- then value(getString(bh(bL)))
670- else toString(s(this, eh))
671- let bo = parseIntValue(ej)
672- let ch = height
673- if (if ((az > eg))
674- then (aV != bQ)
673+ let ek = bj()
674+ let aY = aO.caller
675+ let bO = toString(aY)
676+ let el = isDefined(getString(bk(bO)))
677+ let em = if (el)
678+ then value(getString(bk(bO)))
679+ else toString(s(this, ek))
680+ let br = parseIntValue(em)
681+ let ck = height
682+ if (if ((az > ej))
683+ then (aY != bT)
675684 else false)
676685 then l(("amount is less then minLockAmount=" + toString(az)))
677- else if ((aA > bd))
686+ else if ((aA > bg))
678687 then l(("passed duration is less than minLockDuration=" + toString(aA)))
679- else if ((bd > aB))
688+ else if ((bg > aB))
680689 then l(("passed duration is greater than maxLockDuration=" + toString(aB)))
681- else if (((bd % aE) != 0))
690+ else if (((bg % aE) != 0))
682691 then l(("duration must be multiple of lockStepBlocks=" + toString(aE)))
683692 else {
684- let ek = fraction(eg, bd, aB)
685- let el = bX()
686- let dT = bn(bo)
687- let dM = dC()._2
688- let em = cB(aV)
689- let en = invoke(bP, "refreshUserReward", [aV.bytes, bo], nil)
690- if ((en == en))
693+ let en = fraction(ej, bg, aB)
694+ let eo = ca()
695+ let dW = bq(br)
696+ let dP = dF()._2
697+ let ep = cE(aY)
698+ let eq = invoke(bS, "refreshUserReward", [aY.bytes, br], nil)
699+ if ((eq == eq))
691700 then {
692- let eo = if (ei)
701+ let er = if (el)
693702 then nil
694- else [IntegerEntry(eh, (bo + 1)), StringEntry(bh(bL), ej), StringEntry(bi(ej), bL)]
695- $Tuple2(((((eo ++ cx(aV, aL.transactionId, eg, ch, bd, ek, 0)) ++ ck(eg, bd, 1, if (ei)
703+ else [IntegerEntry(ek, (br + 1)), StringEntry(bk(bO), em), StringEntry(bl(em), bO)]
704+ $Tuple2(((((er ++ cA(aY, aO.transactionId, ej, ck, bg, en, 0)) ++ cn(ej, bg, 1, if (el)
696705 then 0
697- else 1)) :+ ce("lock", bL, eg, ch, bd, ek, aL)) ++ [IntegerEntry(dT, dM), IntegerEntry(bv(), (el + ek)), IntegerEntry(aZ(aV), (em + ek))]), ek)
706+ else 1)) :+ ch("lock", bO, ej, ck, bg, en, aO)) ++ [IntegerEntry(dW, dP), IntegerEntry(by(), (eo + en)), IntegerEntry(bc(aY), (ep + en))]), en)
698707 }
699708 else throw("Strict value is not equal to itself.")
700709 }
703712 }
704713
705714
706-func ep (aV,eq) = {
707- let er = aY(aV, eq)
708- let es = parseIntValue(er[aO])
709- let ch = parseIntValue(er[aP])
710- let et = parseIntValue(er[aQ])
711- let eu = (ch + et)
712- let bf = parseIntValue(er[aT])
713- let ev = ((height - ch) / aD)
714- let ew = fraction(toBigInt(ev), (toBigInt((i * aD)) * h), toBigInt(et))
715- let ex = if ((height > eu))
716- then es
717- else toInt(fraction(toBigInt(es), (h - pow(toBigInt(5), 1, ew, f, f, DOWN)), h))
718- let ey = (ex - bf)
719- ey
715+func es (aY,et) = {
716+ let eu = bb(aY, et)
717+ let ev = parseIntValue(eu[aR])
718+ let ck = parseIntValue(eu[aS])
719+ let ew = parseIntValue(eu[aT])
720+ let ex = (ck + ew)
721+ let bi = parseIntValue(eu[aW])
722+ let ey = ((height - ck) / aD)
723+ let ez = fraction(toBigInt(ey), (toBigInt((i * aD)) * h), toBigInt(ew))
724+ let eA = if ((height > ex))
725+ then ev
726+ else toInt(fraction(toBigInt(ev), (h - pow(toBigInt(5), 1, ez, f, f, DOWN)), h))
727+ let eB = (eA - bi)
728+ eB
720729 }
721730
722731
723-@Callable(aL)
724-func lockRef (bd,ez,eA) = {
725- let eB = ee(aL, bd)
726- let eC = eB._1
727- let ek = eB._2
728- let eD = toString(aL.caller)
729- let eE = if (if ((ez == ""))
730- then true
731- else (eA == base58''))
732- then unit
733- else invoke(z, "createPair", [C, ez, eD, eA], nil)
732+@Callable(aO)
733+func lockRef (bg,eC,eD) = {
734+ let eE = aH()
734735 if ((eE == eE))
735736 then {
736- let eF = invoke(aC, "updateReferralActivity", [toString(aL.caller), ek], nil)
737- if ((eF == eF))
738- then $Tuple2(eC, unit)
737+ let eF = eh(aO, bg)
738+ let eG = eF._1
739+ let en = eF._2
740+ let eH = toString(aO.caller)
741+ let eI = if (if ((eC == ""))
742+ then true
743+ else (eD == base58''))
744+ then unit
745+ else invoke(z, "createPair", [C, eC, eH, eD], nil)
746+ if ((eI == eI))
747+ then {
748+ let eJ = invoke(aC, "updateReferralActivity", [toString(aO.caller), en], nil)
749+ if ((eJ == eJ))
750+ then $Tuple2(eG, unit)
751+ else throw("Strict value is not equal to itself.")
752+ }
739753 else throw("Strict value is not equal to itself.")
740754 }
741755 else throw("Strict value is not equal to itself.")
743757
744758
745759
746-@Callable(aL)
747-func lock (bd) = {
748- let eG = ee(aL, bd)
749- let eC = eG._1
750- let ek = eG._2
751- let eF = invoke(aC, "updateReferralActivity", [toString(aL.caller), ek], nil)
752- if ((eF == eF))
753- then $Tuple2(eC, unit)
754- else throw("Strict value is not equal to itself.")
755- }
756-
757-
758-
759-@Callable(aL)
760-func claimWxBoost (bD,bL) = if ((bO != aL.caller))
761- then l("permissions denied")
762- else {
763- let eH = dN(bD, bL, false)
764- let eI = eH._1
765- let ec = eH._2
766- let ed = eH._3
767- $Tuple2(ec, [eI])
768- }
769-
770-
771-
772-@Callable(aL)
773-func claimWxBoostREADONLY (bD,bL) = {
774- let eJ = dN(bD, bL, true)
775- let eI = eJ._1
776- let ec = eJ._2
777- let ed = eJ._3
778- $Tuple2(nil, [eI, ed])
779- }
780-
781-
782-
783-@Callable(aL)
784-func unlock (eK) = {
785- let aV = aL.caller
786- let bL = toString(aV)
787- let eq = if ((eK == ""))
788- then unit
789- else fromBase58String(eK)
790- let er = aY(aV, eq)
791- let es = parseIntValue(er[aO])
792- let ch = parseIntValue(er[aP])
793- let et = parseIntValue(er[aQ])
794- let bf = parseIntValue(er[aT])
795- let be = parseIntValue(er[aS])
796- let ev = ((height - ch) / aD)
797- let ey = ep(aV, eq)
798- let ek = fraction(es, et, aB)
799- let eL = min([fraction((ev * aD), ek, aB), be])
800- let eM = v((be - eL), "gwxRemaining")
801- let eN = bY(aV)
802- if ((0 >= ey))
803- then l("nothing to unlock")
804- else {
805- let el = bX()
806- let em = cB(aV)
807- let eO = v((em - eL), "userGwxAmountTotalNew")
808- if ((eN > eO))
809- then l(("locked gwx amount: " + toString(eN)))
810- else {
811- let bo = parseIntValue(valueOrErrorMessage(getString(bh(bL)), j("invalid user number")))
812- let en = invoke(bP, "refreshUserReward", [aV.bytes, bo], nil)
813- if ((en == en))
814- then ((((cx(aV, eq, es, ch, et, eM, (bf + ey)) ++ ck(-(ey), 0, 0, 0)) :+ ce("unlock", bL, ey, ch, et, eL, aL)) :+ ScriptTransfer(aV, ey, ay)) ++ [IntegerEntry(bv(), v((el - eL), "gwxTotal")), IntegerEntry(aZ(aV), eO)])
815- else throw("Strict value is not equal to itself.")
816- }
817- }
818- }
819-
820-
821-
822-@Callable(aL)
823-func gwxUserInfoREADONLY (bL) = {
824- let aV = valueOrErrorMessage(addressFromString(bL), j("invalid user address"))
825- let be = cB(aV)
826- $Tuple2(nil, [be])
827- }
828-
829-
830-
831-@Callable(aL)
832-func userMaxDurationREADONLY (bL) = $Tuple2(nil, $Tuple2("lock", aB))
833-
834-
835-
836-@Callable(aL)
837-func getUserGwxAmountAtHeightREADONLY (bL,eP) = {
838- let aV = valueOrErrorMessage(addressFromString(bL), j("invalid user address"))
839- let be = cB(aV)
840- $Tuple2(nil, be)
841- }
842-
843-
844-
845-@Callable(aL)
846-func getUserGwxAmount (bL) = {
847- let aV = valueOrErrorMessage(addressFromString(bL), j("invalid user address"))
848- let be = cB(aV)
849- $Tuple2(nil, be)
850- }
851-
852-
853-
854-@Callable(aL)
855-func getGwxTotalREADONLY () = $Tuple2(nil, bX())
856-
857-
858-
859-@Callable(aL)
860-func onBoostEmissionUpdate () = {
861- let eQ = if ((aL.caller == bN))
862- then true
863- else aK(aL)
864- if ((eQ == eQ))
865- then dC()
866- else throw("Strict value is not equal to itself.")
867- }
868-
869-
870-
871-@Callable(aL)
872-func onStakedVoteUpdate (bD,bL,do) = {
873- let eQ = if ((aL.caller == bO))
874- then true
875- else aK(aL)
876- if ((eQ == eQ))
760+@Callable(aO)
761+func lock (bg) = {
762+ let eE = aH()
763+ if ((eE == eE))
877764 then {
878- let dr = dn(bD, bL, do)
879- $Tuple2(dr, unit)
765+ let eK = eh(aO, bg)
766+ let eG = eK._1
767+ let en = eK._2
768+ let eJ = invoke(aC, "updateReferralActivity", [toString(aO.caller), en], nil)
769+ if ((eJ == eJ))
770+ then $Tuple2(eG, unit)
771+ else throw("Strict value is not equal to itself.")
880772 }
881773 else throw("Strict value is not equal to itself.")
882774 }
883775
884776
885777
886-@Callable(aL)
887-func getVotingResultStakedREADONLY (bD) = $Tuple2(nil, cS(bD))
778+@Callable(aO)
779+func claimWxBoost (bG,bO) = {
780+ let eE = aH()
781+ if ((eE == eE))
782+ then if ((bR != aO.caller))
783+ then l("permissions denied")
784+ else {
785+ let eL = dQ(bG, bO, false)
786+ let eM = eL._1
787+ let ef = eL._2
788+ let eg = eL._3
789+ $Tuple2(ef, [eM])
790+ }
791+ else throw("Strict value is not equal to itself.")
792+ }
888793
889794
890795
891-@Callable(aL)
892-func getVotingResultStakedIntegralREADONLY (bD) = $Tuple2(nil, cW(bD))
796+@Callable(aO)
797+func claimWxBoostREADONLY (bG,bO) = {
798+ let eN = dQ(bG, bO, true)
799+ let eM = eN._1
800+ let ef = eN._2
801+ let eg = eN._3
802+ $Tuple2(nil, [eM, eg])
803+ }
893804
894805
895806
896-@Callable(aL)
897-func getUserVoteFinalizedREADONLY (bD,bL) = $Tuple2(nil, cL(bD, bL))
807+@Callable(aO)
808+func unlock (eO) = {
809+ let eE = aH()
810+ if ((eE == eE))
811+ then {
812+ let aY = aO.caller
813+ let bO = toString(aY)
814+ let et = if ((eO == ""))
815+ then unit
816+ else fromBase58String(eO)
817+ let eu = bb(aY, et)
818+ let ev = parseIntValue(eu[aR])
819+ let ck = parseIntValue(eu[aS])
820+ let ew = parseIntValue(eu[aT])
821+ let bi = parseIntValue(eu[aW])
822+ let bh = parseIntValue(eu[aV])
823+ let ey = ((height - ck) / aD)
824+ let eB = es(aY, et)
825+ let en = fraction(ev, ew, aB)
826+ let eP = min([fraction((ey * aD), en, aB), bh])
827+ let eQ = v((bh - eP), "gwxRemaining")
828+ let eR = cb(aY)
829+ if ((0 >= eB))
830+ then l("nothing to unlock")
831+ else {
832+ let eo = ca()
833+ let ep = cE(aY)
834+ let eS = v((ep - eP), "userGwxAmountTotalNew")
835+ if ((eR > eS))
836+ then l(("locked gwx amount: " + toString(eR)))
837+ else {
838+ let br = parseIntValue(valueOrErrorMessage(getString(bk(bO)), j("invalid user number")))
839+ let eq = invoke(bS, "refreshUserReward", [aY.bytes, br], nil)
840+ if ((eq == eq))
841+ then ((((cA(aY, et, ev, ck, ew, eQ, (bi + eB)) ++ cn(-(eB), 0, 0, 0)) :+ ch("unlock", bO, eB, ck, ew, eP, aO)) :+ ScriptTransfer(aY, eB, ay)) ++ [IntegerEntry(by(), v((eo - eP), "gwxTotal")), IntegerEntry(bc(aY), eS)])
842+ else throw("Strict value is not equal to itself.")
843+ }
844+ }
845+ }
846+ else throw("Strict value is not equal to itself.")
847+ }
898848
899849
900850
901-@Callable(aL)
902-func getUserVoteStakedIntegralREADONLY (bD,bL) = $Tuple2(nil, dg(bD, bL))
851+@Callable(aO)
852+func gwxUserInfoREADONLY (bO) = {
853+ let aY = valueOrErrorMessage(addressFromString(bO), j("invalid user address"))
854+ let bh = cE(aY)
855+ $Tuple2(nil, [bh])
856+ }
903857
904858
905-@Verifier(eR)
906-func eS () = {
907- let eT = {
908- let aG = aI()
909- if ($isInstanceOf(aG, "ByteVector"))
859+
860+@Callable(aO)
861+func userMaxDurationREADONLY (bO) = $Tuple2(nil, $Tuple2("lock", aB))
862+
863+
864+
865+@Callable(aO)
866+func getUserGwxAmountAtHeightREADONLY (bO,eT) = {
867+ let aY = valueOrErrorMessage(addressFromString(bO), j("invalid user address"))
868+ let bh = cE(aY)
869+ $Tuple2(nil, bh)
870+ }
871+
872+
873+
874+@Callable(aO)
875+func getUserGwxAmount (bO) = {
876+ let aY = valueOrErrorMessage(addressFromString(bO), j("invalid user address"))
877+ let bh = cE(aY)
878+ $Tuple2(nil, bh)
879+ }
880+
881+
882+
883+@Callable(aO)
884+func getGwxTotalREADONLY () = $Tuple2(nil, ca())
885+
886+
887+
888+@Callable(aO)
889+func onBoostEmissionUpdate () = {
890+ let eE = aH()
891+ if ((eE == eE))
892+ then {
893+ let eU = if ((aO.caller == bQ))
894+ then true
895+ else aN(aO)
896+ if ((eU == eU))
897+ then dF()
898+ else throw("Strict value is not equal to itself.")
899+ }
900+ else throw("Strict value is not equal to itself.")
901+ }
902+
903+
904+
905+@Callable(aO)
906+func onStakedVoteUpdate (bG,bO,dr) = {
907+ let eE = aH()
908+ if ((eE == eE))
909+ then {
910+ let eU = if ((aO.caller == bR))
911+ then true
912+ else aN(aO)
913+ if ((eU == eU))
914+ then {
915+ let du = dq(bG, bO, dr)
916+ $Tuple2(du, unit)
917+ }
918+ else throw("Strict value is not equal to itself.")
919+ }
920+ else throw("Strict value is not equal to itself.")
921+ }
922+
923+
924+
925+@Callable(aO)
926+func getVotingResultStakedREADONLY (bG) = $Tuple2(nil, cV(bG))
927+
928+
929+
930+@Callable(aO)
931+func getVotingResultStakedIntegralREADONLY (bG) = $Tuple2(nil, cZ(bG))
932+
933+
934+
935+@Callable(aO)
936+func getUserVoteFinalizedREADONLY (bG,bO) = $Tuple2(nil, cO(bG, bO))
937+
938+
939+
940+@Callable(aO)
941+func getUserVoteStakedIntegralREADONLY (bG,bO) = $Tuple2(nil, dj(bG, bO))
942+
943+
944+
945+@Callable(aO)
946+func suspend (w) = {
947+ let eU = aN(aO)
948+ if ((eU == eU))
949+ then $Tuple2([BooleanEntry(aF, w)], w)
950+ else throw("Strict value is not equal to itself.")
951+ }
952+
953+
954+@Verifier(eV)
955+func eW () = {
956+ let eX = {
957+ let aJ = aL()
958+ if ($isInstanceOf(aJ, "ByteVector"))
910959 then {
911- let aN = aG
912- aN
960+ let aQ = aJ
961+ aQ
913962 }
914- else if ($isInstanceOf(aG, "Unit"))
915- then eR.senderPublicKey
963+ else if ($isInstanceOf(aJ, "Unit"))
964+ then eV.senderPublicKey
916965 else throw("Match error")
917966 }
918- sigVerify(eR.bodyBytes, eR.proofs[0], eT)
967+ sigVerify(eV.bodyBytes, eV.proofs[0], eX)
919968 }
920969
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "__"
55
66 let b = 8
77
88 let c = 100000000
99
1010 let d = c
1111
1212 let e = "boosting.ride"
1313
1414 let f = 18
1515
1616 let g = 1000000000000000000
1717
1818 let h = toBigInt(g)
1919
2020 let i = 8
2121
2222 func j (k) = makeString([e, ": ", k], "")
2323
2424
2525 func l (k) = throw(j(k))
2626
2727
2828 func m (n,o) = valueOrErrorMessage(getString(n, o), j((("mandatory this." + o) + " is not defined")))
2929
3030
3131 func p (n,o) = valueOrElse(getInteger(n, o), 0)
3232
3333
3434 func q (n,o,r) = valueOrElse(getInteger(n, o), r)
3535
3636
3737 func s (n,o) = valueOrErrorMessage(getInteger(n, o), j((("mandatory this." + o) + " is not defined")))
3838
3939
4040 func t (u) = if ((0 > u))
4141 then -(u)
4242 else u
4343
4444
4545 func v (w,x) = if ((w >= 0))
4646 then w
4747 else l((valueOrElse(x, "value") + " should be positive"))
4848
4949
5050 func y () = makeString(["%s%s", "config", "referralsContractAddress"], a)
5151
5252
5353 let z = addressFromStringValue(m(this, y()))
5454
5555 let A = makeString(["%s%s", "referral", "programName"], a)
5656
5757 let B = "wxlock"
5858
5959 let C = valueOrElse(getString(this, A), B)
6060
6161 func D () = "%s%s__config__factoryAddress"
6262
6363
6464 let E = 1
6565
6666 let F = 2
6767
6868 let G = 3
6969
7070 let H = 4
7171
7272 let I = 5
7373
7474 let J = 6
7575
7676 let K = 7
7777
7878 let L = 8
7979
8080 let M = 9
8181
8282 let N = 10
8383
8484 let O = 11
8585
8686 func P () = "%s__factoryConfig"
8787
8888
8989 func Q (R) = makeString(["%s%s%s", R, "mappings__lpAsset2PoolContract"], a)
9090
9191
9292 func S (T) = makeString(["%s%s", "poolWeight", T], a)
9393
9494
9595 func U (V,W) = ((("%s%s__poolWeight__" + V) + "__") + toString(W))
9696
9797
9898 func X () = addressFromStringValue(m(this, D()))
9999
100100
101101 func Y (Z) = split(m(Z, P()), a)
102102
103103
104104 func aa (ab) = addressFromStringValue(ab[F])
105105
106106
107107 func ac (ab) = addressFromStringValue(ab[I])
108108
109109
110110 func ad (ab) = addressFromStringValue(ab[E])
111111
112112
113113 func ae (ab) = addressFromStringValue(ab[N])
114114
115115
116116 func af () = "%s__managerPublicKey"
117117
118118
119119 func ag () = "%s__managerVaultAddress"
120120
121121
122122 func ah () = "%s%s__ratePerBlock__current"
123123
124124
125125 func ai () = "%s%s__ratePerBlockMax__current"
126126
127127
128128 func aj () = "%s%s__emission__startBlock"
129129
130130
131131 func ak () = "%s%s__boostingV2__startBlock"
132132
133133
134134 func al () = "%s%s__boostingV2__integral"
135135
136136
137137 func am () = "%s%s__emission__duration"
138138
139139
140140 func an () = "%s%s__emission__endBlock"
141141
142142
143143 let ao = 1
144144
145145 let ap = 2
146146
147147 let aq = 3
148148
149149 let ar = 4
150150
151151 let as = 5
152152
153153 let at = 6
154154
155155 let au = 7
156156
157157 func av () = "%s__config"
158158
159159
160160 func aw () = split(m(this, av()), a)
161161
162162
163163 let ax = aw()
164164
165165 let ay = fromBase58String(ax[ao])
166166
167167 let az = valueOrErrorMessage(parseInt(ax[ap]), j("invalid min lock amount"))
168168
169169 let aA = valueOrErrorMessage(parseInt(ax[aq]), j("invalid min lock duration"))
170170
171171 let aB = valueOrErrorMessage(parseInt(ax[ar]), j("invalid max lock duration"))
172172
173173 let aC = valueOrErrorMessage(addressFromString(ax[as]), j("invalid math contract address"))
174174
175175 let aD = valueOrErrorMessage(parseInt(ax[at]), j("invalid blocks in period"))
176176
177177 let aE = valueOrErrorMessage(parseInt(ax[au]), j("invalid lock step blocks"))
178178
179-func aF () = {
180- let aG = getString(ag())
181- if ($isInstanceOf(aG, "String"))
179+let aF = "%s__suspension"
180+
181+let aG = valueOrElse(getBoolean(this, aF), false)
182+
183+func aH () = if (!(aG))
184+ then true
185+ else l("suspended")
186+
187+
188+func aI () = {
189+ let aJ = getString(ag())
190+ if ($isInstanceOf(aJ, "String"))
182191 then {
183- let aH = aG
184- addressFromStringValue(aH)
192+ let aK = aJ
193+ addressFromStringValue(aK)
185194 }
186195 else this
187196 }
188197
189198
190-func aI () = {
191- let aJ = aF()
192- let aG = getString(aJ, af())
193- if ($isInstanceOf(aG, "String"))
199+func aL () = {
200+ let aM = aI()
201+ let aJ = getString(aM, af())
202+ if ($isInstanceOf(aJ, "String"))
194203 then {
195- let aH = aG
196- fromBase58String(aH)
204+ let aK = aJ
205+ fromBase58String(aK)
197206 }
198- else if ($isInstanceOf(aG, "Unit"))
207+ else if ($isInstanceOf(aJ, "Unit"))
199208 then unit
200209 else throw("Match error")
201210 }
202211
203212
204-func aK (aL) = {
205- let aM = l("Permission denied")
206- let aG = aI()
207- if ($isInstanceOf(aG, "ByteVector"))
213+func aN (aO) = {
214+ let aP = l("Permission denied")
215+ let aJ = aL()
216+ if ($isInstanceOf(aJ, "ByteVector"))
208217 then {
209- let aN = aG
210- if ((aL.callerPublicKey == aN))
218+ let aQ = aJ
219+ if ((aO.callerPublicKey == aQ))
211220 then true
212- else aM
221+ else aP
213222 }
214- else if ($isInstanceOf(aG, "Unit"))
215- then if ((aL.caller == this))
223+ else if ($isInstanceOf(aJ, "Unit"))
224+ then if ((aO.caller == this))
216225 then true
217- else aM
226+ else aP
218227 else throw("Match error")
219228 }
220229
221230
222-let aO = 1
231+let aR = 1
223232
224-let aP = 2
233+let aS = 2
225234
226-let aQ = 3
235+let aT = 3
227236
228-let aR = 4
237+let aU = 4
229238
230-let aS = 5
239+let aV = 5
231240
232-let aT = 6
241+let aW = 6
233242
234-func aU (aV,aW) = makeString(["%s%s%s__lock", toString(aV), {
235- let aG = aW
236- if ($isInstanceOf(aG, "ByteVector"))
243+func aX (aY,aZ) = makeString(["%s%s%s__lock", toString(aY), {
244+ let aJ = aZ
245+ if ($isInstanceOf(aJ, "ByteVector"))
237246 then {
238- let aX = aG
239- toBase58String(aX)
247+ let ba = aJ
248+ toBase58String(ba)
240249 }
241- else if ($isInstanceOf(aG, "Unit"))
250+ else if ($isInstanceOf(aJ, "Unit"))
242251 then "legacy"
243252 else throw("Match error")
244253 }], a)
245254
246255
247-func aY (aV,aW) = split(m(this, aU(aV, aW)), a)
256+func bb (aY,aZ) = split(m(this, aX(aY, aZ)), a)
248257
249258
250-func aZ (aV) = makeString(["%s%s__gwxAmountTotal", toString(aV)], a)
259+func bc (aY) = makeString(["%s%s__gwxAmountTotal", toString(aY)], a)
251260
252261
253-func ba (bb,bc,bd,be,bf) = makeString(["%d%d%d%d%d%d", toString(bb), toString(bc), toString(bd), toString(lastBlock.timestamp), toString(be), toString(bf)], a)
262+func bd (be,bf,bg,bh,bi) = makeString(["%d%d%d%d%d%d", toString(be), toString(bf), toString(bg), toString(lastBlock.timestamp), toString(bh), toString(bi)], a)
254263
255264
256-func bg () = "%s__nextUserNum"
265+func bj () = "%s__nextUserNum"
257266
258267
259-func bh (aV) = makeString(["%s%s%s__mapping__user2num", aV], a)
268+func bk (aY) = makeString(["%s%s%s__mapping__user2num", aY], a)
260269
261270
262-func bi (W) = makeString(["%s%s%s__mapping__num2user", W], a)
271+func bl (W) = makeString(["%s%s%s__mapping__num2user", W], a)
263272
264273
265-func bj () = "%s%s__stats__activeTotalLocked"
274+func bm () = "%s%s__stats__activeTotalLocked"
266275
267276
268-func bk () = "%s%s__stats__locksDurationSumInBlocks"
277+func bn () = "%s%s__stats__locksDurationSumInBlocks"
269278
270279
271-func bl () = "%s%s__stats__locksCount"
280+func bo () = "%s%s__stats__locksCount"
272281
273282
274-func bm () = "%s%s__stats__activeUsersCount"
283+func bp () = "%s%s__stats__activeUsersCount"
275284
276285
277-func bn (bo) = makeString(["%s%d__userBoostEmissionLastIntV2", toString(bo)], a)
286+func bq (br) = makeString(["%s%d__userBoostEmissionLastIntV2", toString(br)], a)
278287
279288
280-func bp (bo,bq) = makeString(["%s%d__userBoostEmissionLastIntV2", toString(bo), bq], a)
289+func bs (br,bt) = makeString(["%s%d__userBoostEmissionLastIntV2", toString(br), bt], a)
281290
282291
283-func br (bo) = makeString(["%s%d__maxBoostInt", toString(bo)], a)
292+func bu (br) = makeString(["%s%d__maxBoostInt", toString(br)], a)
284293
285294
286-func bs () = "%s%s__maxBoostInt__total"
295+func bv () = "%s%s__maxBoostInt__total"
287296
288297
289-func bt (bo) = makeString(["%s%d__userBoostAvaliableToClaimTotal", toString(bo)], a)
298+func bw (br) = makeString(["%s%d__userBoostAvaliableToClaimTotal", toString(br)], a)
290299
291300
292-func bu (bo) = makeString(["%s%d__userBoostClaimed", toString(bo)], a)
301+func bx (br) = makeString(["%s%d__userBoostClaimed", toString(br)], a)
293302
294303
295-func bv () = "%s%s__gwx__total"
304+func by () = "%s%s__gwx__total"
296305
297306
298-func bw (bx,by,n,bz) = makeString(["%s%s%s%s%d", "vote", bx, by, toString(n), toString(bz)], a)
307+func bz (bA,bB,n,bC) = makeString(["%s%s%s%s%d", "vote", bA, bB, toString(n), toString(bC)], a)
299308
300309
301-func bA (bz) = makeString(["%s%d", "startHeight", toString(bz)], a)
310+func bD (bC) = makeString(["%s%d", "startHeight", toString(bC)], a)
302311
303312
304-func bB () = makeString(["%s", "currentEpochUi"], a)
313+func bE () = makeString(["%s", "currentEpochUi"], a)
305314
306315
307-func bC (bD,bz) = makeString(["%s%s%d", "votingResultStaked", bD, toString(bz)], a)
316+func bF (bG,bC) = makeString(["%s%s%d", "votingResultStaked", bG, toString(bC)], a)
308317
309318
310-func bE (bD,bz) = makeString(["%s%s%d", "votingResultStakedIntegral", bD, toString(bz)], a)
319+func bH (bG,bC) = makeString(["%s%s%d", "votingResultStakedIntegral", bG, toString(bC)], a)
311320
312321
313-func bF (bD,bz) = makeString(["%s%s%d", "votingResultStakedIntegralLastUpdateHeight", bD, toString(bz)], a)
322+func bI (bG,bC) = makeString(["%s%s%d", "votingResultStakedIntegralLastUpdateHeight", bG, toString(bC)], a)
314323
315324
316-func bG (bD,n,bz) = makeString(["%s%s%s%d", "votingResultStakedIntegralLast", bD, toString(n), toString(bz)], a)
325+func bJ (bG,n,bC) = makeString(["%s%s%s%d", "votingResultStakedIntegralLast", bG, toString(n), toString(bC)], a)
317326
318327
319-func bH (bD,n,bz) = makeString(["%s%s%s%d", "voteStakedIntegral", bD, toString(n), toString(bz)], a)
328+func bK (bG,n,bC) = makeString(["%s%s%s%d", "voteStakedIntegral", bG, toString(n), toString(bC)], a)
320329
321330
322-func bI (bD,n,bz) = makeString(["%s%s%s%d", "voteStakedIntegralLastUpdateHeight", bD, toString(n), toString(bz)], a)
331+func bL (bG,n,bC) = makeString(["%s%s%s%d", "voteStakedIntegralLastUpdateHeight", bG, toString(n), toString(bC)], a)
323332
324333
325-func bJ (bD,n,bz) = makeString(["%s%s%s%d", "voteStakedIntegralLast", bD, toString(n), toString(bz)], a)
334+func bM (bG,n,bC) = makeString(["%s%s%s%d", "voteStakedIntegralLast", bG, toString(n), toString(bC)], a)
326335
327336
328-func bK (bL,bD) = makeString(["%s%s%s", "staked", bL, bD], a)
337+func bN (bO,bG) = makeString(["%s%s%s", "staked", bO, bG], a)
329338
330339
331-let bM = X()
340+let bP = X()
332341
333-let ab = Y(bM)
342+let ab = Y(bP)
334343
335-let bN = ac(ab)
344+let bQ = ac(ab)
336345
337-let bO = ad(ab)
346+let bR = ad(ab)
338347
339-let bP = ae(ab)
348+let bS = ae(ab)
340349
341-let bQ = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(makeString(["%s", "lpStakingPoolsContract"], a)), j("lp_staking_pools contract address is undefined"))), j("invalid lp_staking_pools contract address"))
350+let bT = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(makeString(["%s", "lpStakingPoolsContract"], a)), j("lp_staking_pools contract address is undefined"))), j("invalid lp_staking_pools contract address"))
342351
343-let bR = makeString(["%s", "votingEmissionContract"], a)
352+let bU = makeString(["%s", "votingEmissionContract"], a)
344353
345-let bS = addressFromStringValue(getStringValue(bM, bR))
354+let bV = addressFromStringValue(getStringValue(bP, bU))
346355
347-let bT = makeString(["%s", "votingEmissionRateContract"], a)
356+let bW = makeString(["%s", "votingEmissionRateContract"], a)
348357
349-let bU = {
350- let bV = invoke(bN, "getBoostCoeffREADONLY", nil, nil)
351- if ($isInstanceOf(bV, "Int"))
352- then bV
353- else throw(($getType(bV) + " couldn't be cast to Int"))
358+let bX = {
359+ let bY = invoke(bQ, "getBoostCoeffREADONLY", nil, nil)
360+ if ($isInstanceOf(bY, "Int"))
361+ then bY
362+ else throw(($getType(bY) + " couldn't be cast to Int"))
354363 }
355364
356-func bW (aV) = {
357- let aG = getString(this, bh(toString(aV)))
358- if ($isInstanceOf(aG, "String"))
365+func bZ (aY) = {
366+ let aJ = getString(this, bk(toString(aY)))
367+ if ($isInstanceOf(aJ, "String"))
359368 then {
360- let aH = aG
361- valueOrErrorMessage(parseInt(aH), j("invalid user number"))
369+ let aK = aJ
370+ valueOrErrorMessage(parseInt(aK), j("invalid user number"))
362371 }
363- else if ($isInstanceOf(aG, "Unit"))
372+ else if ($isInstanceOf(aJ, "Unit"))
364373 then l("invalid user")
365374 else throw("Match error")
366375 }
367376
368377
369-func bX () = valueOrElse(getInteger(this, bv()), 0)
378+func ca () = valueOrElse(getInteger(this, by()), 0)
370379
371380
372-func bY (aV) = {
373- let bZ = "getLockedGwxAmount"
374- let ca = valueOrErrorMessage({
375- let aG = getString(bS, bT)
376- if ($isInstanceOf(aG, "Unit"))
381+func cb (aY) = {
382+ let cc = "getLockedGwxAmount"
383+ let cd = valueOrErrorMessage({
384+ let aJ = getString(bV, bW)
385+ if ($isInstanceOf(aJ, "Unit"))
377386 then unit
378- else if ($isInstanceOf(aG, "String"))
387+ else if ($isInstanceOf(aJ, "String"))
379388 then {
380- let aH = aG
381- addressFromString(aH)
389+ let aK = aJ
390+ addressFromString(aK)
382391 }
383392 else throw("Match error")
384393 }, j("invalid voting emission rate address"))
385- let cb = {
386- let bV = invoke(bS, bZ, [toString(aV)], nil)
387- if ($isInstanceOf(bV, "Int"))
388- then bV
389- else throw(($getType(bV) + " couldn't be cast to Int"))
394+ let ce = {
395+ let bY = invoke(bV, cc, [toString(aY)], nil)
396+ if ($isInstanceOf(bY, "Int"))
397+ then bY
398+ else throw(($getType(bY) + " couldn't be cast to Int"))
390399 }
391- let cc = {
392- let bV = invoke(ca, bZ, [toString(aV)], nil)
393- if ($isInstanceOf(bV, "Int"))
394- then bV
395- else throw(($getType(bV) + " couldn't be cast to Int"))
400+ let cf = {
401+ let bY = invoke(cd, cc, [toString(aY)], nil)
402+ if ($isInstanceOf(bY, "Int"))
403+ then bY
404+ else throw(($getType(bY) + " couldn't be cast to Int"))
396405 }
397- let cd = max([cb, cc])
398- cd
406+ let cg = max([ce, cf])
407+ cg
399408 }
400409
401410
402-func ce (cf,cg,bb,ch,bd,be,aL) = {
403- let ci = makeString(["%s%s%s%s__history", cf, cg, toBase58String(aL.transactionId)], a)
404- let cj = makeString(["%d%d%d%d%d%d%d", toString(lastBlock.height), toString(lastBlock.timestamp), toString(bb), toString(ch), toString(bd), toString(be)], a)
405- StringEntry(ci, cj)
411+func ch (ci,cj,be,ck,bg,bh,aO) = {
412+ let cl = makeString(["%s%s%s%s__history", ci, cj, toBase58String(aO.transactionId)], a)
413+ let cm = makeString(["%d%d%d%d%d%d%d", toString(lastBlock.height), toString(lastBlock.timestamp), toString(be), toString(ck), toString(bg), toString(bh)], a)
414+ StringEntry(cl, cm)
406415 }
407416
408417
409-func ck (cl,cm,cn,co) = {
410- let cp = bk()
411- let cq = bl()
412- let cr = bm()
413- let cs = bj()
414- let ct = p(this, cp)
415- let cu = p(this, cq)
416- let cv = p(this, cr)
418+func cn (co,cp,cq,cr) = {
419+ let cs = bn()
420+ let ct = bo()
421+ let cu = bp()
422+ let cv = bm()
417423 let cw = p(this, cs)
418-[IntegerEntry(cp, (ct + cm)), IntegerEntry(cq, (cu + cn)), IntegerEntry(cr, (cv + co)), IntegerEntry(cs, (cw + cl))]
424+ let cx = p(this, ct)
425+ let cy = p(this, cu)
426+ let cz = p(this, cv)
427+[IntegerEntry(cs, (cw + cp)), IntegerEntry(ct, (cx + cq)), IntegerEntry(cu, (cy + cr)), IntegerEntry(cv, (cz + co))]
419428 }
420429
421430
422-func cx (aV,aW,bb,bc,bd,be,bf) = [StringEntry(aU(aV, aW), ba(bb, bc, bd, be, bf))]
431+func cA (aY,aZ,be,bf,bg,bh,bi) = [StringEntry(aX(aY, aZ), bd(be, bf, bg, bh, bi))]
423432
424433
425-func cy (aL,cz) = if ((size(aL.payments) > 1))
434+func cB (aO,cC) = if ((size(aO.payments) > 1))
426435 then l("only one payment is allowed")
427- else if ((size(aL.payments) == 0))
436+ else if ((size(aO.payments) == 0))
428437 then 0
429438 else {
430- let cA = aL.payments[0]
431- if ((value(cA.assetId) != cz))
439+ let cD = aO.payments[0]
440+ if ((value(cD.assetId) != cC))
432441 then l("invalid asset id in payment")
433- else cA.amount
442+ else cD.amount
434443 }
435444
436445
437-func cB (aV) = valueOrElse(getInteger(this, aZ(aV)), 0)
446+func cE (aY) = valueOrElse(getInteger(this, bc(aY)), 0)
438447
439448
440-func cC () = {
441- let cD = {
442- let cE = value(getInteger(bS, bB()))
443- let cF = (cE - 1)
444- if ((0 > cF))
449+func cF () = {
450+ let cG = {
451+ let cH = value(getInteger(bV, bE()))
452+ let cI = (cH - 1)
453+ if ((0 > cI))
445454 then l("invalid epoch")
446- else $Tuple2(cE, cF)
455+ else $Tuple2(cH, cI)
447456 }
448- let cE = cD._1
449- let cF = cD._2
450- let cG = value(getInteger(bS, bA(cE)))
451- $Tuple2(cF, cG)
457+ let cH = cG._1
458+ let cI = cG._2
459+ let cJ = value(getInteger(bV, bD(cH)))
460+ $Tuple2(cI, cJ)
452461 }
453462
454463
455-func cH (bD) = {
456- let cI = 4
457- let cJ = 5
458- let cK = {
459- let bV = invoke(bM, "getPoolConfigByLpAssetIdREADONLY", [bD], nil)
460- if ($isInstanceOf(bV, "List[Any]"))
461- then bV
462- else throw(($getType(bV) + " couldn't be cast to List[Any]"))
464+func cK (bG) = {
465+ let cL = 4
466+ let cM = 5
467+ let cN = {
468+ let bY = invoke(bP, "getPoolConfigByLpAssetIdREADONLY", [bG], nil)
469+ if ($isInstanceOf(bY, "List[Any]"))
470+ then bY
471+ else throw(($getType(bY) + " couldn't be cast to List[Any]"))
463472 }
464- let bx = {
465- let bV = cK[cI]
466- if ($isInstanceOf(bV, "String"))
467- then bV
468- else throw(($getType(bV) + " couldn't be cast to String"))
473+ let bA = {
474+ let bY = cN[cL]
475+ if ($isInstanceOf(bY, "String"))
476+ then bY
477+ else throw(($getType(bY) + " couldn't be cast to String"))
469478 }
470- let by = {
471- let bV = cK[cJ]
472- if ($isInstanceOf(bV, "String"))
473- then bV
474- else throw(($getType(bV) + " couldn't be cast to String"))
479+ let bB = {
480+ let bY = cN[cM]
481+ if ($isInstanceOf(bY, "String"))
482+ then bY
483+ else throw(($getType(bY) + " couldn't be cast to String"))
475484 }
476- $Tuple2(bx, by)
485+ $Tuple2(bA, bB)
477486 }
478487
479488
480-func cL (bD,bL) = {
481- let aV = addressFromStringValue(bL)
482- let cM = cC()
483- let cF = cM._1
484- let cG = cM._2
485- let cN = cH(bD)
486- let bx = cN._1
487- let by = cN._2
488- let cO = bw(bx, by, aV, cF)
489- let cP = valueOrElse(getInteger(bS, cO), 0)
490- cP
489+func cO (bG,bO) = {
490+ let aY = addressFromStringValue(bO)
491+ let cP = cF()
492+ let cI = cP._1
493+ let cJ = cP._2
494+ let cQ = cK(bG)
495+ let bA = cQ._1
496+ let bB = cQ._2
497+ let cR = bz(bA, bB, aY, cI)
498+ let cS = valueOrElse(getInteger(bV, cR), 0)
499+ cS
491500 }
492501
493502
494-func cQ (bD,bL) = {
495- let cR = valueOrElse(getInteger(bO, bK(bL, bD)), 0)
496- let cP = cL(bD, bL)
497- if ((cR == 0))
503+func cT (bG,bO) = {
504+ let cU = valueOrElse(getInteger(bR, bN(bO, bG)), 0)
505+ let cS = cO(bG, bO)
506+ if ((cU == 0))
498507 then 0
499- else cP
508+ else cS
500509 }
501510
502511
503-func cS (bD) = {
504- let cT = cC()
505- let cF = cT._1
506- let cG = cT._2
507- let cU = valueOrElse(getInteger(bS, bC(bD, cF)), 0)
508- let cV = valueOrElse(getInteger(this, bC(bD, cF)), cU)
509- cV
512+func cV (bG) = {
513+ let cW = cF()
514+ let cI = cW._1
515+ let cJ = cW._2
516+ let cX = valueOrElse(getInteger(bV, bF(bG, cI)), 0)
517+ let cY = valueOrElse(getInteger(this, bF(bG, cI)), cX)
518+ cY
510519 }
511520
512521
513-func cW (bD) = {
514- let cX = cC()
515- let cF = cX._1
516- let cG = cX._2
517- let cV = cS(bD)
518- let cY = valueOrElse(getInteger(this, bE(bD, cF)), 0)
519- let cZ = valueOrElse(getInteger(this, bF(bD, cF)), cG)
520- let da = (height - cZ)
521- let db = ((da * cV) + cY)
522- db
522+func cZ (bG) = {
523+ let da = cF()
524+ let cI = da._1
525+ let cJ = da._2
526+ let cY = cV(bG)
527+ let db = valueOrElse(getInteger(this, bH(bG, cI)), 0)
528+ let dc = valueOrElse(getInteger(this, bI(bG, cI)), cJ)
529+ let dd = (height - dc)
530+ let de = ((dd * cY) + db)
531+ de
523532 }
524533
525534
526-func dc (bD,dd) = {
527- let de = cC()
528- let cF = de._1
529- let cG = de._2
530- let cV = cS(bD)
531- let df = (cV + dd)
532- let db = cW(bD)
533-[IntegerEntry(bC(bD, cF), df), IntegerEntry(bF(bD, cF), height), IntegerEntry(bE(bD, cF), db)]
535+func df (bG,dg) = {
536+ let dh = cF()
537+ let cI = dh._1
538+ let cJ = dh._2
539+ let cY = cV(bG)
540+ let di = (cY + dg)
541+ let de = cZ(bG)
542+[IntegerEntry(bF(bG, cI), di), IntegerEntry(bI(bG, cI), height), IntegerEntry(bH(bG, cI), de)]
534543 }
535544
536545
537-func dg (bD,bL) = {
538- let dh = cC()
539- let cF = dh._1
540- let cG = dh._2
541- let aV = addressFromStringValue(bL)
542- let di = cQ(bD, bL)
543- let dj = valueOrElse(getInteger(this, bH(bD, aV, cF)), 0)
544- let dk = valueOrElse(getInteger(this, bI(bD, aV, cF)), cG)
545- let dl = (height - dk)
546- let dm = ((dl * di) + dj)
547- dm
546+func dj (bG,bO) = {
547+ let dk = cF()
548+ let cI = dk._1
549+ let cJ = dk._2
550+ let aY = addressFromStringValue(bO)
551+ let dl = cT(bG, bO)
552+ let dm = valueOrElse(getInteger(this, bK(bG, aY, cI)), 0)
553+ let dn = valueOrElse(getInteger(this, bL(bG, aY, cI)), cJ)
554+ let do = (height - dn)
555+ let dp = ((do * dl) + dm)
556+ dp
548557 }
549558
550559
551-func dn (bD,bL,do) = {
552- let dp = cC()
553- let cF = dp._1
554- let cG = dp._2
555- let aV = addressFromStringValue(bL)
556- let dq = cL(bD, bL)
557- let dr = if ((dq == 0))
560+func dq (bG,bO,dr) = {
561+ let ds = cF()
562+ let cI = ds._1
563+ let cJ = ds._2
564+ let aY = addressFromStringValue(bO)
565+ let dt = cO(bG, bO)
566+ let du = if ((dt == 0))
558567 then nil
559568 else {
560- let dd = if (do)
561- then dq
562- else -(dq)
563- let ds = dc(bD, dd)
564- let dm = dg(bD, bL)
565- let dt = [IntegerEntry(bI(bD, aV, cF), height), IntegerEntry(bH(bD, aV, cF), dm)]
566- (ds ++ dt)
569+ let dg = if (dr)
570+ then dt
571+ else -(dt)
572+ let dv = df(bG, dg)
573+ let dp = dj(bG, bO)
574+ let dw = [IntegerEntry(bL(bG, aY, cI), height), IntegerEntry(bK(bG, aY, cI), dp)]
575+ (dv ++ dw)
567576 }
568- dr
577+ du
569578 }
570579
571580
572-func du (bD,bL) = {
573- let dv = cC()
574- let cF = dv._1
575- let cG = dv._2
576- let aV = addressFromStringValue(bL)
577- let dw = bJ(bD, aV, cF)
578- let dx = valueOrElse(getInteger(this, dw), 0)
579- let dy = bG(bD, aV, cF)
580- let dz = valueOrElse(getInteger(this, dy), 0)
581- let dm = dg(bD, bL)
582- let db = cW(bD)
583- let dA = (dm - dx)
584- let dB = (db - dz)
585- $Tuple3([IntegerEntry(dw, dm), IntegerEntry(dy, db)], dA, dB)
581+func dx (bG,bO) = {
582+ let dy = cF()
583+ let cI = dy._1
584+ let cJ = dy._2
585+ let aY = addressFromStringValue(bO)
586+ let dz = bM(bG, aY, cI)
587+ let dA = valueOrElse(getInteger(this, dz), 0)
588+ let dB = bJ(bG, aY, cI)
589+ let dC = valueOrElse(getInteger(this, dB), 0)
590+ let dp = dj(bG, bO)
591+ let de = cZ(bG)
592+ let dD = (dp - dA)
593+ let dE = (de - dC)
594+ $Tuple3([IntegerEntry(dz, dp), IntegerEntry(dB, de)], dD, dE)
586595 }
587596
588597
589-func dC () = {
590- let dD = s(bN, ah())
591- let dE = getInteger(this, ak())
592- let dF = getInteger(this, al())
593- let dG = s(bN, an())
594- let dH = if ((height > dG))
595- then dG
598+func dF () = {
599+ let dG = s(bQ, ah())
600+ let dH = getInteger(this, ak())
601+ let dI = getInteger(this, al())
602+ let dJ = s(bQ, an())
603+ let dK = if ((height > dJ))
604+ then dJ
596605 else height
597- let dI = {
598- let aG = dE
599- if ($isInstanceOf(aG, "Int"))
606+ let dL = {
607+ let aJ = dH
608+ if ($isInstanceOf(aJ, "Int"))
600609 then {
601- let dJ = aG
602- max([(dH - dJ), 0])
610+ let dM = aJ
611+ max([(dK - dM), 0])
603612 }
604- else if ($isInstanceOf(aG, "Unit"))
613+ else if ($isInstanceOf(aJ, "Unit"))
605614 then 0
606615 else throw("Match error")
607616 }
608- let dK = ((dD * (bU - 1)) / bU)
609- let dL = valueOrElse(dF, 0)
610- let dM = ((dK * dI) + dL)
611- $Tuple2([IntegerEntry(al(), dM), IntegerEntry(ak(), height)], dM)
617+ let dN = ((dG * (bX - 1)) / bX)
618+ let dO = valueOrElse(dI, 0)
619+ let dP = ((dN * dL) + dO)
620+ $Tuple2([IntegerEntry(al(), dP), IntegerEntry(ak(), height)], dP)
612621 }
613622
614623
615-func dN (bD,bL,dO) = {
616- let aV = valueOrErrorMessage(addressFromString(bL), j("invalid user address"))
617- let bo = bW(aV)
618- if ((bo == bo))
624+func dQ (bG,bO,dR) = {
625+ let aY = valueOrErrorMessage(addressFromString(bO), j("invalid user address"))
626+ let br = bZ(aY)
627+ if ((br == br))
619628 then {
620- let dP = "empty"
621- let dQ = if ((bD != dP))
629+ let dS = "empty"
630+ let dT = if ((bG != dS))
622631 then {
623- let dR = valueOrErrorMessage(getString(bM, Q(bD)), j(("unsupported lp asset " + bD)))
624- getIntegerValue(bM, S(dR))
632+ let dU = valueOrErrorMessage(getString(bP, Q(bG)), j(("unsupported lp asset " + bG)))
633+ getIntegerValue(bP, S(dU))
625634 }
626- else if (dO)
635+ else if (dR)
627636 then 0
628- else l(("not readonly mode: unsupported lp asset " + bD))
629- let dS = bp(bo, bD)
630- let dT = bn(bo)
631- let dU = valueOrElse(getInteger(this, dS), p(this, dT))
632- let dM = dC()._2
633- let dV = (dM - dU)
634- if ((0 > dV))
637+ else l(("not readonly mode: unsupported lp asset " + bG))
638+ let dV = bs(br, bG)
639+ let dW = bq(br)
640+ let dX = valueOrElse(getInteger(this, dV), p(this, dW))
641+ let dP = dF()._2
642+ let dY = (dP - dX)
643+ if ((0 > dY))
635644 then l("wrong calculations")
636645 else {
637- let dW = du(bD, bL)
638- let dX = dW._1
639- let dY = dW._2
640- let dZ = dW._3
641- let ea = fraction(dV, dQ, d)
642- let eb = if ((dZ == 0))
646+ let dZ = dx(bG, bO)
647+ let ea = dZ._1
648+ let eb = dZ._2
649+ let ec = dZ._3
650+ let ed = fraction(dY, dT, d)
651+ let ee = if ((ec == 0))
643652 then 0
644- else fraction(ea, dY, dZ)
645- let ec = ([IntegerEntry(dS, dM)] ++ dX)
646- let ed = makeString([toString(dU), toString(dV), toString(dQ), toString(dY), toString(dZ)], ":")
647- $Tuple3(eb, ec, ed)
653+ else fraction(ed, eb, ec)
654+ let ef = ([IntegerEntry(dV, dP)] ++ ea)
655+ let eg = makeString([toString(dX), toString(dY), toString(dT), toString(eb), toString(ec)], ":")
656+ $Tuple3(ee, ef, eg)
648657 }
649658 }
650659 else throw("Strict value is not equal to itself.")
651660 }
652661
653662
654-func ee (aL,bd) = {
655- let ef = toBase58String(ay)
656- if ((size(aL.payments) != 1))
663+func eh (aO,bg) = {
664+ let ei = toBase58String(ay)
665+ if ((size(aO.payments) != 1))
657666 then l("invalid payment - exact one payment must be attached")
658667 else {
659- let cA = aL.payments[0]
660- let eg = cA.amount
661- if ((ay != value(cA.assetId)))
662- then l((("invalid asset is in payment - " + ef) + " is expected"))
668+ let cD = aO.payments[0]
669+ let ej = cD.amount
670+ if ((ay != value(cD.assetId)))
671+ then l((("invalid asset is in payment - " + ei) + " is expected"))
663672 else {
664- let eh = bg()
665- let aV = aL.caller
666- let bL = toString(aV)
667- let ei = isDefined(getString(bh(bL)))
668- let ej = if (ei)
669- then value(getString(bh(bL)))
670- else toString(s(this, eh))
671- let bo = parseIntValue(ej)
672- let ch = height
673- if (if ((az > eg))
674- then (aV != bQ)
673+ let ek = bj()
674+ let aY = aO.caller
675+ let bO = toString(aY)
676+ let el = isDefined(getString(bk(bO)))
677+ let em = if (el)
678+ then value(getString(bk(bO)))
679+ else toString(s(this, ek))
680+ let br = parseIntValue(em)
681+ let ck = height
682+ if (if ((az > ej))
683+ then (aY != bT)
675684 else false)
676685 then l(("amount is less then minLockAmount=" + toString(az)))
677- else if ((aA > bd))
686+ else if ((aA > bg))
678687 then l(("passed duration is less than minLockDuration=" + toString(aA)))
679- else if ((bd > aB))
688+ else if ((bg > aB))
680689 then l(("passed duration is greater than maxLockDuration=" + toString(aB)))
681- else if (((bd % aE) != 0))
690+ else if (((bg % aE) != 0))
682691 then l(("duration must be multiple of lockStepBlocks=" + toString(aE)))
683692 else {
684- let ek = fraction(eg, bd, aB)
685- let el = bX()
686- let dT = bn(bo)
687- let dM = dC()._2
688- let em = cB(aV)
689- let en = invoke(bP, "refreshUserReward", [aV.bytes, bo], nil)
690- if ((en == en))
693+ let en = fraction(ej, bg, aB)
694+ let eo = ca()
695+ let dW = bq(br)
696+ let dP = dF()._2
697+ let ep = cE(aY)
698+ let eq = invoke(bS, "refreshUserReward", [aY.bytes, br], nil)
699+ if ((eq == eq))
691700 then {
692- let eo = if (ei)
701+ let er = if (el)
693702 then nil
694- else [IntegerEntry(eh, (bo + 1)), StringEntry(bh(bL), ej), StringEntry(bi(ej), bL)]
695- $Tuple2(((((eo ++ cx(aV, aL.transactionId, eg, ch, bd, ek, 0)) ++ ck(eg, bd, 1, if (ei)
703+ else [IntegerEntry(ek, (br + 1)), StringEntry(bk(bO), em), StringEntry(bl(em), bO)]
704+ $Tuple2(((((er ++ cA(aY, aO.transactionId, ej, ck, bg, en, 0)) ++ cn(ej, bg, 1, if (el)
696705 then 0
697- else 1)) :+ ce("lock", bL, eg, ch, bd, ek, aL)) ++ [IntegerEntry(dT, dM), IntegerEntry(bv(), (el + ek)), IntegerEntry(aZ(aV), (em + ek))]), ek)
706+ else 1)) :+ ch("lock", bO, ej, ck, bg, en, aO)) ++ [IntegerEntry(dW, dP), IntegerEntry(by(), (eo + en)), IntegerEntry(bc(aY), (ep + en))]), en)
698707 }
699708 else throw("Strict value is not equal to itself.")
700709 }
701710 }
702711 }
703712 }
704713
705714
706-func ep (aV,eq) = {
707- let er = aY(aV, eq)
708- let es = parseIntValue(er[aO])
709- let ch = parseIntValue(er[aP])
710- let et = parseIntValue(er[aQ])
711- let eu = (ch + et)
712- let bf = parseIntValue(er[aT])
713- let ev = ((height - ch) / aD)
714- let ew = fraction(toBigInt(ev), (toBigInt((i * aD)) * h), toBigInt(et))
715- let ex = if ((height > eu))
716- then es
717- else toInt(fraction(toBigInt(es), (h - pow(toBigInt(5), 1, ew, f, f, DOWN)), h))
718- let ey = (ex - bf)
719- ey
715+func es (aY,et) = {
716+ let eu = bb(aY, et)
717+ let ev = parseIntValue(eu[aR])
718+ let ck = parseIntValue(eu[aS])
719+ let ew = parseIntValue(eu[aT])
720+ let ex = (ck + ew)
721+ let bi = parseIntValue(eu[aW])
722+ let ey = ((height - ck) / aD)
723+ let ez = fraction(toBigInt(ey), (toBigInt((i * aD)) * h), toBigInt(ew))
724+ let eA = if ((height > ex))
725+ then ev
726+ else toInt(fraction(toBigInt(ev), (h - pow(toBigInt(5), 1, ez, f, f, DOWN)), h))
727+ let eB = (eA - bi)
728+ eB
720729 }
721730
722731
723-@Callable(aL)
724-func lockRef (bd,ez,eA) = {
725- let eB = ee(aL, bd)
726- let eC = eB._1
727- let ek = eB._2
728- let eD = toString(aL.caller)
729- let eE = if (if ((ez == ""))
730- then true
731- else (eA == base58''))
732- then unit
733- else invoke(z, "createPair", [C, ez, eD, eA], nil)
732+@Callable(aO)
733+func lockRef (bg,eC,eD) = {
734+ let eE = aH()
734735 if ((eE == eE))
735736 then {
736- let eF = invoke(aC, "updateReferralActivity", [toString(aL.caller), ek], nil)
737- if ((eF == eF))
738- then $Tuple2(eC, unit)
737+ let eF = eh(aO, bg)
738+ let eG = eF._1
739+ let en = eF._2
740+ let eH = toString(aO.caller)
741+ let eI = if (if ((eC == ""))
742+ then true
743+ else (eD == base58''))
744+ then unit
745+ else invoke(z, "createPair", [C, eC, eH, eD], nil)
746+ if ((eI == eI))
747+ then {
748+ let eJ = invoke(aC, "updateReferralActivity", [toString(aO.caller), en], nil)
749+ if ((eJ == eJ))
750+ then $Tuple2(eG, unit)
751+ else throw("Strict value is not equal to itself.")
752+ }
739753 else throw("Strict value is not equal to itself.")
740754 }
741755 else throw("Strict value is not equal to itself.")
742756 }
743757
744758
745759
746-@Callable(aL)
747-func lock (bd) = {
748- let eG = ee(aL, bd)
749- let eC = eG._1
750- let ek = eG._2
751- let eF = invoke(aC, "updateReferralActivity", [toString(aL.caller), ek], nil)
752- if ((eF == eF))
753- then $Tuple2(eC, unit)
754- else throw("Strict value is not equal to itself.")
755- }
756-
757-
758-
759-@Callable(aL)
760-func claimWxBoost (bD,bL) = if ((bO != aL.caller))
761- then l("permissions denied")
762- else {
763- let eH = dN(bD, bL, false)
764- let eI = eH._1
765- let ec = eH._2
766- let ed = eH._3
767- $Tuple2(ec, [eI])
768- }
769-
770-
771-
772-@Callable(aL)
773-func claimWxBoostREADONLY (bD,bL) = {
774- let eJ = dN(bD, bL, true)
775- let eI = eJ._1
776- let ec = eJ._2
777- let ed = eJ._3
778- $Tuple2(nil, [eI, ed])
779- }
780-
781-
782-
783-@Callable(aL)
784-func unlock (eK) = {
785- let aV = aL.caller
786- let bL = toString(aV)
787- let eq = if ((eK == ""))
788- then unit
789- else fromBase58String(eK)
790- let er = aY(aV, eq)
791- let es = parseIntValue(er[aO])
792- let ch = parseIntValue(er[aP])
793- let et = parseIntValue(er[aQ])
794- let bf = parseIntValue(er[aT])
795- let be = parseIntValue(er[aS])
796- let ev = ((height - ch) / aD)
797- let ey = ep(aV, eq)
798- let ek = fraction(es, et, aB)
799- let eL = min([fraction((ev * aD), ek, aB), be])
800- let eM = v((be - eL), "gwxRemaining")
801- let eN = bY(aV)
802- if ((0 >= ey))
803- then l("nothing to unlock")
804- else {
805- let el = bX()
806- let em = cB(aV)
807- let eO = v((em - eL), "userGwxAmountTotalNew")
808- if ((eN > eO))
809- then l(("locked gwx amount: " + toString(eN)))
810- else {
811- let bo = parseIntValue(valueOrErrorMessage(getString(bh(bL)), j("invalid user number")))
812- let en = invoke(bP, "refreshUserReward", [aV.bytes, bo], nil)
813- if ((en == en))
814- then ((((cx(aV, eq, es, ch, et, eM, (bf + ey)) ++ ck(-(ey), 0, 0, 0)) :+ ce("unlock", bL, ey, ch, et, eL, aL)) :+ ScriptTransfer(aV, ey, ay)) ++ [IntegerEntry(bv(), v((el - eL), "gwxTotal")), IntegerEntry(aZ(aV), eO)])
815- else throw("Strict value is not equal to itself.")
816- }
817- }
818- }
819-
820-
821-
822-@Callable(aL)
823-func gwxUserInfoREADONLY (bL) = {
824- let aV = valueOrErrorMessage(addressFromString(bL), j("invalid user address"))
825- let be = cB(aV)
826- $Tuple2(nil, [be])
827- }
828-
829-
830-
831-@Callable(aL)
832-func userMaxDurationREADONLY (bL) = $Tuple2(nil, $Tuple2("lock", aB))
833-
834-
835-
836-@Callable(aL)
837-func getUserGwxAmountAtHeightREADONLY (bL,eP) = {
838- let aV = valueOrErrorMessage(addressFromString(bL), j("invalid user address"))
839- let be = cB(aV)
840- $Tuple2(nil, be)
841- }
842-
843-
844-
845-@Callable(aL)
846-func getUserGwxAmount (bL) = {
847- let aV = valueOrErrorMessage(addressFromString(bL), j("invalid user address"))
848- let be = cB(aV)
849- $Tuple2(nil, be)
850- }
851-
852-
853-
854-@Callable(aL)
855-func getGwxTotalREADONLY () = $Tuple2(nil, bX())
856-
857-
858-
859-@Callable(aL)
860-func onBoostEmissionUpdate () = {
861- let eQ = if ((aL.caller == bN))
862- then true
863- else aK(aL)
864- if ((eQ == eQ))
865- then dC()
866- else throw("Strict value is not equal to itself.")
867- }
868-
869-
870-
871-@Callable(aL)
872-func onStakedVoteUpdate (bD,bL,do) = {
873- let eQ = if ((aL.caller == bO))
874- then true
875- else aK(aL)
876- if ((eQ == eQ))
760+@Callable(aO)
761+func lock (bg) = {
762+ let eE = aH()
763+ if ((eE == eE))
877764 then {
878- let dr = dn(bD, bL, do)
879- $Tuple2(dr, unit)
765+ let eK = eh(aO, bg)
766+ let eG = eK._1
767+ let en = eK._2
768+ let eJ = invoke(aC, "updateReferralActivity", [toString(aO.caller), en], nil)
769+ if ((eJ == eJ))
770+ then $Tuple2(eG, unit)
771+ else throw("Strict value is not equal to itself.")
880772 }
881773 else throw("Strict value is not equal to itself.")
882774 }
883775
884776
885777
886-@Callable(aL)
887-func getVotingResultStakedREADONLY (bD) = $Tuple2(nil, cS(bD))
778+@Callable(aO)
779+func claimWxBoost (bG,bO) = {
780+ let eE = aH()
781+ if ((eE == eE))
782+ then if ((bR != aO.caller))
783+ then l("permissions denied")
784+ else {
785+ let eL = dQ(bG, bO, false)
786+ let eM = eL._1
787+ let ef = eL._2
788+ let eg = eL._3
789+ $Tuple2(ef, [eM])
790+ }
791+ else throw("Strict value is not equal to itself.")
792+ }
888793
889794
890795
891-@Callable(aL)
892-func getVotingResultStakedIntegralREADONLY (bD) = $Tuple2(nil, cW(bD))
796+@Callable(aO)
797+func claimWxBoostREADONLY (bG,bO) = {
798+ let eN = dQ(bG, bO, true)
799+ let eM = eN._1
800+ let ef = eN._2
801+ let eg = eN._3
802+ $Tuple2(nil, [eM, eg])
803+ }
893804
894805
895806
896-@Callable(aL)
897-func getUserVoteFinalizedREADONLY (bD,bL) = $Tuple2(nil, cL(bD, bL))
807+@Callable(aO)
808+func unlock (eO) = {
809+ let eE = aH()
810+ if ((eE == eE))
811+ then {
812+ let aY = aO.caller
813+ let bO = toString(aY)
814+ let et = if ((eO == ""))
815+ then unit
816+ else fromBase58String(eO)
817+ let eu = bb(aY, et)
818+ let ev = parseIntValue(eu[aR])
819+ let ck = parseIntValue(eu[aS])
820+ let ew = parseIntValue(eu[aT])
821+ let bi = parseIntValue(eu[aW])
822+ let bh = parseIntValue(eu[aV])
823+ let ey = ((height - ck) / aD)
824+ let eB = es(aY, et)
825+ let en = fraction(ev, ew, aB)
826+ let eP = min([fraction((ey * aD), en, aB), bh])
827+ let eQ = v((bh - eP), "gwxRemaining")
828+ let eR = cb(aY)
829+ if ((0 >= eB))
830+ then l("nothing to unlock")
831+ else {
832+ let eo = ca()
833+ let ep = cE(aY)
834+ let eS = v((ep - eP), "userGwxAmountTotalNew")
835+ if ((eR > eS))
836+ then l(("locked gwx amount: " + toString(eR)))
837+ else {
838+ let br = parseIntValue(valueOrErrorMessage(getString(bk(bO)), j("invalid user number")))
839+ let eq = invoke(bS, "refreshUserReward", [aY.bytes, br], nil)
840+ if ((eq == eq))
841+ then ((((cA(aY, et, ev, ck, ew, eQ, (bi + eB)) ++ cn(-(eB), 0, 0, 0)) :+ ch("unlock", bO, eB, ck, ew, eP, aO)) :+ ScriptTransfer(aY, eB, ay)) ++ [IntegerEntry(by(), v((eo - eP), "gwxTotal")), IntegerEntry(bc(aY), eS)])
842+ else throw("Strict value is not equal to itself.")
843+ }
844+ }
845+ }
846+ else throw("Strict value is not equal to itself.")
847+ }
898848
899849
900850
901-@Callable(aL)
902-func getUserVoteStakedIntegralREADONLY (bD,bL) = $Tuple2(nil, dg(bD, bL))
851+@Callable(aO)
852+func gwxUserInfoREADONLY (bO) = {
853+ let aY = valueOrErrorMessage(addressFromString(bO), j("invalid user address"))
854+ let bh = cE(aY)
855+ $Tuple2(nil, [bh])
856+ }
903857
904858
905-@Verifier(eR)
906-func eS () = {
907- let eT = {
908- let aG = aI()
909- if ($isInstanceOf(aG, "ByteVector"))
859+
860+@Callable(aO)
861+func userMaxDurationREADONLY (bO) = $Tuple2(nil, $Tuple2("lock", aB))
862+
863+
864+
865+@Callable(aO)
866+func getUserGwxAmountAtHeightREADONLY (bO,eT) = {
867+ let aY = valueOrErrorMessage(addressFromString(bO), j("invalid user address"))
868+ let bh = cE(aY)
869+ $Tuple2(nil, bh)
870+ }
871+
872+
873+
874+@Callable(aO)
875+func getUserGwxAmount (bO) = {
876+ let aY = valueOrErrorMessage(addressFromString(bO), j("invalid user address"))
877+ let bh = cE(aY)
878+ $Tuple2(nil, bh)
879+ }
880+
881+
882+
883+@Callable(aO)
884+func getGwxTotalREADONLY () = $Tuple2(nil, ca())
885+
886+
887+
888+@Callable(aO)
889+func onBoostEmissionUpdate () = {
890+ let eE = aH()
891+ if ((eE == eE))
892+ then {
893+ let eU = if ((aO.caller == bQ))
894+ then true
895+ else aN(aO)
896+ if ((eU == eU))
897+ then dF()
898+ else throw("Strict value is not equal to itself.")
899+ }
900+ else throw("Strict value is not equal to itself.")
901+ }
902+
903+
904+
905+@Callable(aO)
906+func onStakedVoteUpdate (bG,bO,dr) = {
907+ let eE = aH()
908+ if ((eE == eE))
909+ then {
910+ let eU = if ((aO.caller == bR))
911+ then true
912+ else aN(aO)
913+ if ((eU == eU))
914+ then {
915+ let du = dq(bG, bO, dr)
916+ $Tuple2(du, unit)
917+ }
918+ else throw("Strict value is not equal to itself.")
919+ }
920+ else throw("Strict value is not equal to itself.")
921+ }
922+
923+
924+
925+@Callable(aO)
926+func getVotingResultStakedREADONLY (bG) = $Tuple2(nil, cV(bG))
927+
928+
929+
930+@Callable(aO)
931+func getVotingResultStakedIntegralREADONLY (bG) = $Tuple2(nil, cZ(bG))
932+
933+
934+
935+@Callable(aO)
936+func getUserVoteFinalizedREADONLY (bG,bO) = $Tuple2(nil, cO(bG, bO))
937+
938+
939+
940+@Callable(aO)
941+func getUserVoteStakedIntegralREADONLY (bG,bO) = $Tuple2(nil, dj(bG, bO))
942+
943+
944+
945+@Callable(aO)
946+func suspend (w) = {
947+ let eU = aN(aO)
948+ if ((eU == eU))
949+ then $Tuple2([BooleanEntry(aF, w)], w)
950+ else throw("Strict value is not equal to itself.")
951+ }
952+
953+
954+@Verifier(eV)
955+func eW () = {
956+ let eX = {
957+ let aJ = aL()
958+ if ($isInstanceOf(aJ, "ByteVector"))
910959 then {
911- let aN = aG
912- aN
960+ let aQ = aJ
961+ aQ
913962 }
914- else if ($isInstanceOf(aG, "Unit"))
915- then eR.senderPublicKey
963+ else if ($isInstanceOf(aJ, "Unit"))
964+ then eV.senderPublicKey
916965 else throw("Match error")
917966 }
918- sigVerify(eR.bodyBytes, eR.proofs[0], eT)
967+ sigVerify(eV.bodyBytes, eV.proofs[0], eX)
919968 }
920969

github/deemru/w8io/026f985 
320.96 ms