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