tx · FsUpaZ4TduW31oXp5aKKnT2VAkGGvkE3hyZMd5D1Yp56 3MsXpzisJAwnzUr7XrEoW1BZo4U6rw4tsYK: -0.14000000 Waves 2022.11.02 15:24 [2299488] smart account 3MsXpzisJAwnzUr7XrEoW1BZo4U6rw4tsYK > SELF 0.00000000 Waves
{ "type": 13, "id": "FsUpaZ4TduW31oXp5aKKnT2VAkGGvkE3hyZMd5D1Yp56", "fee": 14000000, "feeAssetId": null, "timestamp": 1667391849258, "version": 2, "chainId": 84, "sender": "3MsXpzisJAwnzUr7XrEoW1BZo4U6rw4tsYK", "senderPublicKey": "FFdBua5rzzMkZebvsvmN7sAdU7XhFK8QNJ3hiwwxAYRA", "proofs": [ "61FQZBn75J2dXfbhhDHy9hYy1zoqvo35y9VJeUWQaXd6vGQCTUHrLkXrzyf8TaTp2Xk2TmFJ2uCsrd7hsMXgw4it", "4JR8zM7epgWvtrvX2CzPFVdGoJsJLsEGWaomqo2Cg2BQC7xJ1HmJA2bSidQmKVZJv7hbQxmwiabv51SN7yDfWdog" ], "script": "base64:BgJICAISAwoBCBIDCgEIEgMKAQgSBAoCCAESBQoDCAEBEgQKAggIEgQKAggBEgMKAQgSAwoBCBIDCgEYEgMKARgSBAoCCAgSABIAXAAHa0FjdGl2ZQIGYWN0aXZlAAtrQWN0aXZlR2xvYgIUYWN0aXZlX2FsbF9jb250cmFjdHMABmtDYXVzZQIOc2h1dGRvd25fY2F1c2UAGmtSZXdhcmRQb29sRnJhY3Rpb25DdXJyZW50Ah1fY3VycmVudF9wb29sX2ZyYWN0aW9uX3Jld2FyZAAba1Jld2FyZFBvb2xGcmFjdGlvblByZXZpb3VzAh5fcHJldmlvdXNfcG9vbF9mcmFjdGlvbl9yZXdhcmQAE2tIZWlnaHRQb29sRnJhY3Rpb24CGl9wb29sX3Jld2FyZF91cGRhdGVfaGVpZ2h0ABtrVG90YWxSZXdhcmRQZXJCbG9ja0N1cnJlbnQCHnRvdGFsX3Jld2FyZF9wZXJfYmxv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B1YktleTFTaWduZWQDCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAABQxhZG1pblB1YktleTEAAQAABBJhZG1pblB1YktleTJTaWduZWQDCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwABBQxhZG1pblB1YktleTIAAQAABBJhZG1pblB1YktleTNTaWduZWQDCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwACBQxhZG1pblB1YktleTMAAQAACQBnAgkAZAIJAGQCBRJhZG1pblB1YktleTFTaWduZWQFEmFkbWluUHViS2V5MlNpZ25lZAUSYWRtaW5QdWJLZXkzU2lnbmVkAALDqv+O", "height": 2299488, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EKVajJAbwH4pRqh9XaUM3ZPLBLRRae7u74azhkqcFAii Next: 7y5XY6KPk569UiDZiQ4XAKAL1s8YBBWxiCFLVWh3Rf8Y Diff:
Old | New | Differences | |
---|---|---|---|
281 | 281 | let bt = (bp * (aW - bf)) | |
282 | 282 | let bu = (bc + fraction(bg(ax, bt), bq, bo)) | |
283 | 283 | let bv = (bd + (if ((bl > 0)) | |
284 | - | then fraction(bj(ax, bt), | |
284 | + | then fraction(bj(ax, bt), X, bl) | |
285 | 285 | else 0)) | |
286 | 286 | let bw = (bm + (if (if ((bl > 0)) | |
287 | 287 | then (bo > 0) | |
288 | 288 | else false) | |
289 | - | then fraction(bj(ax, bt), | |
289 | + | then fraction(fraction(bj(ax, bt), X, bo), X, bl) | |
290 | 290 | else 0)) | |
291 | - | let | |
292 | - | $Tuple4( | |
291 | + | let bx = (bn * (height - aW)) | |
292 | + | $Tuple4(bx, bu, bv, bw) | |
293 | 293 | } | |
294 | - | let | |
295 | - | let | |
296 | - | let | |
297 | - | let | |
298 | - | let | |
299 | - | let | |
300 | - | then fraction(bj(ax, | |
294 | + | let by = br._1 | |
295 | + | let bz = br._2 | |
296 | + | let bA = br._3 | |
297 | + | let bB = br._4 | |
298 | + | let bC = (bz + fraction(bg(ax, by), bq, bo)) | |
299 | + | let bD = (bA + (if ((bl > 0)) | |
300 | + | then fraction(bj(ax, by), X, bl) | |
301 | 301 | else 0)) | |
302 | - | let | |
302 | + | let bE = (bB + (if (if ((bl > 0)) | |
303 | 303 | then (bo > 0) | |
304 | 304 | else false) | |
305 | - | then fraction(fraction(bj(ax, | |
305 | + | then fraction(fraction(bj(ax, by), X, bo), X, bl) | |
306 | 306 | else 0)) | |
307 | - | $Tuple3( | |
307 | + | $Tuple3(bC, bD, bE) | |
308 | 308 | } | |
309 | 309 | ||
310 | 310 | ||
311 | - | func | |
311 | + | func bF (ax,aC) = { | |
312 | 312 | let bq = aL(av, aD(ax)) | |
313 | 313 | let bl = aA(ax) | |
314 | - | let | |
315 | - | let | |
316 | - | let | |
317 | - | let | |
318 | - | let bf = | |
319 | - | let bc = | |
320 | - | let bd = | |
321 | - | let be = | |
322 | - | let | |
323 | - | let bn = | |
324 | - | let aW = | |
325 | - | let bp = | |
326 | - | let aX = | |
327 | - | let | |
328 | - | let | |
329 | - | let | |
330 | - | let | |
331 | - | let | |
332 | - | let | |
333 | - | let | |
334 | - | let | |
335 | - | let | |
336 | - | let | |
337 | - | let | |
338 | - | let | |
339 | - | let | |
340 | - | let | |
341 | - | if ((0 > | |
314 | + | let bG = aB(ax, aC) | |
315 | + | let bH = az(ax) | |
316 | + | let bI = valueOrElse(getInteger(this, (ax + p)), bH) | |
317 | + | let bJ = bb(ax) | |
318 | + | let bf = bJ._1 | |
319 | + | let bc = bJ._2 | |
320 | + | let bd = bJ._3 | |
321 | + | let be = bJ._4 | |
322 | + | let bK = aS(ax) | |
323 | + | let bn = bK._1 | |
324 | + | let aW = bK._2 | |
325 | + | let bp = bK._3 | |
326 | + | let aX = bK._4 | |
327 | + | let bL = valueOrElse(getInteger(this, (((ax + "_") + aC) + u)), bc) | |
328 | + | let bM = valueOrElse(getInteger(this, (((ax + "_") + aC) + w)), bd) | |
329 | + | let bN = valueOrElse(getInteger(this, (((ax + "_") + aC) + y)), be) | |
330 | + | let bO = valueOrElse(getInteger(this, (((ax + "_") + aC) + j)), 0) | |
331 | + | let bP = valueOrElse(getInteger(this, (((ax + "_") + aC) + n)), bO) | |
332 | + | let bQ = bk(ax, bf, aW, aX, bc, bd, bl, be, bn, bI, bp, bq) | |
333 | + | let bC = bQ._1 | |
334 | + | let bD = bQ._2 | |
335 | + | let bE = bQ._3 | |
336 | + | let bR = fraction(bP, (bC - bL), bq) | |
337 | + | let bS = fraction(bG, (bD - bM), X) | |
338 | + | let bT = fraction(toBigInt(bP), toBigInt(bG), toBigInt(1)) | |
339 | + | let bU = toInt(fraction(fraction(bT, toBigInt((bE - bN)), toBigInt(X)), toBigInt(1), toBigInt(X))) | |
340 | + | let bV = (bS - bU) | |
341 | + | if ((0 > bV)) | |
342 | 342 | then throw("toTreasury < 0") | |
343 | - | else $Tuple5( | |
343 | + | else $Tuple5(bC, bD, bE, (bR + bU), bV) | |
344 | 344 | } | |
345 | 345 | ||
346 | 346 | ||
347 | - | func | |
348 | - | func | |
349 | - | let | |
350 | - | let | |
351 | - | let | |
352 | - | let | |
353 | - | let | |
354 | - | let | |
355 | - | let | |
356 | - | let | |
357 | - | let | |
358 | - | let | |
359 | - | $Tuple2(( | |
347 | + | func bW (bX,aC) = { | |
348 | + | func bY (bZ,ax) = { | |
349 | + | let ca = bZ | |
350 | + | let cb = ca._1 | |
351 | + | let cc = ca._2 | |
352 | + | let cd = bF(ax, aC) | |
353 | + | let ce = cd._1 | |
354 | + | let cf = cd._2 | |
355 | + | let cg = cd._3 | |
356 | + | let ch = cd._4 | |
357 | + | let ci = cd._5 | |
358 | + | let cj = (aR(ax, aC) + ch) | |
359 | + | $Tuple2((cb :+ aC), (cc :+ cj)) | |
360 | 360 | } | |
361 | 361 | ||
362 | - | let | |
363 | - | let | |
364 | - | let | |
365 | - | func | |
366 | - | then | |
367 | - | else | |
362 | + | let ck = bX | |
363 | + | let cl = size(ck) | |
364 | + | let cm = $Tuple2(nil, nil) | |
365 | + | func cn (co,cp) = if ((cp >= cl)) | |
366 | + | then co | |
367 | + | else bY(co, ck[cp]) | |
368 | 368 | ||
369 | - | func | |
370 | - | then | |
369 | + | func cq (co,cp) = if ((cp >= cl)) | |
370 | + | then co | |
371 | 371 | else throw("List size exceeds 60") | |
372 | 372 | ||
373 | - | | |
373 | + | cq(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cm, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60) | |
374 | 374 | } | |
375 | 375 | ||
376 | 376 | ||
377 | - | func | |
377 | + | func cr (ax,aC,cs,ct,cu) = if ((aw(ax) > height)) | |
378 | 378 | then { | |
379 | - | let | |
380 | - | let | |
381 | - | let | |
382 | - | let | |
383 | - | if (( | |
379 | + | let cv = valueOrElse(getInteger(aj, (ax + D)), 0) | |
380 | + | let cw = valueOrElse(getInteger(aj, (((aC + "_") + ax) + D)), 0) | |
381 | + | let cx = ay(addressFromStringValue(ax)) | |
382 | + | let cy = (fraction(cx, cw, cv) - cs) | |
383 | + | if ((cu > 0)) | |
384 | 384 | then throw("You can't lock shareTokens till first harvest end.") | |
385 | - | else if (( | |
385 | + | else if ((cw == 0)) | |
386 | 386 | then 0 | |
387 | - | else if (( | |
388 | - | then ( | |
387 | + | else if ((ct >= cy)) | |
388 | + | then (ct - cy) | |
389 | 389 | else 0 | |
390 | 390 | } | |
391 | 391 | else 0 | |
392 | 392 | ||
393 | 393 | ||
394 | - | func | |
395 | - | let | |
396 | - | $Tuple2(parseIntValue( | |
394 | + | func cz (cA) = { | |
395 | + | let cB = split(valueOrErrorMessage(getString(this, (toString(cA) + q)), ("There are no key for lock type" + toString(cA))), "_") | |
396 | + | $Tuple2(parseIntValue(cB[0]), parseIntValue(cB[1])) | |
397 | 397 | } | |
398 | 398 | ||
399 | 399 | ||
400 | - | func | |
400 | + | func cC (cD) = [BooleanEntry(a, false), StringEntry(c, cD)] | |
401 | 401 | ||
402 | 402 | ||
403 | - | func | |
403 | + | func cE () = if (if (as) | |
404 | 404 | then at | |
405 | 405 | else false) | |
406 | 406 | then unit | |
407 | 407 | else throw("DApp is inactive at this moment") | |
408 | 408 | ||
409 | 409 | ||
410 | - | func | |
410 | + | func cF (cG) = if (containsElement([af, ag, ah], cG.callerPublicKey)) | |
411 | 411 | then unit | |
412 | 412 | else throw("Only admin can call this function") | |
413 | 413 | ||
414 | 414 | ||
415 | - | @Callable( | |
416 | - | func init ( | |
415 | + | @Callable(cG) | |
416 | + | func init (cH) = if (isDefined(getString(this, A))) | |
417 | 417 | then throw("SWOP already initialized") | |
418 | 418 | else { | |
419 | - | let | |
420 | - | let | |
421 | - | let | |
422 | - | [BooleanEntry(a, true), Issue("SWOP", "SWOP protocol token", | |
419 | + | let cI = 100000000000000 | |
420 | + | let cJ = Issue("SWOP", "SWOP protocol token", cI, 8, true) | |
421 | + | let cK = calculateAssetId(cJ) | |
422 | + | [BooleanEntry(a, true), Issue("SWOP", "SWOP protocol token", cI, 8, true), StringEntry(A, toBase58String(cK))] | |
423 | 423 | } | |
424 | 424 | ||
425 | 425 | ||
426 | 426 | ||
427 | - | @Callable( | |
428 | - | func initPoolShareFarming (ax) = valueOrElse( | |
427 | + | @Callable(cG) | |
428 | + | func initPoolShareFarming (ax) = valueOrElse(cF(cG), [IntegerEntry((ax + o), 0), IntegerEntry((ax + t), 0), IntegerEntry((ax + v), 0), IntegerEntry((ax + x), 0), IntegerEntry((ax + z), height)]) | |
429 | 429 | ||
430 | 430 | ||
431 | 431 | ||
432 | - | @Callable( | |
433 | - | func updatePoolInterest (ax) = valueOrElse( | |
432 | + | @Callable(cG) | |
433 | + | func updatePoolInterest (ax) = valueOrElse(cE(), if ((cG.caller != ak)) | |
434 | 434 | then throw("Only Governance can call this function") | |
435 | 435 | else { | |
436 | 436 | let aC = toString(addressFromPublicKey(al)) | |
437 | - | let | |
438 | - | let bc = | |
439 | - | let bd = | |
440 | - | let | |
441 | - | [IntegerEntry((ax + t), bc), IntegerEntry((ax + v), bd), IntegerEntry((ax + x), | |
437 | + | let cL = bF(ax, aC) | |
438 | + | let bc = cL._1 | |
439 | + | let bd = cL._2 | |
440 | + | let cM = cL._3 | |
441 | + | [IntegerEntry((ax + t), bc), IntegerEntry((ax + v), bd), IntegerEntry((ax + x), cM), IntegerEntry((ax + z), height)] | |
442 | 442 | }) | |
443 | 443 | ||
444 | 444 | ||
445 | 445 | ||
446 | - | @Callable( | |
447 | - | func lockShareTokens (ax, | |
448 | - | let | |
449 | - | let aC = toString( | |
450 | - | let | |
451 | - | let | |
452 | - | let | |
453 | - | let | |
454 | - | let | |
455 | - | let | |
456 | - | let | |
457 | - | let | |
458 | - | let | |
459 | - | let | |
460 | - | let | |
461 | - | if (( | |
446 | + | @Callable(cG) | |
447 | + | func lockShareTokens (ax,cu) = valueOrElse(cE(), { | |
448 | + | let cN = aD(ax) | |
449 | + | let aC = toString(cG.originCaller) | |
450 | + | let cO = az(ax) | |
451 | + | let bI = valueOrElse(getInteger(this, (ax + p)), cO) | |
452 | + | let cP = valueOrElse(getInteger(this, (((ax + "_") + aC) + j)), 0) | |
453 | + | let cQ = valueOrElse(getInteger(this, (((ax + "_") + aC) + m)), 0) | |
454 | + | let cR = valueOrElse(getInteger(this, (((ax + "_") + aC) + k)), 0) | |
455 | + | let cS = valueOrElse(getInteger(this, (((ax + "_") + aC) + n)), cP) | |
456 | + | let cT = ((cP + cR) + cG.payments[0].amount) | |
457 | + | let cU = cz(cu) | |
458 | + | let cV = cU._1 | |
459 | + | let cW = cU._2 | |
460 | + | let cX = getIntegerValue(this, r) | |
461 | + | if ((cG.payments[0].assetId != cN)) | |
462 | 462 | then throw("Wrong sharetoken in payment") | |
463 | - | else if ((0 >= | |
463 | + | else if ((0 >= cG.payments[0].amount)) | |
464 | 464 | then throw("Payment amount must be greater than 0") | |
465 | - | else if ((0 > | |
465 | + | else if ((0 > cu)) | |
466 | 466 | then throw("lockType must be >= 0") | |
467 | 467 | else { | |
468 | - | let | |
469 | - | if (( | |
468 | + | let cY = cr(ax, aC, cP, cG.payments[0].amount, cu) | |
469 | + | if ((cY == cY)) | |
470 | 470 | then { | |
471 | - | let | |
471 | + | let cZ = if ((cu == 0)) | |
472 | 472 | then { | |
473 | - | let | |
474 | - | $Tuple2([IntegerEntry((((ax + "_") + aC) + j), (( | |
473 | + | let da = ((cS + cG.payments[0].amount) - cY) | |
474 | + | $Tuple2([IntegerEntry((((ax + "_") + aC) + j), ((cP + cG.payments[0].amount) - cY)), IntegerEntry((ax + p), ((bI + cG.payments[0].amount) - cY)), ScriptTransfer(cG.originCaller, cY, cG.payments[0].assetId)], ((cO + cG.payments[0].amount) - cY)) | |
475 | 475 | } | |
476 | - | else if (if (( | |
477 | - | then if (if ((2 > size( | |
476 | + | else if (if ((cQ == 0)) | |
477 | + | then if (if ((2 > size(cG.payments))) | |
478 | 478 | then true | |
479 | - | else ( | |
479 | + | else (cG.payments[1].assetId != unit)) | |
480 | 480 | then true | |
481 | - | else ( | |
481 | + | else (cX > cG.payments[1].amount) | |
482 | 482 | else false) | |
483 | - | then throw((("You need to pay additional waves comission " + toString( | |
484 | - | else if (( | |
483 | + | then throw((("You need to pay additional waves comission " + toString(cX)) + "WAVES")) | |
484 | + | else if ((cQ > (height + cV))) | |
485 | 485 | then throw("You cannot lock sharetokens for a period less than what you have already locked") | |
486 | 486 | else { | |
487 | - | let | |
488 | - | let | |
489 | - | let | |
490 | - | $Tuple2([IntegerEntry((((ax + "_") + aC) + k), | |
487 | + | let db = (cR + cG.payments[0].amount) | |
488 | + | let dc = (height + cV) | |
489 | + | let da = (fraction(db, cW, Y) + cP) | |
490 | + | $Tuple2([IntegerEntry((((ax + "_") + aC) + k), db), IntegerEntry((((ax + "_") + aC) + m), dc), IntegerEntry((((ax + "_") + aC) + l), cu), IntegerEntry((((ax + "_") + aC) + n), da), IntegerEntry((ax + p), ((bI - cS) + da))], (cO + cG.payments[0].amount)) | |
491 | 491 | } | |
492 | - | let | |
493 | - | let | |
494 | - | if ((aE( | |
492 | + | let dd = cZ._1 | |
493 | + | let de = cZ._2 | |
494 | + | if ((aE(cN) > de)) | |
495 | 495 | then throw("Balance of share-token is lower than totalAmount") | |
496 | 496 | else { | |
497 | - | let | |
498 | - | let bc = | |
499 | - | let bd = | |
500 | - | let | |
501 | - | let | |
502 | - | let | |
503 | - | let | |
504 | - | let | |
505 | - | then invoke(am, "updateUserInterest", [ax, | |
497 | + | let df = bF(ax, aC) | |
498 | + | let bc = df._1 | |
499 | + | let bd = df._2 | |
500 | + | let cM = df._3 | |
501 | + | let ch = df._4 | |
502 | + | let dg = df._5 | |
503 | + | let dh = (aR(ax, aC) + ch) | |
504 | + | let di = if ((getString(Address(fromBase58String(ax)), "version") == "3.0.0")) | |
505 | + | then invoke(am, "updateUserInterest", [ax, cT], nil) | |
506 | 506 | else 0 | |
507 | - | if (( | |
508 | - | then ([IntegerEntry((((ax + "_") + aC) + u), bc), IntegerEntry((((ax + "_") + aC) + w), bd), IntegerEntry((((ax + "_") + aC) + y), | |
507 | + | if ((di == di)) | |
508 | + | then ([IntegerEntry((((ax + "_") + aC) + u), bc), IntegerEntry((((ax + "_") + aC) + w), bd), IntegerEntry((((ax + "_") + aC) + y), cM), IntegerEntry((ax + t), bc), IntegerEntry((ax + v), bd), IntegerEntry((ax + x), cM), IntegerEntry((ax + z), height), IntegerEntry((ax + o), de), IntegerEntry((((ax + "_") + aC) + B), dh), Reissue(av, dg, true), ScriptTransfer(an, dg, av)] ++ dd) | |
509 | 509 | else throw("Strict value is not equal to itself.") | |
510 | 510 | } | |
511 | 511 | } | |
515 | 515 | ||
516 | 516 | ||
517 | 517 | ||
518 | - | @Callable( | |
519 | - | func lockStakedShareTokens (ax, | |
520 | - | let | |
521 | - | let aC = toString( | |
522 | - | let | |
523 | - | let | |
524 | - | let | |
525 | - | let | |
526 | - | let | |
527 | - | let | |
528 | - | let | |
529 | - | let | |
530 | - | let | |
531 | - | let | |
532 | - | let | |
518 | + | @Callable(cG) | |
519 | + | func lockStakedShareTokens (ax,cu,dj) = valueOrElse(cE(), { | |
520 | + | let cN = aD(ax) | |
521 | + | let aC = toString(cG.originCaller) | |
522 | + | let cO = az(ax) | |
523 | + | let bI = valueOrElse(getInteger(this, (ax + p)), cO) | |
524 | + | let cP = valueOrElse(getInteger(this, (((ax + "_") + aC) + j)), 0) | |
525 | + | let cQ = valueOrElse(getInteger(this, (((ax + "_") + aC) + m)), 0) | |
526 | + | let cR = valueOrElse(getInteger(this, (((ax + "_") + aC) + k)), 0) | |
527 | + | let cS = valueOrElse(getInteger(this, (((ax + "_") + aC) + n)), cP) | |
528 | + | let cT = (cP + cR) | |
529 | + | let dk = cz(cu) | |
530 | + | let cV = dk._1 | |
531 | + | let cW = dk._2 | |
532 | + | let cX = getIntegerValue(this, r) | |
533 | 533 | if ((aw(ax) > height)) | |
534 | 534 | then throw("You can't lock shareTokens till first harvest end.") | |
535 | - | else if ((0 >= | |
535 | + | else if ((0 >= cu)) | |
536 | 536 | then throw("lockType must be > 0") | |
537 | - | else if (( | |
538 | - | then throw(("You can't lock more than " + toString( | |
539 | - | else if ((aE( | |
537 | + | else if ((dj > cP)) | |
538 | + | then throw(("You can't lock more than " + toString(cP))) | |
539 | + | else if ((aE(cN) > cO)) | |
540 | 540 | then throw("Balance of share-token is lower than totalAmount") | |
541 | - | else if (if (( | |
542 | - | then if (if ((1 > size( | |
541 | + | else if (if ((cQ == 0)) | |
542 | + | then if (if ((1 > size(cG.payments))) | |
543 | 543 | then true | |
544 | - | else ( | |
544 | + | else (cG.payments[0].assetId != unit)) | |
545 | 545 | then true | |
546 | - | else ( | |
546 | + | else (cX > cG.payments[0].amount) | |
547 | 547 | else false) | |
548 | - | then throw((("You need to pay additional waves comission " + toString( | |
549 | - | else if (if (( | |
550 | - | then (0 >= | |
548 | + | then throw((("You need to pay additional waves comission " + toString(cX)) + "WAVES")) | |
549 | + | else if (if ((cQ == 0)) | |
550 | + | then (0 >= dj) | |
551 | 551 | else false) | |
552 | 552 | then throw("lockAmount must be greater than 0") | |
553 | - | else if ((0 > | |
553 | + | else if ((0 > dj)) | |
554 | 554 | then throw("lockAmount must be positive") | |
555 | - | else if (( | |
555 | + | else if ((cQ > (height + cV))) | |
556 | 556 | then throw("You cannot lock sharetokens for a period less than what you have already locked") | |
557 | 557 | else { | |
558 | - | let | |
559 | - | let | |
560 | - | let | |
561 | - | let | |
562 | - | let | |
563 | - | let bc = | |
564 | - | let bd = | |
565 | - | let | |
566 | - | let | |
567 | - | let | |
568 | - | let | |
569 | - | [IntegerEntry((((ax + "_") + aC) + j), | |
558 | + | let db = (cR + dj) | |
559 | + | let dl = (cP - dj) | |
560 | + | let dc = (height + cV) | |
561 | + | let da = (fraction(db, cW, Y) + cP) | |
562 | + | let dm = bF(ax, aC) | |
563 | + | let bc = dm._1 | |
564 | + | let bd = dm._2 | |
565 | + | let cM = dm._3 | |
566 | + | let ch = dm._4 | |
567 | + | let dg = dm._5 | |
568 | + | let dh = (aR(ax, aC) + ch) | |
569 | + | [IntegerEntry((((ax + "_") + aC) + j), dl), IntegerEntry((((ax + "_") + aC) + k), db), IntegerEntry((((ax + "_") + aC) + m), dc), IntegerEntry((((ax + "_") + aC) + l), cu), IntegerEntry((((ax + "_") + aC) + n), da), IntegerEntry((ax + p), ((bI - cS) + da)), IntegerEntry((((ax + "_") + aC) + u), bc), IntegerEntry((((ax + "_") + aC) + w), bd), IntegerEntry((((ax + "_") + aC) + y), cM), IntegerEntry((ax + t), bc), IntegerEntry((ax + v), bd), IntegerEntry((ax + x), cM), IntegerEntry((ax + z), height), IntegerEntry((((ax + "_") + aC) + B), dh), Reissue(av, dg, true), ScriptTransfer(an, dg, av)] | |
570 | 570 | } | |
571 | 571 | }) | |
572 | 572 | ||
573 | 573 | ||
574 | 574 | ||
575 | - | @Callable( | |
576 | - | func unlockUserLock (ax,aC) = valueOrElse( | |
577 | - | let | |
578 | - | let | |
579 | - | let | |
580 | - | let | |
581 | - | let | |
582 | - | let | |
583 | - | if (( | |
584 | - | then throw(("You can't unlock sharetokens till " + toString( | |
575 | + | @Callable(cG) | |
576 | + | func unlockUserLock (ax,aC) = valueOrElse(cE(), { | |
577 | + | let cX = getIntegerValue(this, r) | |
578 | + | let cQ = valueOrErrorMessage(getInteger(this, (((ax + "_") + aC) + m)), (((("There is no pool " + ax) + " or user ") + aC) + "with lock")) | |
579 | + | let bI = getIntegerValue(this, (ax + p)) | |
580 | + | let cP = valueOrElse(getInteger(this, (((ax + "_") + aC) + j)), 0) | |
581 | + | let cR = valueOrElse(getInteger(this, (((ax + "_") + aC) + k)), 0) | |
582 | + | let cS = valueOrElse(getInteger(this, (((ax + "_") + aC) + n)), cP) | |
583 | + | if ((cQ > height)) | |
584 | + | then throw(("You can't unlock sharetokens till " + toString(cQ))) | |
585 | 585 | else { | |
586 | - | let | |
587 | - | let | |
588 | - | let bc = | |
589 | - | let bd = | |
590 | - | let | |
591 | - | let | |
592 | - | let | |
593 | - | let | |
594 | - | [IntegerEntry((((ax + "_") + aC) + u), bc), IntegerEntry((((ax + "_") + aC) + w), bd), IntegerEntry((((ax + "_") + aC) + y), | |
586 | + | let dl = (cP + cR) | |
587 | + | let dn = bF(ax, aC) | |
588 | + | let bc = dn._1 | |
589 | + | let bd = dn._2 | |
590 | + | let cM = dn._3 | |
591 | + | let ch = dn._4 | |
592 | + | let dg = dn._5 | |
593 | + | let dh = (aR(ax, aC) + ch) | |
594 | + | [IntegerEntry((((ax + "_") + aC) + u), bc), IntegerEntry((((ax + "_") + aC) + w), bd), IntegerEntry((((ax + "_") + aC) + y), cM), IntegerEntry((ax + t), bc), IntegerEntry((ax + v), bd), IntegerEntry((ax + x), cM), IntegerEntry((ax + z), height), IntegerEntry((((ax + "_") + aC) + j), dl), IntegerEntry((((ax + "_") + aC) + n), dl), IntegerEntry((ax + p), ((bI - cS) + dl)), DeleteEntry((((ax + "_") + aC) + k)), DeleteEntry((((ax + "_") + aC) + m)), DeleteEntry((((ax + "_") + aC) + l)), Reissue(av, dg, true), ScriptTransfer(an, dg, av), ScriptTransfer(cG.caller, cX, unit)] | |
595 | 595 | } | |
596 | 596 | }) | |
597 | 597 | ||
598 | 598 | ||
599 | 599 | ||
600 | - | @Callable( | |
601 | - | func withdrawShareTokens (ax, | |
602 | - | let | |
603 | - | let aC = toString( | |
604 | - | let | |
605 | - | let bc = | |
606 | - | let bd = | |
607 | - | let | |
608 | - | let | |
609 | - | let | |
610 | - | let | |
611 | - | let | |
612 | - | let | |
613 | - | let | |
614 | - | let | |
615 | - | let | |
616 | - | let | |
617 | - | let | |
618 | - | let | |
619 | - | let | |
620 | - | if (( | |
600 | + | @Callable(cG) | |
601 | + | func withdrawShareTokens (ax,do) = valueOrElse(cE(), { | |
602 | + | let dp = fromBase58String(getStringValue(value(addressFromString(ax)), "share_asset_id")) | |
603 | + | let aC = toString(cG.originCaller) | |
604 | + | let dq = bF(ax, aC) | |
605 | + | let bc = dq._1 | |
606 | + | let bd = dq._2 | |
607 | + | let cM = dq._3 | |
608 | + | let ch = dq._4 | |
609 | + | let dg = dq._5 | |
610 | + | let cP = valueOrElse(getInteger(this, (((ax + "_") + aC) + j)), 0) | |
611 | + | let cR = valueOrElse(getInteger(this, (((ax + "_") + aC) + k)), 0) | |
612 | + | let cS = valueOrElse(getInteger(this, (((ax + "_") + aC) + n)), cP) | |
613 | + | let dl = (cP - do) | |
614 | + | let dh = (aR(ax, aC) + ch) | |
615 | + | let dr = az(ax) | |
616 | + | let bI = valueOrElse(getInteger(this, (ax + p)), dr) | |
617 | + | let ds = (dr - do) | |
618 | + | let dt = (bI - do) | |
619 | + | let da = (cS - do) | |
620 | + | if ((do > cP)) | |
621 | 621 | then throw("Withdraw amount more then user locked amount") | |
622 | - | else if ((aE( | |
622 | + | else if ((aE(dp) > dr)) | |
623 | 623 | then throw("Balance of share-token is lower than totalAmount") | |
624 | 624 | else { | |
625 | - | let | |
626 | - | then invoke(am, "updateUserInterest", [ax, ( | |
625 | + | let di = if ((getString(Address(fromBase58String(ax)), "version") == "3.0.0")) | |
626 | + | then invoke(am, "updateUserInterest", [ax, (cP + cR)], nil) | |
627 | 627 | else 0 | |
628 | - | if (( | |
629 | - | then [IntegerEntry((((ax + "_") + aC) + u), bc), IntegerEntry((((ax + "_") + aC) + w), bd), IntegerEntry((((ax + "_") + aC) + y), | |
628 | + | if ((di == di)) | |
629 | + | then [IntegerEntry((((ax + "_") + aC) + u), bc), IntegerEntry((((ax + "_") + aC) + w), bd), IntegerEntry((((ax + "_") + aC) + y), cM), IntegerEntry((ax + t), bc), IntegerEntry((ax + v), bd), IntegerEntry((ax + x), cM), IntegerEntry((ax + z), height), IntegerEntry((((ax + "_") + aC) + j), dl), IntegerEntry((((ax + "_") + aC) + n), da), IntegerEntry((ax + o), ds), IntegerEntry((ax + p), dt), IntegerEntry((((ax + "_") + aC) + B), dh), Reissue(av, dg, true), ScriptTransfer(an, dg, av), ScriptTransfer(cG.caller, do, dp)] | |
630 | 630 | else throw("Strict value is not equal to itself.") | |
631 | 631 | } | |
632 | 632 | }) | |
633 | 633 | ||
634 | 634 | ||
635 | 635 | ||
636 | - | @Callable( | |
637 | - | func claim (ax) = valueOrElse( | |
638 | - | let | |
639 | - | let aC = toString( | |
636 | + | @Callable(cG) | |
637 | + | func claim (ax) = valueOrElse(cE(), { | |
638 | + | let dp = fromBase58String(getStringValue(value(addressFromString(ax)), "share_asset_id")) | |
639 | + | let aC = toString(cG.originCaller) | |
640 | 640 | let bo = az(ax) | |
641 | - | let | |
642 | - | let bc = | |
643 | - | let bd = | |
644 | - | let | |
645 | - | let | |
646 | - | let | |
647 | - | let | |
648 | - | if (( | |
641 | + | let du = bF(ax, aC) | |
642 | + | let bc = du._1 | |
643 | + | let bd = du._2 | |
644 | + | let cM = du._3 | |
645 | + | let ch = du._4 | |
646 | + | let dg = du._5 | |
647 | + | let cj = (aR(ax, aC) + ch) | |
648 | + | if ((cj == 0)) | |
649 | 649 | then throw("You have 0 available SWOP") | |
650 | - | else if ((aE( | |
650 | + | else if ((aE(dp) > bo)) | |
651 | 651 | then throw("Balance of share-token is lower than totalAmount") | |
652 | 652 | else { | |
653 | - | let | |
654 | - | then [ScriptTransfer( | |
653 | + | let dv = if ((cG.caller != this)) | |
654 | + | then [ScriptTransfer(cG.caller, cj, av)] | |
655 | 655 | else nil | |
656 | - | $Tuple2(([IntegerEntry((((ax + "_") + aC) + u), bc), IntegerEntry((((ax + "_") + aC) + w), bd), IntegerEntry((((ax + "_") + aC) + y), | |
656 | + | $Tuple2(([IntegerEntry((((ax + "_") + aC) + u), bc), IntegerEntry((((ax + "_") + aC) + w), bd), IntegerEntry((((ax + "_") + aC) + y), cM), IntegerEntry((ax + t), bc), IntegerEntry((ax + v), bd), IntegerEntry((ax + x), cM), IntegerEntry((ax + z), height), IntegerEntry((((ax + "_") + aC) + B), 0), Reissue(av, (dg + cj), true), ScriptTransfer(an, dg, av)] ++ dv), cj) | |
657 | 657 | } | |
658 | 658 | }) | |
659 | 659 | ||
660 | 660 | ||
661 | 661 | ||
662 | - | @Callable( | |
663 | - | func claimAndStake (ax) = valueOrElse( | |
664 | - | let | |
665 | - | let | |
666 | - | if ($isInstanceOf( | |
667 | - | then | |
668 | - | else throw(($getType( | |
662 | + | @Callable(cG) | |
663 | + | func claimAndStake (ax) = valueOrElse(cE(), { | |
664 | + | let ch = { | |
665 | + | let dw = invoke(this, "claim", [ax], nil) | |
666 | + | if ($isInstanceOf(dw, "Int")) | |
667 | + | then dw | |
668 | + | else throw(($getType(dw) + " couldn't be cast to Int")) | |
669 | 669 | } | |
670 | - | if (( | |
670 | + | if ((ch == ch)) | |
671 | 671 | then { | |
672 | - | let | |
673 | - | if (( | |
672 | + | let dx = invoke(ak, "lockSWOPFromFarming", nil, [AttachedPayment(av, ch)]) | |
673 | + | if ((dx == dx)) | |
674 | 674 | then nil | |
675 | 675 | else throw("Strict value is not equal to itself.") | |
676 | 676 | } | |
679 | 679 | ||
680 | 680 | ||
681 | 681 | ||
682 | - | @Callable( | |
683 | - | func claimAll ( | |
684 | - | func | |
685 | - | let | |
686 | - | let | |
687 | - | if ($isInstanceOf( | |
688 | - | then | |
689 | - | else throw(($getType( | |
682 | + | @Callable(cG) | |
683 | + | func claimAll (bX) = valueOrElse(cE(), { | |
684 | + | func dy (dz,ax) = { | |
685 | + | let ch = { | |
686 | + | let dw = invoke(this, "claim", [ax], nil) | |
687 | + | if ($isInstanceOf(dw, "Int")) | |
688 | + | then dw | |
689 | + | else throw(($getType(dw) + " couldn't be cast to Int")) | |
690 | 690 | } | |
691 | - | if (( | |
692 | - | then ( | |
691 | + | if ((ch == ch)) | |
692 | + | then (dz + ch) | |
693 | 693 | else throw("Strict value is not equal to itself.") | |
694 | 694 | } | |
695 | 695 | ||
696 | - | let | |
697 | - | let | |
698 | - | let | |
699 | - | let | |
700 | - | func | |
701 | - | then | |
702 | - | else | |
696 | + | let dz = { | |
697 | + | let ck = bX | |
698 | + | let cl = size(ck) | |
699 | + | let cm = 0 | |
700 | + | func cn (co,cp) = if ((cp >= cl)) | |
701 | + | then co | |
702 | + | else dy(co, ck[cp]) | |
703 | 703 | ||
704 | - | func | |
705 | - | then | |
704 | + | func cq (co,cp) = if ((cp >= cl)) | |
705 | + | then co | |
706 | 706 | else throw("List size exceeds 60") | |
707 | 707 | ||
708 | - | | |
708 | + | cq(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cm, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60) | |
709 | 709 | } | |
710 | - | if (( | |
710 | + | if ((dz == 0)) | |
711 | 711 | then throw("You have 0 available SWOP") | |
712 | - | else [ScriptTransfer( | |
712 | + | else [ScriptTransfer(cG.caller, dz, av)] | |
713 | 713 | }) | |
714 | 714 | ||
715 | 715 | ||
716 | 716 | ||
717 | - | @Callable( | |
718 | - | func claimAllAndStake ( | |
719 | - | func | |
720 | - | let | |
721 | - | let | |
722 | - | if ($isInstanceOf( | |
723 | - | then | |
724 | - | else throw(($getType( | |
717 | + | @Callable(cG) | |
718 | + | func claimAllAndStake (bX) = valueOrElse(cE(), { | |
719 | + | func dy (dz,ax) = { | |
720 | + | let ch = { | |
721 | + | let dw = invoke(this, "claim", [ax], nil) | |
722 | + | if ($isInstanceOf(dw, "Int")) | |
723 | + | then dw | |
724 | + | else throw(($getType(dw) + " couldn't be cast to Int")) | |
725 | 725 | } | |
726 | - | if (( | |
727 | - | then ( | |
726 | + | if ((ch == ch)) | |
727 | + | then (dz + ch) | |
728 | 728 | else throw("Strict value is not equal to itself.") | |
729 | 729 | } | |
730 | 730 | ||
731 | - | let | |
732 | - | let | |
733 | - | let | |
734 | - | let | |
735 | - | func | |
736 | - | then | |
737 | - | else | |
731 | + | let dz = { | |
732 | + | let ck = bX | |
733 | + | let cl = size(ck) | |
734 | + | let cm = 0 | |
735 | + | func cn (co,cp) = if ((cp >= cl)) | |
736 | + | then co | |
737 | + | else dy(co, ck[cp]) | |
738 | 738 | ||
739 | - | func | |
740 | - | then | |
739 | + | func cq (co,cp) = if ((cp >= cl)) | |
740 | + | then co | |
741 | 741 | else throw("List size exceeds 60") | |
742 | 742 | ||
743 | - | | |
743 | + | cq(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cm, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60) | |
744 | 744 | } | |
745 | - | if (( | |
745 | + | if ((dz == 0)) | |
746 | 746 | then throw("You have 0 available SWOP") | |
747 | 747 | else { | |
748 | - | let | |
749 | - | if (( | |
748 | + | let dx = invoke(ak, "lockSWOPFromFarming", nil, [AttachedPayment(av, dz)]) | |
749 | + | if ((dx == dx)) | |
750 | 750 | then nil | |
751 | 751 | else throw("Strict value is not equal to itself.") | |
752 | 752 | } | |
754 | 754 | ||
755 | 755 | ||
756 | 756 | ||
757 | - | @Callable( | |
758 | - | func updateUserBoostInterest (ax,aC) = valueOrElse( | |
757 | + | @Callable(cG) | |
758 | + | func updateUserBoostInterest (ax,aC) = valueOrElse(cE(), if ((cG.caller != aj)) | |
759 | 759 | then throw("Only voiting can call this function") | |
760 | 760 | else { | |
761 | - | let | |
762 | - | let bc = | |
763 | - | let bd = | |
764 | - | let | |
765 | - | let | |
766 | - | let | |
767 | - | let | |
768 | - | [IntegerEntry((((ax + "_") + aC) + u), bc), IntegerEntry((((ax + "_") + aC) + w), bd), IntegerEntry((((ax + "_") + aC) + y), | |
761 | + | let dA = bF(ax, aC) | |
762 | + | let bc = dA._1 | |
763 | + | let bd = dA._2 | |
764 | + | let cM = dA._3 | |
765 | + | let ch = dA._4 | |
766 | + | let dg = dA._5 | |
767 | + | let dh = (aR(ax, aC) + ch) | |
768 | + | [IntegerEntry((((ax + "_") + aC) + u), bc), IntegerEntry((((ax + "_") + aC) + w), bd), IntegerEntry((((ax + "_") + aC) + y), cM), IntegerEntry((ax + t), bc), IntegerEntry((ax + v), bd), IntegerEntry((ax + x), cM), IntegerEntry((ax + z), height), IntegerEntry((((ax + "_") + aC) + B), dh), Reissue(av, dg, true), ScriptTransfer(an, dg, av)] | |
769 | 769 | }) | |
770 | 770 | ||
771 | 771 | ||
772 | 772 | ||
773 | - | @Callable( | |
774 | - | func shutdown () = valueOrElse( | |
773 | + | @Callable(cG) | |
774 | + | func shutdown () = valueOrElse(cF(cG), if (!(as)) | |
775 | 775 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, c), "the cause wasn't specified"))) | |
776 | - | else | |
776 | + | else cC("Paused by admin")) | |
777 | 777 | ||
778 | 778 | ||
779 | 779 | ||
780 | - | @Callable( | |
781 | - | func activate () = valueOrElse( | |
780 | + | @Callable(cG) | |
781 | + | func activate () = valueOrElse(cF(cG), if (as) | |
782 | 782 | then throw("DApp is already active") | |
783 | 783 | else [BooleanEntry(a, true), DeleteEntry(c)]) | |
784 | 784 | ||
785 | 785 | ||
786 | - | @Verifier( | |
787 | - | func | |
788 | - | let ac = | |
789 | - | let | |
786 | + | @Verifier(dB) | |
787 | + | func dC () = { | |
788 | + | let ac = dB | |
789 | + | let dD = if (sigVerify(dB.bodyBytes, dB.proofs[0], af)) | |
790 | 790 | then 1 | |
791 | 791 | else 0 | |
792 | - | let | |
792 | + | let dE = if (sigVerify(dB.bodyBytes, dB.proofs[1], ag)) | |
793 | 793 | then 1 | |
794 | 794 | else 0 | |
795 | - | let | |
795 | + | let dF = if (sigVerify(dB.bodyBytes, dB.proofs[2], ah)) | |
796 | 796 | then 1 | |
797 | 797 | else 0 | |
798 | - | ((( | |
798 | + | (((dD + dE) + dF) >= 2) | |
799 | 799 | } | |
800 | 800 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "active" | |
5 | 5 | ||
6 | 6 | let b = "active_all_contracts" | |
7 | 7 | ||
8 | 8 | let c = "shutdown_cause" | |
9 | 9 | ||
10 | 10 | let d = "_current_pool_fraction_reward" | |
11 | 11 | ||
12 | 12 | let e = "_previous_pool_fraction_reward" | |
13 | 13 | ||
14 | 14 | let f = "_pool_reward_update_height" | |
15 | 15 | ||
16 | 16 | let g = "total_reward_per_block_current" | |
17 | 17 | ||
18 | 18 | let h = "total_reward_per_block_previous" | |
19 | 19 | ||
20 | 20 | let i = "reward_update_height" | |
21 | 21 | ||
22 | 22 | let j = "_share_tokens_locked" | |
23 | 23 | ||
24 | 24 | let k = "_share_tokens_blocked" | |
25 | 25 | ||
26 | 26 | let l = "_share_tokens_blocked_type" | |
27 | 27 | ||
28 | 28 | let m = "_share_tokens_blocked_height" | |
29 | 29 | ||
30 | 30 | let n = "_share_tokens_virtual" | |
31 | 31 | ||
32 | 32 | let o = "_total_share_tokens_locked" | |
33 | 33 | ||
34 | 34 | let p = "_total_share_tokens_virtual" | |
35 | 35 | ||
36 | 36 | let q = "_lock_params" | |
37 | 37 | ||
38 | 38 | let r = "lock_waves_fee" | |
39 | 39 | ||
40 | 40 | let s = "_boost_coef" | |
41 | 41 | ||
42 | 42 | let t = "_last_interest" | |
43 | 43 | ||
44 | 44 | let u = "_last_interest" | |
45 | 45 | ||
46 | 46 | let v = "_last_interest_b" | |
47 | 47 | ||
48 | 48 | let w = "_last_interest_u_b" | |
49 | 49 | ||
50 | 50 | let x = "_last_interest_lpb" | |
51 | 51 | ||
52 | 52 | let y = "_last_interest_u_lpb" | |
53 | 53 | ||
54 | 54 | let z = "_last_interest_height" | |
55 | 55 | ||
56 | 56 | let A = "SWOP_id" | |
57 | 57 | ||
58 | 58 | let B = "_available_SWOP" | |
59 | 59 | ||
60 | 60 | let C = "swop_year_emission" | |
61 | 61 | ||
62 | 62 | let D = "_harvest_pool_vote_gSWOP" | |
63 | 63 | ||
64 | 64 | let E = "_pool_vote_gSWOP" | |
65 | 65 | ||
66 | 66 | let F = "_user_vote_gSWOP" | |
67 | 67 | ||
68 | 68 | let G = "_harvest_user_pool_vote_gSWOP" | |
69 | 69 | ||
70 | 70 | let H = "base_period" | |
71 | 71 | ||
72 | 72 | let I = "period_length" | |
73 | 73 | ||
74 | 74 | let J = "start_height" | |
75 | 75 | ||
76 | 76 | let K = "first_harvest_height" | |
77 | 77 | ||
78 | 78 | let L = "share_limit_on_first_harvest" | |
79 | 79 | ||
80 | 80 | let M = "admin_pub_1" | |
81 | 81 | ||
82 | 82 | let N = "admin_pub_2" | |
83 | 83 | ||
84 | 84 | let O = "admin_pub_3" | |
85 | 85 | ||
86 | 86 | let P = "admin_invoke_pub" | |
87 | 87 | ||
88 | 88 | let Q = "money_box_address" | |
89 | 89 | ||
90 | 90 | let R = "voting_address" | |
91 | 91 | ||
92 | 92 | let S = "governance_address" | |
93 | 93 | ||
94 | 94 | let T = "lp_farming" | |
95 | 95 | ||
96 | 96 | let U = "farming_treasure" | |
97 | 97 | ||
98 | 98 | let V = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz') | |
99 | 99 | ||
100 | 100 | let W = 10000000000 | |
101 | 101 | ||
102 | 102 | let X = 100000000 | |
103 | 103 | ||
104 | 104 | let Y = 1000 | |
105 | 105 | ||
106 | 106 | let Z = 500 | |
107 | 107 | ||
108 | 108 | func aa (ab) = { | |
109 | 109 | let ac = getString(V, ab) | |
110 | 110 | if ($isInstanceOf(ac, "String")) | |
111 | 111 | then { | |
112 | 112 | let ad = ac | |
113 | 113 | fromBase58String(ad) | |
114 | 114 | } | |
115 | 115 | else { | |
116 | 116 | let ae = ac | |
117 | 117 | throw((ab + "is empty")) | |
118 | 118 | } | |
119 | 119 | } | |
120 | 120 | ||
121 | 121 | ||
122 | 122 | let af = aa(M) | |
123 | 123 | ||
124 | 124 | let ag = aa(N) | |
125 | 125 | ||
126 | 126 | let ah = aa(O) | |
127 | 127 | ||
128 | 128 | let ai = Address(aa(Q)) | |
129 | 129 | ||
130 | 130 | let aj = Address(aa(R)) | |
131 | 131 | ||
132 | 132 | let ak = Address(aa(S)) | |
133 | 133 | ||
134 | 134 | let al = aa(P) | |
135 | 135 | ||
136 | 136 | let am = Address(aa(T)) | |
137 | 137 | ||
138 | 138 | let an = Address(aa(U)) | |
139 | 139 | ||
140 | 140 | let ao = valueOrErrorMessage(getInteger(aj, H), "Empty kBasePeriod") | |
141 | 141 | ||
142 | 142 | let ap = valueOrErrorMessage(getInteger(aj, J), "Empty kStartHeight") | |
143 | 143 | ||
144 | 144 | let aq = valueOrErrorMessage(getInteger(aj, I), "Empty kPeriodLength") | |
145 | 145 | ||
146 | 146 | let ar = (ao + ((height - ap) / aq)) | |
147 | 147 | ||
148 | 148 | let as = getBooleanValue(this, a) | |
149 | 149 | ||
150 | 150 | let at = valueOrElse(getBoolean(V, b), true) | |
151 | 151 | ||
152 | 152 | let au = getIntegerValue(this, C) | |
153 | 153 | ||
154 | 154 | let av = fromBase58String(getStringValue(this, A)) | |
155 | 155 | ||
156 | 156 | func aw (ax) = valueOrElse(getInteger(Address(fromBase58String(ax)), K), 0) | |
157 | 157 | ||
158 | 158 | ||
159 | 159 | func ay (ax) = valueOrErrorMessage(getInteger(ax, L), ("No data on the key: " + L)) | |
160 | 160 | ||
161 | 161 | ||
162 | 162 | func az (ax) = valueOrErrorMessage(getInteger(this, (ax + o)), (("No data on the key: " + ax) + o)) | |
163 | 163 | ||
164 | 164 | ||
165 | 165 | func aA (ax) = valueOrElse(getInteger(aj, (ax + E)), 0) | |
166 | 166 | ||
167 | 167 | ||
168 | 168 | func aB (ax,aC) = valueOrElse(getInteger(aj, (((aC + "_") + ax) + F)), 0) | |
169 | 169 | ||
170 | 170 | ||
171 | 171 | func aD (ax) = fromBase58String(getStringValue(value(addressFromString(ax)), "share_asset_id")) | |
172 | 172 | ||
173 | 173 | ||
174 | 174 | func aE (aF) = { | |
175 | 175 | let ac = aF | |
176 | 176 | if ($isInstanceOf(ac, "ByteVector")) | |
177 | 177 | then { | |
178 | 178 | let aG = ac | |
179 | 179 | assetBalance(this, aG) | |
180 | 180 | } | |
181 | 181 | else if ($isInstanceOf(ac, "Unit")) | |
182 | 182 | then { | |
183 | 183 | let aH = ac | |
184 | 184 | wavesBalance(this).available | |
185 | 185 | } | |
186 | 186 | else throw("Match error") | |
187 | 187 | } | |
188 | 188 | ||
189 | 189 | ||
190 | 190 | func aI (aF) = { | |
191 | 191 | let ac = aF | |
192 | 192 | if ($isInstanceOf(ac, "ByteVector")) | |
193 | 193 | then { | |
194 | 194 | let aG = ac | |
195 | 195 | let aJ = toBase58String(aG) | |
196 | 196 | let aK = valueOrErrorMessage(assetInfo(aG), (("Asset " + aJ) + " doesn't exist")) | |
197 | 197 | $Tuple3(aJ, aK.name, aK.decimals) | |
198 | 198 | } | |
199 | 199 | else if ($isInstanceOf(ac, "Unit")) | |
200 | 200 | then { | |
201 | 201 | let aH = ac | |
202 | 202 | $Tuple3("WAVES", "WAVES", 8) | |
203 | 203 | } | |
204 | 204 | else throw("Match error") | |
205 | 205 | } | |
206 | 206 | ||
207 | 207 | ||
208 | 208 | func aL (aM,aN) = { | |
209 | 209 | let aO = value(assetInfo(aM)).decimals | |
210 | 210 | let aP = value(assetInfo(aN)).decimals | |
211 | 211 | let aQ = ((aP - aO) + 8) | |
212 | 212 | pow(10, 0, aQ, 0, 0, DOWN) | |
213 | 213 | } | |
214 | 214 | ||
215 | 215 | ||
216 | 216 | func aR (ax,aC) = valueOrElse(getInteger(this, (((ax + "_") + aC) + B)), 0) | |
217 | 217 | ||
218 | 218 | ||
219 | 219 | func aS (ax) = { | |
220 | 220 | let aT = valueOrErrorMessage(getInteger(ak, g), ((("No data on the key: " + g) + " at address ") + toString(ak))) | |
221 | 221 | let aU = valueOrErrorMessage(getInteger(ak, h), ((("No data on the key: " + h) + " at address ") + toString(ak))) | |
222 | 222 | let aV = valueOrErrorMessage(getInteger(ak, (ax + d)), (((("No data on the key: " + ax) + d) + " at address ") + toString(ak))) | |
223 | 223 | let aW = valueOrErrorMessage(getInteger(ak, i), ((("No data on the key: " + i) + " at address ") + toString(ak))) | |
224 | 224 | let aX = valueOrElse(getInteger(ak, (ax + f)), aW) | |
225 | 225 | let aY = valueOrErrorMessage(getInteger(ak, (ax + e)), (((("No data on the key: " + ax) + e) + " at address ") + toString(ak))) | |
226 | 226 | let aZ = fraction(aT, aV, W) | |
227 | 227 | let ba = fraction(aT, aY, W) | |
228 | 228 | if (if ((aZ > aT)) | |
229 | 229 | then true | |
230 | 230 | else (ba > aU)) | |
231 | 231 | then throw("rewardPoolCurrent > totalRewardPerBlockCurrent or rewardPoolPrevious > totalRewardPerBlockPrevious") | |
232 | 232 | else $Tuple4(aZ, aW, ba, aX) | |
233 | 233 | } | |
234 | 234 | ||
235 | 235 | ||
236 | 236 | func bb (ax) = { | |
237 | 237 | let bc = valueOrErrorMessage(getInteger(this, (ax + t)), (("No data on the key: " + ax) + t)) | |
238 | 238 | let bd = valueOrErrorMessage(getInteger(this, (ax + v)), (("No data on the key: " + ax) + v)) | |
239 | 239 | let be = valueOrErrorMessage(getInteger(this, (ax + x)), (("No data on the key: " + ax) + x)) | |
240 | 240 | let bf = valueOrElse(getInteger(this, (ax + z)), height) | |
241 | 241 | $Tuple4(bf, bc, bd, be) | |
242 | 242 | } | |
243 | 243 | ||
244 | 244 | ||
245 | 245 | func bg (ax,bh) = { | |
246 | 246 | let bi = valueOrElse(getInteger(this, (ax + s)), Z) | |
247 | 247 | fraction(bh, Y, (bi + Y)) | |
248 | 248 | } | |
249 | 249 | ||
250 | 250 | ||
251 | 251 | func bj (ax,bh) = { | |
252 | 252 | let bi = valueOrElse(getInteger(this, (ax + s)), Z) | |
253 | 253 | fraction(bh, bi, (bi + Y)) | |
254 | 254 | } | |
255 | 255 | ||
256 | 256 | ||
257 | 257 | func bk (ax,bf,aW,aX,bc,bd,bl,bm,bn,bo,bp,bq) = if ((bo == 0)) | |
258 | 258 | then $Tuple3(0, 0, 0) | |
259 | 259 | else { | |
260 | 260 | let br = if (if (if ((aW > height)) | |
261 | 261 | then (aW == aX) | |
262 | 262 | else false) | |
263 | 263 | then true | |
264 | 264 | else if ((height > aW)) | |
265 | 265 | then (aW != aX) | |
266 | 266 | else false) | |
267 | 267 | then { | |
268 | 268 | let bs = (bp * (height - bf)) | |
269 | 269 | $Tuple4(bs, bc, bd, bm) | |
270 | 270 | } | |
271 | 271 | else if (if (if ((height > aW)) | |
272 | 272 | then (aW == aX) | |
273 | 273 | else false) | |
274 | 274 | then (bf > aW) | |
275 | 275 | else false) | |
276 | 276 | then { | |
277 | 277 | let bs = (bn * (height - bf)) | |
278 | 278 | $Tuple4(bs, bc, bd, bm) | |
279 | 279 | } | |
280 | 280 | else { | |
281 | 281 | let bt = (bp * (aW - bf)) | |
282 | 282 | let bu = (bc + fraction(bg(ax, bt), bq, bo)) | |
283 | 283 | let bv = (bd + (if ((bl > 0)) | |
284 | - | then fraction(bj(ax, bt), | |
284 | + | then fraction(bj(ax, bt), X, bl) | |
285 | 285 | else 0)) | |
286 | 286 | let bw = (bm + (if (if ((bl > 0)) | |
287 | 287 | then (bo > 0) | |
288 | 288 | else false) | |
289 | - | then fraction(bj(ax, bt), | |
289 | + | then fraction(fraction(bj(ax, bt), X, bo), X, bl) | |
290 | 290 | else 0)) | |
291 | - | let | |
292 | - | $Tuple4( | |
291 | + | let bx = (bn * (height - aW)) | |
292 | + | $Tuple4(bx, bu, bv, bw) | |
293 | 293 | } | |
294 | - | let | |
295 | - | let | |
296 | - | let | |
297 | - | let | |
298 | - | let | |
299 | - | let | |
300 | - | then fraction(bj(ax, | |
294 | + | let by = br._1 | |
295 | + | let bz = br._2 | |
296 | + | let bA = br._3 | |
297 | + | let bB = br._4 | |
298 | + | let bC = (bz + fraction(bg(ax, by), bq, bo)) | |
299 | + | let bD = (bA + (if ((bl > 0)) | |
300 | + | then fraction(bj(ax, by), X, bl) | |
301 | 301 | else 0)) | |
302 | - | let | |
302 | + | let bE = (bB + (if (if ((bl > 0)) | |
303 | 303 | then (bo > 0) | |
304 | 304 | else false) | |
305 | - | then fraction(fraction(bj(ax, | |
305 | + | then fraction(fraction(bj(ax, by), X, bo), X, bl) | |
306 | 306 | else 0)) | |
307 | - | $Tuple3( | |
307 | + | $Tuple3(bC, bD, bE) | |
308 | 308 | } | |
309 | 309 | ||
310 | 310 | ||
311 | - | func | |
311 | + | func bF (ax,aC) = { | |
312 | 312 | let bq = aL(av, aD(ax)) | |
313 | 313 | let bl = aA(ax) | |
314 | - | let | |
315 | - | let | |
316 | - | let | |
317 | - | let | |
318 | - | let bf = | |
319 | - | let bc = | |
320 | - | let bd = | |
321 | - | let be = | |
322 | - | let | |
323 | - | let bn = | |
324 | - | let aW = | |
325 | - | let bp = | |
326 | - | let aX = | |
327 | - | let | |
328 | - | let | |
329 | - | let | |
330 | - | let | |
331 | - | let | |
332 | - | let | |
333 | - | let | |
334 | - | let | |
335 | - | let | |
336 | - | let | |
337 | - | let | |
338 | - | let | |
339 | - | let | |
340 | - | let | |
341 | - | if ((0 > | |
314 | + | let bG = aB(ax, aC) | |
315 | + | let bH = az(ax) | |
316 | + | let bI = valueOrElse(getInteger(this, (ax + p)), bH) | |
317 | + | let bJ = bb(ax) | |
318 | + | let bf = bJ._1 | |
319 | + | let bc = bJ._2 | |
320 | + | let bd = bJ._3 | |
321 | + | let be = bJ._4 | |
322 | + | let bK = aS(ax) | |
323 | + | let bn = bK._1 | |
324 | + | let aW = bK._2 | |
325 | + | let bp = bK._3 | |
326 | + | let aX = bK._4 | |
327 | + | let bL = valueOrElse(getInteger(this, (((ax + "_") + aC) + u)), bc) | |
328 | + | let bM = valueOrElse(getInteger(this, (((ax + "_") + aC) + w)), bd) | |
329 | + | let bN = valueOrElse(getInteger(this, (((ax + "_") + aC) + y)), be) | |
330 | + | let bO = valueOrElse(getInteger(this, (((ax + "_") + aC) + j)), 0) | |
331 | + | let bP = valueOrElse(getInteger(this, (((ax + "_") + aC) + n)), bO) | |
332 | + | let bQ = bk(ax, bf, aW, aX, bc, bd, bl, be, bn, bI, bp, bq) | |
333 | + | let bC = bQ._1 | |
334 | + | let bD = bQ._2 | |
335 | + | let bE = bQ._3 | |
336 | + | let bR = fraction(bP, (bC - bL), bq) | |
337 | + | let bS = fraction(bG, (bD - bM), X) | |
338 | + | let bT = fraction(toBigInt(bP), toBigInt(bG), toBigInt(1)) | |
339 | + | let bU = toInt(fraction(fraction(bT, toBigInt((bE - bN)), toBigInt(X)), toBigInt(1), toBigInt(X))) | |
340 | + | let bV = (bS - bU) | |
341 | + | if ((0 > bV)) | |
342 | 342 | then throw("toTreasury < 0") | |
343 | - | else $Tuple5( | |
343 | + | else $Tuple5(bC, bD, bE, (bR + bU), bV) | |
344 | 344 | } | |
345 | 345 | ||
346 | 346 | ||
347 | - | func | |
348 | - | func | |
349 | - | let | |
350 | - | let | |
351 | - | let | |
352 | - | let | |
353 | - | let | |
354 | - | let | |
355 | - | let | |
356 | - | let | |
357 | - | let | |
358 | - | let | |
359 | - | $Tuple2(( | |
347 | + | func bW (bX,aC) = { | |
348 | + | func bY (bZ,ax) = { | |
349 | + | let ca = bZ | |
350 | + | let cb = ca._1 | |
351 | + | let cc = ca._2 | |
352 | + | let cd = bF(ax, aC) | |
353 | + | let ce = cd._1 | |
354 | + | let cf = cd._2 | |
355 | + | let cg = cd._3 | |
356 | + | let ch = cd._4 | |
357 | + | let ci = cd._5 | |
358 | + | let cj = (aR(ax, aC) + ch) | |
359 | + | $Tuple2((cb :+ aC), (cc :+ cj)) | |
360 | 360 | } | |
361 | 361 | ||
362 | - | let | |
363 | - | let | |
364 | - | let | |
365 | - | func | |
366 | - | then | |
367 | - | else | |
362 | + | let ck = bX | |
363 | + | let cl = size(ck) | |
364 | + | let cm = $Tuple2(nil, nil) | |
365 | + | func cn (co,cp) = if ((cp >= cl)) | |
366 | + | then co | |
367 | + | else bY(co, ck[cp]) | |
368 | 368 | ||
369 | - | func | |
370 | - | then | |
369 | + | func cq (co,cp) = if ((cp >= cl)) | |
370 | + | then co | |
371 | 371 | else throw("List size exceeds 60") | |
372 | 372 | ||
373 | - | | |
373 | + | cq(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cm, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60) | |
374 | 374 | } | |
375 | 375 | ||
376 | 376 | ||
377 | - | func | |
377 | + | func cr (ax,aC,cs,ct,cu) = if ((aw(ax) > height)) | |
378 | 378 | then { | |
379 | - | let | |
380 | - | let | |
381 | - | let | |
382 | - | let | |
383 | - | if (( | |
379 | + | let cv = valueOrElse(getInteger(aj, (ax + D)), 0) | |
380 | + | let cw = valueOrElse(getInteger(aj, (((aC + "_") + ax) + D)), 0) | |
381 | + | let cx = ay(addressFromStringValue(ax)) | |
382 | + | let cy = (fraction(cx, cw, cv) - cs) | |
383 | + | if ((cu > 0)) | |
384 | 384 | then throw("You can't lock shareTokens till first harvest end.") | |
385 | - | else if (( | |
385 | + | else if ((cw == 0)) | |
386 | 386 | then 0 | |
387 | - | else if (( | |
388 | - | then ( | |
387 | + | else if ((ct >= cy)) | |
388 | + | then (ct - cy) | |
389 | 389 | else 0 | |
390 | 390 | } | |
391 | 391 | else 0 | |
392 | 392 | ||
393 | 393 | ||
394 | - | func | |
395 | - | let | |
396 | - | $Tuple2(parseIntValue( | |
394 | + | func cz (cA) = { | |
395 | + | let cB = split(valueOrErrorMessage(getString(this, (toString(cA) + q)), ("There are no key for lock type" + toString(cA))), "_") | |
396 | + | $Tuple2(parseIntValue(cB[0]), parseIntValue(cB[1])) | |
397 | 397 | } | |
398 | 398 | ||
399 | 399 | ||
400 | - | func | |
400 | + | func cC (cD) = [BooleanEntry(a, false), StringEntry(c, cD)] | |
401 | 401 | ||
402 | 402 | ||
403 | - | func | |
403 | + | func cE () = if (if (as) | |
404 | 404 | then at | |
405 | 405 | else false) | |
406 | 406 | then unit | |
407 | 407 | else throw("DApp is inactive at this moment") | |
408 | 408 | ||
409 | 409 | ||
410 | - | func | |
410 | + | func cF (cG) = if (containsElement([af, ag, ah], cG.callerPublicKey)) | |
411 | 411 | then unit | |
412 | 412 | else throw("Only admin can call this function") | |
413 | 413 | ||
414 | 414 | ||
415 | - | @Callable( | |
416 | - | func init ( | |
415 | + | @Callable(cG) | |
416 | + | func init (cH) = if (isDefined(getString(this, A))) | |
417 | 417 | then throw("SWOP already initialized") | |
418 | 418 | else { | |
419 | - | let | |
420 | - | let | |
421 | - | let | |
422 | - | [BooleanEntry(a, true), Issue("SWOP", "SWOP protocol token", | |
419 | + | let cI = 100000000000000 | |
420 | + | let cJ = Issue("SWOP", "SWOP protocol token", cI, 8, true) | |
421 | + | let cK = calculateAssetId(cJ) | |
422 | + | [BooleanEntry(a, true), Issue("SWOP", "SWOP protocol token", cI, 8, true), StringEntry(A, toBase58String(cK))] | |
423 | 423 | } | |
424 | 424 | ||
425 | 425 | ||
426 | 426 | ||
427 | - | @Callable( | |
428 | - | func initPoolShareFarming (ax) = valueOrElse( | |
427 | + | @Callable(cG) | |
428 | + | func initPoolShareFarming (ax) = valueOrElse(cF(cG), [IntegerEntry((ax + o), 0), IntegerEntry((ax + t), 0), IntegerEntry((ax + v), 0), IntegerEntry((ax + x), 0), IntegerEntry((ax + z), height)]) | |
429 | 429 | ||
430 | 430 | ||
431 | 431 | ||
432 | - | @Callable( | |
433 | - | func updatePoolInterest (ax) = valueOrElse( | |
432 | + | @Callable(cG) | |
433 | + | func updatePoolInterest (ax) = valueOrElse(cE(), if ((cG.caller != ak)) | |
434 | 434 | then throw("Only Governance can call this function") | |
435 | 435 | else { | |
436 | 436 | let aC = toString(addressFromPublicKey(al)) | |
437 | - | let | |
438 | - | let bc = | |
439 | - | let bd = | |
440 | - | let | |
441 | - | [IntegerEntry((ax + t), bc), IntegerEntry((ax + v), bd), IntegerEntry((ax + x), | |
437 | + | let cL = bF(ax, aC) | |
438 | + | let bc = cL._1 | |
439 | + | let bd = cL._2 | |
440 | + | let cM = cL._3 | |
441 | + | [IntegerEntry((ax + t), bc), IntegerEntry((ax + v), bd), IntegerEntry((ax + x), cM), IntegerEntry((ax + z), height)] | |
442 | 442 | }) | |
443 | 443 | ||
444 | 444 | ||
445 | 445 | ||
446 | - | @Callable( | |
447 | - | func lockShareTokens (ax, | |
448 | - | let | |
449 | - | let aC = toString( | |
450 | - | let | |
451 | - | let | |
452 | - | let | |
453 | - | let | |
454 | - | let | |
455 | - | let | |
456 | - | let | |
457 | - | let | |
458 | - | let | |
459 | - | let | |
460 | - | let | |
461 | - | if (( | |
446 | + | @Callable(cG) | |
447 | + | func lockShareTokens (ax,cu) = valueOrElse(cE(), { | |
448 | + | let cN = aD(ax) | |
449 | + | let aC = toString(cG.originCaller) | |
450 | + | let cO = az(ax) | |
451 | + | let bI = valueOrElse(getInteger(this, (ax + p)), cO) | |
452 | + | let cP = valueOrElse(getInteger(this, (((ax + "_") + aC) + j)), 0) | |
453 | + | let cQ = valueOrElse(getInteger(this, (((ax + "_") + aC) + m)), 0) | |
454 | + | let cR = valueOrElse(getInteger(this, (((ax + "_") + aC) + k)), 0) | |
455 | + | let cS = valueOrElse(getInteger(this, (((ax + "_") + aC) + n)), cP) | |
456 | + | let cT = ((cP + cR) + cG.payments[0].amount) | |
457 | + | let cU = cz(cu) | |
458 | + | let cV = cU._1 | |
459 | + | let cW = cU._2 | |
460 | + | let cX = getIntegerValue(this, r) | |
461 | + | if ((cG.payments[0].assetId != cN)) | |
462 | 462 | then throw("Wrong sharetoken in payment") | |
463 | - | else if ((0 >= | |
463 | + | else if ((0 >= cG.payments[0].amount)) | |
464 | 464 | then throw("Payment amount must be greater than 0") | |
465 | - | else if ((0 > | |
465 | + | else if ((0 > cu)) | |
466 | 466 | then throw("lockType must be >= 0") | |
467 | 467 | else { | |
468 | - | let | |
469 | - | if (( | |
468 | + | let cY = cr(ax, aC, cP, cG.payments[0].amount, cu) | |
469 | + | if ((cY == cY)) | |
470 | 470 | then { | |
471 | - | let | |
471 | + | let cZ = if ((cu == 0)) | |
472 | 472 | then { | |
473 | - | let | |
474 | - | $Tuple2([IntegerEntry((((ax + "_") + aC) + j), (( | |
473 | + | let da = ((cS + cG.payments[0].amount) - cY) | |
474 | + | $Tuple2([IntegerEntry((((ax + "_") + aC) + j), ((cP + cG.payments[0].amount) - cY)), IntegerEntry((ax + p), ((bI + cG.payments[0].amount) - cY)), ScriptTransfer(cG.originCaller, cY, cG.payments[0].assetId)], ((cO + cG.payments[0].amount) - cY)) | |
475 | 475 | } | |
476 | - | else if (if (( | |
477 | - | then if (if ((2 > size( | |
476 | + | else if (if ((cQ == 0)) | |
477 | + | then if (if ((2 > size(cG.payments))) | |
478 | 478 | then true | |
479 | - | else ( | |
479 | + | else (cG.payments[1].assetId != unit)) | |
480 | 480 | then true | |
481 | - | else ( | |
481 | + | else (cX > cG.payments[1].amount) | |
482 | 482 | else false) | |
483 | - | then throw((("You need to pay additional waves comission " + toString( | |
484 | - | else if (( | |
483 | + | then throw((("You need to pay additional waves comission " + toString(cX)) + "WAVES")) | |
484 | + | else if ((cQ > (height + cV))) | |
485 | 485 | then throw("You cannot lock sharetokens for a period less than what you have already locked") | |
486 | 486 | else { | |
487 | - | let | |
488 | - | let | |
489 | - | let | |
490 | - | $Tuple2([IntegerEntry((((ax + "_") + aC) + k), | |
487 | + | let db = (cR + cG.payments[0].amount) | |
488 | + | let dc = (height + cV) | |
489 | + | let da = (fraction(db, cW, Y) + cP) | |
490 | + | $Tuple2([IntegerEntry((((ax + "_") + aC) + k), db), IntegerEntry((((ax + "_") + aC) + m), dc), IntegerEntry((((ax + "_") + aC) + l), cu), IntegerEntry((((ax + "_") + aC) + n), da), IntegerEntry((ax + p), ((bI - cS) + da))], (cO + cG.payments[0].amount)) | |
491 | 491 | } | |
492 | - | let | |
493 | - | let | |
494 | - | if ((aE( | |
492 | + | let dd = cZ._1 | |
493 | + | let de = cZ._2 | |
494 | + | if ((aE(cN) > de)) | |
495 | 495 | then throw("Balance of share-token is lower than totalAmount") | |
496 | 496 | else { | |
497 | - | let | |
498 | - | let bc = | |
499 | - | let bd = | |
500 | - | let | |
501 | - | let | |
502 | - | let | |
503 | - | let | |
504 | - | let | |
505 | - | then invoke(am, "updateUserInterest", [ax, | |
497 | + | let df = bF(ax, aC) | |
498 | + | let bc = df._1 | |
499 | + | let bd = df._2 | |
500 | + | let cM = df._3 | |
501 | + | let ch = df._4 | |
502 | + | let dg = df._5 | |
503 | + | let dh = (aR(ax, aC) + ch) | |
504 | + | let di = if ((getString(Address(fromBase58String(ax)), "version") == "3.0.0")) | |
505 | + | then invoke(am, "updateUserInterest", [ax, cT], nil) | |
506 | 506 | else 0 | |
507 | - | if (( | |
508 | - | then ([IntegerEntry((((ax + "_") + aC) + u), bc), IntegerEntry((((ax + "_") + aC) + w), bd), IntegerEntry((((ax + "_") + aC) + y), | |
507 | + | if ((di == di)) | |
508 | + | then ([IntegerEntry((((ax + "_") + aC) + u), bc), IntegerEntry((((ax + "_") + aC) + w), bd), IntegerEntry((((ax + "_") + aC) + y), cM), IntegerEntry((ax + t), bc), IntegerEntry((ax + v), bd), IntegerEntry((ax + x), cM), IntegerEntry((ax + z), height), IntegerEntry((ax + o), de), IntegerEntry((((ax + "_") + aC) + B), dh), Reissue(av, dg, true), ScriptTransfer(an, dg, av)] ++ dd) | |
509 | 509 | else throw("Strict value is not equal to itself.") | |
510 | 510 | } | |
511 | 511 | } | |
512 | 512 | else throw("Strict value is not equal to itself.") | |
513 | 513 | } | |
514 | 514 | }) | |
515 | 515 | ||
516 | 516 | ||
517 | 517 | ||
518 | - | @Callable( | |
519 | - | func lockStakedShareTokens (ax, | |
520 | - | let | |
521 | - | let aC = toString( | |
522 | - | let | |
523 | - | let | |
524 | - | let | |
525 | - | let | |
526 | - | let | |
527 | - | let | |
528 | - | let | |
529 | - | let | |
530 | - | let | |
531 | - | let | |
532 | - | let | |
518 | + | @Callable(cG) | |
519 | + | func lockStakedShareTokens (ax,cu,dj) = valueOrElse(cE(), { | |
520 | + | let cN = aD(ax) | |
521 | + | let aC = toString(cG.originCaller) | |
522 | + | let cO = az(ax) | |
523 | + | let bI = valueOrElse(getInteger(this, (ax + p)), cO) | |
524 | + | let cP = valueOrElse(getInteger(this, (((ax + "_") + aC) + j)), 0) | |
525 | + | let cQ = valueOrElse(getInteger(this, (((ax + "_") + aC) + m)), 0) | |
526 | + | let cR = valueOrElse(getInteger(this, (((ax + "_") + aC) + k)), 0) | |
527 | + | let cS = valueOrElse(getInteger(this, (((ax + "_") + aC) + n)), cP) | |
528 | + | let cT = (cP + cR) | |
529 | + | let dk = cz(cu) | |
530 | + | let cV = dk._1 | |
531 | + | let cW = dk._2 | |
532 | + | let cX = getIntegerValue(this, r) | |
533 | 533 | if ((aw(ax) > height)) | |
534 | 534 | then throw("You can't lock shareTokens till first harvest end.") | |
535 | - | else if ((0 >= | |
535 | + | else if ((0 >= cu)) | |
536 | 536 | then throw("lockType must be > 0") | |
537 | - | else if (( | |
538 | - | then throw(("You can't lock more than " + toString( | |
539 | - | else if ((aE( | |
537 | + | else if ((dj > cP)) | |
538 | + | then throw(("You can't lock more than " + toString(cP))) | |
539 | + | else if ((aE(cN) > cO)) | |
540 | 540 | then throw("Balance of share-token is lower than totalAmount") | |
541 | - | else if (if (( | |
542 | - | then if (if ((1 > size( | |
541 | + | else if (if ((cQ == 0)) | |
542 | + | then if (if ((1 > size(cG.payments))) | |
543 | 543 | then true | |
544 | - | else ( | |
544 | + | else (cG.payments[0].assetId != unit)) | |
545 | 545 | then true | |
546 | - | else ( | |
546 | + | else (cX > cG.payments[0].amount) | |
547 | 547 | else false) | |
548 | - | then throw((("You need to pay additional waves comission " + toString( | |
549 | - | else if (if (( | |
550 | - | then (0 >= | |
548 | + | then throw((("You need to pay additional waves comission " + toString(cX)) + "WAVES")) | |
549 | + | else if (if ((cQ == 0)) | |
550 | + | then (0 >= dj) | |
551 | 551 | else false) | |
552 | 552 | then throw("lockAmount must be greater than 0") | |
553 | - | else if ((0 > | |
553 | + | else if ((0 > dj)) | |
554 | 554 | then throw("lockAmount must be positive") | |
555 | - | else if (( | |
555 | + | else if ((cQ > (height + cV))) | |
556 | 556 | then throw("You cannot lock sharetokens for a period less than what you have already locked") | |
557 | 557 | else { | |
558 | - | let | |
559 | - | let | |
560 | - | let | |
561 | - | let | |
562 | - | let | |
563 | - | let bc = | |
564 | - | let bd = | |
565 | - | let | |
566 | - | let | |
567 | - | let | |
568 | - | let | |
569 | - | [IntegerEntry((((ax + "_") + aC) + j), | |
558 | + | let db = (cR + dj) | |
559 | + | let dl = (cP - dj) | |
560 | + | let dc = (height + cV) | |
561 | + | let da = (fraction(db, cW, Y) + cP) | |
562 | + | let dm = bF(ax, aC) | |
563 | + | let bc = dm._1 | |
564 | + | let bd = dm._2 | |
565 | + | let cM = dm._3 | |
566 | + | let ch = dm._4 | |
567 | + | let dg = dm._5 | |
568 | + | let dh = (aR(ax, aC) + ch) | |
569 | + | [IntegerEntry((((ax + "_") + aC) + j), dl), IntegerEntry((((ax + "_") + aC) + k), db), IntegerEntry((((ax + "_") + aC) + m), dc), IntegerEntry((((ax + "_") + aC) + l), cu), IntegerEntry((((ax + "_") + aC) + n), da), IntegerEntry((ax + p), ((bI - cS) + da)), IntegerEntry((((ax + "_") + aC) + u), bc), IntegerEntry((((ax + "_") + aC) + w), bd), IntegerEntry((((ax + "_") + aC) + y), cM), IntegerEntry((ax + t), bc), IntegerEntry((ax + v), bd), IntegerEntry((ax + x), cM), IntegerEntry((ax + z), height), IntegerEntry((((ax + "_") + aC) + B), dh), Reissue(av, dg, true), ScriptTransfer(an, dg, av)] | |
570 | 570 | } | |
571 | 571 | }) | |
572 | 572 | ||
573 | 573 | ||
574 | 574 | ||
575 | - | @Callable( | |
576 | - | func unlockUserLock (ax,aC) = valueOrElse( | |
577 | - | let | |
578 | - | let | |
579 | - | let | |
580 | - | let | |
581 | - | let | |
582 | - | let | |
583 | - | if (( | |
584 | - | then throw(("You can't unlock sharetokens till " + toString( | |
575 | + | @Callable(cG) | |
576 | + | func unlockUserLock (ax,aC) = valueOrElse(cE(), { | |
577 | + | let cX = getIntegerValue(this, r) | |
578 | + | let cQ = valueOrErrorMessage(getInteger(this, (((ax + "_") + aC) + m)), (((("There is no pool " + ax) + " or user ") + aC) + "with lock")) | |
579 | + | let bI = getIntegerValue(this, (ax + p)) | |
580 | + | let cP = valueOrElse(getInteger(this, (((ax + "_") + aC) + j)), 0) | |
581 | + | let cR = valueOrElse(getInteger(this, (((ax + "_") + aC) + k)), 0) | |
582 | + | let cS = valueOrElse(getInteger(this, (((ax + "_") + aC) + n)), cP) | |
583 | + | if ((cQ > height)) | |
584 | + | then throw(("You can't unlock sharetokens till " + toString(cQ))) | |
585 | 585 | else { | |
586 | - | let | |
587 | - | let | |
588 | - | let bc = | |
589 | - | let bd = | |
590 | - | let | |
591 | - | let | |
592 | - | let | |
593 | - | let | |
594 | - | [IntegerEntry((((ax + "_") + aC) + u), bc), IntegerEntry((((ax + "_") + aC) + w), bd), IntegerEntry((((ax + "_") + aC) + y), | |
586 | + | let dl = (cP + cR) | |
587 | + | let dn = bF(ax, aC) | |
588 | + | let bc = dn._1 | |
589 | + | let bd = dn._2 | |
590 | + | let cM = dn._3 | |
591 | + | let ch = dn._4 | |
592 | + | let dg = dn._5 | |
593 | + | let dh = (aR(ax, aC) + ch) | |
594 | + | [IntegerEntry((((ax + "_") + aC) + u), bc), IntegerEntry((((ax + "_") + aC) + w), bd), IntegerEntry((((ax + "_") + aC) + y), cM), IntegerEntry((ax + t), bc), IntegerEntry((ax + v), bd), IntegerEntry((ax + x), cM), IntegerEntry((ax + z), height), IntegerEntry((((ax + "_") + aC) + j), dl), IntegerEntry((((ax + "_") + aC) + n), dl), IntegerEntry((ax + p), ((bI - cS) + dl)), DeleteEntry((((ax + "_") + aC) + k)), DeleteEntry((((ax + "_") + aC) + m)), DeleteEntry((((ax + "_") + aC) + l)), Reissue(av, dg, true), ScriptTransfer(an, dg, av), ScriptTransfer(cG.caller, cX, unit)] | |
595 | 595 | } | |
596 | 596 | }) | |
597 | 597 | ||
598 | 598 | ||
599 | 599 | ||
600 | - | @Callable( | |
601 | - | func withdrawShareTokens (ax, | |
602 | - | let | |
603 | - | let aC = toString( | |
604 | - | let | |
605 | - | let bc = | |
606 | - | let bd = | |
607 | - | let | |
608 | - | let | |
609 | - | let | |
610 | - | let | |
611 | - | let | |
612 | - | let | |
613 | - | let | |
614 | - | let | |
615 | - | let | |
616 | - | let | |
617 | - | let | |
618 | - | let | |
619 | - | let | |
620 | - | if (( | |
600 | + | @Callable(cG) | |
601 | + | func withdrawShareTokens (ax,do) = valueOrElse(cE(), { | |
602 | + | let dp = fromBase58String(getStringValue(value(addressFromString(ax)), "share_asset_id")) | |
603 | + | let aC = toString(cG.originCaller) | |
604 | + | let dq = bF(ax, aC) | |
605 | + | let bc = dq._1 | |
606 | + | let bd = dq._2 | |
607 | + | let cM = dq._3 | |
608 | + | let ch = dq._4 | |
609 | + | let dg = dq._5 | |
610 | + | let cP = valueOrElse(getInteger(this, (((ax + "_") + aC) + j)), 0) | |
611 | + | let cR = valueOrElse(getInteger(this, (((ax + "_") + aC) + k)), 0) | |
612 | + | let cS = valueOrElse(getInteger(this, (((ax + "_") + aC) + n)), cP) | |
613 | + | let dl = (cP - do) | |
614 | + | let dh = (aR(ax, aC) + ch) | |
615 | + | let dr = az(ax) | |
616 | + | let bI = valueOrElse(getInteger(this, (ax + p)), dr) | |
617 | + | let ds = (dr - do) | |
618 | + | let dt = (bI - do) | |
619 | + | let da = (cS - do) | |
620 | + | if ((do > cP)) | |
621 | 621 | then throw("Withdraw amount more then user locked amount") | |
622 | - | else if ((aE( | |
622 | + | else if ((aE(dp) > dr)) | |
623 | 623 | then throw("Balance of share-token is lower than totalAmount") | |
624 | 624 | else { | |
625 | - | let | |
626 | - | then invoke(am, "updateUserInterest", [ax, ( | |
625 | + | let di = if ((getString(Address(fromBase58String(ax)), "version") == "3.0.0")) | |
626 | + | then invoke(am, "updateUserInterest", [ax, (cP + cR)], nil) | |
627 | 627 | else 0 | |
628 | - | if (( | |
629 | - | then [IntegerEntry((((ax + "_") + aC) + u), bc), IntegerEntry((((ax + "_") + aC) + w), bd), IntegerEntry((((ax + "_") + aC) + y), | |
628 | + | if ((di == di)) | |
629 | + | then [IntegerEntry((((ax + "_") + aC) + u), bc), IntegerEntry((((ax + "_") + aC) + w), bd), IntegerEntry((((ax + "_") + aC) + y), cM), IntegerEntry((ax + t), bc), IntegerEntry((ax + v), bd), IntegerEntry((ax + x), cM), IntegerEntry((ax + z), height), IntegerEntry((((ax + "_") + aC) + j), dl), IntegerEntry((((ax + "_") + aC) + n), da), IntegerEntry((ax + o), ds), IntegerEntry((ax + p), dt), IntegerEntry((((ax + "_") + aC) + B), dh), Reissue(av, dg, true), ScriptTransfer(an, dg, av), ScriptTransfer(cG.caller, do, dp)] | |
630 | 630 | else throw("Strict value is not equal to itself.") | |
631 | 631 | } | |
632 | 632 | }) | |
633 | 633 | ||
634 | 634 | ||
635 | 635 | ||
636 | - | @Callable( | |
637 | - | func claim (ax) = valueOrElse( | |
638 | - | let | |
639 | - | let aC = toString( | |
636 | + | @Callable(cG) | |
637 | + | func claim (ax) = valueOrElse(cE(), { | |
638 | + | let dp = fromBase58String(getStringValue(value(addressFromString(ax)), "share_asset_id")) | |
639 | + | let aC = toString(cG.originCaller) | |
640 | 640 | let bo = az(ax) | |
641 | - | let | |
642 | - | let bc = | |
643 | - | let bd = | |
644 | - | let | |
645 | - | let | |
646 | - | let | |
647 | - | let | |
648 | - | if (( | |
641 | + | let du = bF(ax, aC) | |
642 | + | let bc = du._1 | |
643 | + | let bd = du._2 | |
644 | + | let cM = du._3 | |
645 | + | let ch = du._4 | |
646 | + | let dg = du._5 | |
647 | + | let cj = (aR(ax, aC) + ch) | |
648 | + | if ((cj == 0)) | |
649 | 649 | then throw("You have 0 available SWOP") | |
650 | - | else if ((aE( | |
650 | + | else if ((aE(dp) > bo)) | |
651 | 651 | then throw("Balance of share-token is lower than totalAmount") | |
652 | 652 | else { | |
653 | - | let | |
654 | - | then [ScriptTransfer( | |
653 | + | let dv = if ((cG.caller != this)) | |
654 | + | then [ScriptTransfer(cG.caller, cj, av)] | |
655 | 655 | else nil | |
656 | - | $Tuple2(([IntegerEntry((((ax + "_") + aC) + u), bc), IntegerEntry((((ax + "_") + aC) + w), bd), IntegerEntry((((ax + "_") + aC) + y), | |
656 | + | $Tuple2(([IntegerEntry((((ax + "_") + aC) + u), bc), IntegerEntry((((ax + "_") + aC) + w), bd), IntegerEntry((((ax + "_") + aC) + y), cM), IntegerEntry((ax + t), bc), IntegerEntry((ax + v), bd), IntegerEntry((ax + x), cM), IntegerEntry((ax + z), height), IntegerEntry((((ax + "_") + aC) + B), 0), Reissue(av, (dg + cj), true), ScriptTransfer(an, dg, av)] ++ dv), cj) | |
657 | 657 | } | |
658 | 658 | }) | |
659 | 659 | ||
660 | 660 | ||
661 | 661 | ||
662 | - | @Callable( | |
663 | - | func claimAndStake (ax) = valueOrElse( | |
664 | - | let | |
665 | - | let | |
666 | - | if ($isInstanceOf( | |
667 | - | then | |
668 | - | else throw(($getType( | |
662 | + | @Callable(cG) | |
663 | + | func claimAndStake (ax) = valueOrElse(cE(), { | |
664 | + | let ch = { | |
665 | + | let dw = invoke(this, "claim", [ax], nil) | |
666 | + | if ($isInstanceOf(dw, "Int")) | |
667 | + | then dw | |
668 | + | else throw(($getType(dw) + " couldn't be cast to Int")) | |
669 | 669 | } | |
670 | - | if (( | |
670 | + | if ((ch == ch)) | |
671 | 671 | then { | |
672 | - | let | |
673 | - | if (( | |
672 | + | let dx = invoke(ak, "lockSWOPFromFarming", nil, [AttachedPayment(av, ch)]) | |
673 | + | if ((dx == dx)) | |
674 | 674 | then nil | |
675 | 675 | else throw("Strict value is not equal to itself.") | |
676 | 676 | } | |
677 | 677 | else throw("Strict value is not equal to itself.") | |
678 | 678 | }) | |
679 | 679 | ||
680 | 680 | ||
681 | 681 | ||
682 | - | @Callable( | |
683 | - | func claimAll ( | |
684 | - | func | |
685 | - | let | |
686 | - | let | |
687 | - | if ($isInstanceOf( | |
688 | - | then | |
689 | - | else throw(($getType( | |
682 | + | @Callable(cG) | |
683 | + | func claimAll (bX) = valueOrElse(cE(), { | |
684 | + | func dy (dz,ax) = { | |
685 | + | let ch = { | |
686 | + | let dw = invoke(this, "claim", [ax], nil) | |
687 | + | if ($isInstanceOf(dw, "Int")) | |
688 | + | then dw | |
689 | + | else throw(($getType(dw) + " couldn't be cast to Int")) | |
690 | 690 | } | |
691 | - | if (( | |
692 | - | then ( | |
691 | + | if ((ch == ch)) | |
692 | + | then (dz + ch) | |
693 | 693 | else throw("Strict value is not equal to itself.") | |
694 | 694 | } | |
695 | 695 | ||
696 | - | let | |
697 | - | let | |
698 | - | let | |
699 | - | let | |
700 | - | func | |
701 | - | then | |
702 | - | else | |
696 | + | let dz = { | |
697 | + | let ck = bX | |
698 | + | let cl = size(ck) | |
699 | + | let cm = 0 | |
700 | + | func cn (co,cp) = if ((cp >= cl)) | |
701 | + | then co | |
702 | + | else dy(co, ck[cp]) | |
703 | 703 | ||
704 | - | func | |
705 | - | then | |
704 | + | func cq (co,cp) = if ((cp >= cl)) | |
705 | + | then co | |
706 | 706 | else throw("List size exceeds 60") | |
707 | 707 | ||
708 | - | | |
708 | + | cq(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cm, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60) | |
709 | 709 | } | |
710 | - | if (( | |
710 | + | if ((dz == 0)) | |
711 | 711 | then throw("You have 0 available SWOP") | |
712 | - | else [ScriptTransfer( | |
712 | + | else [ScriptTransfer(cG.caller, dz, av)] | |
713 | 713 | }) | |
714 | 714 | ||
715 | 715 | ||
716 | 716 | ||
717 | - | @Callable( | |
718 | - | func claimAllAndStake ( | |
719 | - | func | |
720 | - | let | |
721 | - | let | |
722 | - | if ($isInstanceOf( | |
723 | - | then | |
724 | - | else throw(($getType( | |
717 | + | @Callable(cG) | |
718 | + | func claimAllAndStake (bX) = valueOrElse(cE(), { | |
719 | + | func dy (dz,ax) = { | |
720 | + | let ch = { | |
721 | + | let dw = invoke(this, "claim", [ax], nil) | |
722 | + | if ($isInstanceOf(dw, "Int")) | |
723 | + | then dw | |
724 | + | else throw(($getType(dw) + " couldn't be cast to Int")) | |
725 | 725 | } | |
726 | - | if (( | |
727 | - | then ( | |
726 | + | if ((ch == ch)) | |
727 | + | then (dz + ch) | |
728 | 728 | else throw("Strict value is not equal to itself.") | |
729 | 729 | } | |
730 | 730 | ||
731 | - | let | |
732 | - | let | |
733 | - | let | |
734 | - | let | |
735 | - | func | |
736 | - | then | |
737 | - | else | |
731 | + | let dz = { | |
732 | + | let ck = bX | |
733 | + | let cl = size(ck) | |
734 | + | let cm = 0 | |
735 | + | func cn (co,cp) = if ((cp >= cl)) | |
736 | + | then co | |
737 | + | else dy(co, ck[cp]) | |
738 | 738 | ||
739 | - | func | |
740 | - | then | |
739 | + | func cq (co,cp) = if ((cp >= cl)) | |
740 | + | then co | |
741 | 741 | else throw("List size exceeds 60") | |
742 | 742 | ||
743 | - | | |
743 | + | cq(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cm, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60) | |
744 | 744 | } | |
745 | - | if (( | |
745 | + | if ((dz == 0)) | |
746 | 746 | then throw("You have 0 available SWOP") | |
747 | 747 | else { | |
748 | - | let | |
749 | - | if (( | |
748 | + | let dx = invoke(ak, "lockSWOPFromFarming", nil, [AttachedPayment(av, dz)]) | |
749 | + | if ((dx == dx)) | |
750 | 750 | then nil | |
751 | 751 | else throw("Strict value is not equal to itself.") | |
752 | 752 | } | |
753 | 753 | }) | |
754 | 754 | ||
755 | 755 | ||
756 | 756 | ||
757 | - | @Callable( | |
758 | - | func updateUserBoostInterest (ax,aC) = valueOrElse( | |
757 | + | @Callable(cG) | |
758 | + | func updateUserBoostInterest (ax,aC) = valueOrElse(cE(), if ((cG.caller != aj)) | |
759 | 759 | then throw("Only voiting can call this function") | |
760 | 760 | else { | |
761 | - | let | |
762 | - | let bc = | |
763 | - | let bd = | |
764 | - | let | |
765 | - | let | |
766 | - | let | |
767 | - | let | |
768 | - | [IntegerEntry((((ax + "_") + aC) + u), bc), IntegerEntry((((ax + "_") + aC) + w), bd), IntegerEntry((((ax + "_") + aC) + y), | |
761 | + | let dA = bF(ax, aC) | |
762 | + | let bc = dA._1 | |
763 | + | let bd = dA._2 | |
764 | + | let cM = dA._3 | |
765 | + | let ch = dA._4 | |
766 | + | let dg = dA._5 | |
767 | + | let dh = (aR(ax, aC) + ch) | |
768 | + | [IntegerEntry((((ax + "_") + aC) + u), bc), IntegerEntry((((ax + "_") + aC) + w), bd), IntegerEntry((((ax + "_") + aC) + y), cM), IntegerEntry((ax + t), bc), IntegerEntry((ax + v), bd), IntegerEntry((ax + x), cM), IntegerEntry((ax + z), height), IntegerEntry((((ax + "_") + aC) + B), dh), Reissue(av, dg, true), ScriptTransfer(an, dg, av)] | |
769 | 769 | }) | |
770 | 770 | ||
771 | 771 | ||
772 | 772 | ||
773 | - | @Callable( | |
774 | - | func shutdown () = valueOrElse( | |
773 | + | @Callable(cG) | |
774 | + | func shutdown () = valueOrElse(cF(cG), if (!(as)) | |
775 | 775 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, c), "the cause wasn't specified"))) | |
776 | - | else | |
776 | + | else cC("Paused by admin")) | |
777 | 777 | ||
778 | 778 | ||
779 | 779 | ||
780 | - | @Callable( | |
781 | - | func activate () = valueOrElse( | |
780 | + | @Callable(cG) | |
781 | + | func activate () = valueOrElse(cF(cG), if (as) | |
782 | 782 | then throw("DApp is already active") | |
783 | 783 | else [BooleanEntry(a, true), DeleteEntry(c)]) | |
784 | 784 | ||
785 | 785 | ||
786 | - | @Verifier( | |
787 | - | func | |
788 | - | let ac = | |
789 | - | let | |
786 | + | @Verifier(dB) | |
787 | + | func dC () = { | |
788 | + | let ac = dB | |
789 | + | let dD = if (sigVerify(dB.bodyBytes, dB.proofs[0], af)) | |
790 | 790 | then 1 | |
791 | 791 | else 0 | |
792 | - | let | |
792 | + | let dE = if (sigVerify(dB.bodyBytes, dB.proofs[1], ag)) | |
793 | 793 | then 1 | |
794 | 794 | else 0 | |
795 | - | let | |
795 | + | let dF = if (sigVerify(dB.bodyBytes, dB.proofs[2], ah)) | |
796 | 796 | then 1 | |
797 | 797 | else 0 | |
798 | - | ((( | |
798 | + | (((dD + dE) + dF) >= 2) | |
799 | 799 | } | |
800 | 800 |
github/deemru/w8io/026f985 314.27 ms ◑