tx · Yat37uPdCqfD1maLiPe6WR4HQcVLmeyMY48afutrdGq 3MsXpzisJAwnzUr7XrEoW1BZo4U6rw4tsYK: -0.14000000 Waves 2022.10.20 11:35 [2280484] smart account 3MsXpzisJAwnzUr7XrEoW1BZo4U6rw4tsYK > SELF 0.00000000 Waves
{ "type": 13, "id": "Yat37uPdCqfD1maLiPe6WR4HQcVLmeyMY48afutrdGq", "fee": 14000000, "feeAssetId": null, "timestamp": 1666254952764, "version": 2, "chainId": 84, "sender": "3MsXpzisJAwnzUr7XrEoW1BZo4U6rw4tsYK", "senderPublicKey": "FFdBua5rzzMkZebvsvmN7sAdU7XhFK8QNJ3hiwwxAYRA", "proofs": [ "4nF58oU8PVt1mjKYtoRq4XFQYnFL8Hr4DstaejkFwTo2Z3bEXgyevYwJUpqxjdzYWddYngQ8peEDyhHxFFAHTijB", "3dY3tBrPVKbnjToUTGmyf5Cg1LZFFP9ZJUd3wE3twCChRmMt2oMiy84pAP4gniXe76GKcaTMSaoUVwEcMVATwEGd" ], "script": "base64:BgJICAISAwoBCBIDCgEIEgMKAQgSBAoCCAESBQoDCAEBEgQKAggIEgQKAggBEgMKAQgSAwoBCBIDCgEYEgMKARgSBAoCCAgSABIAWAAHa0FjdGl2ZQIGYWN0aXZlAAZrQ2F1c2UCDnNodXRkb3duX2NhdXNlABprUmV3YXJkUG9vbEZyYWN0aW9uQ3VycmVudAIdX2N1cnJlbnRfcG9vbF9mcmFjdGlvbl9yZXdhcmQAG2tSZXdhcmRQb29sRnJhY3Rpb25QcmV2aW91cwIeX3ByZXZpb3VzX3Bvb2xfZnJhY3Rpb25fcmV3YXJkABNrSGVpZ2h0UG9vbEZyYWN0aW9uAhpfcG9vbF9yZXdhcmRfdXBkYXRlX2hlaWdodAAba1RvdGFsUmV3YXJkUGVyQmxvY2tDdXJyZW50Ah50b3RhbF9yZXdhcmRfcGVyX2Jsb2NrX2N1cnJlbnQAHGtUb3RhbFJld2FyZFBlckJsb2NrUHJldmlvdXMCH3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aW5QdWJLZXkyAAEAAAQSYWRtaW5QdWJLZXkzU2lnbmVkAwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAgUMYWRtaW5QdWJLZXkzAAEAAAkAZwIJAGQCCQBkAgUSYWRtaW5QdWJLZXkxU2lnbmVkBRJhZG1pblB1YktleTJTaWduZWQFEmFkbWluUHViS2V5M1NpZ25lZAAChqBMJQ==", "height": 2280484, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4G6GZo7sucHyRPB4SLjmriLKDCARZMbA3eZLdqa1QdyS Next: DCAx8MDDkdNncZda2euzyMuTYYQTy6YkZ46XVSYBjZft Diff:
Old | New | Differences | |
---|---|---|---|
349 | 349 | if ((lockType > 0)) | |
350 | 350 | then throw("You can't lock shareTokens till first harvest end.") | |
351 | 351 | else if ((userVoteAmount == 0)) | |
352 | - | then | |
353 | - | else if ((pmtAmount > FHShareTokenUserLimit)) | |
354 | - | then | |
355 | - | else | |
352 | + | then 0 | |
353 | + | else if ((pmtAmount >= FHShareTokenUserLimit)) | |
354 | + | then (pmtAmount - FHShareTokenUserLimit) | |
355 | + | else 0 | |
356 | 356 | } | |
357 | - | else | |
357 | + | else 0 | |
358 | 358 | ||
359 | 359 | ||
360 | 360 | func getLockParams (type) = { | |
398 | 398 | then throw("Only Governance can call this function") | |
399 | 399 | else { | |
400 | 400 | let user = toString(addressFromPublicKey(adminInvokePubKey)) | |
401 | - | let $ | |
402 | - | let farmInterest = $ | |
403 | - | let boostInterest = $ | |
404 | - | let boostLPinterest = $ | |
401 | + | let $t01838118455 = claimCalc(pool, user) | |
402 | + | let farmInterest = $t01838118455._1 | |
403 | + | let boostInterest = $t01838118455._2 | |
404 | + | let boostLPinterest = $t01838118455._3 | |
405 | 405 | [IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kLastInterestHeight), height)] | |
406 | 406 | }) | |
407 | 407 | ||
417 | 417 | let userLockedHeigt = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLockedHeight)), 0) | |
418 | 418 | let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0) | |
419 | 419 | let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount) | |
420 | - | let totalShareStakedNew = (totalShareStaked + i.payments[0].amount) | |
421 | 420 | let totalUserShareTokens = ((userStakedAmount + userLockedAmount) + i.payments[0].amount) | |
422 | - | let $ | |
423 | - | let lockPeriod = $ | |
424 | - | let lockCoef = $ | |
421 | + | let $t01958219634 = getLockParams(lockType) | |
422 | + | let lockPeriod = $t01958219634._1 | |
423 | + | let lockCoef = $t01958219634._2 | |
425 | 424 | let lockWavesFee = getIntegerValue(this, kLockWavesFee) | |
426 | - | if ((0 >= i.payments[0].amount)) | |
427 | - | then throw("Payment amount must be greater than 0") | |
428 | - | else if ((0 > lockType)) | |
429 | - | then throw("lockType must be >= 0") | |
430 | - | else if ((accountBalance(shareAssetId) > totalShareStakedNew)) | |
431 | - | then throw("Balance of share-token is lower than totalAmount") | |
432 | - | else if (!(canLockInFirstHarvest(pool, user, userStakedAmount, i.payments[0].amount, lockType))) | |
433 | - | then throw() | |
434 | - | else { | |
435 | - | let $t02031321949 = if ((lockType == 0)) | |
436 | - | then { | |
437 | - | let userAmountVirtualNew = (userAmountVirtual + i.payments[0].amount) | |
438 | - | $Tuple2([IntegerEntry((((pool + "_") + user) + kUserShareTokensStaked), (userStakedAmount + i.payments[0].amount)), IntegerEntry((pool + kShareTokensVirtual), (totalShareVirtual + i.payments[0].amount))], userAmountVirtualNew) | |
439 | - | } | |
440 | - | else if (if ((userLockedHeigt == 0)) | |
441 | - | then if (if ((2 > size(i.payments))) | |
442 | - | then true | |
443 | - | else (i.payments[1].assetId != unit)) | |
444 | - | then true | |
445 | - | else (lockWavesFee > i.payments[1].amount) | |
446 | - | else false) | |
447 | - | then throw((("You need to pay additional waves comission " + toString(lockWavesFee)) + "WAVES")) | |
448 | - | else if ((userLockedHeigt > (height + lockPeriod))) | |
449 | - | then throw("You cannot lock sharetokens for a period less than what you have already locked") | |
450 | - | else { | |
451 | - | let userLockedAmountNew = (userLockedAmount + i.payments[0].amount) | |
452 | - | let userLockedHeigtNew = (height + lockPeriod) | |
453 | - | let userAmountVirtualNew = (fraction(userLockedAmountNew, lockCoef, lockBoostCoefScale) + userStakedAmount) | |
454 | - | $Tuple2([IntegerEntry((((pool + "_") + user) + kUserShareTokensLocked), userLockedAmountNew), IntegerEntry((((pool + "_") + user) + kUserShareTokensLockedHeight), userLockedHeigtNew), IntegerEntry((((pool + "_") + user) + kUserShareTokensLockedType), lockType), IntegerEntry((((pool + "_") + user) + kUserShareTokensVirtual), userAmountVirtualNew), IntegerEntry((pool + kShareTokensVirtual), ((totalShareVirtual - userAmountVirtual) + userAmountVirtualNew))], userAmountVirtualNew) | |
455 | - | } | |
456 | - | let lockEntries = $t02031321949._1 | |
457 | - | let userAmountVirtualNew = $t02031321949._2 | |
458 | - | let $t02195522054 = claimCalc(pool, user) | |
459 | - | let farmInterest = $t02195522054._1 | |
460 | - | let boostInterest = $t02195522054._2 | |
461 | - | let boostLPinterest = $t02195522054._3 | |
462 | - | let claimAmount = $t02195522054._4 | |
463 | - | let toTreasure = $t02195522054._5 | |
464 | - | let availableFundsNew = (userAvailableSWOP(pool, i.originCaller) + claimAmount) | |
465 | - | let uplp = if ((getString(Address(fromBase58String(pool)), "version") == "3.0.0")) | |
466 | - | then invoke(lpFarmingAddress, "updateUserInterest", [pool, totalUserShareTokens], nil) | |
467 | - | else 0 | |
468 | - | if ((uplp == uplp)) | |
469 | - | then ([IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((((pool + "_") + user) + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((pool + kShareTotalShareTokens), totalShareStakedNew), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), Reissue(SWOP, toTreasure, true), ScriptTransfer(airdropMoneyBoxAddr, toTreasure, SWOP)] ++ lockEntries) | |
470 | - | else throw("Strict value is not equal to itself.") | |
471 | - | } | |
425 | + | if ((i.payments[0].assetId != shareAssetId)) | |
426 | + | then throw("Wrong sharetoken in payment") | |
427 | + | else if ((0 >= i.payments[0].amount)) | |
428 | + | then throw("Payment amount must be greater than 0") | |
429 | + | else if ((0 > lockType)) | |
430 | + | then throw("lockType must be >= 0") | |
431 | + | else { | |
432 | + | let shareTokensChangeOnFH = canLockInFirstHarvest(pool, user, userStakedAmount, i.payments[0].amount, lockType) | |
433 | + | if ((shareTokensChangeOnFH == shareTokensChangeOnFH)) | |
434 | + | then { | |
435 | + | let $t02006121990 = if ((lockType == 0)) | |
436 | + | then { | |
437 | + | let userAmountVirtualNew = ((userAmountVirtual + i.payments[0].amount) - shareTokensChangeOnFH) | |
438 | + | $Tuple3([IntegerEntry((((pool + "_") + user) + kUserShareTokensStaked), ((userStakedAmount + i.payments[0].amount) - shareTokensChangeOnFH)), IntegerEntry((pool + kShareTokensVirtual), ((totalShareVirtual + i.payments[0].amount) - shareTokensChangeOnFH)), ScriptTransfer(i.originCaller, shareTokensChangeOnFH, i.payments[0].assetId)], userAmountVirtualNew, ((totalShareStaked + i.payments[0].amount) - shareTokensChangeOnFH)) | |
439 | + | } | |
440 | + | else if (if ((userLockedHeigt == 0)) | |
441 | + | then if (if ((2 > size(i.payments))) | |
442 | + | then true | |
443 | + | else (i.payments[1].assetId != unit)) | |
444 | + | then true | |
445 | + | else (lockWavesFee > i.payments[1].amount) | |
446 | + | else false) | |
447 | + | then throw((("You need to pay additional waves comission " + toString(lockWavesFee)) + "WAVES")) | |
448 | + | else if ((userLockedHeigt > (height + lockPeriod))) | |
449 | + | then throw("You cannot lock sharetokens for a period less than what you have already locked") | |
450 | + | else { | |
451 | + | let userLockedAmountNew = (userLockedAmount + i.payments[0].amount) | |
452 | + | let userLockedHeigtNew = (height + lockPeriod) | |
453 | + | let userAmountVirtualNew = (fraction(userLockedAmountNew, lockCoef, lockBoostCoefScale) + userStakedAmount) | |
454 | + | $Tuple3([IntegerEntry((((pool + "_") + user) + kUserShareTokensLocked), userLockedAmountNew), IntegerEntry((((pool + "_") + user) + kUserShareTokensLockedHeight), userLockedHeigtNew), IntegerEntry((((pool + "_") + user) + kUserShareTokensLockedType), lockType), IntegerEntry((((pool + "_") + user) + kUserShareTokensVirtual), userAmountVirtualNew), IntegerEntry((pool + kShareTokensVirtual), ((totalShareVirtual - userAmountVirtual) + userAmountVirtualNew))], userAmountVirtualNew, (totalShareStaked + i.payments[0].amount)) | |
455 | + | } | |
456 | + | let lockEntries = $t02006121990._1 | |
457 | + | let userAmountVirtualNew = $t02006121990._2 | |
458 | + | let totalShareStakedNew = $t02006121990._3 | |
459 | + | if ((accountBalance(shareAssetId) > totalShareStakedNew)) | |
460 | + | then throw("Balance of share-token is lower than totalAmount") | |
461 | + | else { | |
462 | + | let $t02212122220 = claimCalc(pool, user) | |
463 | + | let farmInterest = $t02212122220._1 | |
464 | + | let boostInterest = $t02212122220._2 | |
465 | + | let boostLPinterest = $t02212122220._3 | |
466 | + | let claimAmount = $t02212122220._4 | |
467 | + | let toTreasure = $t02212122220._5 | |
468 | + | let availableFundsNew = (userAvailableSWOP(pool, i.originCaller) + claimAmount) | |
469 | + | let uplp = if ((getString(Address(fromBase58String(pool)), "version") == "3.0.0")) | |
470 | + | then invoke(lpFarmingAddress, "updateUserInterest", [pool, totalUserShareTokens], nil) | |
471 | + | else 0 | |
472 | + | if ((uplp == uplp)) | |
473 | + | then ([IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((((pool + "_") + user) + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((pool + kShareTotalShareTokens), totalShareStakedNew), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), Reissue(SWOP, toTreasure, true), ScriptTransfer(airdropMoneyBoxAddr, toTreasure, SWOP)] ++ lockEntries) | |
474 | + | else throw("Strict value is not equal to itself.") | |
475 | + | } | |
476 | + | } | |
477 | + | else throw("Strict value is not equal to itself.") | |
478 | + | } | |
472 | 479 | }) | |
473 | 480 | ||
474 | 481 | ||
484 | 491 | let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0) | |
485 | 492 | let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount) | |
486 | 493 | let totalUserShareTokens = (userStakedAmount + userLockedAmount) | |
487 | - | let $ | |
488 | - | let lockPeriod = $ | |
489 | - | let lockCoef = $ | |
494 | + | let $t02415224204 = getLockParams(lockType) | |
495 | + | let lockPeriod = $t02415224204._1 | |
496 | + | let lockCoef = $t02415224204._2 | |
490 | 497 | let lockWavesFee = getIntegerValue(this, kLockWavesFee) | |
491 | 498 | if ((height > getHeightFirstHarvest(pool))) | |
492 | 499 | then throw("You can't lock shareTokens till first harvest end.") | |
512 | 519 | let userLockedHeigtNew = (height + lockPeriod) | |
513 | 520 | let userAmountVirtualNew = (fraction(userLockedAmountNew, lockCoef, lockBoostCoefScale) + userStakedAmount) | |
514 | 521 | let lockEntries = [IntegerEntry((((pool + "_") + user) + kUserShareTokensStaked), userStakedAmountNew), IntegerEntry((((pool + "_") + user) + kUserShareTokensLocked), userLockedAmountNew), IntegerEntry((((pool + "_") + user) + kUserShareTokensLockedHeight), userLockedHeigtNew), IntegerEntry((((pool + "_") + user) + kUserShareTokensLockedType), lockType), IntegerEntry((((pool + "_") + user) + kUserShareTokensVirtual), userAmountVirtualNew), IntegerEntry((pool + kShareTokensVirtual), ((totalShareVirtual - userAmountVirtual) + userAmountVirtualNew))] | |
515 | - | let $ | |
516 | - | let farmInterest = $ | |
517 | - | let boostInterest = $ | |
518 | - | let boostLPinterest = $ | |
519 | - | let claimAmount = $ | |
520 | - | let toTreasure = $ | |
522 | + | let $t02590426003 = claimCalc(pool, user) | |
523 | + | let farmInterest = $t02590426003._1 | |
524 | + | let boostInterest = $t02590426003._2 | |
525 | + | let boostLPinterest = $t02590426003._3 | |
526 | + | let claimAmount = $t02590426003._4 | |
527 | + | let toTreasure = $t02590426003._5 | |
521 | 528 | let availableFundsNew = (userAvailableSWOP(pool, i.originCaller) + claimAmount) | |
522 | 529 | [IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((((pool + "_") + user) + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), Reissue(SWOP, toTreasure, true), ScriptTransfer(airdropMoneyBoxAddr, toTreasure, SWOP)] | |
523 | 530 | } | |
537 | 544 | then throw(("You can't unlock sharetokens till " + toString(userLockedHeigt))) | |
538 | 545 | else { | |
539 | 546 | let userStakedAmountNew = (userStakedAmount + userLockedAmount) | |
540 | - | let $ | |
541 | - | let farmInterest = $ | |
542 | - | let boostInterest = $ | |
543 | - | let boostLPinterest = $ | |
544 | - | let claimAmount = $ | |
545 | - | let toTreasure = $ | |
547 | + | let $t02769127790 = claimCalc(pool, user) | |
548 | + | let farmInterest = $t02769127790._1 | |
549 | + | let boostInterest = $t02769127790._2 | |
550 | + | let boostLPinterest = $t02769127790._3 | |
551 | + | let claimAmount = $t02769127790._4 | |
552 | + | let toTreasure = $t02769127790._5 | |
546 | 553 | let availableFundsNew = (userAvailableSWOP(pool, i.originCaller) + claimAmount) | |
547 | 554 | [IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((((pool + "_") + user) + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((((pool + "_") + user) + kUserShareTokensStaked), userStakedAmountNew), IntegerEntry((((pool + "_") + user) + kUserShareTokensVirtual), userStakedAmountNew), IntegerEntry((pool + kShareTokensVirtual), ((totalShareVirtual - userAmountVirtual) + userStakedAmountNew)), DeleteEntry((((pool + "_") + user) + kUserShareTokensLocked)), DeleteEntry((((pool + "_") + user) + kUserShareTokensLockedHeight)), DeleteEntry((((pool + "_") + user) + kUserShareTokensLockedType)), Reissue(SWOP, toTreasure, true), ScriptTransfer(airdropMoneyBoxAddr, toTreasure, SWOP), ScriptTransfer(i.caller, lockWavesFee, unit)] | |
548 | 555 | } | |
554 | 561 | func withdrawShareTokens (pool,shareTokensWithdrawAmount) = valueOrElse(isActive(), { | |
555 | 562 | let shareTokensId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id")) | |
556 | 563 | let user = toString(i.originCaller) | |
557 | - | let $ | |
558 | - | let farmInterest = $ | |
559 | - | let boostInterest = $ | |
560 | - | let boostLPinterest = $ | |
561 | - | let claimAmount = $ | |
562 | - | let toTreasure = $ | |
564 | + | let $t02929429393 = claimCalc(pool, user) | |
565 | + | let farmInterest = $t02929429393._1 | |
566 | + | let boostInterest = $t02929429393._2 | |
567 | + | let boostLPinterest = $t02929429393._3 | |
568 | + | let claimAmount = $t02929429393._4 | |
569 | + | let toTreasure = $t02929429393._5 | |
563 | 570 | let userStakedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0) | |
564 | 571 | let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0) | |
565 | 572 | let userStakedAmountNew = (userStakedAmount - shareTokensWithdrawAmount) | |
587 | 594 | let shareTokensId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id")) | |
588 | 595 | let user = toString(i.caller) | |
589 | 596 | let shareTokenLocked = getTotalShareTokenStaked(pool) | |
590 | - | let $ | |
591 | - | let farmInterest = $ | |
592 | - | let boostInterest = $ | |
593 | - | let boostLPinterest = $ | |
594 | - | let claimAmount = $ | |
595 | - | let toTreasure = $ | |
597 | + | let $t03153931638 = claimCalc(pool, user) | |
598 | + | let farmInterest = $t03153931638._1 | |
599 | + | let boostInterest = $t03153931638._2 | |
600 | + | let boostLPinterest = $t03153931638._3 | |
601 | + | let claimAmount = $t03153931638._4 | |
602 | + | let toTreasure = $t03153931638._5 | |
596 | 603 | let availableFund = (userAvailableSWOP(pool, i.caller) + claimAmount) | |
597 | 604 | if ((availableFund == 0)) | |
598 | 605 | then throw("You have 0 available SWOP") | |
702 | 709 | func updateUserBoostInterest (pool,user) = valueOrElse(isActive(), if ((i.caller != votingAddress)) | |
703 | 710 | then throw("Only voiting can call this function") | |
704 | 711 | else { | |
705 | - | let $ | |
706 | - | let farmInterest = $ | |
707 | - | let boostInterest = $ | |
708 | - | let boostLPinterest = $ | |
709 | - | let claimAmount = $ | |
710 | - | let toTreasure = $ | |
712 | + | let $t03401834117 = claimCalc(pool, user) | |
713 | + | let farmInterest = $t03401834117._1 | |
714 | + | let boostInterest = $t03401834117._2 | |
715 | + | let boostLPinterest = $t03401834117._3 | |
716 | + | let claimAmount = $t03401834117._4 | |
717 | + | let toTreasure = $t03401834117._5 | |
711 | 718 | let availableFundsNew = (userAvailableSWOP(pool, i.originCaller) + claimAmount) | |
712 | 719 | [IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((((pool + "_") + user) + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), Reissue(SWOP, toTreasure, true), ScriptTransfer(airdropMoneyBoxAddr, toTreasure, SWOP)] | |
713 | 720 | }) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let kActive = "active" | |
5 | 5 | ||
6 | 6 | let kCause = "shutdown_cause" | |
7 | 7 | ||
8 | 8 | let kRewardPoolFractionCurrent = "_current_pool_fraction_reward" | |
9 | 9 | ||
10 | 10 | let kRewardPoolFractionPrevious = "_previous_pool_fraction_reward" | |
11 | 11 | ||
12 | 12 | let kHeightPoolFraction = "_pool_reward_update_height" | |
13 | 13 | ||
14 | 14 | let kTotalRewardPerBlockCurrent = "total_reward_per_block_current" | |
15 | 15 | ||
16 | 16 | let kTotalRewardPerBlockPrevious = "total_reward_per_block_previous" | |
17 | 17 | ||
18 | 18 | let kRewardUpdateHeight = "reward_update_height" | |
19 | 19 | ||
20 | 20 | let kUserShareTokensStaked = "_share_tokens_locked" | |
21 | 21 | ||
22 | 22 | let kUserShareTokensLocked = "_share_tokens_blocked" | |
23 | 23 | ||
24 | 24 | let kUserShareTokensLockedType = "_share_tokens_blocked_type" | |
25 | 25 | ||
26 | 26 | let kUserShareTokensLockedHeight = "_share_tokens_blocked_height" | |
27 | 27 | ||
28 | 28 | let kUserShareTokensVirtual = "_share_tokens_virtual" | |
29 | 29 | ||
30 | 30 | let kShareTotalShareTokens = "_total_share_tokens_locked" | |
31 | 31 | ||
32 | 32 | let kShareTokensVirtual = "_total_share_tokens_virtual" | |
33 | 33 | ||
34 | 34 | let kLockParams = "_lock_params" | |
35 | 35 | ||
36 | 36 | let kLockWavesFee = "lock_waves_fee" | |
37 | 37 | ||
38 | 38 | let kPoolBoostCoef = "_boost_coef" | |
39 | 39 | ||
40 | 40 | let kFarmLastInterest = "_last_interest" | |
41 | 41 | ||
42 | 42 | let kFarmUserLastInterest = "_last_interest" | |
43 | 43 | ||
44 | 44 | let kBoostLastInterest = "_last_interest_b" | |
45 | 45 | ||
46 | 46 | let kBoostUserLastInterest = "_last_interest_u_b" | |
47 | 47 | ||
48 | 48 | let kBoostLPLastInterest = "_last_interest_lpb" | |
49 | 49 | ||
50 | 50 | let kBoostLPUserLastInterest = "_last_interest_u_lpb" | |
51 | 51 | ||
52 | 52 | let kLastInterestHeight = "_last_interest_height" | |
53 | 53 | ||
54 | 54 | let kSWOPid = "SWOP_id" | |
55 | 55 | ||
56 | 56 | let kAvailableSWOP = "_available_SWOP" | |
57 | 57 | ||
58 | 58 | let kSwopYearEmission = "swop_year_emission" | |
59 | 59 | ||
60 | 60 | let kHarvestPoolVote = "_harvest_pool_vote_gSWOP" | |
61 | 61 | ||
62 | 62 | let kPoolVote = "_pool_vote_gSWOP" | |
63 | 63 | ||
64 | 64 | let kUserPoolVote = "_user_vote_gSWOP" | |
65 | 65 | ||
66 | 66 | let kHarvestUserPoolVote = "_harvest_user_pool_vote_gSWOP" | |
67 | 67 | ||
68 | 68 | let kBasePeriod = "base_period" | |
69 | 69 | ||
70 | 70 | let kPeriodLength = "period_length" | |
71 | 71 | ||
72 | 72 | let kStartHeight = "start_height" | |
73 | 73 | ||
74 | 74 | let kFirstHarvestHeight = "first_harvest_height" | |
75 | 75 | ||
76 | 76 | let kShareLimitFH = "share_limit_on_first_harvest" | |
77 | 77 | ||
78 | 78 | let kAdminPubKey1 = "admin_pub_1" | |
79 | 79 | ||
80 | 80 | let kAdminPubKey2 = "admin_pub_2" | |
81 | 81 | ||
82 | 82 | let kAdminPubKey3 = "admin_pub_3" | |
83 | 83 | ||
84 | 84 | let kAdminInvokePubKey = "admin_invoke_pub" | |
85 | 85 | ||
86 | 86 | let kMoneyBoxAddress = "money_box_address" | |
87 | 87 | ||
88 | 88 | let kVotingAddress = "voting_address" | |
89 | 89 | ||
90 | 90 | let kGovAddress = "governance_address" | |
91 | 91 | ||
92 | 92 | let kLPFarmingAddress = "lp_farming" | |
93 | 93 | ||
94 | 94 | let kAirdropMoneyBoxAddr = "airdrop_fee_money_box" | |
95 | 95 | ||
96 | 96 | let oracle = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz') | |
97 | 97 | ||
98 | 98 | let totalVoteShare = 10000000000 | |
99 | 99 | ||
100 | 100 | let lockBoostCoefScale = 1000 | |
101 | 101 | ||
102 | 102 | let defPoolBoostCoef = 500 | |
103 | 103 | ||
104 | 104 | func getBase58FromOracle (key) = match getString(oracle, key) { | |
105 | 105 | case string: String => | |
106 | 106 | fromBase58String(string) | |
107 | 107 | case nothing => | |
108 | 108 | throw((key + "is empty")) | |
109 | 109 | } | |
110 | 110 | ||
111 | 111 | ||
112 | 112 | let adminPubKey1 = getBase58FromOracle(kAdminPubKey1) | |
113 | 113 | ||
114 | 114 | let adminPubKey2 = getBase58FromOracle(kAdminPubKey2) | |
115 | 115 | ||
116 | 116 | let adminPubKey3 = getBase58FromOracle(kAdminPubKey3) | |
117 | 117 | ||
118 | 118 | let moneyBoxAddress = Address(getBase58FromOracle(kMoneyBoxAddress)) | |
119 | 119 | ||
120 | 120 | let votingAddress = Address(getBase58FromOracle(kVotingAddress)) | |
121 | 121 | ||
122 | 122 | let govAddress = Address(getBase58FromOracle(kGovAddress)) | |
123 | 123 | ||
124 | 124 | let adminInvokePubKey = getBase58FromOracle(kAdminInvokePubKey) | |
125 | 125 | ||
126 | 126 | let lpFarmingAddress = Address(getBase58FromOracle(kLPFarmingAddress)) | |
127 | 127 | ||
128 | 128 | let airdropMoneyBoxAddr = Address(getBase58FromOracle(kAirdropMoneyBoxAddr)) | |
129 | 129 | ||
130 | 130 | let basePeriod = valueOrErrorMessage(getInteger(votingAddress, kBasePeriod), "Empty kBasePeriod") | |
131 | 131 | ||
132 | 132 | let startHeight = valueOrErrorMessage(getInteger(votingAddress, kStartHeight), "Empty kStartHeight") | |
133 | 133 | ||
134 | 134 | let periodLength = valueOrErrorMessage(getInteger(votingAddress, kPeriodLength), "Empty kPeriodLength") | |
135 | 135 | ||
136 | 136 | let currPeriod = (basePeriod + ((height - startHeight) / periodLength)) | |
137 | 137 | ||
138 | 138 | let active = getBooleanValue(this, kActive) | |
139 | 139 | ||
140 | 140 | let SwopYearEmission = getIntegerValue(this, kSwopYearEmission) | |
141 | 141 | ||
142 | 142 | let SWOP = fromBase58String(getStringValue(this, kSWOPid)) | |
143 | 143 | ||
144 | 144 | func getHeightFirstHarvest (pool) = valueOrElse(getInteger(Address(fromBase58String(pool)), kFirstHarvestHeight), 0) | |
145 | 145 | ||
146 | 146 | ||
147 | 147 | func getFHShareLimitToken (pool) = valueOrErrorMessage(getInteger(pool, kShareLimitFH), ("No data on the key: " + kShareLimitFH)) | |
148 | 148 | ||
149 | 149 | ||
150 | 150 | func getTotalShareTokenStaked (pool) = valueOrErrorMessage(getInteger(this, (pool + kShareTotalShareTokens)), (("No data on the key: " + pool) + kShareTotalShareTokens)) | |
151 | 151 | ||
152 | 152 | ||
153 | 153 | func getPoolVoted (pool) = valueOrElse(getInteger(votingAddress, (pool + kPoolVote)), 0) | |
154 | 154 | ||
155 | 155 | ||
156 | 156 | func getUserPoolVoted (pool,user) = valueOrElse(getInteger(votingAddress, (((user + "_") + pool) + kPoolVote)), 0) | |
157 | 157 | ||
158 | 158 | ||
159 | 159 | func getShareAssetId (pool) = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id")) | |
160 | 160 | ||
161 | 161 | ||
162 | 162 | func accountBalance (assetId) = match assetId { | |
163 | 163 | case id: ByteVector => | |
164 | 164 | assetBalance(this, id) | |
165 | 165 | case waves: Unit => | |
166 | 166 | wavesBalance(this).available | |
167 | 167 | case _ => | |
168 | 168 | throw("Match error") | |
169 | 169 | } | |
170 | 170 | ||
171 | 171 | ||
172 | 172 | func getAssetInfo (assetId) = match assetId { | |
173 | 173 | case id: ByteVector => | |
174 | 174 | let stringId = toBase58String(id) | |
175 | 175 | let info = valueOrErrorMessage(assetInfo(id), (("Asset " + stringId) + " doesn't exist")) | |
176 | 176 | $Tuple3(stringId, info.name, info.decimals) | |
177 | 177 | case waves: Unit => | |
178 | 178 | $Tuple3("WAVES", "WAVES", 8) | |
179 | 179 | case _ => | |
180 | 180 | throw("Match error") | |
181 | 181 | } | |
182 | 182 | ||
183 | 183 | ||
184 | 184 | func calcScaleValue (assetId1,assetId2) = { | |
185 | 185 | let assetId1Decimals = value(assetInfo(assetId1)).decimals | |
186 | 186 | let assetId2Decimals = value(assetInfo(assetId2)).decimals | |
187 | 187 | let scaleDigits = ((assetId2Decimals - assetId1Decimals) + 8) | |
188 | 188 | pow(10, 0, scaleDigits, 0, 0, DOWN) | |
189 | 189 | } | |
190 | 190 | ||
191 | 191 | ||
192 | 192 | func userAvailableSWOP (pool,user) = valueOrElse(getInteger(this, (((pool + "_") + toString(user)) + kAvailableSWOP)), 0) | |
193 | 193 | ||
194 | 194 | ||
195 | 195 | func rewardInfo (pool) = { | |
196 | 196 | let totalRewardPerBlockCurrent = valueOrErrorMessage(getInteger(govAddress, kTotalRewardPerBlockCurrent), ((("No data on the key: " + kTotalRewardPerBlockCurrent) + " at address ") + toString(govAddress))) | |
197 | 197 | let totalRewardPerBlockPrevious = valueOrErrorMessage(getInteger(govAddress, kTotalRewardPerBlockPrevious), ((("No data on the key: " + kTotalRewardPerBlockPrevious) + " at address ") + toString(govAddress))) | |
198 | 198 | let rewardPoolFractionCurrent = valueOrErrorMessage(getInteger(govAddress, (pool + kRewardPoolFractionCurrent)), (((("No data on the key: " + pool) + kRewardPoolFractionCurrent) + " at address ") + toString(govAddress))) | |
199 | 199 | let rewardUpdateHeight = valueOrErrorMessage(getInteger(govAddress, kRewardUpdateHeight), ((("No data on the key: " + kRewardUpdateHeight) + " at address ") + toString(govAddress))) | |
200 | 200 | let poolRewardUpdateHeight = valueOrElse(getInteger(govAddress, (pool + kHeightPoolFraction)), rewardUpdateHeight) | |
201 | 201 | let rewardPoolFractionPrevious = valueOrErrorMessage(getInteger(govAddress, (pool + kRewardPoolFractionPrevious)), (((("No data on the key: " + pool) + kRewardPoolFractionPrevious) + " at address ") + toString(govAddress))) | |
202 | 202 | let rewardPoolCurrent = fraction(totalRewardPerBlockCurrent, rewardPoolFractionCurrent, totalVoteShare) | |
203 | 203 | let rewardPoolPrevious = fraction(totalRewardPerBlockCurrent, rewardPoolFractionPrevious, totalVoteShare) | |
204 | 204 | if (if ((rewardPoolCurrent > totalRewardPerBlockCurrent)) | |
205 | 205 | then true | |
206 | 206 | else (rewardPoolPrevious > totalRewardPerBlockPrevious)) | |
207 | 207 | then throw("rewardPoolCurrent > totalRewardPerBlockCurrent or rewardPoolPrevious > totalRewardPerBlockPrevious") | |
208 | 208 | else $Tuple4(rewardPoolCurrent, rewardUpdateHeight, rewardPoolPrevious, poolRewardUpdateHeight) | |
209 | 209 | } | |
210 | 210 | ||
211 | 211 | ||
212 | 212 | func getLastInterestInfo (pool) = { | |
213 | 213 | let farmInterest = valueOrErrorMessage(getInteger(this, (pool + kFarmLastInterest)), (("No data on the key: " + pool) + kFarmLastInterest)) | |
214 | 214 | let boostInterest = valueOrErrorMessage(getInteger(this, (pool + kFarmLastInterest)), (("No data on the key: " + pool) + kBoostLastInterest)) | |
215 | 215 | let boostLPInterest = valueOrErrorMessage(getInteger(this, (pool + kFarmLastInterest)), (("No data on the key: " + pool) + kBoostLPLastInterest)) | |
216 | 216 | let lastInterestHeight = valueOrElse(getInteger(this, (pool + kLastInterestHeight)), height) | |
217 | 217 | $Tuple4(lastInterestHeight, farmInterest, boostInterest, boostLPInterest) | |
218 | 218 | } | |
219 | 219 | ||
220 | 220 | ||
221 | 221 | func calcFarmRwd (pool,curTotalReward) = { | |
222 | 222 | let poolBoostCoef = valueOrElse(getInteger(this, (pool + kPoolBoostCoef)), defPoolBoostCoef) | |
223 | 223 | ((curTotalReward / (poolBoostCoef + 1)) / lockBoostCoefScale) | |
224 | 224 | } | |
225 | 225 | ||
226 | 226 | ||
227 | 227 | func calcBoostRwd (pool,curTotalReward) = { | |
228 | 228 | let poolBoostCoef = valueOrElse(getInteger(this, (pool + kPoolBoostCoef)), defPoolBoostCoef) | |
229 | 229 | (fraction(curTotalReward, poolBoostCoef, (poolBoostCoef + 1)) / lockBoostCoefScale) | |
230 | 230 | } | |
231 | 231 | ||
232 | 232 | ||
233 | 233 | func calcInterest (pool,lastInterestHeight,rewardUpdateHeight,poolRewardUpdateHeight,farmInterest,boostInterest,poolVoted,boostLpInterest,currentRewardPerBlock,shareTokenLocked,previousRewardPerBlock,scaleValue) = if ((shareTokenLocked == 0)) | |
234 | 234 | then $Tuple3(0, 0, 0) | |
235 | 235 | else if (if ((rewardUpdateHeight > height)) | |
236 | 236 | then (rewardUpdateHeight == poolRewardUpdateHeight) | |
237 | 237 | else false) | |
238 | 238 | then { | |
239 | 239 | let reward = (previousRewardPerBlock * (height - lastInterestHeight)) | |
240 | 240 | let newFarmInterest = (farmInterest + fraction(calcFarmRwd(pool, reward), scaleValue, shareTokenLocked)) | |
241 | 241 | let newBoostInterest = (boostInterest + (if ((poolVoted > 0)) | |
242 | 242 | then fraction(calcBoostRwd(pool, reward), scaleValue, poolVoted) | |
243 | 243 | else 0)) | |
244 | 244 | let newBoostLPInterest = (boostLpInterest + (if (if ((poolVoted > 0)) | |
245 | 245 | then (shareTokenLocked > 0) | |
246 | 246 | else false) | |
247 | 247 | then (fraction(calcBoostRwd(pool, reward), scaleValue, shareTokenLocked) / poolVoted) | |
248 | 248 | else 0)) | |
249 | 249 | $Tuple3(newFarmInterest, newBoostInterest, newBoostLPInterest) | |
250 | 250 | } | |
251 | 251 | else if (if ((height > rewardUpdateHeight)) | |
252 | 252 | then (rewardUpdateHeight != poolRewardUpdateHeight) | |
253 | 253 | else false) | |
254 | 254 | then { | |
255 | 255 | let reward = (previousRewardPerBlock * (height - lastInterestHeight)) | |
256 | 256 | let newFarmInterest = (farmInterest + fraction(calcFarmRwd(pool, reward), scaleValue, shareTokenLocked)) | |
257 | 257 | let newBoostInterest = (boostInterest + (if ((poolVoted > 0)) | |
258 | 258 | then fraction(calcBoostRwd(pool, reward), scaleValue, poolVoted) | |
259 | 259 | else 0)) | |
260 | 260 | let newBoostLPInterest = (boostLpInterest + (if (if ((poolVoted > 0)) | |
261 | 261 | then (shareTokenLocked > 0) | |
262 | 262 | else false) | |
263 | 263 | then (fraction(calcBoostRwd(pool, reward), scaleValue, shareTokenLocked) / poolVoted) | |
264 | 264 | else 0)) | |
265 | 265 | $Tuple3(newFarmInterest, newBoostInterest, newBoostLPInterest) | |
266 | 266 | } | |
267 | 267 | else if (if (if ((height > rewardUpdateHeight)) | |
268 | 268 | then (rewardUpdateHeight == poolRewardUpdateHeight) | |
269 | 269 | else false) | |
270 | 270 | then (lastInterestHeight > rewardUpdateHeight) | |
271 | 271 | else false) | |
272 | 272 | then { | |
273 | 273 | let reward = (currentRewardPerBlock * (height - lastInterestHeight)) | |
274 | 274 | let newFarmInterest = (farmInterest + fraction(calcFarmRwd(pool, reward), scaleValue, shareTokenLocked)) | |
275 | 275 | let newBoostInterest = (boostInterest + (if ((poolVoted > 0)) | |
276 | 276 | then fraction(calcBoostRwd(pool, reward), scaleValue, poolVoted) | |
277 | 277 | else 0)) | |
278 | 278 | let newBoostLPInterest = (boostLpInterest + (if (if ((poolVoted > 0)) | |
279 | 279 | then (shareTokenLocked > 0) | |
280 | 280 | else false) | |
281 | 281 | then (fraction(calcBoostRwd(pool, reward), scaleValue, shareTokenLocked) / poolVoted) | |
282 | 282 | else 0)) | |
283 | 283 | $Tuple3(newFarmInterest, newBoostInterest, newBoostLPInterest) | |
284 | 284 | } | |
285 | 285 | else { | |
286 | 286 | let rwdBfrUpd = (previousRewardPerBlock * (rewardUpdateHeight - lastInterestHeight)) | |
287 | 287 | let framIntrAftrUp = (farmInterest + fraction(calcFarmRwd(pool, rwdBfrUpd), scaleValue, shareTokenLocked)) | |
288 | 288 | let boostIntrAftrUp = (boostInterest + (if ((poolVoted > 0)) | |
289 | 289 | then fraction(calcBoostRwd(pool, rwdBfrUpd), scaleValue, poolVoted) | |
290 | 290 | else 0)) | |
291 | 291 | let bostLPIntrAftrUp = (farmInterest + (if (if ((poolVoted > 0)) | |
292 | 292 | then (shareTokenLocked > 0) | |
293 | 293 | else false) | |
294 | 294 | then fraction(calcBoostRwd(pool, rwdBfrUpd), scaleValue, poolVoted) | |
295 | 295 | else 0)) | |
296 | 296 | let reward = (currentRewardPerBlock * (height - rewardUpdateHeight)) | |
297 | 297 | let newFarmInterest = (framIntrAftrUp + fraction(calcFarmRwd(pool, reward), scaleValue, shareTokenLocked)) | |
298 | 298 | let newBoostInterest = (boostIntrAftrUp + (if ((poolVoted > 0)) | |
299 | 299 | then fraction(calcBoostRwd(pool, reward), scaleValue, poolVoted) | |
300 | 300 | else 0)) | |
301 | 301 | let newBoostLPInterest = (bostLPIntrAftrUp + (if (if ((poolVoted > 0)) | |
302 | 302 | then (shareTokenLocked > 0) | |
303 | 303 | else false) | |
304 | 304 | then (fraction(calcBoostRwd(pool, reward), scaleValue, shareTokenLocked) / poolVoted) | |
305 | 305 | else 0)) | |
306 | 306 | $Tuple3(newFarmInterest, newBoostInterest, newBoostLPInterest) | |
307 | 307 | } | |
308 | 308 | ||
309 | 309 | ||
310 | 310 | func claimCalc (pool,user) = { | |
311 | 311 | let scaleValue = calcScaleValue(SWOP, getShareAssetId(pool)) | |
312 | 312 | let poolVoted = getPoolVoted(pool) | |
313 | 313 | let uPoolVoted = getUserPoolVoted(pool, user) | |
314 | 314 | let shareTokenStaked = getTotalShareTokenStaked(pool) | |
315 | 315 | let totalShareVirtual = valueOrElse(getInteger(this, (pool + kShareTokensVirtual)), shareTokenStaked) | |
316 | 316 | let $t01420114299 = getLastInterestInfo(pool) | |
317 | 317 | let lastInterestHeight = $t01420114299._1 | |
318 | 318 | let farmInterest = $t01420114299._2 | |
319 | 319 | let boostInterest = $t01420114299._3 | |
320 | 320 | let boostLPInterest = $t01420114299._4 | |
321 | 321 | let $t01430414418 = rewardInfo(pool) | |
322 | 322 | let currentRewardPerBlock = $t01430414418._1 | |
323 | 323 | let rewardUpdateHeight = $t01430414418._2 | |
324 | 324 | let previousRewardPerBlock = $t01430414418._3 | |
325 | 325 | let poolRewardUpdateHeight = $t01430414418._4 | |
326 | 326 | let uFarmInterest = valueOrElse(getInteger(this, (((pool + "_") + user) + kFarmUserLastInterest)), farmInterest) | |
327 | 327 | let uBoostInterest = valueOrElse(getInteger(this, (((pool + "_") + user) + kBoostUserLastInterest)), boostInterest) | |
328 | 328 | let uBoostLPInterest = valueOrElse(getInteger(this, (((pool + "_") + user) + kBoostLPUserLastInterest)), boostLPInterest) | |
329 | 329 | let uShareTokensStaked = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0) | |
330 | 330 | let uShareTokensVirt = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), uShareTokensStaked) | |
331 | 331 | let $t01498615378 = calcInterest(pool, lastInterestHeight, rewardUpdateHeight, poolRewardUpdateHeight, farmInterest, boostInterest, poolVoted, boostLPInterest, currentRewardPerBlock, shareTokenStaked, previousRewardPerBlock, scaleValue) | |
332 | 332 | let newFarmInterest = $t01498615378._1 | |
333 | 333 | let newBoostInterest = $t01498615378._2 | |
334 | 334 | let newBoostLPInterest = $t01498615378._3 | |
335 | 335 | let claimFarming = fraction(uShareTokensVirt, (newFarmInterest - uFarmInterest), scaleValue) | |
336 | 336 | let claimBoostingMax = fraction(uPoolVoted, (newBoostInterest - uBoostInterest), scaleValue) | |
337 | 337 | let claimBoosting = fraction((uShareTokensVirt * uPoolVoted), (newBoostLPInterest - uBoostLPInterest), scaleValue) | |
338 | 338 | let toTreasury = (claimBoostingMax - claimBoosting) | |
339 | 339 | $Tuple5(newFarmInterest, newBoostInterest, newBoostLPInterest, (claimFarming + claimBoosting), toTreasury) | |
340 | 340 | } | |
341 | 341 | ||
342 | 342 | ||
343 | 343 | func canLockInFirstHarvest (pool,user,userShareTokensStaked,pmtAmount,lockType) = if ((height > getHeightFirstHarvest(pool))) | |
344 | 344 | then { | |
345 | 345 | let totalVoteAmount = valueOrElse(getInteger(votingAddress, (pool + kHarvestPoolVote)), 0) | |
346 | 346 | let userVoteAmount = valueOrElse(getInteger(votingAddress, (((user + "_") + pool) + kHarvestPoolVote)), 0) | |
347 | 347 | let FHShareTokenLimit = getFHShareLimitToken(addressFromStringValue(pool)) | |
348 | 348 | let FHShareTokenUserLimit = (fraction(FHShareTokenLimit, userVoteAmount, totalVoteAmount) - userShareTokensStaked) | |
349 | 349 | if ((lockType > 0)) | |
350 | 350 | then throw("You can't lock shareTokens till first harvest end.") | |
351 | 351 | else if ((userVoteAmount == 0)) | |
352 | - | then | |
353 | - | else if ((pmtAmount > FHShareTokenUserLimit)) | |
354 | - | then | |
355 | - | else | |
352 | + | then 0 | |
353 | + | else if ((pmtAmount >= FHShareTokenUserLimit)) | |
354 | + | then (pmtAmount - FHShareTokenUserLimit) | |
355 | + | else 0 | |
356 | 356 | } | |
357 | - | else | |
357 | + | else 0 | |
358 | 358 | ||
359 | 359 | ||
360 | 360 | func getLockParams (type) = { | |
361 | 361 | let lockParams = split(valueOrErrorMessage(getString(this, (toString(type) + kLockParams)), ("There are no key for lock type" + toString(type))), "_") | |
362 | 362 | $Tuple2(parseIntValue(lockParams[0]), parseIntValue(lockParams[1])) | |
363 | 363 | } | |
364 | 364 | ||
365 | 365 | ||
366 | 366 | func suspend (cause) = [BooleanEntry(kActive, false), StringEntry(kCause, cause)] | |
367 | 367 | ||
368 | 368 | ||
369 | 369 | func isActive () = if (active) | |
370 | 370 | then unit | |
371 | 371 | else throw("DApp is inactive at this moment") | |
372 | 372 | ||
373 | 373 | ||
374 | 374 | func isAdminCall (i) = if (containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey)) | |
375 | 375 | then unit | |
376 | 376 | else throw("Only admin can call this function") | |
377 | 377 | ||
378 | 378 | ||
379 | 379 | @Callable(i) | |
380 | 380 | func init (earlyLP) = if (isDefined(getString(this, kSWOPid))) | |
381 | 381 | then throw("SWOP already initialized") | |
382 | 382 | else { | |
383 | 383 | let initAmount = 100000000000000 | |
384 | 384 | let SWOPissue = Issue("SWOP", "SWOP protocol token", initAmount, 8, true) | |
385 | 385 | let SWOPid = calculateAssetId(SWOPissue) | |
386 | 386 | [BooleanEntry(kActive, true), Issue("SWOP", "SWOP protocol token", initAmount, 8, true), StringEntry(kSWOPid, toBase58String(SWOPid))] | |
387 | 387 | } | |
388 | 388 | ||
389 | 389 | ||
390 | 390 | ||
391 | 391 | @Callable(i) | |
392 | 392 | func initPoolShareFarming (pool) = valueOrElse(isAdminCall(i), [IntegerEntry((pool + kShareTotalShareTokens), 0), IntegerEntry((pool + kFarmLastInterest), 0), IntegerEntry((pool + kBoostLastInterest), 0), IntegerEntry((pool + kBoostLPLastInterest), 0), IntegerEntry((pool + kLastInterestHeight), height)]) | |
393 | 393 | ||
394 | 394 | ||
395 | 395 | ||
396 | 396 | @Callable(i) | |
397 | 397 | func updatePoolInterest (pool) = valueOrElse(isActive(), if ((i.caller != govAddress)) | |
398 | 398 | then throw("Only Governance can call this function") | |
399 | 399 | else { | |
400 | 400 | let user = toString(addressFromPublicKey(adminInvokePubKey)) | |
401 | - | let $ | |
402 | - | let farmInterest = $ | |
403 | - | let boostInterest = $ | |
404 | - | let boostLPinterest = $ | |
401 | + | let $t01838118455 = claimCalc(pool, user) | |
402 | + | let farmInterest = $t01838118455._1 | |
403 | + | let boostInterest = $t01838118455._2 | |
404 | + | let boostLPinterest = $t01838118455._3 | |
405 | 405 | [IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kLastInterestHeight), height)] | |
406 | 406 | }) | |
407 | 407 | ||
408 | 408 | ||
409 | 409 | ||
410 | 410 | @Callable(i) | |
411 | 411 | func lockShareTokens (pool,lockType) = valueOrElse(isActive(), { | |
412 | 412 | let shareAssetId = getShareAssetId(pool) | |
413 | 413 | let user = toString(i.originCaller) | |
414 | 414 | let totalShareStaked = getTotalShareTokenStaked(pool) | |
415 | 415 | let totalShareVirtual = valueOrElse(getInteger(this, (pool + kShareTokensVirtual)), totalShareStaked) | |
416 | 416 | let userStakedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0) | |
417 | 417 | let userLockedHeigt = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLockedHeight)), 0) | |
418 | 418 | let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0) | |
419 | 419 | let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount) | |
420 | - | let totalShareStakedNew = (totalShareStaked + i.payments[0].amount) | |
421 | 420 | let totalUserShareTokens = ((userStakedAmount + userLockedAmount) + i.payments[0].amount) | |
422 | - | let $ | |
423 | - | let lockPeriod = $ | |
424 | - | let lockCoef = $ | |
421 | + | let $t01958219634 = getLockParams(lockType) | |
422 | + | let lockPeriod = $t01958219634._1 | |
423 | + | let lockCoef = $t01958219634._2 | |
425 | 424 | let lockWavesFee = getIntegerValue(this, kLockWavesFee) | |
426 | - | if ((0 >= i.payments[0].amount)) | |
427 | - | then throw("Payment amount must be greater than 0") | |
428 | - | else if ((0 > lockType)) | |
429 | - | then throw("lockType must be >= 0") | |
430 | - | else if ((accountBalance(shareAssetId) > totalShareStakedNew)) | |
431 | - | then throw("Balance of share-token is lower than totalAmount") | |
432 | - | else if (!(canLockInFirstHarvest(pool, user, userStakedAmount, i.payments[0].amount, lockType))) | |
433 | - | then throw() | |
434 | - | else { | |
435 | - | let $t02031321949 = if ((lockType == 0)) | |
436 | - | then { | |
437 | - | let userAmountVirtualNew = (userAmountVirtual + i.payments[0].amount) | |
438 | - | $Tuple2([IntegerEntry((((pool + "_") + user) + kUserShareTokensStaked), (userStakedAmount + i.payments[0].amount)), IntegerEntry((pool + kShareTokensVirtual), (totalShareVirtual + i.payments[0].amount))], userAmountVirtualNew) | |
439 | - | } | |
440 | - | else if (if ((userLockedHeigt == 0)) | |
441 | - | then if (if ((2 > size(i.payments))) | |
442 | - | then true | |
443 | - | else (i.payments[1].assetId != unit)) | |
444 | - | then true | |
445 | - | else (lockWavesFee > i.payments[1].amount) | |
446 | - | else false) | |
447 | - | then throw((("You need to pay additional waves comission " + toString(lockWavesFee)) + "WAVES")) | |
448 | - | else if ((userLockedHeigt > (height + lockPeriod))) | |
449 | - | then throw("You cannot lock sharetokens for a period less than what you have already locked") | |
450 | - | else { | |
451 | - | let userLockedAmountNew = (userLockedAmount + i.payments[0].amount) | |
452 | - | let userLockedHeigtNew = (height + lockPeriod) | |
453 | - | let userAmountVirtualNew = (fraction(userLockedAmountNew, lockCoef, lockBoostCoefScale) + userStakedAmount) | |
454 | - | $Tuple2([IntegerEntry((((pool + "_") + user) + kUserShareTokensLocked), userLockedAmountNew), IntegerEntry((((pool + "_") + user) + kUserShareTokensLockedHeight), userLockedHeigtNew), IntegerEntry((((pool + "_") + user) + kUserShareTokensLockedType), lockType), IntegerEntry((((pool + "_") + user) + kUserShareTokensVirtual), userAmountVirtualNew), IntegerEntry((pool + kShareTokensVirtual), ((totalShareVirtual - userAmountVirtual) + userAmountVirtualNew))], userAmountVirtualNew) | |
455 | - | } | |
456 | - | let lockEntries = $t02031321949._1 | |
457 | - | let userAmountVirtualNew = $t02031321949._2 | |
458 | - | let $t02195522054 = claimCalc(pool, user) | |
459 | - | let farmInterest = $t02195522054._1 | |
460 | - | let boostInterest = $t02195522054._2 | |
461 | - | let boostLPinterest = $t02195522054._3 | |
462 | - | let claimAmount = $t02195522054._4 | |
463 | - | let toTreasure = $t02195522054._5 | |
464 | - | let availableFundsNew = (userAvailableSWOP(pool, i.originCaller) + claimAmount) | |
465 | - | let uplp = if ((getString(Address(fromBase58String(pool)), "version") == "3.0.0")) | |
466 | - | then invoke(lpFarmingAddress, "updateUserInterest", [pool, totalUserShareTokens], nil) | |
467 | - | else 0 | |
468 | - | if ((uplp == uplp)) | |
469 | - | then ([IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((((pool + "_") + user) + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((pool + kShareTotalShareTokens), totalShareStakedNew), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), Reissue(SWOP, toTreasure, true), ScriptTransfer(airdropMoneyBoxAddr, toTreasure, SWOP)] ++ lockEntries) | |
470 | - | else throw("Strict value is not equal to itself.") | |
471 | - | } | |
425 | + | if ((i.payments[0].assetId != shareAssetId)) | |
426 | + | then throw("Wrong sharetoken in payment") | |
427 | + | else if ((0 >= i.payments[0].amount)) | |
428 | + | then throw("Payment amount must be greater than 0") | |
429 | + | else if ((0 > lockType)) | |
430 | + | then throw("lockType must be >= 0") | |
431 | + | else { | |
432 | + | let shareTokensChangeOnFH = canLockInFirstHarvest(pool, user, userStakedAmount, i.payments[0].amount, lockType) | |
433 | + | if ((shareTokensChangeOnFH == shareTokensChangeOnFH)) | |
434 | + | then { | |
435 | + | let $t02006121990 = if ((lockType == 0)) | |
436 | + | then { | |
437 | + | let userAmountVirtualNew = ((userAmountVirtual + i.payments[0].amount) - shareTokensChangeOnFH) | |
438 | + | $Tuple3([IntegerEntry((((pool + "_") + user) + kUserShareTokensStaked), ((userStakedAmount + i.payments[0].amount) - shareTokensChangeOnFH)), IntegerEntry((pool + kShareTokensVirtual), ((totalShareVirtual + i.payments[0].amount) - shareTokensChangeOnFH)), ScriptTransfer(i.originCaller, shareTokensChangeOnFH, i.payments[0].assetId)], userAmountVirtualNew, ((totalShareStaked + i.payments[0].amount) - shareTokensChangeOnFH)) | |
439 | + | } | |
440 | + | else if (if ((userLockedHeigt == 0)) | |
441 | + | then if (if ((2 > size(i.payments))) | |
442 | + | then true | |
443 | + | else (i.payments[1].assetId != unit)) | |
444 | + | then true | |
445 | + | else (lockWavesFee > i.payments[1].amount) | |
446 | + | else false) | |
447 | + | then throw((("You need to pay additional waves comission " + toString(lockWavesFee)) + "WAVES")) | |
448 | + | else if ((userLockedHeigt > (height + lockPeriod))) | |
449 | + | then throw("You cannot lock sharetokens for a period less than what you have already locked") | |
450 | + | else { | |
451 | + | let userLockedAmountNew = (userLockedAmount + i.payments[0].amount) | |
452 | + | let userLockedHeigtNew = (height + lockPeriod) | |
453 | + | let userAmountVirtualNew = (fraction(userLockedAmountNew, lockCoef, lockBoostCoefScale) + userStakedAmount) | |
454 | + | $Tuple3([IntegerEntry((((pool + "_") + user) + kUserShareTokensLocked), userLockedAmountNew), IntegerEntry((((pool + "_") + user) + kUserShareTokensLockedHeight), userLockedHeigtNew), IntegerEntry((((pool + "_") + user) + kUserShareTokensLockedType), lockType), IntegerEntry((((pool + "_") + user) + kUserShareTokensVirtual), userAmountVirtualNew), IntegerEntry((pool + kShareTokensVirtual), ((totalShareVirtual - userAmountVirtual) + userAmountVirtualNew))], userAmountVirtualNew, (totalShareStaked + i.payments[0].amount)) | |
455 | + | } | |
456 | + | let lockEntries = $t02006121990._1 | |
457 | + | let userAmountVirtualNew = $t02006121990._2 | |
458 | + | let totalShareStakedNew = $t02006121990._3 | |
459 | + | if ((accountBalance(shareAssetId) > totalShareStakedNew)) | |
460 | + | then throw("Balance of share-token is lower than totalAmount") | |
461 | + | else { | |
462 | + | let $t02212122220 = claimCalc(pool, user) | |
463 | + | let farmInterest = $t02212122220._1 | |
464 | + | let boostInterest = $t02212122220._2 | |
465 | + | let boostLPinterest = $t02212122220._3 | |
466 | + | let claimAmount = $t02212122220._4 | |
467 | + | let toTreasure = $t02212122220._5 | |
468 | + | let availableFundsNew = (userAvailableSWOP(pool, i.originCaller) + claimAmount) | |
469 | + | let uplp = if ((getString(Address(fromBase58String(pool)), "version") == "3.0.0")) | |
470 | + | then invoke(lpFarmingAddress, "updateUserInterest", [pool, totalUserShareTokens], nil) | |
471 | + | else 0 | |
472 | + | if ((uplp == uplp)) | |
473 | + | then ([IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((((pool + "_") + user) + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((pool + kShareTotalShareTokens), totalShareStakedNew), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), Reissue(SWOP, toTreasure, true), ScriptTransfer(airdropMoneyBoxAddr, toTreasure, SWOP)] ++ lockEntries) | |
474 | + | else throw("Strict value is not equal to itself.") | |
475 | + | } | |
476 | + | } | |
477 | + | else throw("Strict value is not equal to itself.") | |
478 | + | } | |
472 | 479 | }) | |
473 | 480 | ||
474 | 481 | ||
475 | 482 | ||
476 | 483 | @Callable(i) | |
477 | 484 | func lockStakedShareTokens (pool,lockType,lockAmount) = valueOrElse(isActive(), { | |
478 | 485 | let shareAssetId = getShareAssetId(pool) | |
479 | 486 | let user = toString(i.originCaller) | |
480 | 487 | let totalShareStaked = getTotalShareTokenStaked(pool) | |
481 | 488 | let totalShareVirtual = valueOrElse(getInteger(this, (pool + kShareTokensVirtual)), totalShareStaked) | |
482 | 489 | let userStakedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0) | |
483 | 490 | let userLockedHeigt = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLockedHeight)), 0) | |
484 | 491 | let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0) | |
485 | 492 | let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount) | |
486 | 493 | let totalUserShareTokens = (userStakedAmount + userLockedAmount) | |
487 | - | let $ | |
488 | - | let lockPeriod = $ | |
489 | - | let lockCoef = $ | |
494 | + | let $t02415224204 = getLockParams(lockType) | |
495 | + | let lockPeriod = $t02415224204._1 | |
496 | + | let lockCoef = $t02415224204._2 | |
490 | 497 | let lockWavesFee = getIntegerValue(this, kLockWavesFee) | |
491 | 498 | if ((height > getHeightFirstHarvest(pool))) | |
492 | 499 | then throw("You can't lock shareTokens till first harvest end.") | |
493 | 500 | else if ((lockType > 0)) | |
494 | 501 | then throw("lockType must be > 0") | |
495 | 502 | else if ((lockAmount > userStakedAmount)) | |
496 | 503 | then throw(("You can't lock more than " + toString(userStakedAmount))) | |
497 | 504 | else if ((accountBalance(shareAssetId) > totalShareStaked)) | |
498 | 505 | then throw("Balance of share-token is lower than totalAmount") | |
499 | 506 | else if (if ((userLockedHeigt == 0)) | |
500 | 507 | then if (if ((1 > size(i.payments))) | |
501 | 508 | then true | |
502 | 509 | else (i.payments[0].assetId != unit)) | |
503 | 510 | then true | |
504 | 511 | else (lockWavesFee > i.payments[0].amount) | |
505 | 512 | else false) | |
506 | 513 | then throw((("You need to pay additional waves comission " + toString(lockWavesFee)) + "WAVES")) | |
507 | 514 | else if ((userLockedHeigt > (height + lockPeriod))) | |
508 | 515 | then throw("You cannot lock sharetokens for a period less than what you have already locked") | |
509 | 516 | else { | |
510 | 517 | let userLockedAmountNew = (userLockedAmount + lockAmount) | |
511 | 518 | let userStakedAmountNew = (userStakedAmount - lockAmount) | |
512 | 519 | let userLockedHeigtNew = (height + lockPeriod) | |
513 | 520 | let userAmountVirtualNew = (fraction(userLockedAmountNew, lockCoef, lockBoostCoefScale) + userStakedAmount) | |
514 | 521 | let lockEntries = [IntegerEntry((((pool + "_") + user) + kUserShareTokensStaked), userStakedAmountNew), IntegerEntry((((pool + "_") + user) + kUserShareTokensLocked), userLockedAmountNew), IntegerEntry((((pool + "_") + user) + kUserShareTokensLockedHeight), userLockedHeigtNew), IntegerEntry((((pool + "_") + user) + kUserShareTokensLockedType), lockType), IntegerEntry((((pool + "_") + user) + kUserShareTokensVirtual), userAmountVirtualNew), IntegerEntry((pool + kShareTokensVirtual), ((totalShareVirtual - userAmountVirtual) + userAmountVirtualNew))] | |
515 | - | let $ | |
516 | - | let farmInterest = $ | |
517 | - | let boostInterest = $ | |
518 | - | let boostLPinterest = $ | |
519 | - | let claimAmount = $ | |
520 | - | let toTreasure = $ | |
522 | + | let $t02590426003 = claimCalc(pool, user) | |
523 | + | let farmInterest = $t02590426003._1 | |
524 | + | let boostInterest = $t02590426003._2 | |
525 | + | let boostLPinterest = $t02590426003._3 | |
526 | + | let claimAmount = $t02590426003._4 | |
527 | + | let toTreasure = $t02590426003._5 | |
521 | 528 | let availableFundsNew = (userAvailableSWOP(pool, i.originCaller) + claimAmount) | |
522 | 529 | [IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((((pool + "_") + user) + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), Reissue(SWOP, toTreasure, true), ScriptTransfer(airdropMoneyBoxAddr, toTreasure, SWOP)] | |
523 | 530 | } | |
524 | 531 | }) | |
525 | 532 | ||
526 | 533 | ||
527 | 534 | ||
528 | 535 | @Callable(i) | |
529 | 536 | func unlockUserLock (pool,user) = valueOrElse(isActive(), { | |
530 | 537 | let lockWavesFee = getIntegerValue(this, kLockWavesFee) | |
531 | 538 | let userLockedHeigt = valueOrErrorMessage(getInteger(this, (((pool + "_") + user) + kUserShareTokensLockedHeight)), (((("There is no pool " + pool) + " or user ") + user) + "with lock")) | |
532 | 539 | let totalShareVirtual = getIntegerValue(this, (pool + kShareTokensVirtual)) | |
533 | 540 | let userStakedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0) | |
534 | 541 | let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0) | |
535 | 542 | let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount) | |
536 | 543 | if ((userLockedHeigt > height)) | |
537 | 544 | then throw(("You can't unlock sharetokens till " + toString(userLockedHeigt))) | |
538 | 545 | else { | |
539 | 546 | let userStakedAmountNew = (userStakedAmount + userLockedAmount) | |
540 | - | let $ | |
541 | - | let farmInterest = $ | |
542 | - | let boostInterest = $ | |
543 | - | let boostLPinterest = $ | |
544 | - | let claimAmount = $ | |
545 | - | let toTreasure = $ | |
547 | + | let $t02769127790 = claimCalc(pool, user) | |
548 | + | let farmInterest = $t02769127790._1 | |
549 | + | let boostInterest = $t02769127790._2 | |
550 | + | let boostLPinterest = $t02769127790._3 | |
551 | + | let claimAmount = $t02769127790._4 | |
552 | + | let toTreasure = $t02769127790._5 | |
546 | 553 | let availableFundsNew = (userAvailableSWOP(pool, i.originCaller) + claimAmount) | |
547 | 554 | [IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((((pool + "_") + user) + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((((pool + "_") + user) + kUserShareTokensStaked), userStakedAmountNew), IntegerEntry((((pool + "_") + user) + kUserShareTokensVirtual), userStakedAmountNew), IntegerEntry((pool + kShareTokensVirtual), ((totalShareVirtual - userAmountVirtual) + userStakedAmountNew)), DeleteEntry((((pool + "_") + user) + kUserShareTokensLocked)), DeleteEntry((((pool + "_") + user) + kUserShareTokensLockedHeight)), DeleteEntry((((pool + "_") + user) + kUserShareTokensLockedType)), Reissue(SWOP, toTreasure, true), ScriptTransfer(airdropMoneyBoxAddr, toTreasure, SWOP), ScriptTransfer(i.caller, lockWavesFee, unit)] | |
548 | 555 | } | |
549 | 556 | }) | |
550 | 557 | ||
551 | 558 | ||
552 | 559 | ||
553 | 560 | @Callable(i) | |
554 | 561 | func withdrawShareTokens (pool,shareTokensWithdrawAmount) = valueOrElse(isActive(), { | |
555 | 562 | let shareTokensId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id")) | |
556 | 563 | let user = toString(i.originCaller) | |
557 | - | let $ | |
558 | - | let farmInterest = $ | |
559 | - | let boostInterest = $ | |
560 | - | let boostLPinterest = $ | |
561 | - | let claimAmount = $ | |
562 | - | let toTreasure = $ | |
564 | + | let $t02929429393 = claimCalc(pool, user) | |
565 | + | let farmInterest = $t02929429393._1 | |
566 | + | let boostInterest = $t02929429393._2 | |
567 | + | let boostLPinterest = $t02929429393._3 | |
568 | + | let claimAmount = $t02929429393._4 | |
569 | + | let toTreasure = $t02929429393._5 | |
563 | 570 | let userStakedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0) | |
564 | 571 | let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0) | |
565 | 572 | let userStakedAmountNew = (userStakedAmount - shareTokensWithdrawAmount) | |
566 | 573 | let availableFundsNew = (userAvailableSWOP(pool, i.originCaller) + claimAmount) | |
567 | 574 | let totalShareAmount = getTotalShareTokenStaked(pool) | |
568 | 575 | let totalShareAmountNew = (totalShareAmount - shareTokensWithdrawAmount) | |
569 | 576 | if ((shareTokensWithdrawAmount > userStakedAmountNew)) | |
570 | 577 | then throw("Withdraw amount more then user locked amount") | |
571 | 578 | else if ((accountBalance(shareTokensId) > totalShareAmount)) | |
572 | 579 | then throw("Balance of share-token is lower than totalAmount") | |
573 | 580 | else { | |
574 | 581 | let uplp = if ((getString(Address(fromBase58String(pool)), "version") == "3.0.0")) | |
575 | 582 | then invoke(lpFarmingAddress, "updateUserInterest", [pool, (userStakedAmount + userLockedAmount)], nil) | |
576 | 583 | else 0 | |
577 | 584 | if ((uplp == uplp)) | |
578 | 585 | then [IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((((pool + "_") + user) + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((((pool + "_") + user) + kUserShareTokensStaked), userStakedAmountNew), IntegerEntry((pool + kShareTotalShareTokens), totalShareAmountNew), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), Reissue(SWOP, toTreasure, true), ScriptTransfer(airdropMoneyBoxAddr, toTreasure, SWOP), ScriptTransfer(i.caller, shareTokensWithdrawAmount, shareTokensId)] | |
579 | 586 | else throw("Strict value is not equal to itself.") | |
580 | 587 | } | |
581 | 588 | }) | |
582 | 589 | ||
583 | 590 | ||
584 | 591 | ||
585 | 592 | @Callable(i) | |
586 | 593 | func claim (pool) = valueOrElse(isActive(), { | |
587 | 594 | let shareTokensId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id")) | |
588 | 595 | let user = toString(i.caller) | |
589 | 596 | let shareTokenLocked = getTotalShareTokenStaked(pool) | |
590 | - | let $ | |
591 | - | let farmInterest = $ | |
592 | - | let boostInterest = $ | |
593 | - | let boostLPinterest = $ | |
594 | - | let claimAmount = $ | |
595 | - | let toTreasure = $ | |
597 | + | let $t03153931638 = claimCalc(pool, user) | |
598 | + | let farmInterest = $t03153931638._1 | |
599 | + | let boostInterest = $t03153931638._2 | |
600 | + | let boostLPinterest = $t03153931638._3 | |
601 | + | let claimAmount = $t03153931638._4 | |
602 | + | let toTreasure = $t03153931638._5 | |
596 | 603 | let availableFund = (userAvailableSWOP(pool, i.caller) + claimAmount) | |
597 | 604 | if ((availableFund == 0)) | |
598 | 605 | then throw("You have 0 available SWOP") | |
599 | 606 | else if ((accountBalance(shareTokensId) > shareTokenLocked)) | |
600 | 607 | then throw("Balance of share-token is lower than totalAmount") | |
601 | 608 | else $Tuple2([IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((((pool + "_") + user) + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), 0), Reissue(SWOP, (toTreasure + availableFund), true), ScriptTransfer(airdropMoneyBoxAddr, toTreasure, SWOP), ScriptTransfer(i.caller, availableFund, SWOP)], availableFund) | |
602 | 609 | }) | |
603 | 610 | ||
604 | 611 | ||
605 | 612 | ||
606 | 613 | @Callable(i) | |
607 | 614 | func claimAndStake (pool) = valueOrElse(isActive(), { | |
608 | 615 | let claimAmount = { | |
609 | 616 | let @ = invoke(this, "claim", [pool], nil) | |
610 | 617 | if ($isInstanceOf(@, "Int")) | |
611 | 618 | then @ | |
612 | 619 | else throw(($getType(@) + " couldn't be cast to Int")) | |
613 | 620 | } | |
614 | 621 | if ((claimAmount == claimAmount)) | |
615 | 622 | then { | |
616 | 623 | let stakeToGov = invoke(govAddress, "lockSWOPFromFarming", nil, [AttachedPayment(SWOP, claimAmount)]) | |
617 | 624 | if ((stakeToGov == stakeToGov)) | |
618 | 625 | then nil | |
619 | 626 | else throw("Strict value is not equal to itself.") | |
620 | 627 | } | |
621 | 628 | else throw("Strict value is not equal to itself.") | |
622 | 629 | }) | |
623 | 630 | ||
624 | 631 | ||
625 | 632 | ||
626 | 633 | @Callable(i) | |
627 | 634 | func claimAll (pools) = valueOrElse(isActive(), { | |
628 | 635 | func claimInv (claimTotal,pool) = { | |
629 | 636 | let claimAmount = { | |
630 | 637 | let @ = invoke(this, "claim", [pool], nil) | |
631 | 638 | if ($isInstanceOf(@, "Int")) | |
632 | 639 | then @ | |
633 | 640 | else throw(($getType(@) + " couldn't be cast to Int")) | |
634 | 641 | } | |
635 | 642 | if ((claimAmount == claimAmount)) | |
636 | 643 | then (claimTotal + claimAmount) | |
637 | 644 | else throw("Strict value is not equal to itself.") | |
638 | 645 | } | |
639 | 646 | ||
640 | 647 | let claimTotal = { | |
641 | 648 | let $l = pools | |
642 | 649 | let $s = size($l) | |
643 | 650 | let $acc0 = 0 | |
644 | 651 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
645 | 652 | then $a | |
646 | 653 | else claimInv($a, $l[$i]) | |
647 | 654 | ||
648 | 655 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
649 | 656 | then $a | |
650 | 657 | else throw("List size exceeds 60") | |
651 | 658 | ||
652 | 659 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 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) | |
653 | 660 | } | |
654 | 661 | if ((claimTotal == 0)) | |
655 | 662 | then throw("You have 0 available SWOP") | |
656 | 663 | else [ScriptTransfer(i.caller, claimTotal, SWOP)] | |
657 | 664 | }) | |
658 | 665 | ||
659 | 666 | ||
660 | 667 | ||
661 | 668 | @Callable(i) | |
662 | 669 | func claimAllAndStake (pools) = valueOrElse(isActive(), { | |
663 | 670 | func claimInv (claimTotal,pool) = { | |
664 | 671 | let claimAmount = { | |
665 | 672 | let @ = invoke(this, "claim", [pool], nil) | |
666 | 673 | if ($isInstanceOf(@, "Int")) | |
667 | 674 | then @ | |
668 | 675 | else throw(($getType(@) + " couldn't be cast to Int")) | |
669 | 676 | } | |
670 | 677 | if ((claimAmount == claimAmount)) | |
671 | 678 | then (claimTotal + claimAmount) | |
672 | 679 | else throw("Strict value is not equal to itself.") | |
673 | 680 | } | |
674 | 681 | ||
675 | 682 | let claimTotal = { | |
676 | 683 | let $l = pools | |
677 | 684 | let $s = size($l) | |
678 | 685 | let $acc0 = 0 | |
679 | 686 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
680 | 687 | then $a | |
681 | 688 | else claimInv($a, $l[$i]) | |
682 | 689 | ||
683 | 690 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
684 | 691 | then $a | |
685 | 692 | else throw("List size exceeds 60") | |
686 | 693 | ||
687 | 694 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 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) | |
688 | 695 | } | |
689 | 696 | if ((claimTotal == 0)) | |
690 | 697 | then throw("You have 0 available SWOP") | |
691 | 698 | else { | |
692 | 699 | let stakeToGov = invoke(govAddress, "lockSWOPFromFarming", nil, [AttachedPayment(SWOP, claimTotal)]) | |
693 | 700 | if ((stakeToGov == stakeToGov)) | |
694 | 701 | then nil | |
695 | 702 | else throw("Strict value is not equal to itself.") | |
696 | 703 | } | |
697 | 704 | }) | |
698 | 705 | ||
699 | 706 | ||
700 | 707 | ||
701 | 708 | @Callable(i) | |
702 | 709 | func updateUserBoostInterest (pool,user) = valueOrElse(isActive(), if ((i.caller != votingAddress)) | |
703 | 710 | then throw("Only voiting can call this function") | |
704 | 711 | else { | |
705 | - | let $ | |
706 | - | let farmInterest = $ | |
707 | - | let boostInterest = $ | |
708 | - | let boostLPinterest = $ | |
709 | - | let claimAmount = $ | |
710 | - | let toTreasure = $ | |
712 | + | let $t03401834117 = claimCalc(pool, user) | |
713 | + | let farmInterest = $t03401834117._1 | |
714 | + | let boostInterest = $t03401834117._2 | |
715 | + | let boostLPinterest = $t03401834117._3 | |
716 | + | let claimAmount = $t03401834117._4 | |
717 | + | let toTreasure = $t03401834117._5 | |
711 | 718 | let availableFundsNew = (userAvailableSWOP(pool, i.originCaller) + claimAmount) | |
712 | 719 | [IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((((pool + "_") + user) + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), Reissue(SWOP, toTreasure, true), ScriptTransfer(airdropMoneyBoxAddr, toTreasure, SWOP)] | |
713 | 720 | }) | |
714 | 721 | ||
715 | 722 | ||
716 | 723 | ||
717 | 724 | @Callable(i) | |
718 | 725 | func shutdown () = valueOrElse(isAdminCall(i), if (!(active)) | |
719 | 726 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, kCause), "the cause wasn't specified"))) | |
720 | 727 | else suspend("Paused by admin")) | |
721 | 728 | ||
722 | 729 | ||
723 | 730 | ||
724 | 731 | @Callable(i) | |
725 | 732 | func activate () = valueOrElse(isAdminCall(i), if (active) | |
726 | 733 | then throw("DApp is already active") | |
727 | 734 | else [BooleanEntry(kActive, true), DeleteEntry(kCause)]) | |
728 | 735 | ||
729 | 736 | ||
730 | 737 | @Verifier(tx) | |
731 | 738 | func verify () = match tx { | |
732 | 739 | case _ => | |
733 | 740 | let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1)) | |
734 | 741 | then 1 | |
735 | 742 | else 0 | |
736 | 743 | let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2)) | |
737 | 744 | then 1 | |
738 | 745 | else 0 | |
739 | 746 | let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3)) | |
740 | 747 | then 1 | |
741 | 748 | else 0 | |
742 | 749 | (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2) | |
743 | 750 | } | |
744 | 751 |
github/deemru/w8io/026f985 156.80 ms ◑