tx · 7sPC7WGKDVesY1h9B7tEHeV5qT3UBWHx8kyCvNanpTE4 3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz: -0.02900000 Waves 2022.07.01 17:14 [2120689] smart account 3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz > SELF 0.00000000 Waves
{ "type": 13, "id": "7sPC7WGKDVesY1h9B7tEHeV5qT3UBWHx8kyCvNanpTE4", "fee": 2900000, "feeAssetId": null, "timestamp": 1656684856974, "version": 1, "sender": "3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz", "senderPublicKey": "D28XoueZWsMfm8Y5pa6C5ZFuYoWgre2Wm8tzJANJgMnq", "proofs": [ "dGWQDk9WryTcvsjh5FXBwaaB68xoWuwuHtaEeRTGzprLypcthNYwanw1cL254Nw5TzwswXTz4XP223VLESWcnTh" ], "script": "base64:BgI3CAISAwoBCBIDCgEIEgMKAQgSABIAEgQKAggBEgMKAQgSBAoCCAgSBAoCCAgSAwoBCBIECgIICF0ABlNDQUxFOAAIAAVNVUxUOACAwtcvAAdTQ0FMRTE4ABIABk1VTFQxOAkAtgIBAICAkLu61q3wDQADU0VQAgJfXwAOUE9PTFdFSUdIVE1VTFQFBU1VTFQ4AAp6ZXJvQmlnSW50CQC2AgEAAAAJb25lQmlnSW50CQC2AgEAAQEJYXNBbnlMaXN0AQN2YWwEByRtYXRjaDAFA3ZhbAMJAAECBQckbWF0Y2gwAglMaXN0W0FueV0ECnZhbEFueUx5c3QFByRtYXRjaDAFCnZhbEFueUx5c3QJAAIBAhtmYWlsIHRvIGNhc3QgaW50byBMaXN0W0FueV0BBWFzSW50AQN2YWwEByRtYXRjaDAFA3ZhbAMJAAECBQckbWF0Y2gwAgNJbnQEBnZhbEludAUHJG1hdGNoMAUGdmFsSW50CQACAQIVZmFpbCB0byBjYXN0IGludG8gSW50AQhhc1N0cmluZwEDdmFsBAckbWF0Y2gwBQN2YWwDCQABAgUHJG1hdGNoMAIGU3RyaW5nBA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HIFDnBvb2xBZGRyZXNzU3RyAAAEEnd4UGVyTHBJbnRlZ3JhbE5ldwgFDSR0MDI3ODA3Mjc5MTcCXzEEEXBvb2xJbnRlZ3JhbFNUQVRFCAUNJHQwMjc4MDcyNzkxNwJfMgQJcG9vbERFQlVHCAUNJHQwMjc4MDcyNzkxNwJfMwURcG9vbEludGVncmFsU1RBVEUBAnR4AQZ2ZXJpZnkABA90YXJnZXRQdWJsaWNLZXkEByRtYXRjaDAJARZtYW5hZ2VyUHVibGljS2V5T3JVbml0AAMJAAECBQckbWF0Y2gwAgpCeXRlVmVjdG9yBAJwawUHJG1hdGNoMAUCcGsDCQABAgUHJG1hdGNoMAIEVW5pdAgFAnR4D3NlbmRlclB1YmxpY0tleQkAAgECC01hdGNoIGVycm9yCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAABQ90YXJnZXRQdWJsaWNLZXn9mf+Q", "chainId": 84, "height": 2120689, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HVd3EkU4EtN3uSgoEeaoGs9jwfyGoPzhTsBR5cR96Bf8 Next: 2mZgu1Cjhs5Cj2gYCuR9ChbfZfn85ieLWKzf7dw89and Diff:
Old | New | Differences | |
---|---|---|---|
16 | 16 | let zeroBigInt = toBigInt(0) | |
17 | 17 | ||
18 | 18 | let oneBigInt = toBigInt(1) | |
19 | - | ||
20 | - | let keyMigrator = "migrator" | |
21 | 19 | ||
22 | 20 | func asAnyList (val) = match val { | |
23 | 21 | case valAnyLyst: List[Any] => | |
348 | 346 | ||
349 | 347 | ||
350 | 348 | func refreshINTEGRALS (lpAssetIdStr,userAddressStr,poolAddressStr,lpDeltaAmount) = { | |
351 | - | let $ | |
352 | - | let wxPerLpIntegralNew = $ | |
353 | - | let poolIntegralSTATE = $ | |
354 | - | let poolDEBUG = $ | |
349 | + | let $t01421714339 = refreshPoolINTEGRALS(lpAssetIdStr, poolAddressStr, lpDeltaAmount) | |
350 | + | let wxPerLpIntegralNew = $t01421714339._1 | |
351 | + | let poolIntegralSTATE = $t01421714339._2 | |
352 | + | let poolDEBUG = $t01421714339._3 | |
355 | 353 | let MULT3 = 1000 | |
356 | 354 | let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr) | |
357 | 355 | let stakedByUser = readStaked(stakedByUserKEY) | |
469 | 467 | ||
470 | 468 | ||
471 | 469 | @Callable(i) | |
472 | - | func stake () = { | |
473 | - | let migration = if ((getBinary(this, keyMigrator) != unit)) | |
474 | - | then throw("maintenance") | |
475 | - | else unit | |
476 | - | if ((migration == migration)) | |
477 | - | then if ((size(i.payments) != 1)) | |
478 | - | then throw("invalid payment - exact one payment must be attached") | |
479 | - | else { | |
480 | - | let pmt = i.payments[0] | |
481 | - | let lpAssetId = value(pmt.assetId) | |
482 | - | let lpAssetIdStr = toBase58String(lpAssetId) | |
483 | - | let amount = pmt.amount | |
484 | - | let poolAddressStr = valueOrErrorMessage(getString(factoryContract, keyFactoryLp2AssetsMapping(lpAssetIdStr)), ("unsupported lp asset " + lpAssetIdStr)) | |
485 | - | let callerStr = toString(i.caller) | |
486 | - | let userAddressStr = if ((callerStr == poolAddressStr)) | |
487 | - | then toString(i.originCaller) | |
488 | - | else callerStr | |
489 | - | let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr) | |
490 | - | let stakedTotalKEY = keyStakedTotal(lpAssetIdStr) | |
491 | - | let stakedByUser = readStaked(stakedByUserKEY) | |
492 | - | let stakedTotal = readStaked(stakedTotalKEY) | |
493 | - | let $t01893619053 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, amount) | |
494 | - | let wxToClaimUserNew = $t01893619053._1 | |
495 | - | let integralSTATE = $t01893619053._2 | |
496 | - | let debug = $t01893619053._3 | |
497 | - | let listName = getUsersListName(lpAssetIdStr) | |
498 | - | let listActions = if (containsNode(listName, userAddressStr)) | |
499 | - | then nil | |
500 | - | else insertNodeActions(listName, userAddressStr) | |
501 | - | (([IntegerEntry(stakedByUserKEY, (stakedByUser + amount)), IntegerEntry(stakedTotalKEY, (stakedTotal + amount)), OperationHistoryEntry("stake", userAddressStr, lpAssetIdStr, amount, i.transactionId)] ++ integralSTATE) ++ listActions) | |
502 | - | } | |
503 | - | else throw("Strict value is not equal to itself.") | |
504 | - | } | |
470 | + | func stake () = if ((size(i.payments) != 1)) | |
471 | + | then throw("invalid payment - exact one payment must be attached") | |
472 | + | else { | |
473 | + | let pmt = i.payments[0] | |
474 | + | let lpAssetId = value(pmt.assetId) | |
475 | + | let lpAssetIdStr = toBase58String(lpAssetId) | |
476 | + | let amount = pmt.amount | |
477 | + | let poolAddressStr = valueOrErrorMessage(getString(factoryContract, keyFactoryLp2AssetsMapping(lpAssetIdStr)), ("unsupported lp asset " + lpAssetIdStr)) | |
478 | + | let callerStr = toString(i.caller) | |
479 | + | let userAddressStr = if ((callerStr == poolAddressStr)) | |
480 | + | then toString(i.originCaller) | |
481 | + | else callerStr | |
482 | + | let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr) | |
483 | + | let stakedTotalKEY = keyStakedTotal(lpAssetIdStr) | |
484 | + | let stakedByUser = readStaked(stakedByUserKEY) | |
485 | + | let stakedTotal = readStaked(stakedTotalKEY) | |
486 | + | let $t01877518892 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, amount) | |
487 | + | let wxToClaimUserNew = $t01877518892._1 | |
488 | + | let integralSTATE = $t01877518892._2 | |
489 | + | let debug = $t01877518892._3 | |
490 | + | let listName = getUsersListName(lpAssetIdStr) | |
491 | + | let listActions = if (containsNode(listName, userAddressStr)) | |
492 | + | then nil | |
493 | + | else insertNodeActions(listName, userAddressStr) | |
494 | + | (([IntegerEntry(stakedByUserKEY, (stakedByUser + amount)), IntegerEntry(stakedTotalKEY, (stakedTotal + amount)), OperationHistoryEntry("stake", userAddressStr, lpAssetIdStr, amount, i.transactionId)] ++ integralSTATE) ++ listActions) | |
495 | + | } | |
505 | 496 | ||
506 | 497 | ||
507 | 498 | ||
508 | 499 | @Callable(i) | |
509 | 500 | func unstake (lpAssetIdStr,amount) = { | |
510 | - | let migration = if ((getBinary(this, keyMigrator) != unit)) | |
511 | - | then throw("maintenance") | |
501 | + | let lpAssetId = fromBase58String(lpAssetIdStr) | |
502 | + | let poolAddressStr = valueOrErrorMessage(getString(factoryContract, keyFactoryLp2AssetsMapping(lpAssetIdStr)), ("unsupported lp asset " + lpAssetIdStr)) | |
503 | + | let poolAddon = valueOrElse(getString(this, keyStablePoolAddonAddr()), poolAddressStr) | |
504 | + | let callerStr = toString(i.caller) | |
505 | + | let userAddressStr = if (if ((callerStr == poolAddressStr)) | |
506 | + | then true | |
507 | + | else (callerStr == poolAddon)) | |
508 | + | then toString(i.originCaller) | |
509 | + | else callerStr | |
510 | + | let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr) | |
511 | + | let stakedTotalKEY = keyStakedTotal(lpAssetIdStr) | |
512 | + | let stakedByUser = readStaked(stakedByUserKEY) | |
513 | + | let stakedTotal = readStaked(stakedTotalKEY) | |
514 | + | let integralSTATE = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, -(amount))._2 | |
515 | + | let listName = getUsersListName(lpAssetIdStr) | |
516 | + | let listActions = if (if (containsNode(listName, userAddressStr)) | |
517 | + | then (amount == stakedByUser) | |
518 | + | else false) | |
519 | + | then deleteNodeActions(listName, userAddressStr) | |
520 | + | else nil | |
521 | + | let claimedByUser = getBigIntFromStringOrZero(this, keyClaimedByUser(lpAssetIdStr, userAddressStr)) | |
522 | + | let poolAddress = getStringByAddressOrFail(factoryContract, keyFactoryLpAssetToPoolContractAddress(lpAssetIdStr)) | |
523 | + | let wxToClaimUserNew = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddress, 0)._1 | |
524 | + | let availableToClaim = (wxToClaimUserNew - claimedByUser) | |
525 | + | let r = if ((availableToClaim > zeroBigInt)) | |
526 | + | then invoke(this, "claimWxINTERNAL", [lpAssetIdStr, userAddressStr], nil) | |
512 | 527 | else unit | |
513 | - | if ((migration == migration)) | |
514 | - | then { | |
515 | - | let lpAssetId = fromBase58String(lpAssetIdStr) | |
516 | - | let poolAddressStr = valueOrErrorMessage(getString(factoryContract, keyFactoryLp2AssetsMapping(lpAssetIdStr)), ("unsupported lp asset " + lpAssetIdStr)) | |
517 | - | let poolAddon = valueOrElse(getString(this, keyStablePoolAddonAddr()), poolAddressStr) | |
518 | - | let callerStr = toString(i.caller) | |
519 | - | let userAddressStr = if (if ((callerStr == poolAddressStr)) | |
520 | - | then true | |
521 | - | else (callerStr == poolAddon)) | |
522 | - | then toString(i.originCaller) | |
523 | - | else callerStr | |
524 | - | let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr) | |
525 | - | let stakedTotalKEY = keyStakedTotal(lpAssetIdStr) | |
526 | - | let stakedByUser = readStaked(stakedByUserKEY) | |
527 | - | let stakedTotal = readStaked(stakedTotalKEY) | |
528 | - | let integralSTATE = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, -(amount))._2 | |
529 | - | let listName = getUsersListName(lpAssetIdStr) | |
530 | - | let listActions = if (if (containsNode(listName, userAddressStr)) | |
531 | - | then (amount == stakedByUser) | |
532 | - | else false) | |
533 | - | then deleteNodeActions(listName, userAddressStr) | |
534 | - | else nil | |
535 | - | let claimedByUser = getBigIntFromStringOrZero(this, keyClaimedByUser(lpAssetIdStr, userAddressStr)) | |
536 | - | let poolAddress = getStringByAddressOrFail(factoryContract, keyFactoryLpAssetToPoolContractAddress(lpAssetIdStr)) | |
537 | - | let wxToClaimUserNew = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddress, 0)._1 | |
538 | - | let availableToClaim = (wxToClaimUserNew - claimedByUser) | |
539 | - | let r = if ((availableToClaim > zeroBigInt)) | |
540 | - | then invoke(this, "claimWxINTERNAL", [lpAssetIdStr, userAddressStr], nil) | |
541 | - | else unit | |
542 | - | if ((r == r)) | |
543 | - | then if ((amount > stakedByUser)) | |
544 | - | then throw("passed amount is less then available") | |
545 | - | else (([IntegerEntry(stakedByUserKEY, (stakedByUser - amount)), IntegerEntry(stakedTotalKEY, (stakedTotal - amount)), ScriptTransfer(i.caller, amount, lpAssetId), OperationHistoryEntry("unstake", userAddressStr, lpAssetIdStr, amount, i.transactionId)] ++ integralSTATE) ++ listActions) | |
546 | - | else throw("Strict value is not equal to itself.") | |
547 | - | } | |
528 | + | if ((r == r)) | |
529 | + | then if ((amount > stakedByUser)) | |
530 | + | then throw("passed amount is less then available") | |
531 | + | else (([IntegerEntry(stakedByUserKEY, (stakedByUser - amount)), IntegerEntry(stakedTotalKEY, (stakedTotal - amount)), ScriptTransfer(i.caller, amount, lpAssetId), OperationHistoryEntry("unstake", userAddressStr, lpAssetIdStr, amount, i.transactionId)] ++ integralSTATE) ++ listActions) | |
548 | 532 | else throw("Strict value is not equal to itself.") | |
549 | 533 | } | |
550 | 534 | ||
574 | 558 | let claimedByUserMinReward = getBigIntFromStringOrZero(this, claimedByUserMinRewardKEY) | |
575 | 559 | let claimedByUserBoostReward = getBigIntFromStringOrZero(this, claimedByUserBoostRewardKEY) | |
576 | 560 | let claimedTotal = getBigIntFromStringOrZero(this, claimedTotalKEY) | |
577 | - | let $ | |
578 | - | let wxToClaimUserNew = $ | |
579 | - | let integralSTATE = $ | |
580 | - | let debug = $ | |
561 | + | let $t02259022702 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, 0) | |
562 | + | let wxToClaimUserNew = $t02259022702._1 | |
563 | + | let integralSTATE = $t02259022702._2 | |
564 | + | let debug = $t02259022702._3 | |
581 | 565 | let availableToClaim = max([(wxToClaimUserNew - claimedByUser), zeroBigInt]) | |
582 | 566 | if ((zeroBigInt >= availableToClaim)) | |
583 | 567 | then throw("nothing to claim") | |
620 | 604 | else (height - emissionStartBlock) | |
621 | 605 | let poolWxEmission = fraction((wxEmissionPerBlock * passedBlocks), poolWeight, POOLWEIGHTMULT) | |
622 | 606 | let userWxReward = fraction(poolWxEmission, stakedByUser, stakedTotal) | |
623 | - | let $ | |
624 | - | let wxToClaimUserNew = $ | |
625 | - | let integralSTATE = $ | |
626 | - | let debug = $ | |
607 | + | let $t02534425456 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, 0) | |
608 | + | let wxToClaimUserNew = $t02534425456._1 | |
609 | + | let integralSTATE = $t02534425456._2 | |
610 | + | let debug = $t02534425456._3 | |
627 | 611 | let availableToClaim = max([(wxToClaimUserNew - claimedByUser), zeroBigInt]) | |
628 | 612 | let boostInvResult = asAnyList(invoke(boostingContract, "claimWxBoostREADONLY", [lpAssetIdStr, userAddressStr], nil)) | |
629 | 613 | let wxAmountBoostTotal = max([asInt(boostInvResult[0]), 0]) | |
690 | 674 | func onModifyWeight (lpAssetIdStr,poolAddressStr) = if ((i.caller != factoryContract)) | |
691 | 675 | then throw("permissions denied") | |
692 | 676 | else { | |
693 | - | let $ | |
694 | - | let wxPerLpIntegralNew = $ | |
695 | - | let poolIntegralSTATE = $ | |
696 | - | let poolDEBUG = $ | |
677 | + | let $t02780727917 = refreshPoolINTEGRALS(lpAssetIdStr, poolAddressStr, 0) | |
678 | + | let wxPerLpIntegralNew = $t02780727917._1 | |
679 | + | let poolIntegralSTATE = $t02780727917._2 | |
680 | + | let poolDEBUG = $t02780727917._3 | |
697 | 681 | poolIntegralSTATE | |
698 | 682 | } | |
699 | - | ||
700 | - | ||
701 | - | ||
702 | - | @Callable(i) | |
703 | - | func setMigrator (pk) = if ((pk == "")) | |
704 | - | then [DeleteEntry(keyMigrator)] | |
705 | - | else [BinaryEntry(keyMigrator, fromBase58String(pk))] | |
706 | 683 | ||
707 | 684 | ||
708 | 685 | @Verifier(tx) | |
715 | 692 | case _ => | |
716 | 693 | throw("Match error") | |
717 | 694 | } | |
718 | - | if (sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)) | |
719 | - | then true | |
720 | - | else sigVerify(tx.bodyBytes, tx.proofs[0], getBinaryValue(this, keyMigrator)) | |
695 | + | sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey) | |
721 | 696 | } | |
722 | 697 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let SCALE8 = 8 | |
5 | 5 | ||
6 | 6 | let MULT8 = 100000000 | |
7 | 7 | ||
8 | 8 | let SCALE18 = 18 | |
9 | 9 | ||
10 | 10 | let MULT18 = toBigInt(1000000000000000000) | |
11 | 11 | ||
12 | 12 | let SEP = "__" | |
13 | 13 | ||
14 | 14 | let POOLWEIGHTMULT = MULT8 | |
15 | 15 | ||
16 | 16 | let zeroBigInt = toBigInt(0) | |
17 | 17 | ||
18 | 18 | let oneBigInt = toBigInt(1) | |
19 | - | ||
20 | - | let keyMigrator = "migrator" | |
21 | 19 | ||
22 | 20 | func asAnyList (val) = match val { | |
23 | 21 | case valAnyLyst: List[Any] => | |
24 | 22 | valAnyLyst | |
25 | 23 | case _ => | |
26 | 24 | throw("fail to cast into List[Any]") | |
27 | 25 | } | |
28 | 26 | ||
29 | 27 | ||
30 | 28 | func asInt (val) = match val { | |
31 | 29 | case valInt: Int => | |
32 | 30 | valInt | |
33 | 31 | case _ => | |
34 | 32 | throw("fail to cast into Int") | |
35 | 33 | } | |
36 | 34 | ||
37 | 35 | ||
38 | 36 | func asString (val) = match val { | |
39 | 37 | case valStr: String => | |
40 | 38 | valStr | |
41 | 39 | case _ => | |
42 | 40 | throw("fail to cast into Int") | |
43 | 41 | } | |
44 | 42 | ||
45 | 43 | ||
46 | 44 | func asByteVector (val) = match val { | |
47 | 45 | case valBin: ByteVector => | |
48 | 46 | valBin | |
49 | 47 | case _ => | |
50 | 48 | throw("fail to cast into Int") | |
51 | 49 | } | |
52 | 50 | ||
53 | 51 | ||
54 | 52 | func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), (("mandatory this." + key) + " is not defined")) | |
55 | 53 | ||
56 | 54 | ||
57 | 55 | func getStringByAddressOrFail (address,key) = valueOrErrorMessage(getString(address, key), (((("mandatory " + toString(address)) + ".") + key) + " is not defined")) | |
58 | 56 | ||
59 | 57 | ||
60 | 58 | func getIntOrZero (address,key) = valueOrElse(getInteger(address, key), 0) | |
61 | 59 | ||
62 | 60 | ||
63 | 61 | func getIntOrDefault (address,key,defaultVal) = valueOrElse(getInteger(address, key), defaultVal) | |
64 | 62 | ||
65 | 63 | ||
66 | 64 | func getIntOrFail (address,key) = valueOrErrorMessage(getInteger(address, key), (("mandatory this." + key) + " is not defined")) | |
67 | 65 | ||
68 | 66 | ||
69 | 67 | func getBigIntFromStringOrZero (address,key) = value(parseBigInt(valueOrElse(getString(address, key), "0"))) | |
70 | 68 | ||
71 | 69 | ||
72 | 70 | func getBigIntFromStringOrDefault (address,key,defaultVal) = match getString(address, key) { | |
73 | 71 | case s: String => | |
74 | 72 | value(parseBigInt(s)) | |
75 | 73 | case _: Unit => | |
76 | 74 | defaultVal | |
77 | 75 | case _ => | |
78 | 76 | throw("Match error") | |
79 | 77 | } | |
80 | 78 | ||
81 | 79 | ||
82 | 80 | func toX18 (origVal,origScaleMult) = fraction(toBigInt(origVal), MULT18, toBigInt(origScaleMult)) | |
83 | 81 | ||
84 | 82 | ||
85 | 83 | func fromX18 (val,resultScaleMult) = toInt(fraction(val, toBigInt(resultScaleMult), MULT18)) | |
86 | 84 | ||
87 | 85 | ||
88 | 86 | func keyFactoryAddress () = "%s%s__config__factoryAddress" | |
89 | 87 | ||
90 | 88 | ||
91 | 89 | func keyVotingEmissionContract () = "%s__votingEmissionContract" | |
92 | 90 | ||
93 | 91 | ||
94 | 92 | let IdxFactoryCfgStakingDapp = 1 | |
95 | 93 | ||
96 | 94 | let IdxFactoryCfgBoostingDapp = 2 | |
97 | 95 | ||
98 | 96 | let IdxFactoryCfgIdoDapp = 3 | |
99 | 97 | ||
100 | 98 | let IdxFactoryCfgTeamDapp = 4 | |
101 | 99 | ||
102 | 100 | let IdxFactoryCfgEmissionDapp = 5 | |
103 | 101 | ||
104 | 102 | let IdxFactoryCfgRestDapp = 6 | |
105 | 103 | ||
106 | 104 | let IdxFactoryCfgSlippageDapp = 7 | |
107 | 105 | ||
108 | 106 | func keyFactoryCfg () = "%s__factoryConfig" | |
109 | 107 | ||
110 | 108 | ||
111 | 109 | func keyManagerPublicKey () = "%s__managerPublicKey" | |
112 | 110 | ||
113 | 111 | ||
114 | 112 | func keyPendingManagerPublicKey () = "%s__pendingManagerPublicKey" | |
115 | 113 | ||
116 | 114 | ||
117 | 115 | func keyStablePoolAddonAddr () = "%s__stablePoolAddonAddr" | |
118 | 116 | ||
119 | 117 | ||
120 | 118 | func keyFactoryLp2AssetsMapping (lpAssetStr) = makeString(["%s%s%s", lpAssetStr, "mappings__lpAsset2PoolContract"], SEP) | |
121 | 119 | ||
122 | 120 | ||
123 | 121 | func keyFactoryLpList () = "%s__lpTokensList" | |
124 | 122 | ||
125 | 123 | ||
126 | 124 | func keyFactoryLpAssetToPoolContractAddress (lpAssetStr) = makeString(["%s%s%s", lpAssetStr, "mappings__lpAsset2PoolContract"], SEP) | |
127 | 125 | ||
128 | 126 | ||
129 | 127 | func keyFactoryPoolWeight (contractAddress) = makeString(["%s%s", "poolWeight", contractAddress], SEP) | |
130 | 128 | ||
131 | 129 | ||
132 | 130 | func readLpList (factory) = split(valueOrElse(getString(factory, keyFactoryLpList()), ""), SEP) | |
133 | 131 | ||
134 | 132 | ||
135 | 133 | func readFactoryCfgOrFail (factory) = split(getStringByAddressOrFail(factory, keyFactoryCfg()), SEP) | |
136 | 134 | ||
137 | 135 | ||
138 | 136 | func getBoostingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgBoostingDapp]) | |
139 | 137 | ||
140 | 138 | ||
141 | 139 | func getEmissionAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgEmissionDapp]) | |
142 | 140 | ||
143 | 141 | ||
144 | 142 | func getStakingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgStakingDapp]) | |
145 | 143 | ||
146 | 144 | ||
147 | 145 | func keyEmissionRatePerBlockCurrent () = "%s%s__ratePerBlock__current" | |
148 | 146 | ||
149 | 147 | ||
150 | 148 | func keyEmissionRatePerBlockMaxCurrent () = "%s%s__ratePerBlockMax__current" | |
151 | 149 | ||
152 | 150 | ||
153 | 151 | func keyEmissionStartBlock () = "%s%s__emission__startBlock" | |
154 | 152 | ||
155 | 153 | ||
156 | 154 | func keyEmissionDurationInBlocks () = "%s%s__emission__duration" | |
157 | 155 | ||
158 | 156 | ||
159 | 157 | func keyEmissionEndBlock () = "%s%s__emission__endBlock" | |
160 | 158 | ||
161 | 159 | ||
162 | 160 | func keyStakedByUser (userAddressStr,lpAssetIdStr) = makeString(["%s%s%s__staked", userAddressStr, lpAssetIdStr], SEP) | |
163 | 161 | ||
164 | 162 | ||
165 | 163 | func keyStakedTotal (lpAssetIdStr) = ("%s%s%s__staked__total__" + lpAssetIdStr) | |
166 | 164 | ||
167 | 165 | ||
168 | 166 | func keyClaimedByUser (lpAssetIdStr,userAddressStr) = makeString(["%s%s%s__claimed", userAddressStr, lpAssetIdStr], SEP) | |
169 | 167 | ||
170 | 168 | ||
171 | 169 | func keyClaimedByUserMinReward (lpAssetIdStr,userAddressStr) = makeString(["%s%s%s__claimedMinReward", userAddressStr, lpAssetIdStr], SEP) | |
172 | 170 | ||
173 | 171 | ||
174 | 172 | func keyClaimedByUserBoostReward (lpAssetIdStr,userAddressStr) = makeString(["%s%s%s__claimedBoostReward", userAddressStr, lpAssetIdStr], SEP) | |
175 | 173 | ||
176 | 174 | ||
177 | 175 | func keyClaimedTotal (lpAssetIdStr) = makeString(["%s%s%s__claimed__total", lpAssetIdStr], SEP) | |
178 | 176 | ||
179 | 177 | ||
180 | 178 | func readStaked (key) = valueOrElse(getInteger(this, key), 0) | |
181 | 179 | ||
182 | 180 | ||
183 | 181 | func keyLastTotalLpBalance (lpAssetId) = makeString(["%s%s%s", lpAssetId, "total", "bal"], SEP) | |
184 | 182 | ||
185 | 183 | ||
186 | 184 | func keyLastUserLpBalance (lpAssetId,userAddress) = makeString(["%s%s%s", lpAssetId, userAddress, "bal"], SEP) | |
187 | 185 | ||
188 | 186 | ||
189 | 187 | func keyTotalLpBalanceIntegral (lpAssetId) = makeString(["%s%s%s", lpAssetId, "total", "balINT"], SEP) | |
190 | 188 | ||
191 | 189 | ||
192 | 190 | func keyUserLpBalanceIntegral (lpAssetId,userAddress) = makeString(["%s%s%s", lpAssetId, userAddress, "balINT"], SEP) | |
193 | 191 | ||
194 | 192 | ||
195 | 193 | func keyTotalLpBalanceIntegralLastUpdHeight (lpAssetId) = makeString(["%s%s%s", lpAssetId, "total", "lastUpd"], SEP) | |
196 | 194 | ||
197 | 195 | ||
198 | 196 | func keyUserLpBalanceIntegralLastUpdHeight (lpAssetId,userAddress) = makeString(["%s%s%s", lpAssetId, userAddress, "lastUpd"], SEP) | |
199 | 197 | ||
200 | 198 | ||
201 | 199 | func keyWxPerLpIntegral (lpAssetId) = makeString(["%s%s%s%s", lpAssetId, "common", "lpInt"], SEP) | |
202 | 200 | ||
203 | 201 | ||
204 | 202 | func keyWxPerLpIntegralLastUpdHeight (lpAssetId) = makeString(["%s%s%s%s", lpAssetId, "common", "lpIntH"], SEP) | |
205 | 203 | ||
206 | 204 | ||
207 | 205 | func keyWxToClaimUser (lpAssetId,userAddress) = makeString(["%s%s%s%s", lpAssetId, userAddress, "lpInt"], SEP) | |
208 | 206 | ||
209 | 207 | ||
210 | 208 | func keyWxPerLpIntegralUserLastUpdHeight (lpAssetId,userAddress) = makeString(["%s%s%s%s", lpAssetId, userAddress, "lpIntH"], SEP) | |
211 | 209 | ||
212 | 210 | ||
213 | 211 | func keyWxPerLp (lpAssetId) = makeString(["%s", lpAssetId, "wxPerLp"], SEP) | |
214 | 212 | ||
215 | 213 | ||
216 | 214 | func keyWxPerLpX18 (lpAssetId) = makeString(["%s", lpAssetId, "wxPerLpX18"], SEP) | |
217 | 215 | ||
218 | 216 | ||
219 | 217 | func keyWxPerLpIntegralUserLast (lpAssetId,userAddress) = makeString(["%s%s%s%s", lpAssetId, userAddress, "uIntL"], SEP) | |
220 | 218 | ||
221 | 219 | ||
222 | 220 | func keyOperationHistoryRecord (type,userAddress,txId58) = makeString(["%s%s%s%s__history", type, userAddress, txId58], SEP) | |
223 | 221 | ||
224 | 222 | ||
225 | 223 | func formatHistoryRecord (userAddress,lpAssetId,type,amount) = makeString(["%s%s%s%d%d%d", userAddress, lpAssetId, type, toString(height), toString(lastBlock.timestamp), toString(amount)], SEP) | |
226 | 224 | ||
227 | 225 | ||
228 | 226 | func OperationHistoryEntry (type,userAddress,lpAssetId,amount,txId) = StringEntry(keyOperationHistoryRecord(type, userAddress, toBase58String(txId)), formatHistoryRecord(userAddress, lpAssetId, type, amount)) | |
229 | 227 | ||
230 | 228 | ||
231 | 229 | let factoryAddress = getStringOrFail(this, keyFactoryAddress()) | |
232 | 230 | ||
233 | 231 | let factoryContract = addressFromStringValue(factoryAddress) | |
234 | 232 | ||
235 | 233 | let factoryCfg = readFactoryCfgOrFail(factoryContract) | |
236 | 234 | ||
237 | 235 | let emissionContract = getEmissionAddressOrFail(factoryCfg) | |
238 | 236 | ||
239 | 237 | let boostingContract = getBoostingAddressOrFail(factoryCfg) | |
240 | 238 | ||
241 | 239 | func keyNextUser (lpAssetId) = makeString(["%s%s", lpAssetId, "nextUser"], SEP) | |
242 | 240 | ||
243 | 241 | ||
244 | 242 | func getUsersListName (lpAssetId) = makeString(["users", lpAssetId], SEP) | |
245 | 243 | ||
246 | 244 | ||
247 | 245 | func keyListHead (listName) = makeString(["%s%s%s", listName, "head"], SEP) | |
248 | 246 | ||
249 | 247 | ||
250 | 248 | func keyListSize (listName) = makeString(["%s%s%s", listName, "size"], SEP) | |
251 | 249 | ||
252 | 250 | ||
253 | 251 | func keyListPrev (listName,id) = makeString(["%s%s%s%s", listName, id, "prev"], SEP) | |
254 | 252 | ||
255 | 253 | ||
256 | 254 | func keyListNext (listName,id) = makeString(["%s%s%s%s", listName, id, "next"], SEP) | |
257 | 255 | ||
258 | 256 | ||
259 | 257 | func containsNode (listName,id) = { | |
260 | 258 | let headOrUnit = getString(this, keyListHead(listName)) | |
261 | 259 | let prevOrUnit = getString(this, keyListPrev(listName, id)) | |
262 | 260 | let nextOrUnit = getString(this, keyListNext(listName, id)) | |
263 | 261 | if (if ((id == valueOrElse(headOrUnit, ""))) | |
264 | 262 | then true | |
265 | 263 | else (prevOrUnit != unit)) | |
266 | 264 | then true | |
267 | 265 | else (nextOrUnit != unit) | |
268 | 266 | } | |
269 | 267 | ||
270 | 268 | ||
271 | 269 | func insertNodeActions (listName,id) = { | |
272 | 270 | let headOrUnit = getString(this, keyListHead(listName)) | |
273 | 271 | let listSize = valueOrElse(getInteger(this, keyListSize(listName)), 0) | |
274 | 272 | let checkNode = if (!(containsNode(listName, id))) | |
275 | 273 | then true | |
276 | 274 | else throw("Node exists") | |
277 | 275 | if ((checkNode == checkNode)) | |
278 | 276 | then (([IntegerEntry(keyListSize(listName), (listSize + 1))] ++ (if ((headOrUnit != unit)) | |
279 | 277 | then [StringEntry(keyListNext(listName, id), value(headOrUnit)), StringEntry(keyListPrev(listName, value(headOrUnit)), id)] | |
280 | 278 | else nil)) ++ [StringEntry(keyListHead(listName), id)]) | |
281 | 279 | else throw("Strict value is not equal to itself.") | |
282 | 280 | } | |
283 | 281 | ||
284 | 282 | ||
285 | 283 | func deleteNodeActions (listName,id) = { | |
286 | 284 | let headOrUnit = getString(this, keyListHead(listName)) | |
287 | 285 | let listSize = valueOrElse(getInteger(this, keyListSize(listName)), 0) | |
288 | 286 | let prevOrUnit = getString(this, keyListPrev(listName, id)) | |
289 | 287 | let nextOrUnit = getString(this, keyListNext(listName, id)) | |
290 | 288 | ([IntegerEntry(keyListSize(listName), (listSize - 1))] ++ (if (if ((prevOrUnit != unit)) | |
291 | 289 | then (nextOrUnit != unit) | |
292 | 290 | else false) | |
293 | 291 | then [StringEntry(keyListNext(listName, value(prevOrUnit)), value(nextOrUnit)), StringEntry(keyListPrev(listName, value(nextOrUnit)), value(prevOrUnit)), DeleteEntry(keyListPrev(listName, id)), DeleteEntry(keyListNext(listName, id))] | |
294 | 292 | else if ((nextOrUnit != unit)) | |
295 | 293 | then [StringEntry(keyListHead(listName), value(nextOrUnit)), DeleteEntry(keyListNext(listName, id)), DeleteEntry(keyListPrev(listName, value(nextOrUnit)))] | |
296 | 294 | else if ((prevOrUnit != unit)) | |
297 | 295 | then [DeleteEntry(keyListPrev(listName, id)), DeleteEntry(keyListNext(listName, value(prevOrUnit)))] | |
298 | 296 | else if ((id == valueOrElse(headOrUnit, ""))) | |
299 | 297 | then [DeleteEntry(keyListHead(listName))] | |
300 | 298 | else throw(((("invalid node: " + listName) + ".") + id)))) | |
301 | 299 | } | |
302 | 300 | ||
303 | 301 | ||
304 | 302 | func calcWxPerLpIntegralUserLast (stakedByUser,wxPerLpIntegralUserLastUpdHeightOrZero,wxPerLpIntegralNew,wxPerLpIntegralUserLastKEY) = if (if ((wxPerLpIntegralUserLastUpdHeightOrZero == zeroBigInt)) | |
305 | 303 | then (stakedByUser > zeroBigInt) | |
306 | 304 | else false) | |
307 | 305 | then zeroBigInt | |
308 | 306 | else if ((stakedByUser == zeroBigInt)) | |
309 | 307 | then wxPerLpIntegralNew | |
310 | 308 | else if (if ((wxPerLpIntegralUserLastUpdHeightOrZero > zeroBigInt)) | |
311 | 309 | then (stakedByUser > zeroBigInt) | |
312 | 310 | else false) | |
313 | 311 | then value(parseBigInt(getStringOrFail(this, wxPerLpIntegralUserLastKEY))) | |
314 | 312 | else throw("calcWxPerLpIntegralUserLast: unexpected state") | |
315 | 313 | ||
316 | 314 | ||
317 | 315 | func refreshPoolINTEGRALS (lpAssetIdStr,poolAddressStr,lpDeltaAmount) = { | |
318 | 316 | let stakedTotalKEY = keyStakedTotal(lpAssetIdStr) | |
319 | 317 | let stakedTotal = toBigInt(readStaked(stakedTotalKEY)) | |
320 | 318 | let nonZeroStakedTotal = if ((stakedTotal == zeroBigInt)) | |
321 | 319 | then oneBigInt | |
322 | 320 | else stakedTotal | |
323 | 321 | let poolWeight = getIntegerValue(factoryContract, keyFactoryPoolWeight(poolAddressStr)) | |
324 | 322 | let emissionStartBlock = getIntOrFail(emissionContract, keyEmissionStartBlock()) | |
325 | 323 | let MULT3 = 1000 | |
326 | 324 | let wxEmissionPerBlockX3 = (getIntOrFail(emissionContract, keyEmissionRatePerBlockCurrent()) * MULT3) | |
327 | 325 | let poolWxEmissionPerBlockX3 = fraction(wxEmissionPerBlockX3, poolWeight, (POOLWEIGHTMULT * 3)) | |
328 | 326 | let wxPerLpIntegralKEY = keyWxPerLpIntegral(lpAssetIdStr) | |
329 | 327 | let wxPerLpIntegralLastUpdHeightKEY = keyWxPerLpIntegralLastUpdHeight(lpAssetIdStr) | |
330 | 328 | let wxPerLpKEY = keyWxPerLp(lpAssetIdStr) | |
331 | 329 | let wxPerLpIntegralLastUpdHeight = getIntOrDefault(this, wxPerLpIntegralLastUpdHeightKEY, emissionStartBlock) | |
332 | 330 | let wxPerLpIntegral = getBigIntFromStringOrZero(this, wxPerLpIntegralKEY) | |
333 | 331 | let wxPerLpOrZeroX3 = 0 | |
334 | 332 | let dh = max([(height - wxPerLpIntegralLastUpdHeight), 0]) | |
335 | 333 | let wxPerLpX3 = if ((wxPerLpOrZeroX3 != 0)) | |
336 | 334 | then toBigInt(wxPerLpOrZeroX3) | |
337 | 335 | else fraction(toBigInt(poolWxEmissionPerBlockX3), toBigInt(MULT8), nonZeroStakedTotal) | |
338 | 336 | let stakedTotalNew = (stakedTotal + toBigInt(lpDeltaAmount)) | |
339 | 337 | let nonZeroStakedTotalNew = if ((stakedTotalNew == zeroBigInt)) | |
340 | 338 | then oneBigInt | |
341 | 339 | else stakedTotalNew | |
342 | 340 | let wxPerLpIntegralNew = (wxPerLpIntegral + (wxPerLpX3 * toBigInt(dh))) | |
343 | 341 | let wxPerLpX3New = (toBigInt(poolWxEmissionPerBlockX3) / nonZeroStakedTotalNew) | |
344 | 342 | let wxPerLpIntegralLastUpdHeightNew = height | |
345 | 343 | let debug = makeString([toString(wxPerLpIntegralNew), toString(dh), toString(wxPerLpX3), toString(stakedTotal), toString(poolWxEmissionPerBlockX3), toString(wxEmissionPerBlockX3), toString(poolWeight)], "::") | |
346 | 344 | $Tuple3(wxPerLpIntegralNew, [StringEntry(wxPerLpIntegralKEY, toString(wxPerLpIntegralNew)), IntegerEntry(wxPerLpIntegralLastUpdHeightKEY, wxPerLpIntegralLastUpdHeightNew), StringEntry(wxPerLpKEY, toString(wxPerLpX3New))], debug) | |
347 | 345 | } | |
348 | 346 | ||
349 | 347 | ||
350 | 348 | func refreshINTEGRALS (lpAssetIdStr,userAddressStr,poolAddressStr,lpDeltaAmount) = { | |
351 | - | let $ | |
352 | - | let wxPerLpIntegralNew = $ | |
353 | - | let poolIntegralSTATE = $ | |
354 | - | let poolDEBUG = $ | |
349 | + | let $t01421714339 = refreshPoolINTEGRALS(lpAssetIdStr, poolAddressStr, lpDeltaAmount) | |
350 | + | let wxPerLpIntegralNew = $t01421714339._1 | |
351 | + | let poolIntegralSTATE = $t01421714339._2 | |
352 | + | let poolDEBUG = $t01421714339._3 | |
355 | 353 | let MULT3 = 1000 | |
356 | 354 | let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr) | |
357 | 355 | let stakedByUser = readStaked(stakedByUserKEY) | |
358 | 356 | let wxToClaimUserKEY = keyWxToClaimUser(lpAssetIdStr, userAddressStr) | |
359 | 357 | let wxPerLpIntegralUserLastUpdHeightKEY = keyWxPerLpIntegralUserLastUpdHeight(lpAssetIdStr, userAddressStr) | |
360 | 358 | let wxPerLpIntegralUserLastKEY = keyWxPerLpIntegralUserLast(lpAssetIdStr, userAddressStr) | |
361 | 359 | let wxToClaimUser = getBigIntFromStringOrZero(this, wxToClaimUserKEY) | |
362 | 360 | let wxPerLpIntegralUserLastUpdHeightOrZero = getIntOrZero(this, wxPerLpIntegralUserLastUpdHeightKEY) | |
363 | 361 | let wxPerLpIntegralUserLast = calcWxPerLpIntegralUserLast(toBigInt(stakedByUser), toBigInt(wxPerLpIntegralUserLastUpdHeightOrZero), wxPerLpIntegralNew, wxPerLpIntegralUserLastKEY) | |
364 | 362 | let MULT11 = (MULT8 * MULT3) | |
365 | 363 | let wxToClaimUserNew = max([(wxToClaimUser + fraction((wxPerLpIntegralNew - wxPerLpIntegralUserLast), toBigInt(stakedByUser), toBigInt(MULT11))), zeroBigInt]) | |
366 | 364 | let wxPerLpIntegralUserLastNew = wxPerLpIntegralNew | |
367 | 365 | let wxPerLpIntegralUserLastUpdHeightNew = height | |
368 | 366 | let debug = makeString([toString(wxToClaimUser), toString(wxPerLpIntegralUserLast), toString(stakedByUser), poolDEBUG, toString(height)], "::") | |
369 | 367 | $Tuple3(wxToClaimUserNew, (poolIntegralSTATE ++ [StringEntry(wxToClaimUserKEY, toString(wxToClaimUserNew)), IntegerEntry(wxPerLpIntegralUserLastUpdHeightKEY, wxPerLpIntegralUserLastUpdHeightNew), StringEntry(wxPerLpIntegralUserLastKEY, toString(wxPerLpIntegralUserLastNew))]), debug) | |
370 | 368 | } | |
371 | 369 | ||
372 | 370 | ||
373 | 371 | func managerPublicKeyOrUnit () = match getString(keyManagerPublicKey()) { | |
374 | 372 | case s: String => | |
375 | 373 | fromBase58String(s) | |
376 | 374 | case _: Unit => | |
377 | 375 | unit | |
378 | 376 | case _ => | |
379 | 377 | throw("Match error") | |
380 | 378 | } | |
381 | 379 | ||
382 | 380 | ||
383 | 381 | func pendingManagerPublicKeyOrUnit () = match getString(keyPendingManagerPublicKey()) { | |
384 | 382 | case s: String => | |
385 | 383 | fromBase58String(s) | |
386 | 384 | case _: Unit => | |
387 | 385 | unit | |
388 | 386 | case _ => | |
389 | 387 | throw("Match error") | |
390 | 388 | } | |
391 | 389 | ||
392 | 390 | ||
393 | 391 | let permissionDeniedError = throw("Permission denied") | |
394 | 392 | ||
395 | 393 | func mustThis (i) = if ((i.caller == this)) | |
396 | 394 | then true | |
397 | 395 | else permissionDeniedError | |
398 | 396 | ||
399 | 397 | ||
400 | 398 | func mustManager (i) = match managerPublicKeyOrUnit() { | |
401 | 399 | case pk: ByteVector => | |
402 | 400 | if ((i.callerPublicKey == pk)) | |
403 | 401 | then true | |
404 | 402 | else permissionDeniedError | |
405 | 403 | case _: Unit => | |
406 | 404 | if ((i.caller == this)) | |
407 | 405 | then true | |
408 | 406 | else permissionDeniedError | |
409 | 407 | case _ => | |
410 | 408 | throw("Match error") | |
411 | 409 | } | |
412 | 410 | ||
413 | 411 | ||
414 | 412 | @Callable(i) | |
415 | 413 | func constructor (factoryAddressStr) = { | |
416 | 414 | let checkCaller = mustManager(i) | |
417 | 415 | if ((checkCaller == checkCaller)) | |
418 | 416 | then [StringEntry(keyFactoryAddress(), factoryAddressStr)] | |
419 | 417 | else throw("Strict value is not equal to itself.") | |
420 | 418 | } | |
421 | 419 | ||
422 | 420 | ||
423 | 421 | ||
424 | 422 | @Callable(i) | |
425 | 423 | func constructorV2 (votingEmissionContract) = { | |
426 | 424 | let cheks = [mustManager(i), if ((addressFromString(votingEmissionContract) != unit)) | |
427 | 425 | then true | |
428 | 426 | else "invalid voting emission contract address"] | |
429 | 427 | if ((cheks == cheks)) | |
430 | 428 | then [StringEntry(keyVotingEmissionContract(), votingEmissionContract)] | |
431 | 429 | else throw("Strict value is not equal to itself.") | |
432 | 430 | } | |
433 | 431 | ||
434 | 432 | ||
435 | 433 | ||
436 | 434 | @Callable(i) | |
437 | 435 | func setManager (pendingManagerPublicKey) = { | |
438 | 436 | let checkCaller = mustManager(i) | |
439 | 437 | if ((checkCaller == checkCaller)) | |
440 | 438 | then { | |
441 | 439 | let checkManagerPublicKey = fromBase58String(pendingManagerPublicKey) | |
442 | 440 | if ((checkManagerPublicKey == checkManagerPublicKey)) | |
443 | 441 | then [StringEntry(keyPendingManagerPublicKey(), pendingManagerPublicKey)] | |
444 | 442 | else throw("Strict value is not equal to itself.") | |
445 | 443 | } | |
446 | 444 | else throw("Strict value is not equal to itself.") | |
447 | 445 | } | |
448 | 446 | ||
449 | 447 | ||
450 | 448 | ||
451 | 449 | @Callable(i) | |
452 | 450 | func confirmManager () = { | |
453 | 451 | let pm = pendingManagerPublicKeyOrUnit() | |
454 | 452 | let hasPM = if (isDefined(pm)) | |
455 | 453 | then true | |
456 | 454 | else throw("No pending manager") | |
457 | 455 | if ((hasPM == hasPM)) | |
458 | 456 | then { | |
459 | 457 | let checkPM = if ((i.callerPublicKey == value(pm))) | |
460 | 458 | then true | |
461 | 459 | else throw("You are not pending manager") | |
462 | 460 | if ((checkPM == checkPM)) | |
463 | 461 | then [StringEntry(keyManagerPublicKey(), toBase58String(value(pm))), DeleteEntry(keyPendingManagerPublicKey())] | |
464 | 462 | else throw("Strict value is not equal to itself.") | |
465 | 463 | } | |
466 | 464 | else throw("Strict value is not equal to itself.") | |
467 | 465 | } | |
468 | 466 | ||
469 | 467 | ||
470 | 468 | ||
471 | 469 | @Callable(i) | |
472 | - | func stake () = { | |
473 | - | let migration = if ((getBinary(this, keyMigrator) != unit)) | |
474 | - | then throw("maintenance") | |
475 | - | else unit | |
476 | - | if ((migration == migration)) | |
477 | - | then if ((size(i.payments) != 1)) | |
478 | - | then throw("invalid payment - exact one payment must be attached") | |
479 | - | else { | |
480 | - | let pmt = i.payments[0] | |
481 | - | let lpAssetId = value(pmt.assetId) | |
482 | - | let lpAssetIdStr = toBase58String(lpAssetId) | |
483 | - | let amount = pmt.amount | |
484 | - | let poolAddressStr = valueOrErrorMessage(getString(factoryContract, keyFactoryLp2AssetsMapping(lpAssetIdStr)), ("unsupported lp asset " + lpAssetIdStr)) | |
485 | - | let callerStr = toString(i.caller) | |
486 | - | let userAddressStr = if ((callerStr == poolAddressStr)) | |
487 | - | then toString(i.originCaller) | |
488 | - | else callerStr | |
489 | - | let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr) | |
490 | - | let stakedTotalKEY = keyStakedTotal(lpAssetIdStr) | |
491 | - | let stakedByUser = readStaked(stakedByUserKEY) | |
492 | - | let stakedTotal = readStaked(stakedTotalKEY) | |
493 | - | let $t01893619053 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, amount) | |
494 | - | let wxToClaimUserNew = $t01893619053._1 | |
495 | - | let integralSTATE = $t01893619053._2 | |
496 | - | let debug = $t01893619053._3 | |
497 | - | let listName = getUsersListName(lpAssetIdStr) | |
498 | - | let listActions = if (containsNode(listName, userAddressStr)) | |
499 | - | then nil | |
500 | - | else insertNodeActions(listName, userAddressStr) | |
501 | - | (([IntegerEntry(stakedByUserKEY, (stakedByUser + amount)), IntegerEntry(stakedTotalKEY, (stakedTotal + amount)), OperationHistoryEntry("stake", userAddressStr, lpAssetIdStr, amount, i.transactionId)] ++ integralSTATE) ++ listActions) | |
502 | - | } | |
503 | - | else throw("Strict value is not equal to itself.") | |
504 | - | } | |
470 | + | func stake () = if ((size(i.payments) != 1)) | |
471 | + | then throw("invalid payment - exact one payment must be attached") | |
472 | + | else { | |
473 | + | let pmt = i.payments[0] | |
474 | + | let lpAssetId = value(pmt.assetId) | |
475 | + | let lpAssetIdStr = toBase58String(lpAssetId) | |
476 | + | let amount = pmt.amount | |
477 | + | let poolAddressStr = valueOrErrorMessage(getString(factoryContract, keyFactoryLp2AssetsMapping(lpAssetIdStr)), ("unsupported lp asset " + lpAssetIdStr)) | |
478 | + | let callerStr = toString(i.caller) | |
479 | + | let userAddressStr = if ((callerStr == poolAddressStr)) | |
480 | + | then toString(i.originCaller) | |
481 | + | else callerStr | |
482 | + | let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr) | |
483 | + | let stakedTotalKEY = keyStakedTotal(lpAssetIdStr) | |
484 | + | let stakedByUser = readStaked(stakedByUserKEY) | |
485 | + | let stakedTotal = readStaked(stakedTotalKEY) | |
486 | + | let $t01877518892 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, amount) | |
487 | + | let wxToClaimUserNew = $t01877518892._1 | |
488 | + | let integralSTATE = $t01877518892._2 | |
489 | + | let debug = $t01877518892._3 | |
490 | + | let listName = getUsersListName(lpAssetIdStr) | |
491 | + | let listActions = if (containsNode(listName, userAddressStr)) | |
492 | + | then nil | |
493 | + | else insertNodeActions(listName, userAddressStr) | |
494 | + | (([IntegerEntry(stakedByUserKEY, (stakedByUser + amount)), IntegerEntry(stakedTotalKEY, (stakedTotal + amount)), OperationHistoryEntry("stake", userAddressStr, lpAssetIdStr, amount, i.transactionId)] ++ integralSTATE) ++ listActions) | |
495 | + | } | |
505 | 496 | ||
506 | 497 | ||
507 | 498 | ||
508 | 499 | @Callable(i) | |
509 | 500 | func unstake (lpAssetIdStr,amount) = { | |
510 | - | let migration = if ((getBinary(this, keyMigrator) != unit)) | |
511 | - | then throw("maintenance") | |
501 | + | let lpAssetId = fromBase58String(lpAssetIdStr) | |
502 | + | let poolAddressStr = valueOrErrorMessage(getString(factoryContract, keyFactoryLp2AssetsMapping(lpAssetIdStr)), ("unsupported lp asset " + lpAssetIdStr)) | |
503 | + | let poolAddon = valueOrElse(getString(this, keyStablePoolAddonAddr()), poolAddressStr) | |
504 | + | let callerStr = toString(i.caller) | |
505 | + | let userAddressStr = if (if ((callerStr == poolAddressStr)) | |
506 | + | then true | |
507 | + | else (callerStr == poolAddon)) | |
508 | + | then toString(i.originCaller) | |
509 | + | else callerStr | |
510 | + | let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr) | |
511 | + | let stakedTotalKEY = keyStakedTotal(lpAssetIdStr) | |
512 | + | let stakedByUser = readStaked(stakedByUserKEY) | |
513 | + | let stakedTotal = readStaked(stakedTotalKEY) | |
514 | + | let integralSTATE = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, -(amount))._2 | |
515 | + | let listName = getUsersListName(lpAssetIdStr) | |
516 | + | let listActions = if (if (containsNode(listName, userAddressStr)) | |
517 | + | then (amount == stakedByUser) | |
518 | + | else false) | |
519 | + | then deleteNodeActions(listName, userAddressStr) | |
520 | + | else nil | |
521 | + | let claimedByUser = getBigIntFromStringOrZero(this, keyClaimedByUser(lpAssetIdStr, userAddressStr)) | |
522 | + | let poolAddress = getStringByAddressOrFail(factoryContract, keyFactoryLpAssetToPoolContractAddress(lpAssetIdStr)) | |
523 | + | let wxToClaimUserNew = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddress, 0)._1 | |
524 | + | let availableToClaim = (wxToClaimUserNew - claimedByUser) | |
525 | + | let r = if ((availableToClaim > zeroBigInt)) | |
526 | + | then invoke(this, "claimWxINTERNAL", [lpAssetIdStr, userAddressStr], nil) | |
512 | 527 | else unit | |
513 | - | if ((migration == migration)) | |
514 | - | then { | |
515 | - | let lpAssetId = fromBase58String(lpAssetIdStr) | |
516 | - | let poolAddressStr = valueOrErrorMessage(getString(factoryContract, keyFactoryLp2AssetsMapping(lpAssetIdStr)), ("unsupported lp asset " + lpAssetIdStr)) | |
517 | - | let poolAddon = valueOrElse(getString(this, keyStablePoolAddonAddr()), poolAddressStr) | |
518 | - | let callerStr = toString(i.caller) | |
519 | - | let userAddressStr = if (if ((callerStr == poolAddressStr)) | |
520 | - | then true | |
521 | - | else (callerStr == poolAddon)) | |
522 | - | then toString(i.originCaller) | |
523 | - | else callerStr | |
524 | - | let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr) | |
525 | - | let stakedTotalKEY = keyStakedTotal(lpAssetIdStr) | |
526 | - | let stakedByUser = readStaked(stakedByUserKEY) | |
527 | - | let stakedTotal = readStaked(stakedTotalKEY) | |
528 | - | let integralSTATE = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, -(amount))._2 | |
529 | - | let listName = getUsersListName(lpAssetIdStr) | |
530 | - | let listActions = if (if (containsNode(listName, userAddressStr)) | |
531 | - | then (amount == stakedByUser) | |
532 | - | else false) | |
533 | - | then deleteNodeActions(listName, userAddressStr) | |
534 | - | else nil | |
535 | - | let claimedByUser = getBigIntFromStringOrZero(this, keyClaimedByUser(lpAssetIdStr, userAddressStr)) | |
536 | - | let poolAddress = getStringByAddressOrFail(factoryContract, keyFactoryLpAssetToPoolContractAddress(lpAssetIdStr)) | |
537 | - | let wxToClaimUserNew = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddress, 0)._1 | |
538 | - | let availableToClaim = (wxToClaimUserNew - claimedByUser) | |
539 | - | let r = if ((availableToClaim > zeroBigInt)) | |
540 | - | then invoke(this, "claimWxINTERNAL", [lpAssetIdStr, userAddressStr], nil) | |
541 | - | else unit | |
542 | - | if ((r == r)) | |
543 | - | then if ((amount > stakedByUser)) | |
544 | - | then throw("passed amount is less then available") | |
545 | - | else (([IntegerEntry(stakedByUserKEY, (stakedByUser - amount)), IntegerEntry(stakedTotalKEY, (stakedTotal - amount)), ScriptTransfer(i.caller, amount, lpAssetId), OperationHistoryEntry("unstake", userAddressStr, lpAssetIdStr, amount, i.transactionId)] ++ integralSTATE) ++ listActions) | |
546 | - | else throw("Strict value is not equal to itself.") | |
547 | - | } | |
528 | + | if ((r == r)) | |
529 | + | then if ((amount > stakedByUser)) | |
530 | + | then throw("passed amount is less then available") | |
531 | + | else (([IntegerEntry(stakedByUserKEY, (stakedByUser - amount)), IntegerEntry(stakedTotalKEY, (stakedTotal - amount)), ScriptTransfer(i.caller, amount, lpAssetId), OperationHistoryEntry("unstake", userAddressStr, lpAssetIdStr, amount, i.transactionId)] ++ integralSTATE) ++ listActions) | |
548 | 532 | else throw("Strict value is not equal to itself.") | |
549 | 533 | } | |
550 | 534 | ||
551 | 535 | ||
552 | 536 | ||
553 | 537 | @Callable(i) | |
554 | 538 | func claimWx (lpAssetIdStr) = { | |
555 | 539 | let userAddressStr = toString(i.caller) | |
556 | 540 | let result = invoke(this, "claimWxINTERNAL", [lpAssetIdStr, userAddressStr], nil) | |
557 | 541 | $Tuple2(nil, result) | |
558 | 542 | } | |
559 | 543 | ||
560 | 544 | ||
561 | 545 | ||
562 | 546 | @Callable(i) | |
563 | 547 | func claimWxINTERNAL (lpAssetIdStr,userAddressStr) = { | |
564 | 548 | let checkCaller = mustThis(i) | |
565 | 549 | if ((checkCaller == checkCaller)) | |
566 | 550 | then { | |
567 | 551 | let userAddress = valueOrErrorMessage(addressFromString(userAddressStr), "claimWxINTERNAL: invalid user address") | |
568 | 552 | let poolAddressStr = getStringByAddressOrFail(factoryContract, keyFactoryLpAssetToPoolContractAddress(lpAssetIdStr)) | |
569 | 553 | let claimedByUserKEY = keyClaimedByUser(lpAssetIdStr, userAddressStr) | |
570 | 554 | let claimedTotalKEY = keyClaimedTotal(lpAssetIdStr) | |
571 | 555 | let claimedByUserMinRewardKEY = keyClaimedByUserMinReward(lpAssetIdStr, userAddressStr) | |
572 | 556 | let claimedByUserBoostRewardKEY = keyClaimedByUserBoostReward(lpAssetIdStr, userAddressStr) | |
573 | 557 | let claimedByUser = getBigIntFromStringOrZero(this, claimedByUserKEY) | |
574 | 558 | let claimedByUserMinReward = getBigIntFromStringOrZero(this, claimedByUserMinRewardKEY) | |
575 | 559 | let claimedByUserBoostReward = getBigIntFromStringOrZero(this, claimedByUserBoostRewardKEY) | |
576 | 560 | let claimedTotal = getBigIntFromStringOrZero(this, claimedTotalKEY) | |
577 | - | let $ | |
578 | - | let wxToClaimUserNew = $ | |
579 | - | let integralSTATE = $ | |
580 | - | let debug = $ | |
561 | + | let $t02259022702 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, 0) | |
562 | + | let wxToClaimUserNew = $t02259022702._1 | |
563 | + | let integralSTATE = $t02259022702._2 | |
564 | + | let debug = $t02259022702._3 | |
581 | 565 | let availableToClaim = max([(wxToClaimUserNew - claimedByUser), zeroBigInt]) | |
582 | 566 | if ((zeroBigInt >= availableToClaim)) | |
583 | 567 | then throw("nothing to claim") | |
584 | 568 | else { | |
585 | 569 | let wxAmountBoostTotal = max([asInt(asAnyList(invoke(boostingContract, "claimWxBoost", [lpAssetIdStr, userAddressStr], nil))[0]), 0]) | |
586 | 570 | let minRewardPart = availableToClaim | |
587 | 571 | let boostRewardPart = min([(minRewardPart * toBigInt(2)), toBigInt(wxAmountBoostTotal)]) | |
588 | 572 | let wxAssetId = asByteVector(asAnyList(invoke(emissionContract, "emit", [toInt(minRewardPart)], nil))[0]) | |
589 | 573 | let emitBoost = asAnyList(invoke(emissionContract, "emit", [toInt(boostRewardPart)], nil)) | |
590 | 574 | if ((emitBoost == emitBoost)) | |
591 | 575 | then { | |
592 | 576 | let claimedByUserValue = (claimedByUser + availableToClaim) | |
593 | 577 | let claimedByUserMinRewardPlusPart = (claimedByUserMinReward + minRewardPart) | |
594 | 578 | let claimedByUserBoostRewardPlusBoostRewardPart = (claimedByUserMinReward + minRewardPart) | |
595 | 579 | let claimedTotalPlusAvailableToClaim = (claimedByUserMinReward + minRewardPart) | |
596 | 580 | [StringEntry(claimedByUserKEY, toString(claimedByUserValue)), StringEntry(claimedByUserMinRewardKEY, toString(claimedByUserMinRewardPlusPart)), StringEntry(claimedByUserBoostRewardKEY, toString(claimedByUserBoostRewardPlusBoostRewardPart)), StringEntry(claimedTotalKEY, toString(claimedTotalPlusAvailableToClaim)), ScriptTransfer(userAddress, toInt(minRewardPart), wxAssetId), ScriptTransfer(userAddress, toInt(boostRewardPart), wxAssetId), OperationHistoryEntry("claim", userAddressStr, lpAssetIdStr, toInt(availableToClaim), i.transactionId)] | |
597 | 581 | } | |
598 | 582 | else throw("Strict value is not equal to itself.") | |
599 | 583 | } | |
600 | 584 | } | |
601 | 585 | else throw("Strict value is not equal to itself.") | |
602 | 586 | } | |
603 | 587 | ||
604 | 588 | ||
605 | 589 | ||
606 | 590 | @Callable(i) | |
607 | 591 | func claimWxREADONLY (lpAssetIdStr,userAddressStr) = { | |
608 | 592 | let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr) | |
609 | 593 | let stakedTotalKEY = keyStakedTotal(lpAssetIdStr) | |
610 | 594 | let claimedByUserKEY = keyClaimedByUser(lpAssetIdStr, userAddressStr) | |
611 | 595 | let stakedByUser = readStaked(stakedByUserKEY) | |
612 | 596 | let stakedTotal = readStaked(stakedTotalKEY) | |
613 | 597 | let claimedByUser = getBigIntFromStringOrZero(this, claimedByUserKEY) | |
614 | 598 | let poolAddressStr = getStringByAddressOrFail(factoryContract, keyFactoryLpAssetToPoolContractAddress(lpAssetIdStr)) | |
615 | 599 | let poolWeight = getIntegerValue(factoryContract, keyFactoryPoolWeight(poolAddressStr)) | |
616 | 600 | let wxEmissionPerBlock = getIntOrFail(emissionContract, keyEmissionRatePerBlockCurrent()) | |
617 | 601 | let emissionStartBlock = getIntOrFail(emissionContract, keyEmissionStartBlock()) | |
618 | 602 | let passedBlocks = if ((emissionStartBlock > height)) | |
619 | 603 | then 0 | |
620 | 604 | else (height - emissionStartBlock) | |
621 | 605 | let poolWxEmission = fraction((wxEmissionPerBlock * passedBlocks), poolWeight, POOLWEIGHTMULT) | |
622 | 606 | let userWxReward = fraction(poolWxEmission, stakedByUser, stakedTotal) | |
623 | - | let $ | |
624 | - | let wxToClaimUserNew = $ | |
625 | - | let integralSTATE = $ | |
626 | - | let debug = $ | |
607 | + | let $t02534425456 = refreshINTEGRALS(lpAssetIdStr, userAddressStr, poolAddressStr, 0) | |
608 | + | let wxToClaimUserNew = $t02534425456._1 | |
609 | + | let integralSTATE = $t02534425456._2 | |
610 | + | let debug = $t02534425456._3 | |
627 | 611 | let availableToClaim = max([(wxToClaimUserNew - claimedByUser), zeroBigInt]) | |
628 | 612 | let boostInvResult = asAnyList(invoke(boostingContract, "claimWxBoostREADONLY", [lpAssetIdStr, userAddressStr], nil)) | |
629 | 613 | let wxAmountBoostTotal = max([asInt(boostInvResult[0]), 0]) | |
630 | 614 | let boostDebug = asString(boostInvResult[1]) | |
631 | 615 | let minRewardPart = availableToClaim | |
632 | 616 | let boostRewardPart = min([(minRewardPart * toBigInt(2)), toBigInt(wxAmountBoostTotal)]) | |
633 | 617 | let totalReward = (minRewardPart + boostRewardPart) | |
634 | 618 | $Tuple2(nil, makeString(["%s%s%d%d%d%d%s", lpAssetIdStr, userAddressStr, toString(totalReward), toString(claimedByUser), toString(minRewardPart), toString(boostRewardPart), ((((debug + "::") + toString(userWxReward)) + "::BOOST::") + boostDebug)], SEP)) | |
635 | 619 | } | |
636 | 620 | ||
637 | 621 | ||
638 | 622 | ||
639 | 623 | @Callable(i) | |
640 | 624 | func usersListTraversal (lpAssetId) = { | |
641 | 625 | let checkCaller = if ((toBase58String(i.caller.bytes) == valueOrElse(getString(this, keyVotingEmissionContract()), ""))) | |
642 | 626 | then true | |
643 | 627 | else mustManager(i) | |
644 | 628 | if ((checkCaller == checkCaller)) | |
645 | 629 | then { | |
646 | 630 | let listName = getUsersListName(lpAssetId) | |
647 | 631 | let userOrUnit = getString(keyNextUser(lpAssetId)) | |
648 | 632 | let headOrUnit = getString(keyListHead(listName)) | |
649 | 633 | match userOrUnit { | |
650 | 634 | case _: Unit => | |
651 | 635 | match headOrUnit { | |
652 | 636 | case _: Unit => | |
653 | 637 | $Tuple2(nil, false) | |
654 | 638 | case head: String => | |
655 | 639 | $Tuple2([StringEntry(keyNextUser(lpAssetId), head)], true) | |
656 | 640 | case _ => | |
657 | 641 | throw("Match error") | |
658 | 642 | } | |
659 | 643 | case userAddress: String => | |
660 | 644 | let claimedByUser = getBigIntFromStringOrZero(this, keyClaimedByUser(lpAssetId, userAddress)) | |
661 | 645 | let poolAddress = getStringByAddressOrFail(factoryContract, keyFactoryLpAssetToPoolContractAddress(lpAssetId)) | |
662 | 646 | let wxToClaimUserNew = refreshINTEGRALS(lpAssetId, userAddress, poolAddress, 0)._1 | |
663 | 647 | let availableToClaim = (wxToClaimUserNew - claimedByUser) | |
664 | 648 | let r = if ((availableToClaim > zeroBigInt)) | |
665 | 649 | then invoke(this, "claimWxINTERNAL", [lpAssetId, userAddress], nil) | |
666 | 650 | else unit | |
667 | 651 | if ((r == r)) | |
668 | 652 | then { | |
669 | 653 | let nextUserOrUnit = getString(keyListNext(listName, userAddress)) | |
670 | 654 | match nextUserOrUnit { | |
671 | 655 | case _: Unit => | |
672 | 656 | $Tuple2([DeleteEntry(keyNextUser(lpAssetId))], false) | |
673 | 657 | case nextUser: String => | |
674 | 658 | $Tuple2([StringEntry(keyNextUser(lpAssetId), nextUser)], true) | |
675 | 659 | case _ => | |
676 | 660 | throw("Match error") | |
677 | 661 | } | |
678 | 662 | } | |
679 | 663 | else throw("Strict value is not equal to itself.") | |
680 | 664 | case _ => | |
681 | 665 | throw("Match error") | |
682 | 666 | } | |
683 | 667 | } | |
684 | 668 | else throw("Strict value is not equal to itself.") | |
685 | 669 | } | |
686 | 670 | ||
687 | 671 | ||
688 | 672 | ||
689 | 673 | @Callable(i) | |
690 | 674 | func onModifyWeight (lpAssetIdStr,poolAddressStr) = if ((i.caller != factoryContract)) | |
691 | 675 | then throw("permissions denied") | |
692 | 676 | else { | |
693 | - | let $ | |
694 | - | let wxPerLpIntegralNew = $ | |
695 | - | let poolIntegralSTATE = $ | |
696 | - | let poolDEBUG = $ | |
677 | + | let $t02780727917 = refreshPoolINTEGRALS(lpAssetIdStr, poolAddressStr, 0) | |
678 | + | let wxPerLpIntegralNew = $t02780727917._1 | |
679 | + | let poolIntegralSTATE = $t02780727917._2 | |
680 | + | let poolDEBUG = $t02780727917._3 | |
697 | 681 | poolIntegralSTATE | |
698 | 682 | } | |
699 | - | ||
700 | - | ||
701 | - | ||
702 | - | @Callable(i) | |
703 | - | func setMigrator (pk) = if ((pk == "")) | |
704 | - | then [DeleteEntry(keyMigrator)] | |
705 | - | else [BinaryEntry(keyMigrator, fromBase58String(pk))] | |
706 | 683 | ||
707 | 684 | ||
708 | 685 | @Verifier(tx) | |
709 | 686 | func verify () = { | |
710 | 687 | let targetPublicKey = match managerPublicKeyOrUnit() { | |
711 | 688 | case pk: ByteVector => | |
712 | 689 | pk | |
713 | 690 | case _: Unit => | |
714 | 691 | tx.senderPublicKey | |
715 | 692 | case _ => | |
716 | 693 | throw("Match error") | |
717 | 694 | } | |
718 | - | if (sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)) | |
719 | - | then true | |
720 | - | else sigVerify(tx.bodyBytes, tx.proofs[0], getBinaryValue(this, keyMigrator)) | |
695 | + | sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey) | |
721 | 696 | } | |
722 | 697 |
github/deemru/w8io/fabc49c 73.91 ms ◑