tx · Gsn8hUuJ3TctkoqY5qkGHEW3qdZnVrpKeHRo2JfzMB9R 3MuGfNhF98CNBCfthhoJEo6SYUv7zTgkK4J: -0.03000000 Waves 2023.10.11 16:38 [2794021] smart account 3MuGfNhF98CNBCfthhoJEo6SYUv7zTgkK4J > SELF 0.00000000 Waves
{ "type": 13, "id": "Gsn8hUuJ3TctkoqY5qkGHEW3qdZnVrpKeHRo2JfzMB9R", "fee": 3000000, "feeAssetId": null, "timestamp": 1697031529384, "version": 2, "chainId": 84, "sender": "3MuGfNhF98CNBCfthhoJEo6SYUv7zTgkK4J", "senderPublicKey": "4DthuG3xjZV9WtZ34Y66AummdAr67wRzwWsVQL4y2bob", "proofs": [ "2qykY7haa6a4E9L6zWNDH61X51fSgejGQksQusLeWhQtQckKdHN9cpxJ9r3DTXywaHmK4jszahWa5xvndqaLwPHH", "5Vuhsb171dMgALXwqcmrcxKt9FuWPF9xXoHKWoaA7fPVct2C1AQ3GK7pUBbhLt2Qdsshjf9LxeMMpUx6n12BGMPd", "2tAVRzxobBuQksnuA6hrPjWp49YPCQxPoZ5zTCqZFiSavCVmbXu9raXe2wJsbHDWfdBPN6ywANvUZkkHcLjerH4X" ], "script": "base64:BgIzCAISBwoFCAgBAQgSBAoCAQESABIDCgEBEgASABIAEgASABIDCgEIEgQKAggBEgQKAggBXgAJc2VwYXJhdG9yAgJfXwADU0VQAgJfXwAFTVVMVDYAwIQ9AAVNVUxUOACAwtcvAAZNVUxUWDYJALYCAQUFTVVMVDYABk1VTFRYOAkAtgIBBQVNVUxUOAAHTVVMVFgxOAkAtgIBAICAkLu61q3wDQAKV0FWRVNJRFNUUgIFV0FWRVMAB1dBVkVTSUQJANkEAQUKV0FWRVNJRFNUUgAJREFZTUlMTElTAIC4mSkACU1BWEJBU0tFVAAJABlJZHhDb250cm9sQ2ZnTmV1dHJpbm9EYXBwAAEAGElkeENvbnRyb2xDZmdBdWN0aW9uRGFwcAACABRJZHhDb250cm9sQ2ZnUnBkRGFwcA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DMCAICLERVdXVMalh1OThuQndaYzdmcXdDVGp0QTNublJ3Z1Ria01TcjVTVTJObURSCQDMCAICLERVdXVMalh1OThuQndaYzdmcXdDVGp0QTNublJ3Z1Ria01TcjVTVTJObURSBQNuaWwFA1NFUAQQcHViS2V5QWRtaW5zTGlzdAkAtQkCCQELdmFsdWVPckVsc2UCCQCdCAIFD2NvbnRyb2xDb250cmFjdAIMJXNfX211bHRpc2lnBRNwdWJLZXlBZG1pbnNMaXN0U3RyBQNTRVAEBWNvdW50CQBkAgkAZAIJAGQCAwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAkA2QQBCQCRAwIFEHB1YktleUFkbWluc0xpc3QAAAABAAADCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwABCQDZBAEJAJEDAgUQcHViS2V5QWRtaW5zTGlzdAABAAEAAAMJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAIJANkEAQkAkQMCBRBwdWJLZXlBZG1pbnNMaXN0AAIAAQAAAwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAwkA2QQBCQCRAwIFEHB1YktleUFkbWluc0xpc3QAAwACAAAJAGcCBQVjb3VudAADPm5gpQ==", "height": 2794021, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4EVkYYtm3ADUPKvwauKoi8qTiV8QeXKz9gZjPCEGd25Y Next: HD72t3xgpSkMgXpcCMTnkF2JHPpQN3rPRgYYatgnBTMq Diff:
Old | New | Differences | |
---|---|---|---|
435 | 435 | if (isNewUser) | |
436 | 436 | then throw("You have nothing to restake") | |
437 | 437 | else { | |
438 | - | let newUserGnsbt = (2 * lockAmount) | |
439 | - | let totalNsbt = getIntOrZero(keyLockParamTotalAmount()) | |
440 | - | let totalGnsbt = getIntOrElse(keyLockParamTotalGnsbt(), totalNsbt) | |
441 | - | let newTotalGnsbt = ((totalGnsbt - currUserGnsbt) + newUserGnsbt) | |
438 | + | let deltaUserGnsbt = currUserGnsbt | |
439 | + | let newUserGnsbt = (currUserGnsbt + deltaUserGnsbt) | |
442 | 440 | let userConsentTuple = readUserConsentToX2Gnsbt(userAddress) | |
443 | 441 | let userConsentedToX2GnsbtKEY = userConsentTuple._1 | |
444 | 442 | let userConsentedToX2Gnsbt = userConsentTuple._2 | |
445 | 443 | if (userConsentedToX2Gnsbt) | |
446 | 444 | then throw("User has already doubled its gNSBT value") | |
447 | - | else $Tuple2((((claimActions ++ LockParamsEntry(userAddress, lockAmount, height, newUserGnsbt)) :+ IntegerEntry(keyLockParamTotalGnsbt(), newTotalGnsbt)) :+ BooleanEntry(userConsentedToX2GnsbtKEY, true)), claimResult) | |
445 | + | else { | |
446 | + | let $t01693617022 = StatsResult(0, 0, 0, deltaUserGnsbt) | |
447 | + | let statsEntries = $t01693617022._1 | |
448 | + | let totalStaked = $t01693617022._2 | |
449 | + | let totalStakedNew = $t01693617022._3 | |
450 | + | $Tuple2((((claimActions ++ LockParamsEntry(userAddress, lockAmount, height, newUserGnsbt)) ++ statsEntries) :+ BooleanEntry(userConsentedToX2GnsbtKEY, true)), claimResult) | |
451 | + | } | |
448 | 452 | } | |
449 | 453 | } | |
450 | 454 | ||
465 | 469 | ||
466 | 470 | @Callable(i) | |
467 | 471 | func stake () = { | |
468 | - | let $ | |
469 | - | let bondAssetId = $ | |
470 | - | let minLockAmount = $ | |
471 | - | let halfLife = $ | |
472 | + | let $t01812818190 = getParamsOrFail() | |
473 | + | let bondAssetId = $t01812818190._1 | |
474 | + | let minLockAmount = $t01812818190._2 | |
475 | + | let halfLife = $t01812818190._3 | |
472 | 476 | if ((size(i.payments) != 1)) | |
473 | 477 | then throw("Invalid payments size") | |
474 | 478 | else { | |
481 | 485 | else { | |
482 | 486 | let userAddress = i.caller | |
483 | 487 | let userAddressStr = toString(i.caller) | |
484 | - | let $ | |
485 | - | let isNewUser = $ | |
486 | - | let lockAmount = $ | |
487 | - | let lockStartHeight = $ | |
488 | - | let currUserGnsbt = $ | |
488 | + | let $t01873218857 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple4(true, 0, -1, 0)) | |
489 | + | let isNewUser = $t01873218857._1 | |
490 | + | let lockAmount = $t01873218857._2 | |
491 | + | let lockStartHeight = $t01873218857._3 | |
492 | + | let currUserGnsbt = $t01873218857._4 | |
489 | 493 | let mergedAmount = if (isNewUser) | |
490 | 494 | then amount | |
491 | 495 | else (amount + lockAmount) | |
508 | 512 | let x2GnsbtConsentEntry = if (isNewUser) | |
509 | 513 | then [BooleanEntry(userConsentedToX2GnsbtKEY, true)] | |
510 | 514 | else nil | |
511 | - | let $ | |
515 | + | let $t01986119979 = StatsResult(amount, 1, if (isNewUser) | |
512 | 516 | then 1 | |
513 | 517 | else 0, deltaUserGnsbt) | |
514 | - | let statsEntries = $ | |
515 | - | let totalStaked = $ | |
516 | - | let totalStakedNew = $ | |
517 | - | (((([HistoryRecordEntry("stake", userAddress, i.transactionId, lockAmount, lockStartHeight, mergedAmount, mergedStartHeight)] ++ RewardEntries(isNewUser, userAddressStr, | |
518 | + | let statsEntries = $t01986119979._1 | |
519 | + | let totalStaked = $t01986119979._2 | |
520 | + | let totalStakedNew = $t01986119979._3 | |
521 | + | (((([HistoryRecordEntry("stake", userAddress, i.transactionId, lockAmount, lockStartHeight, mergedAmount, mergedStartHeight)] ++ RewardEntries(isNewUser, userAddressStr, currUserGnsbt)) ++ LockParamsEntry(userAddress, mergedAmount, mergedStartHeight, (currUserGnsbt + deltaUserGnsbt))) ++ statsEntries) ++ x2GnsbtConsentEntry) | |
518 | 522 | } | |
519 | 523 | } | |
520 | 524 | } | |
528 | 532 | else { | |
529 | 533 | let userAddress = i.caller | |
530 | 534 | let userAddressStr = toString(userAddress) | |
531 | - | let $ | |
532 | - | let bondAssetId = $ | |
533 | - | let minLockAmount = $ | |
534 | - | let halfLife = $ | |
535 | - | let $ | |
536 | - | let isNewUser = $ | |
537 | - | let lockAmount = $ | |
538 | - | let lockStart = $ | |
539 | - | let currUserGnsbt = $ | |
535 | + | let $t02052520587 = getParamsOrFail() | |
536 | + | let bondAssetId = $t02052520587._1 | |
537 | + | let minLockAmount = $t02052520587._2 | |
538 | + | let halfLife = $t02052520587._3 | |
539 | + | let $t02059020679 = getUserParamsOrFail(userAddress) | |
540 | + | let isNewUser = $t02059020679._1 | |
541 | + | let lockAmount = $t02059020679._2 | |
542 | + | let lockStart = $t02059020679._3 | |
543 | + | let currUserGnsbt = $t02059020679._4 | |
540 | 544 | if ((0 >= lockAmount)) | |
541 | 545 | then throw("Nothing to unstake") | |
542 | 546 | else if ((amount > lockAmount)) | |
551 | 555 | let bonusGnsbtPart = (currUserGnsbt - lockAmount) | |
552 | 556 | let bonusNsbtAmount = min([amount, bonusGnsbtPart]) | |
553 | 557 | let deltaGnsbt = (bonusNsbtAmount + amount) | |
554 | - | let $ | |
558 | + | let $t02151721688 = StatsResult(-(amount), if ((amount == lockAmount)) | |
555 | 559 | then -1 | |
556 | 560 | else 0, if ((amount == lockAmount)) | |
557 | 561 | then -1 | |
558 | 562 | else 0, -(deltaGnsbt)) | |
559 | - | let statsEntries = $ | |
560 | - | let totalStaked = $ | |
561 | - | let totalStakedNew = $ | |
562 | - | ((([ScriptTransfer(userAddress, (amount - comissionAmount), bondAssetId), ScriptTransfer(auctionContract, comissionAmount, bondAssetId), HistoryRecordEntry("unstake", userAddress, i.transactionId, lockAmount, lockStart, (lockAmount - amount), lockStart)] ++ RewardEntries(false, userAddressStr, | |
563 | + | let statsEntries = $t02151721688._1 | |
564 | + | let totalStaked = $t02151721688._2 | |
565 | + | let totalStakedNew = $t02151721688._3 | |
566 | + | ((([ScriptTransfer(userAddress, (amount - comissionAmount), bondAssetId), ScriptTransfer(auctionContract, comissionAmount, bondAssetId), HistoryRecordEntry("unstake", userAddress, i.transactionId, lockAmount, lockStart, (lockAmount - amount), lockStart)] ++ RewardEntries(false, userAddressStr, currUserGnsbt)) ++ LockParamsEntry(userAddress, (lockAmount - amount), lockStart, (currUserGnsbt - deltaGnsbt))) ++ statsEntries) | |
563 | 567 | } | |
564 | 568 | } | |
565 | 569 | } | |
681 | 685 | } | |
682 | 686 | else { | |
683 | 687 | let userAddress = addressFromStringValue(userAddressStr) | |
684 | - | let $ | |
685 | - | let isNewUser = $ | |
686 | - | let stakedAmount = $ | |
687 | - | let stakingStart = $ | |
688 | - | let userGnsbt = $ | |
688 | + | let $t02575525874 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple4(true, 0, 0, 0)) | |
689 | + | let isNewUser = $t02575525874._1 | |
690 | + | let stakedAmount = $t02575525874._2 | |
691 | + | let stakingStart = $t02575525874._3 | |
692 | + | let userGnsbt = $t02575525874._4 | |
689 | 693 | let stakedAmountX = toBigInt(userGnsbt) | |
690 | 694 | let userRewardFromDepositNumKEY = keyUserRewardFromDepositNum(userAddressStr) | |
691 | 695 | let depositNumUser = getIntOrElse(userRewardFromDepositNumKEY, -1) | |
692 | 696 | let depositNumLast = getIntOrElse(keyDepositNumLast(), -1) | |
693 | 697 | func forEachAssetCalcUnclaimedReward (accum,asset) = { | |
694 | - | let $ | |
695 | - | let rewardTotal = $ | |
696 | - | let cached = $ | |
697 | - | let dynamic = $ | |
698 | - | let rewardCachedPartKEY = $ | |
698 | + | let $t02621726355 = calcReward(userAddressStr, asset, stakedAmountX, depositNumUser, depositNumLast) | |
699 | + | let rewardTotal = $t02621726355._1 | |
700 | + | let cached = $t02621726355._2 | |
701 | + | let dynamic = $t02621726355._3 | |
702 | + | let rewardCachedPartKEY = $t02621726355._4 | |
699 | 703 | let claimed = valueOrElse(getInteger(keyClaimed(userAddressStr, asset)), 0) | |
700 | 704 | ((accum + makeString([asset, toString(rewardTotal), toString(claimed)], ":")) + "_") | |
701 | 705 | } | |
755 | 759 | then $Tuple2(nil, [0, totalNsbtAmt, 0, 0, totalGnsbt]) | |
756 | 760 | else { | |
757 | 761 | let userAddress = toAddressOrFail(userAddressStr) | |
758 | - | let $ | |
759 | - | let isNewUser = $ | |
760 | - | let userNsbtAmt = $ | |
761 | - | let stakingStart = $ | |
762 | - | let userGnsbt = $ | |
762 | + | let $t02814528263 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple4(true, 0, 0, 0)) | |
763 | + | let isNewUser = $t02814528263._1 | |
764 | + | let userNsbtAmt = $t02814528263._2 | |
765 | + | let stakingStart = $t02814528263._3 | |
766 | + | let userGnsbt = $t02814528263._4 | |
763 | 767 | $Tuple2(nil, [userNsbtAmt, totalNsbtAmt, stakingStart, userGnsbt, totalGnsbt]) | |
764 | 768 | } | |
765 | 769 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let separator = "__" | |
5 | 5 | ||
6 | 6 | let SEP = "__" | |
7 | 7 | ||
8 | 8 | let MULT6 = 1000000 | |
9 | 9 | ||
10 | 10 | let MULT8 = 100000000 | |
11 | 11 | ||
12 | 12 | let MULTX6 = toBigInt(MULT6) | |
13 | 13 | ||
14 | 14 | let MULTX8 = toBigInt(MULT8) | |
15 | 15 | ||
16 | 16 | let MULTX18 = toBigInt(1000000000000000000) | |
17 | 17 | ||
18 | 18 | let WAVESIDSTR = "WAVES" | |
19 | 19 | ||
20 | 20 | let WAVESID = fromBase58String(WAVESIDSTR) | |
21 | 21 | ||
22 | 22 | let DAYMILLIS = 86400000 | |
23 | 23 | ||
24 | 24 | let MAXBASKET = 9 | |
25 | 25 | ||
26 | 26 | let IdxControlCfgNeutrinoDapp = 1 | |
27 | 27 | ||
28 | 28 | let IdxControlCfgAuctionDapp = 2 | |
29 | 29 | ||
30 | 30 | let IdxControlCfgRpdDapp = 3 | |
31 | 31 | ||
32 | 32 | let IdxControlCfgMathDapp = 4 | |
33 | 33 | ||
34 | 34 | let IdxControlCfgLiquidationDapp = 5 | |
35 | 35 | ||
36 | 36 | let IdxControlCfgRestDapp = 6 | |
37 | 37 | ||
38 | 38 | let IdxControlCfgNodeRegistryDapp = 7 | |
39 | 39 | ||
40 | 40 | let IdxControlCfgNsbtStakingDapp = 8 | |
41 | 41 | ||
42 | 42 | let IdxControlCfgMediatorDapp = 9 | |
43 | 43 | ||
44 | 44 | let IdxControlCfgGovernanceDapp = 13 | |
45 | 45 | ||
46 | 46 | func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), (((("mandatory " + toString(address)) + ".") + key) + " is not defined")) | |
47 | 47 | ||
48 | 48 | ||
49 | 49 | func keyCfgX2GnsbtOfferHeightStart () = "%s%s__config__x2GnsbtOfferHeightStart" | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | func keyCfgX2GnsbtOfferHeightEnd () = "%s%s__config__x2GnsbtOfferHeightEnd" | |
53 | 53 | ||
54 | 54 | ||
55 | 55 | func keyControlAddress () = "%s%s__config__controlAddress" | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | func keyControlCfg () = "%s__controlConfig" | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | func readControlCfgOrFail (control) = split_4C(getStringOrFail(control, keyControlCfg()), SEP) | |
62 | 62 | ||
63 | 63 | ||
64 | 64 | func getContractAddressOrFail (controlCfg,idx) = valueOrErrorMessage(addressFromString(controlCfg[idx]), ("Control cfg doesn't contain address at index " + toString(idx))) | |
65 | 65 | ||
66 | 66 | ||
67 | 67 | let controlContract = addressFromStringValue(valueOrElse(getString(this, keyControlAddress()), "3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx")) | |
68 | 68 | ||
69 | 69 | let controlCfg = readControlCfgOrFail(controlContract) | |
70 | 70 | ||
71 | 71 | let mathContract = getContractAddressOrFail(controlCfg, IdxControlCfgMathDapp) | |
72 | 72 | ||
73 | 73 | let neutrinoContract = getContractAddressOrFail(controlCfg, IdxControlCfgNeutrinoDapp) | |
74 | 74 | ||
75 | 75 | let auctionContract = getContractAddressOrFail(controlCfg, IdxControlCfgAuctionDapp) | |
76 | 76 | ||
77 | 77 | let govContract = getContractAddressOrFail(controlCfg, IdxControlCfgGovernanceDapp) | |
78 | 78 | ||
79 | 79 | let RENEW_START_HEIGHT = valueOrElse(getInteger(this, keyCfgX2GnsbtOfferHeightStart()), 0) | |
80 | 80 | ||
81 | 81 | let RENEW_END_HEIGHT = valueOrElse(getInteger(this, keyCfgX2GnsbtOfferHeightEnd()), 0) | |
82 | 82 | ||
83 | 83 | func keyBondAsset () = "bond_asset_id" | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func keyUserGnsbtReleaseTime (userAddr) = ("%s%s_userGnsbtReleaseTime__" + userAddr) | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func keyNeutrinoContractAddress () = "%s__neutrinoContractAddress" | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | func keyMathContractAddress () = "%s__mathContract" | |
93 | 93 | ||
94 | 94 | ||
95 | 95 | func keyMinLockAmount () = "%s__minLockAmount" | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | func keyHalfLife () = "%s__halfLife" | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | func keyLockParamUserAmount (userAddress) = makeString(["%s%s%s", "paramByUser", toString(userAddress), "amount"], separator) | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | func keyLockParamStartBlock (userAddress) = makeString(["%s%s%s", "paramByUser", toString(userAddress), "start"], separator) | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | func keyLockParamUserGnsbt (userAddress) = makeString(["%s%s%s", "paramByUser", toString(userAddress), "gNsbt"], separator) | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | func keyUserConsentedToX2Gnsbt (userAddress) = makeString(["%s%s%s", "paramByUser", toString(userAddress), "consentedToX2Gnsbt"], separator) | |
111 | 111 | ||
112 | 112 | ||
113 | 113 | func keyHistoryRecord (type,userAddress,txId) = makeString(["%s%s%s%s", "history", type, toString(userAddress), toBase58String(txId)], separator) | |
114 | 114 | ||
115 | 115 | ||
116 | 116 | func keyLockParamTotalAmount () = makeString(["%s%s", "stats", "activeTotalLocked"], separator) | |
117 | 117 | ||
118 | 118 | ||
119 | 119 | func keyLockParamTotalGnsbt () = makeString(["%s%s", "stats", "activeTotalGnsbt"], separator) | |
120 | 120 | ||
121 | 121 | ||
122 | 122 | func keyStatsLocksCount () = makeString(["%s%s", "stats", "locksCount"], separator) | |
123 | 123 | ||
124 | 124 | ||
125 | 125 | func keyStatsUsersCount () = makeString(["%s%s", "stats", "activeUsersCount"], separator) | |
126 | 126 | ||
127 | 127 | ||
128 | 128 | func keyStatsDepositAmtByDay (timestamp) = makeString(["%s%s%d", "stats", "depositAmtByDay", toString(timestamp)], separator) | |
129 | 129 | ||
130 | 130 | ||
131 | 131 | func keyStatsDepositAmtTotals () = makeString(["%s%s%d", "stats", "depositAmtTotals"], separator) | |
132 | 132 | ||
133 | 133 | ||
134 | 134 | func keyNextPeriod () = "%s__nextPeriod" | |
135 | 135 | ||
136 | 136 | ||
137 | 137 | func keySupportedRewardAssets () = "supportedRewardAssets" | |
138 | 138 | ||
139 | 139 | ||
140 | 140 | func keyDepositNumLast () = makeString(["%s%s%s", "dep", "lastNum"], separator) | |
141 | 141 | ||
142 | 142 | ||
143 | 143 | func keyUserRewardFromDepositNum (userAddress) = makeString(["%s%s%s", "userRwdFromDepNum", userAddress], separator) | |
144 | 144 | ||
145 | 145 | ||
146 | 146 | func keyRewardPerNsbtSumAt (depositNum,tkn) = makeString(["%s%d", "rwdPerNsbtSumByDepNum", toString(depositNum), tkn], separator) | |
147 | 147 | ||
148 | 148 | ||
149 | 149 | func keyReward (userAddress,tkn) = makeString(["%s%s%s", "rwd", userAddress, tkn], separator) | |
150 | 150 | ||
151 | 151 | ||
152 | 152 | func keyClaimed (userAddress,tkn) = makeString(["%s%s%s", "clm", userAddress, tkn], separator) | |
153 | 153 | ||
154 | 154 | ||
155 | 155 | func keyNotDistributedReward (tkn) = makeString(["%s%s", "notDistributed", tkn], separator) | |
156 | 156 | ||
157 | 157 | ||
158 | 158 | func toX18 (origVal,origMult) = fraction(toBigInt(origVal), MULTX18, origMult) | |
159 | 159 | ||
160 | 160 | ||
161 | 161 | func getIntOrZero (key) = valueOrElse(getInteger(this, key), 0) | |
162 | 162 | ||
163 | 163 | ||
164 | 164 | func getIntOrElse (key,defaultVal) = valueOrElse(getInteger(this, key), defaultVal) | |
165 | 165 | ||
166 | 166 | ||
167 | 167 | func getIntOrFail (key) = valueOrErrorMessage(getInteger(this, key), (("Mandatory this." + key) + " is not defined")) | |
168 | 168 | ||
169 | 169 | ||
170 | 170 | func getStrOrElse (key,defaultVal) = valueOrElse(getString(this, key), defaultVal) | |
171 | 171 | ||
172 | 172 | ||
173 | 173 | func toAddressOrFail (addressStr) = valueOrErrorMessage(addressFromString(addressStr), ("couldn't parse passed addressStr=" + addressStr)) | |
174 | 174 | ||
175 | 175 | ||
176 | 176 | func toAssetVect (assetStr) = if ((assetStr == WAVESIDSTR)) | |
177 | 177 | then unit | |
178 | 178 | else fromBase58String(assetStr) | |
179 | 179 | ||
180 | 180 | ||
181 | 181 | func asInt (val) = match val { | |
182 | 182 | case valInt: Int => | |
183 | 183 | valInt | |
184 | 184 | case _ => | |
185 | 185 | throw("fail to cast into Int") | |
186 | 186 | } | |
187 | 187 | ||
188 | 188 | ||
189 | 189 | func formatHistoryRecord (oldAmount,oldStart,newAmount,newStart) = makeString(["%d%d%d%d%d%d", toString(lastBlock.height), toString(lastBlock.timestamp), toString(oldAmount), toString(oldStart), toString(newAmount), toString(newStart)], separator) | |
190 | 190 | ||
191 | 191 | ||
192 | 192 | func formatClaimHistoryRecord (user,claimedRewards) = makeString(["%s%d%d%s", user, toString(lastBlock.height), toString(lastBlock.timestamp), claimedRewards], separator) | |
193 | 193 | ||
194 | 194 | ||
195 | 195 | func HistoryRecordEntry (type,userAddress,txId,oldAmount,oldStart,newAmount,newStart) = StringEntry(keyHistoryRecord(type, userAddress, txId), formatHistoryRecord(oldAmount, oldStart, newAmount, newStart)) | |
196 | 196 | ||
197 | 197 | ||
198 | 198 | func ClaimHistoryEntry (userAddress,txId,claimedRewards) = StringEntry(keyHistoryRecord("claim", userAddress, txId), formatClaimHistoryRecord(toString(userAddress), claimedRewards)) | |
199 | 199 | ||
200 | 200 | ||
201 | 201 | func StatsResult (totalLockedInc,lockCountInc,usersCountInc,totalGnsbtInc) = { | |
202 | 202 | let locksCount = getIntOrZero(keyStatsLocksCount()) | |
203 | 203 | let usersCount = getIntOrZero(keyStatsUsersCount()) | |
204 | 204 | let totalAmount = getIntOrZero(keyLockParamTotalAmount()) | |
205 | 205 | let totalAmountNew = (totalAmount + totalLockedInc) | |
206 | 206 | let totalGnsbt = getIntOrElse(keyLockParamTotalGnsbt(), totalAmount) | |
207 | 207 | $Tuple3([IntegerEntry(keyStatsLocksCount(), (locksCount + lockCountInc)), IntegerEntry(keyStatsUsersCount(), (usersCount + usersCountInc)), IntegerEntry(keyLockParamTotalAmount(), totalAmountNew), IntegerEntry(keyLockParamTotalGnsbt(), (totalGnsbt + totalGnsbtInc))], totalAmount, totalAmountNew) | |
208 | 208 | } | |
209 | 209 | ||
210 | 210 | ||
211 | 211 | func LockParamsEntry (userAddress,nsbtAmount,start,gNsbtAmount) = [IntegerEntry(keyLockParamUserAmount(userAddress), nsbtAmount), IntegerEntry(keyLockParamUserGnsbt(userAddress), gNsbtAmount), IntegerEntry(keyLockParamStartBlock(userAddress), start)] | |
212 | 212 | ||
213 | 213 | ||
214 | 214 | func getParamsOrFail () = $Tuple3(fromBase58String(getStringValue(neutrinoContract, keyBondAsset())), getIntOrFail(keyMinLockAmount()), getIntOrFail(keyHalfLife())) | |
215 | 215 | ||
216 | 216 | ||
217 | 217 | func isActiveUser (userAddress) = (getIntOrElse(keyLockParamUserAmount(userAddress), 0) > 0) | |
218 | 218 | ||
219 | 219 | ||
220 | 220 | func isBonusPeriod (h) = if ((h >= RENEW_START_HEIGHT)) | |
221 | 221 | then (RENEW_END_HEIGHT >= h) | |
222 | 222 | else false | |
223 | 223 | ||
224 | 224 | ||
225 | 225 | func getUserParamsOrUnit (userAddress) = if (isActiveUser(userAddress)) | |
226 | 226 | then { | |
227 | 227 | let amount = getIntOrFail(keyLockParamUserAmount(userAddress)) | |
228 | 228 | $Tuple4(false, amount, getIntOrFail(keyLockParamStartBlock(userAddress)), getIntOrElse(keyLockParamUserGnsbt(userAddress), amount)) | |
229 | 229 | } | |
230 | 230 | else unit | |
231 | 231 | ||
232 | 232 | ||
233 | 233 | func getUserParamsOrFail (userAddress) = valueOrErrorMessage(getUserParamsOrUnit(userAddress), (("User " + toString(userAddress)) + " is not defined")) | |
234 | 234 | ||
235 | 235 | ||
236 | 236 | let supportedAssetsStr = getStrOrElse(keySupportedRewardAssets(), "") | |
237 | 237 | ||
238 | 238 | let supportedAssetsList = split(supportedAssetsStr, "_") | |
239 | 239 | ||
240 | 240 | func calcReward (userAddress,assetId,stakedAmountX,depositNumUser,depositNumLast) = { | |
241 | 241 | let rewardPerNsbtSumLastKEY = keyRewardPerNsbtSumAt(depositNumLast, assetId) | |
242 | 242 | let sumLastX18 = parseBigIntValue(getStrOrElse(keyRewardPerNsbtSumAt(depositNumLast, assetId), "0")) | |
243 | 243 | let sumUserX18 = parseBigIntValue(getStrOrElse(keyRewardPerNsbtSumAt(depositNumUser, assetId), "0")) | |
244 | 244 | let rewardDynamicPart = toInt(fraction((sumLastX18 - sumUserX18), stakedAmountX, MULTX18)) | |
245 | 245 | let rewardCachedPartKEY = keyReward(userAddress, assetId) | |
246 | 246 | let rewardCachedPart = getIntOrElse(rewardCachedPartKEY, 0) | |
247 | 247 | $Tuple4((rewardCachedPart + rewardDynamicPart), rewardCachedPart, rewardDynamicPart, rewardCachedPartKEY) | |
248 | 248 | } | |
249 | 249 | ||
250 | 250 | ||
251 | 251 | func toStartOfDay (timestamp) = ((timestamp / DAYMILLIS) * DAYMILLIS) | |
252 | 252 | ||
253 | 253 | ||
254 | 254 | func findElementPosition (src,element,sep) = { | |
255 | 255 | let elementStart = valueOrErrorMessage(indexOf(src, element), ((("there is no substring " + element) + " in ") + src)) | |
256 | 256 | if ((elementStart == 0)) | |
257 | 257 | then 0 | |
258 | 258 | else { | |
259 | 259 | let left = take(src, elementStart) | |
260 | 260 | (size(split(left, sep)) - 1) | |
261 | 261 | } | |
262 | 262 | } | |
263 | 263 | ||
264 | 264 | ||
265 | 265 | let DepositTotalsPREFIX = "%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d" | |
266 | 266 | ||
267 | 267 | let defaultTotalsDATA = (DepositTotalsPREFIX + "__0__0__0__0__0__0__0__0__0__0__0__0__0__0__0__0__0__0") | |
268 | 268 | ||
269 | 269 | func padList (in) = { | |
270 | 270 | let currSize = (size(in) - 1) | |
271 | 271 | func listPadder (acc,idx) = if ((currSize > idx)) | |
272 | 272 | then acc | |
273 | 273 | else (acc :+ "0") | |
274 | 274 | ||
275 | 275 | let $l = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17] | |
276 | 276 | let $s = size($l) | |
277 | 277 | let $acc0 = in | |
278 | 278 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
279 | 279 | then $a | |
280 | 280 | else listPadder($a, $l[$i]) | |
281 | 281 | ||
282 | 282 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
283 | 283 | then $a | |
284 | 284 | else throw("List size exceeds 18") | |
285 | 285 | ||
286 | 286 | $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($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18) | |
287 | 287 | } | |
288 | 288 | ||
289 | 289 | ||
290 | 290 | func padString (in) = { | |
291 | 291 | let currSize = (size(split_4C(in, SEP)) - 1) | |
292 | 292 | func strPadder (acc,idx) = if ((currSize > idx)) | |
293 | 293 | then acc | |
294 | 294 | else (acc + "__0") | |
295 | 295 | ||
296 | 296 | let $l = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17] | |
297 | 297 | let $s = size($l) | |
298 | 298 | let $acc0 = in | |
299 | 299 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
300 | 300 | then $a | |
301 | 301 | else strPadder($a, $l[$i]) | |
302 | 302 | ||
303 | 303 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
304 | 304 | then $a | |
305 | 305 | else throw("List size exceeds 18") | |
306 | 306 | ||
307 | 307 | $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($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18) | |
308 | 308 | } | |
309 | 309 | ||
310 | 310 | ||
311 | 311 | func RewardEntries (isNewUser,userAddress,stakedAmount) = { | |
312 | 312 | let stakedAmountX = toBigInt(stakedAmount) | |
313 | 313 | let userRewardFromDepositNumKEY = keyUserRewardFromDepositNum(userAddress) | |
314 | 314 | let depositNumUser = getIntOrElse(userRewardFromDepositNumKEY, -1) | |
315 | 315 | let depositNumLast = getIntOrElse(keyDepositNumLast(), -1) | |
316 | 316 | func forEachAssetCacheUserReward (accum,asset) = { | |
317 | 317 | let $t01139311528 = calcReward(userAddress, asset, stakedAmountX, depositNumUser, depositNumLast) | |
318 | 318 | let rewardTotal = $t01139311528._1 | |
319 | 319 | let cached = $t01139311528._2 | |
320 | 320 | let dynamic = $t01139311528._3 | |
321 | 321 | let rewardCachedPartKEY = $t01139311528._4 | |
322 | 322 | (accum :+ IntegerEntry(rewardCachedPartKEY, rewardTotal)) | |
323 | 323 | } | |
324 | 324 | ||
325 | 325 | if (if ((depositNumLast == -1)) | |
326 | 326 | then (depositNumUser == -1) | |
327 | 327 | else false) | |
328 | 328 | then nil | |
329 | 329 | else if (if ((depositNumLast == -1)) | |
330 | 330 | then (depositNumUser > -1) | |
331 | 331 | else false) | |
332 | 332 | then throw("invalid depositNumLast and depositNumUser state") | |
333 | 333 | else if (if ((depositNumLast > -1)) | |
334 | 334 | then (depositNumUser >= -1) | |
335 | 335 | else false) | |
336 | 336 | then if (isNewUser) | |
337 | 337 | then [IntegerEntry(userRewardFromDepositNumKEY, depositNumLast)] | |
338 | 338 | else ({ | |
339 | 339 | let $l = supportedAssetsList | |
340 | 340 | let $s = size($l) | |
341 | 341 | let $acc0 = nil | |
342 | 342 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
343 | 343 | then $a | |
344 | 344 | else forEachAssetCacheUserReward($a, $l[$i]) | |
345 | 345 | ||
346 | 346 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
347 | 347 | then $a | |
348 | 348 | else throw("List size exceeds 9") | |
349 | 349 | ||
350 | 350 | $f0_2($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) | |
351 | 351 | } :+ IntegerEntry(userRewardFromDepositNumKEY, depositNumLast)) | |
352 | 352 | else throw(((("uncovered condition: depositNumLast=" + toString(depositNumLast)) + " depositNumUser=") + toString(depositNumUser))) | |
353 | 353 | } | |
354 | 354 | ||
355 | 355 | ||
356 | 356 | func IncrementNotDistributedRewardEntry (tkn,amountInc) = { | |
357 | 357 | let notDistributedRewardKEY = keyNotDistributedReward(tkn) | |
358 | 358 | let notDistributedReward = getIntOrElse(notDistributedRewardKEY, 0) | |
359 | 359 | IntegerEntry(notDistributedRewardKEY, (notDistributedReward + amountInc)) | |
360 | 360 | } | |
361 | 361 | ||
362 | 362 | ||
363 | 363 | func commonClaim (userAddress,i) = { | |
364 | 364 | let userAddressStr = toString(userAddress) | |
365 | 365 | if ((size(i.payments) > 0)) | |
366 | 366 | then throw("payments are not accepted") | |
367 | 367 | else { | |
368 | 368 | let $t01446914590 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple4(true, 0, 0, 0)) | |
369 | 369 | let isNewUser = $t01446914590._1 | |
370 | 370 | let stakedAmount = $t01446914590._2 | |
371 | 371 | let stakingStart = $t01446914590._3 | |
372 | 372 | let gNsbtAmount = $t01446914590._4 | |
373 | 373 | let stakedAmountX = toBigInt(gNsbtAmount) | |
374 | 374 | let userRewardFromDepositNumKEY = keyUserRewardFromDepositNum(userAddressStr) | |
375 | 375 | let depositNumUser = getIntOrElse(userRewardFromDepositNumKEY, -1) | |
376 | 376 | let depositNumLast = getIntOrElse(keyDepositNumLast(), -1) | |
377 | 377 | func forEachAssetCalcUnclaimedReward (accum,asset) = { | |
378 | 378 | let $t01496015098 = calcReward(userAddressStr, asset, stakedAmountX, depositNumUser, depositNumLast) | |
379 | 379 | let rewardTotal = $t01496015098._1 | |
380 | 380 | let cached = $t01496015098._2 | |
381 | 381 | let dynamic = $t01496015098._3 | |
382 | 382 | let rewardCachedPartKEY = $t01496015098._4 | |
383 | 383 | let claimedKEY = keyClaimed(userAddressStr, asset) | |
384 | 384 | let $t01515815195 = accum | |
385 | 385 | let data = $t01515815195._1 | |
386 | 386 | let claimedAmtByAsset = $t01515815195._2 | |
387 | 387 | let newPart = makeString([asset, toString(rewardTotal)], ":") | |
388 | 388 | let claimedAmtByAssetNew = makeString([claimedAmtByAsset, newPart], "_") | |
389 | 389 | if ((0 >= rewardTotal)) | |
390 | 390 | then $Tuple2(data, claimedAmtByAssetNew) | |
391 | 391 | else $Tuple2((((data :+ ScriptTransfer(userAddress, rewardTotal, toAssetVect(asset))) :+ IntegerEntry(claimedKEY, (valueOrElse(getInteger(claimedKEY), 0) + rewardTotal))) :+ IntegerEntry(rewardCachedPartKEY, 0)), claimedAmtByAssetNew) | |
392 | 392 | } | |
393 | 393 | ||
394 | 394 | let $t01565515768 = { | |
395 | 395 | let $l = supportedAssetsList | |
396 | 396 | let $s = size($l) | |
397 | 397 | let $acc0 = $Tuple2(nil, "") | |
398 | 398 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
399 | 399 | then $a | |
400 | 400 | else forEachAssetCalcUnclaimedReward($a, $l[$i]) | |
401 | 401 | ||
402 | 402 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
403 | 403 | then $a | |
404 | 404 | else throw("List size exceeds 9") | |
405 | 405 | ||
406 | 406 | $f0_2($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) | |
407 | 407 | } | |
408 | 408 | let transfers = $t01565515768._1 | |
409 | 409 | let claimedAmtByAssetResult = $t01565515768._2 | |
410 | 410 | if ((0 >= size(transfers))) | |
411 | 411 | then $Tuple2(nil, 0) | |
412 | 412 | else $Tuple2(((transfers :+ IntegerEntry(userRewardFromDepositNumKEY, depositNumLast)) :+ ClaimHistoryEntry(userAddress, i.transactionId, drop(claimedAmtByAssetResult, 1))), size(transfers)) | |
413 | 413 | } | |
414 | 414 | } | |
415 | 415 | ||
416 | 416 | ||
417 | 417 | func readUserConsentToX2Gnsbt (userAddress) = { | |
418 | 418 | let key = keyUserConsentedToX2Gnsbt(userAddress) | |
419 | 419 | let val = valueOrElse(getBoolean(this, key), false) | |
420 | 420 | $Tuple2(key, val) | |
421 | 421 | } | |
422 | 422 | ||
423 | 423 | ||
424 | 424 | func commonX2Gnsbt (userAddress,i) = if (!(isBonusPeriod(height))) | |
425 | 425 | then throw("No 'Double gNSBT action' available now") | |
426 | 426 | else { | |
427 | 427 | let $t01633016391 = commonClaim(userAddress, i) | |
428 | 428 | let claimActions = $t01633016391._1 | |
429 | 429 | let claimResult = $t01633016391._2 | |
430 | 430 | let $t01639416519 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple4(true, 0, -1, 0)) | |
431 | 431 | let isNewUser = $t01639416519._1 | |
432 | 432 | let lockAmount = $t01639416519._2 | |
433 | 433 | let lockStartHeight = $t01639416519._3 | |
434 | 434 | let currUserGnsbt = $t01639416519._4 | |
435 | 435 | if (isNewUser) | |
436 | 436 | then throw("You have nothing to restake") | |
437 | 437 | else { | |
438 | - | let newUserGnsbt = (2 * lockAmount) | |
439 | - | let totalNsbt = getIntOrZero(keyLockParamTotalAmount()) | |
440 | - | let totalGnsbt = getIntOrElse(keyLockParamTotalGnsbt(), totalNsbt) | |
441 | - | let newTotalGnsbt = ((totalGnsbt - currUserGnsbt) + newUserGnsbt) | |
438 | + | let deltaUserGnsbt = currUserGnsbt | |
439 | + | let newUserGnsbt = (currUserGnsbt + deltaUserGnsbt) | |
442 | 440 | let userConsentTuple = readUserConsentToX2Gnsbt(userAddress) | |
443 | 441 | let userConsentedToX2GnsbtKEY = userConsentTuple._1 | |
444 | 442 | let userConsentedToX2Gnsbt = userConsentTuple._2 | |
445 | 443 | if (userConsentedToX2Gnsbt) | |
446 | 444 | then throw("User has already doubled its gNSBT value") | |
447 | - | else $Tuple2((((claimActions ++ LockParamsEntry(userAddress, lockAmount, height, newUserGnsbt)) :+ IntegerEntry(keyLockParamTotalGnsbt(), newTotalGnsbt)) :+ BooleanEntry(userConsentedToX2GnsbtKEY, true)), claimResult) | |
445 | + | else { | |
446 | + | let $t01693617022 = StatsResult(0, 0, 0, deltaUserGnsbt) | |
447 | + | let statsEntries = $t01693617022._1 | |
448 | + | let totalStaked = $t01693617022._2 | |
449 | + | let totalStakedNew = $t01693617022._3 | |
450 | + | $Tuple2((((claimActions ++ LockParamsEntry(userAddress, lockAmount, height, newUserGnsbt)) ++ statsEntries) :+ BooleanEntry(userConsentedToX2GnsbtKEY, true)), claimResult) | |
451 | + | } | |
448 | 452 | } | |
449 | 453 | } | |
450 | 454 | ||
451 | 455 | ||
452 | 456 | @Callable(i) | |
453 | 457 | func constructorV1 (neutrinoContractAddress,mathContractAddress,minLockAmount,halfLife,supportedRewardAssets) = if ((i.caller != this)) | |
454 | 458 | then throw("Permission denied") | |
455 | 459 | else [StringEntry(keyNeutrinoContractAddress(), neutrinoContractAddress), StringEntry(keyMathContractAddress(), mathContractAddress), IntegerEntry(keyMinLockAmount(), minLockAmount), IntegerEntry(keyHalfLife(), halfLife), StringEntry(keySupportedRewardAssets(), supportedRewardAssets)] | |
456 | 460 | ||
457 | 461 | ||
458 | 462 | ||
459 | 463 | @Callable(i) | |
460 | 464 | func constructorV2 (x2GnsbtOfferHeightStart,x2GnsbtOfferHeightEnd) = if ((i.caller != this)) | |
461 | 465 | then throw("Permission denied") | |
462 | 466 | else [IntegerEntry(keyCfgX2GnsbtOfferHeightStart(), x2GnsbtOfferHeightStart), IntegerEntry(keyCfgX2GnsbtOfferHeightEnd(), x2GnsbtOfferHeightEnd)] | |
463 | 467 | ||
464 | 468 | ||
465 | 469 | ||
466 | 470 | @Callable(i) | |
467 | 471 | func stake () = { | |
468 | - | let $ | |
469 | - | let bondAssetId = $ | |
470 | - | let minLockAmount = $ | |
471 | - | let halfLife = $ | |
472 | + | let $t01812818190 = getParamsOrFail() | |
473 | + | let bondAssetId = $t01812818190._1 | |
474 | + | let minLockAmount = $t01812818190._2 | |
475 | + | let halfLife = $t01812818190._3 | |
472 | 476 | if ((size(i.payments) != 1)) | |
473 | 477 | then throw("Invalid payments size") | |
474 | 478 | else { | |
475 | 479 | let payment = i.payments[0] | |
476 | 480 | let amount = payment.amount | |
477 | 481 | let invalidAssetMessage = (("Invalid asset. " + toBase58String(bondAssetId)) + " is expected") | |
478 | 482 | let assetId = valueOrErrorMessage(payment.assetId, invalidAssetMessage) | |
479 | 483 | if ((assetId != bondAssetId)) | |
480 | 484 | then throw(invalidAssetMessage) | |
481 | 485 | else { | |
482 | 486 | let userAddress = i.caller | |
483 | 487 | let userAddressStr = toString(i.caller) | |
484 | - | let $ | |
485 | - | let isNewUser = $ | |
486 | - | let lockAmount = $ | |
487 | - | let lockStartHeight = $ | |
488 | - | let currUserGnsbt = $ | |
488 | + | let $t01873218857 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple4(true, 0, -1, 0)) | |
489 | + | let isNewUser = $t01873218857._1 | |
490 | + | let lockAmount = $t01873218857._2 | |
491 | + | let lockStartHeight = $t01873218857._3 | |
492 | + | let currUserGnsbt = $t01873218857._4 | |
489 | 493 | let mergedAmount = if (isNewUser) | |
490 | 494 | then amount | |
491 | 495 | else (amount + lockAmount) | |
492 | 496 | let mergedStartHeight = if (isNewUser) | |
493 | 497 | then height | |
494 | 498 | else asInt(invoke(mathContract, "mergeStakesREADONLY", [amount, height, lockAmount, lockStartHeight, halfLife], nil)) | |
495 | 499 | if ((minLockAmount > mergedAmount)) | |
496 | 500 | then throw(("Min lock amount is " + toString(minLockAmount))) | |
497 | 501 | else { | |
498 | 502 | let userConsentTuple = readUserConsentToX2Gnsbt(userAddress) | |
499 | 503 | let userConsentedToX2GnsbtKEY = userConsentTuple._1 | |
500 | 504 | let userConsentedToX2Gnsbt = userConsentTuple._2 | |
501 | 505 | let deltaUserGnsbt = if (if (isBonusPeriod(height)) | |
502 | 506 | then if (isNewUser) | |
503 | 507 | then true | |
504 | 508 | else userConsentedToX2Gnsbt | |
505 | 509 | else false) | |
506 | 510 | then (2 * amount) | |
507 | 511 | else amount | |
508 | 512 | let x2GnsbtConsentEntry = if (isNewUser) | |
509 | 513 | then [BooleanEntry(userConsentedToX2GnsbtKEY, true)] | |
510 | 514 | else nil | |
511 | - | let $ | |
515 | + | let $t01986119979 = StatsResult(amount, 1, if (isNewUser) | |
512 | 516 | then 1 | |
513 | 517 | else 0, deltaUserGnsbt) | |
514 | - | let statsEntries = $ | |
515 | - | let totalStaked = $ | |
516 | - | let totalStakedNew = $ | |
517 | - | (((([HistoryRecordEntry("stake", userAddress, i.transactionId, lockAmount, lockStartHeight, mergedAmount, mergedStartHeight)] ++ RewardEntries(isNewUser, userAddressStr, | |
518 | + | let statsEntries = $t01986119979._1 | |
519 | + | let totalStaked = $t01986119979._2 | |
520 | + | let totalStakedNew = $t01986119979._3 | |
521 | + | (((([HistoryRecordEntry("stake", userAddress, i.transactionId, lockAmount, lockStartHeight, mergedAmount, mergedStartHeight)] ++ RewardEntries(isNewUser, userAddressStr, currUserGnsbt)) ++ LockParamsEntry(userAddress, mergedAmount, mergedStartHeight, (currUserGnsbt + deltaUserGnsbt))) ++ statsEntries) ++ x2GnsbtConsentEntry) | |
518 | 522 | } | |
519 | 523 | } | |
520 | 524 | } | |
521 | 525 | } | |
522 | 526 | ||
523 | 527 | ||
524 | 528 | ||
525 | 529 | @Callable(i) | |
526 | 530 | func unstake (amount) = if ((size(i.payments) != 0)) | |
527 | 531 | then throw("unstake doesn't require any payment") | |
528 | 532 | else { | |
529 | 533 | let userAddress = i.caller | |
530 | 534 | let userAddressStr = toString(userAddress) | |
531 | - | let $ | |
532 | - | let bondAssetId = $ | |
533 | - | let minLockAmount = $ | |
534 | - | let halfLife = $ | |
535 | - | let $ | |
536 | - | let isNewUser = $ | |
537 | - | let lockAmount = $ | |
538 | - | let lockStart = $ | |
539 | - | let currUserGnsbt = $ | |
535 | + | let $t02052520587 = getParamsOrFail() | |
536 | + | let bondAssetId = $t02052520587._1 | |
537 | + | let minLockAmount = $t02052520587._2 | |
538 | + | let halfLife = $t02052520587._3 | |
539 | + | let $t02059020679 = getUserParamsOrFail(userAddress) | |
540 | + | let isNewUser = $t02059020679._1 | |
541 | + | let lockAmount = $t02059020679._2 | |
542 | + | let lockStart = $t02059020679._3 | |
543 | + | let currUserGnsbt = $t02059020679._4 | |
540 | 544 | if ((0 >= lockAmount)) | |
541 | 545 | then throw("Nothing to unstake") | |
542 | 546 | else if ((amount > lockAmount)) | |
543 | 547 | then throw(((("Requested " + toString(amount)) + ", but staked only ") + toString(lockAmount))) | |
544 | 548 | else { | |
545 | 549 | let t = value(blockInfoByHeight(height)).timestamp | |
546 | 550 | let releaseTime = valueOrElse(getInteger(govContract, keyUserGnsbtReleaseTime(userAddressStr)), 0) | |
547 | 551 | if ((releaseTime >= t)) | |
548 | 552 | then throw(("Your gNsbt are taking part in voting, cannot unstake until " + toString(releaseTime))) | |
549 | 553 | else { | |
550 | 554 | let comissionAmount = asInt(invoke(mathContract, "getUnstakeComissionAmountREADONLY", [amount, lockStart, halfLife], nil)) | |
551 | 555 | let bonusGnsbtPart = (currUserGnsbt - lockAmount) | |
552 | 556 | let bonusNsbtAmount = min([amount, bonusGnsbtPart]) | |
553 | 557 | let deltaGnsbt = (bonusNsbtAmount + amount) | |
554 | - | let $ | |
558 | + | let $t02151721688 = StatsResult(-(amount), if ((amount == lockAmount)) | |
555 | 559 | then -1 | |
556 | 560 | else 0, if ((amount == lockAmount)) | |
557 | 561 | then -1 | |
558 | 562 | else 0, -(deltaGnsbt)) | |
559 | - | let statsEntries = $ | |
560 | - | let totalStaked = $ | |
561 | - | let totalStakedNew = $ | |
562 | - | ((([ScriptTransfer(userAddress, (amount - comissionAmount), bondAssetId), ScriptTransfer(auctionContract, comissionAmount, bondAssetId), HistoryRecordEntry("unstake", userAddress, i.transactionId, lockAmount, lockStart, (lockAmount - amount), lockStart)] ++ RewardEntries(false, userAddressStr, | |
563 | + | let statsEntries = $t02151721688._1 | |
564 | + | let totalStaked = $t02151721688._2 | |
565 | + | let totalStakedNew = $t02151721688._3 | |
566 | + | ((([ScriptTransfer(userAddress, (amount - comissionAmount), bondAssetId), ScriptTransfer(auctionContract, comissionAmount, bondAssetId), HistoryRecordEntry("unstake", userAddress, i.transactionId, lockAmount, lockStart, (lockAmount - amount), lockStart)] ++ RewardEntries(false, userAddressStr, currUserGnsbt)) ++ LockParamsEntry(userAddress, (lockAmount - amount), lockStart, (currUserGnsbt - deltaGnsbt))) ++ statsEntries) | |
563 | 567 | } | |
564 | 568 | } | |
565 | 569 | } | |
566 | 570 | ||
567 | 571 | ||
568 | 572 | ||
569 | 573 | @Callable(i) | |
570 | 574 | func deposit () = { | |
571 | 575 | let totalStaked = getIntOrElse(keyLockParamTotalGnsbt(), getIntOrElse(keyLockParamTotalAmount(), 0)) | |
572 | 576 | if ((0 > totalStaked)) | |
573 | 577 | then throw("TODO: case is not supported") | |
574 | 578 | else { | |
575 | 579 | let depositNumLastKEY = keyDepositNumLast() | |
576 | 580 | let depositNumLast = getIntOrElse(depositNumLastKEY, -1) | |
577 | 581 | let depositNumNew = (depositNumLast + 1) | |
578 | 582 | let totalsKEY = keyStatsDepositAmtTotals() | |
579 | 583 | let byDayKEY = keyStatsDepositAmtByDay(toStartOfDay(lastBlock.timestamp)) | |
580 | 584 | let currTotals = padList(split(valueOrElse(getString(totalsKEY), defaultTotalsDATA), SEP)) | |
581 | 585 | func dep (acc,pmt) = { | |
582 | 586 | let amount = pmt.amount | |
583 | 587 | let pmtAssetIdStr = toBase58String(valueOrElse(pmt.assetId, WAVESID)) | |
584 | 588 | if (!(contains(supportedAssetsStr, pmtAssetIdStr))) | |
585 | 589 | then throw(((supportedAssetsStr + " doesn't contain ") + pmtAssetIdStr)) | |
586 | 590 | else if ((totalStaked == 0)) | |
587 | 591 | then $Tuple4((acc._1 :+ IncrementNotDistributedRewardEntry(pmtAssetIdStr, amount)), (acc._2 :+ pmtAssetIdStr), (acc._3 :+ toBigInt(0)), (acc._4 :+ amount)) | |
588 | 592 | else { | |
589 | 593 | let rewardPerNsbtX18 = fraction(toBigInt(amount), MULTX18, toBigInt(totalStaked)) | |
590 | 594 | $Tuple4(acc._1, (acc._2 :+ pmtAssetIdStr), (acc._3 :+ rewardPerNsbtX18), (acc._4 :+ amount)) | |
591 | 595 | } | |
592 | 596 | } | |
593 | 597 | ||
594 | 598 | let pmtsResult = { | |
595 | 599 | let $l = i.payments | |
596 | 600 | let $s = size($l) | |
597 | 601 | let $acc0 = $Tuple4(nil, nil, nil, nil) | |
598 | 602 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
599 | 603 | then $a | |
600 | 604 | else dep($a, $l[$i]) | |
601 | 605 | ||
602 | 606 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
603 | 607 | then $a | |
604 | 608 | else throw("List size exceeds 10") | |
605 | 609 | ||
606 | 610 | $f0_2($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) | |
607 | 611 | } | |
608 | 612 | func refreshRewardUpdateTotals (accum,nextAsset) = { | |
609 | 613 | let k = accum._3 | |
610 | 614 | let sumLastStr = getStrOrElse(keyRewardPerNsbtSumAt(depositNumLast, nextAsset), "0") | |
611 | 615 | let idx = indexOf(pmtsResult._2, nextAsset) | |
612 | 616 | let sum = if (isDefined(idx)) | |
613 | 617 | then { | |
614 | 618 | let j = value(idx) | |
615 | 619 | let statsDelta = pmtsResult._4[j] | |
616 | 620 | $Tuple2(toString((parseBigIntValue(sumLastStr) + pmtsResult._3[j])), toString((parseIntValue(currTotals[(k + 1)]) + statsDelta))) | |
617 | 621 | } | |
618 | 622 | else $Tuple2(sumLastStr, currTotals[(k + 1)]) | |
619 | 623 | $Tuple3((accum._1 :+ StringEntry(keyRewardPerNsbtSumAt(depositNumNew, nextAsset), sum._1)), ((accum._2 + SEP) + sum._2), (k + 1)) | |
620 | 624 | } | |
621 | 625 | ||
622 | 626 | let assetsResult = { | |
623 | 627 | let $l = supportedAssetsList | |
624 | 628 | let $s = size($l) | |
625 | 629 | let $acc0 = $Tuple3(nil, DepositTotalsPREFIX, 0) | |
626 | 630 | func $f1_1 ($a,$i) = if (($i >= $s)) | |
627 | 631 | then $a | |
628 | 632 | else refreshRewardUpdateTotals($a, $l[$i]) | |
629 | 633 | ||
630 | 634 | func $f1_2 ($a,$i) = if (($i >= $s)) | |
631 | 635 | then $a | |
632 | 636 | else throw("List size exceeds 9") | |
633 | 637 | ||
634 | 638 | $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9) | |
635 | 639 | } | |
636 | 640 | let totals = padString(assetsResult._2) | |
637 | 641 | $Tuple2(((((pmtsResult._1 ++ assetsResult._1) :+ IntegerEntry(depositNumLastKEY, depositNumNew)) :+ StringEntry(totalsKEY, totals)) :+ StringEntry(byDayKEY, totals)), depositNumNew) | |
638 | 642 | } | |
639 | 643 | } | |
640 | 644 | ||
641 | 645 | ||
642 | 646 | ||
643 | 647 | @Callable(i) | |
644 | 648 | func claimRewards () = commonClaim(i.caller, i) | |
645 | 649 | ||
646 | 650 | ||
647 | 651 | ||
648 | 652 | @Callable(i) | |
649 | 653 | func claimRewardsByOriginCaller () = commonClaim(i.originCaller, i) | |
650 | 654 | ||
651 | 655 | ||
652 | 656 | ||
653 | 657 | @Callable(i) | |
654 | 658 | func x2Gnsbt () = commonX2Gnsbt(i.caller, i) | |
655 | 659 | ||
656 | 660 | ||
657 | 661 | ||
658 | 662 | @Callable(i) | |
659 | 663 | func x2GnsbtByOriginCaller () = commonX2Gnsbt(i.originCaller, i) | |
660 | 664 | ||
661 | 665 | ||
662 | 666 | ||
663 | 667 | @Callable(i) | |
664 | 668 | func unclaimedRewardsREADONLY (userAddressStr) = { | |
665 | 669 | func forEachAssetZeroReward (accum,asset) = ((accum + makeString([asset, "0", "0"], ":")) + "_") | |
666 | 670 | ||
667 | 671 | let unclaimedRewardStr = if ((userAddressStr == "")) | |
668 | 672 | then { | |
669 | 673 | let $l = supportedAssetsList | |
670 | 674 | let $s = size($l) | |
671 | 675 | let $acc0 = "" | |
672 | 676 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
673 | 677 | then $a | |
674 | 678 | else forEachAssetZeroReward($a, $l[$i]) | |
675 | 679 | ||
676 | 680 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
677 | 681 | then $a | |
678 | 682 | else throw("List size exceeds 9") | |
679 | 683 | ||
680 | 684 | $f0_2($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) | |
681 | 685 | } | |
682 | 686 | else { | |
683 | 687 | let userAddress = addressFromStringValue(userAddressStr) | |
684 | - | let $ | |
685 | - | let isNewUser = $ | |
686 | - | let stakedAmount = $ | |
687 | - | let stakingStart = $ | |
688 | - | let userGnsbt = $ | |
688 | + | let $t02575525874 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple4(true, 0, 0, 0)) | |
689 | + | let isNewUser = $t02575525874._1 | |
690 | + | let stakedAmount = $t02575525874._2 | |
691 | + | let stakingStart = $t02575525874._3 | |
692 | + | let userGnsbt = $t02575525874._4 | |
689 | 693 | let stakedAmountX = toBigInt(userGnsbt) | |
690 | 694 | let userRewardFromDepositNumKEY = keyUserRewardFromDepositNum(userAddressStr) | |
691 | 695 | let depositNumUser = getIntOrElse(userRewardFromDepositNumKEY, -1) | |
692 | 696 | let depositNumLast = getIntOrElse(keyDepositNumLast(), -1) | |
693 | 697 | func forEachAssetCalcUnclaimedReward (accum,asset) = { | |
694 | - | let $ | |
695 | - | let rewardTotal = $ | |
696 | - | let cached = $ | |
697 | - | let dynamic = $ | |
698 | - | let rewardCachedPartKEY = $ | |
698 | + | let $t02621726355 = calcReward(userAddressStr, asset, stakedAmountX, depositNumUser, depositNumLast) | |
699 | + | let rewardTotal = $t02621726355._1 | |
700 | + | let cached = $t02621726355._2 | |
701 | + | let dynamic = $t02621726355._3 | |
702 | + | let rewardCachedPartKEY = $t02621726355._4 | |
699 | 703 | let claimed = valueOrElse(getInteger(keyClaimed(userAddressStr, asset)), 0) | |
700 | 704 | ((accum + makeString([asset, toString(rewardTotal), toString(claimed)], ":")) + "_") | |
701 | 705 | } | |
702 | 706 | ||
703 | 707 | let $l = supportedAssetsList | |
704 | 708 | let $s = size($l) | |
705 | 709 | let $acc0 = "" | |
706 | 710 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
707 | 711 | then $a | |
708 | 712 | else forEachAssetCalcUnclaimedReward($a, $l[$i]) | |
709 | 713 | ||
710 | 714 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
711 | 715 | then $a | |
712 | 716 | else throw("List size exceeds 9") | |
713 | 717 | ||
714 | 718 | $f0_2($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) | |
715 | 719 | } | |
716 | 720 | $Tuple2(nil, dropRight(unclaimedRewardStr, 1)) | |
717 | 721 | } | |
718 | 722 | ||
719 | 723 | ||
720 | 724 | ||
721 | 725 | @Callable(i) | |
722 | 726 | func nsbtUnstakingSYSREADONLY (userAddressStrOrEmpty,unstakeAmtP) = { | |
723 | 727 | let resultArray = if ((userAddressStrOrEmpty == "")) | |
724 | 728 | then [0, 0, 0, 0] | |
725 | 729 | else { | |
726 | 730 | let userAddress = addressFromStringValue(userAddressStrOrEmpty) | |
727 | 731 | let cfgDATA = getParamsOrFail() | |
728 | 732 | let nsbtAssetId = cfgDATA._1 | |
729 | 733 | let minLockAmount = cfgDATA._2 | |
730 | 734 | let halfLife = cfgDATA._3 | |
731 | 735 | let userDATA = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple4(true, 0, 0, 0)) | |
732 | 736 | let isNewUser = userDATA._1 | |
733 | 737 | let stakedAmount = userDATA._2 | |
734 | 738 | let lockStart = userDATA._3 | |
735 | 739 | let unstakeAmt = if ((unstakeAmtP > stakedAmount)) | |
736 | 740 | then stakedAmount | |
737 | 741 | else unstakeAmtP | |
738 | 742 | let stakedAmountNEW = (stakedAmount - unstakeAmt) | |
739 | 743 | let comissionAmount = if ((unstakeAmt == 0)) | |
740 | 744 | then 0 | |
741 | 745 | else asInt(invoke(mathContract, "getUnstakeComissionAmountREADONLY", [unstakeAmt, lockStart, halfLife], nil)) | |
742 | 746 | let receiveAmount = (unstakeAmt - comissionAmount) | |
743 | 747 | [stakedAmount, stakedAmountNEW, receiveAmount, comissionAmount] | |
744 | 748 | } | |
745 | 749 | $Tuple2(nil, resultArray) | |
746 | 750 | } | |
747 | 751 | ||
748 | 752 | ||
749 | 753 | ||
750 | 754 | @Callable(i) | |
751 | 755 | func nsbtStakingSYSREADONLY (userAddressStr,nsbtDiff) = { | |
752 | 756 | let totalNsbtAmt = getIntOrElse(keyLockParamTotalAmount(), 0) | |
753 | 757 | let totalGnsbt = getIntOrElse(keyLockParamTotalGnsbt(), totalNsbtAmt) | |
754 | 758 | if ((userAddressStr == "")) | |
755 | 759 | then $Tuple2(nil, [0, totalNsbtAmt, 0, 0, totalGnsbt]) | |
756 | 760 | else { | |
757 | 761 | let userAddress = toAddressOrFail(userAddressStr) | |
758 | - | let $ | |
759 | - | let isNewUser = $ | |
760 | - | let userNsbtAmt = $ | |
761 | - | let stakingStart = $ | |
762 | - | let userGnsbt = $ | |
762 | + | let $t02814528263 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple4(true, 0, 0, 0)) | |
763 | + | let isNewUser = $t02814528263._1 | |
764 | + | let userNsbtAmt = $t02814528263._2 | |
765 | + | let stakingStart = $t02814528263._3 | |
766 | + | let userGnsbt = $t02814528263._4 | |
763 | 767 | $Tuple2(nil, [userNsbtAmt, totalNsbtAmt, stakingStart, userGnsbt, totalGnsbt]) | |
764 | 768 | } | |
765 | 769 | } | |
766 | 770 | ||
767 | 771 | ||
768 | 772 | @Verifier(tx) | |
769 | 773 | func verify () = { | |
770 | 774 | let pubKeyAdminsListStr = makeString(["ExtEEK19nmKj9mCpnWyvEEJFYATLMcVEMvohhUHkyHNm", "Ev5py5FfBQX9cZpYKnfQrTB49Byf8QmpZWeDVRim4yV7", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR"], SEP) | |
771 | 775 | let pubKeyAdminsList = split(valueOrElse(getString(controlContract, "%s__multisig"), pubKeyAdminsListStr), SEP) | |
772 | 776 | let count = ((((if (sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(pubKeyAdminsList[0]))) | |
773 | 777 | then 1 | |
774 | 778 | else 0) + (if (sigVerify(tx.bodyBytes, tx.proofs[1], fromBase58String(pubKeyAdminsList[1]))) | |
775 | 779 | then 1 | |
776 | 780 | else 0)) + (if (sigVerify(tx.bodyBytes, tx.proofs[2], fromBase58String(pubKeyAdminsList[2]))) | |
777 | 781 | then 1 | |
778 | 782 | else 0)) + (if (sigVerify(tx.bodyBytes, tx.proofs[3], fromBase58String(pubKeyAdminsList[3]))) | |
779 | 783 | then 2 | |
780 | 784 | else 0)) | |
781 | 785 | (count >= 3) | |
782 | 786 | } | |
783 | 787 |
github/deemru/w8io/026f985 105.15 ms ◑