tx · ECDRefMeK9T8XVnhUrxN6ca8E8mVNrFtpbBqrBre9Er1 3Myn55vLkduxbX3ZXfiDCZhaQsLxYp1kmCy: -0.02300000 Waves 2023.02.27 12:40 [2467949] smart account 3Myn55vLkduxbX3ZXfiDCZhaQsLxYp1kmCy > SELF 0.00000000 Waves
{ "type": 13, "id": "ECDRefMeK9T8XVnhUrxN6ca8E8mVNrFtpbBqrBre9Er1", "fee": 2300000, "feeAssetId": null, "timestamp": 1677490951400, "version": 1, "sender": "3Myn55vLkduxbX3ZXfiDCZhaQsLxYp1kmCy", "senderPublicKey": "9W33iCCNfmFxUbiC6XZcH5x7f6xfwC7Jb3BoExT5q2PV", "proofs": [ "WgrEVQRmK6YBsTps8S51YaMPexKdBJYxo25PR96J35dq97wnzbToR3hYpgawkp47diubcYzT3KjAfFnnDkwtkAv" ], "script": "base64:BgLAJggCEggKBggIAQEBCBIFCgMBCAISAwoBARIDCgEBEgQKAggIEgQKAggIEgMKAQgSAwoBCBIDCgEIEgQKAggBEgASAwoBCBIAIgNTRVAiBlNDQUxFOCIFTVVMVDgiDlBPT0xXRUlHSFRNVUxUIgd3cmFwRXJyIgNtc2ciCHRocm93RXJyIgRzdHJmIgdhZGRyZXNzIgNrZXkiA2lveiIDaW9kIgpkZWZhdWx0VmFsIgNpb2YiA2FicyIDdmFsIgNhYWwiByRtYXRjaDAiCnZhbEFueUx5c3QiAmFpIgZ2YWxJbnQiG2tleVJlZmVycmFsc0NvbnRyYWN0QWRkcmVzcyIecmVmZXJyYWxzQ29udHJhY3RBZGRyZXNzT3JGYWlsIhZrZXlSZWZlcnJhbFByb2dyYW1OYW1lIhpyZWZlcnJhbFByb2dyYW1OYW1lRGVmYXVsdCITcmVmZXJyYWxQcm9ncmFtTmFtZSIRa2V5RmFjdG9yeUFkZHJlc3MiGElkeEZhY3RvcnlDZmdTdGFraW5nRGFwcCIZSWR4RmFjdG9yeUNmZ0Jvb3N0aW5nRGFwcCIUSWR4RmFjdG9yeUNmZ0l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yBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgECZXcBAmV4AAQCZXkEAXIJAQJhQwADCQABAgUBcgIKQnl0ZVZlY3RvcgQCYUkFAXIFAmFJAwkAAQIFAXICBFVuaXQIBQJldw9zZW5kZXJQdWJsaWNLZXkJAAIBAgtNYXRjaCBlcnJvcgkA9AMDCAUCZXcJYm9keUJ5dGVzCQCRAwIIBQJldwZwcm9vZnMAAAUCZXnprwNH", "chainId": 84, "height": 2467949, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5tog8x7bSLC6iuCsZ5peaA914TR6cERf2aVHu9YZoL3C Next: Zjehtyc9ofKnWrZeWx6RCzQkQg21o8FgGedRNPEPuqq Diff:
Old | New | Differences | |
---|---|---|---|
8 | 8 | let MULT8 = 100000000 | |
9 | 9 | ||
10 | 10 | let POOLWEIGHTMULT = MULT8 | |
11 | + | ||
12 | + | func wrapErr (msg) = makeString(["boosting.ride:", msg], " ") | |
13 | + | ||
14 | + | ||
15 | + | func throwErr (msg) = throw(wrapErr(msg)) | |
16 | + | ||
11 | 17 | ||
12 | 18 | func strf (address,key) = valueOrErrorMessage(getString(address, key), (("mandatory this." + key) + " is not defined")) | |
13 | 19 | ||
305 | 311 | ||
306 | 312 | let gwxRewardContract = getGwxRewardAddressOrFail(factoryCfg) | |
307 | 313 | ||
314 | + | let lpStakingPoolsContract = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(makeString(["%s", "lpStakingPoolsContract"], SEP)), wrapErr("lp_staking_pools contract address is undefined"))), wrapErr("invalid lp_staking_pools contract address")) | |
315 | + | ||
308 | 316 | func getTotalCachedGwx (correct) = { | |
309 | 317 | let keyVotingEmissionContract = makeString(["%s", "votingEmissionContract"], SEP) | |
310 | 318 | let votingEmissionContract = addressFromStringValue(getStringValue(factoryContract, keyVotingEmissionContract)) | |
403 | 411 | let userNumStr = userRecordArray[IdxLockUserNum] | |
404 | 412 | let gwxRewardEmissionStartHeight = valueOrElse(getInteger(gwxRewardContract, keyGwxRewardEmissionStartHeight()), 0) | |
405 | 413 | let EMPTYSTR = "empty" | |
406 | - | let $ | |
414 | + | let $t01539715965 = if ((lpAssetIdStr != EMPTYSTR)) | |
407 | 415 | then { | |
408 | 416 | let poolAddressStr = valueOrErrorMessage(getString(factoryContract, keyFactoryLp2AssetsMapping(lpAssetIdStr)), ("unsupported lp asset " + lpAssetIdStr)) | |
409 | 417 | let pw1 = getIntegerValue(factoryContract, keyFactoryPoolWeight(poolAddressStr)) | |
413 | 421 | else if (readOnly) | |
414 | 422 | then $Tuple2(0, 0) | |
415 | 423 | else throw(("not readonly mode: unsupported lp asset " + lpAssetIdStr)) | |
416 | - | let poolWeight0 = $ | |
417 | - | let poolWeight1 = $ | |
424 | + | let poolWeight0 = $t01539715965._1 | |
425 | + | let poolWeight1 = $t01539715965._2 | |
418 | 426 | let wxEmissionPerBlock = iof(emissionContract, keyEmissionRatePerBlockCurrent()) | |
419 | 427 | let emissionStart = iof(emissionContract, keyEmissionStartBlock()) | |
420 | 428 | let emissionEnd = iof(emissionContract, keyEmissionEndBlock()) | |
500 | 508 | let startBlockKEY = keyLockParamStartBlock(userNumStr) | |
501 | 509 | let durationKEY = keyLockParamDuration(userNumStr) | |
502 | 510 | let userAmountKEY = keyLockParamUserAmount(userNumStr) | |
503 | - | if ((minLockAmount > pmtAmount)) | |
511 | + | if (if ((minLockAmount > pmtAmount)) | |
512 | + | then (i.caller != lpStakingPoolsContract) | |
513 | + | else false) | |
504 | 514 | then throw(("amount is less then minLockAmount=" + toString(minLockAmount))) | |
505 | 515 | else if ((minLockDuration > duration)) | |
506 | 516 | then throw(("passed duration is less then minLockDuration=" + toString(minLockDuration))) | |
557 | 567 | ||
558 | 568 | @Callable(i) | |
559 | 569 | func lockRef (duration,referrerAddress,signature) = { | |
560 | - | let $ | |
561 | - | let lockActionsResult = $ | |
562 | - | let gWxAmountStart = $ | |
570 | + | let $t02436424429 = lockActions(i, duration) | |
571 | + | let lockActionsResult = $t02436424429._1 | |
572 | + | let gWxAmountStart = $t02436424429._2 | |
563 | 573 | let referralAddress = toString(i.caller) | |
564 | 574 | let refInv = if (if ((referrerAddress == "")) | |
565 | 575 | then true | |
580 | 590 | ||
581 | 591 | @Callable(i) | |
582 | 592 | func lock (duration) = { | |
583 | - | let $ | |
584 | - | let lockActionsResult = $ | |
585 | - | let gWxAmountStart = $ | |
593 | + | let $t02488724952 = lockActions(i, duration) | |
594 | + | let lockActionsResult = $t02488724952._1 | |
595 | + | let gWxAmountStart = $t02488724952._2 | |
586 | 596 | let updateRefActivity = invoke(mathContract, "updateReferralActivity", [toString(i.caller), gWxAmountStart], nil) | |
587 | 597 | if ((updateRefActivity == updateRefActivity)) | |
588 | 598 | then $Tuple2(lockActionsResult, unit) | |
671 | 681 | func claimWxBoost (lpAssetIdStr,userAddressStr) = if ((stakingContract != i.caller)) | |
672 | 682 | then throw("permissions denied") | |
673 | 683 | else { | |
674 | - | let $ | |
675 | - | let userBoostAvailable = $ | |
676 | - | let dataState = $ | |
677 | - | let debug = $ | |
684 | + | let $t02993330035 = internalClaimWxBoost(lpAssetIdStr, userAddressStr, false) | |
685 | + | let userBoostAvailable = $t02993330035._1 | |
686 | + | let dataState = $t02993330035._2 | |
687 | + | let debug = $t02993330035._3 | |
678 | 688 | $Tuple2(dataState, [userBoostAvailable]) | |
679 | 689 | } | |
680 | 690 | ||
682 | 692 | ||
683 | 693 | @Callable(i) | |
684 | 694 | func claimWxBoostREADONLY (lpAssetIdStr,userAddressStr) = { | |
685 | - | let $ | |
686 | - | let userBoostAvailable = $ | |
687 | - | let dataState = $ | |
688 | - | let debug = $ | |
695 | + | let $t03016730268 = internalClaimWxBoost(lpAssetIdStr, userAddressStr, true) | |
696 | + | let userBoostAvailable = $t03016730268._1 | |
697 | + | let dataState = $t03016730268._2 | |
698 | + | let debug = $t03016730268._3 | |
689 | 699 | $Tuple2(nil, [userBoostAvailable, debug]) | |
690 | 700 | } | |
691 | 701 | ||
717 | 727 | func gwxUserInfoREADONLY (userAddress) = { | |
718 | 728 | let gwxAmount = calcCurrentGwxAmount(userAddress) | |
719 | 729 | $Tuple2(nil, [gwxAmount]) | |
730 | + | } | |
731 | + | ||
732 | + | ||
733 | + | ||
734 | + | @Callable(i) | |
735 | + | func userMaxDurationREADONLY (userAddressStr) = { | |
736 | + | let cfgArray = readConfigArrayOrFail() | |
737 | + | let maxLockDuration = parseIntValue(cfgArray[IdxCfgMaxLockDuration]) | |
738 | + | let userRecordOption = getString(this, keyLockParamsRecord(userAddressStr)) | |
739 | + | if ((userRecordOption == unit)) | |
740 | + | then $Tuple2(nil, $Tuple2("lock", maxLockDuration)) | |
741 | + | else { | |
742 | + | let userRecordArray = split(value(userRecordOption), SEP) | |
743 | + | let lockStart = parseIntValue(userRecordArray[IdxLockStart]) | |
744 | + | let lockDuration = parseIntValue(userRecordArray[IdxLockDuration]) | |
745 | + | let lockEnd = (lockStart + lockDuration) | |
746 | + | let remainingDuration = max([(lockEnd - height), 0]) | |
747 | + | let maxDeltaDuration = (maxLockDuration - remainingDuration) | |
748 | + | $Tuple2(nil, $Tuple2("increaseLock", maxDeltaDuration)) | |
749 | + | } | |
720 | 750 | } | |
721 | 751 | ||
722 | 752 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let SEP = "__" | |
5 | 5 | ||
6 | 6 | let SCALE8 = 8 | |
7 | 7 | ||
8 | 8 | let MULT8 = 100000000 | |
9 | 9 | ||
10 | 10 | let POOLWEIGHTMULT = MULT8 | |
11 | + | ||
12 | + | func wrapErr (msg) = makeString(["boosting.ride:", msg], " ") | |
13 | + | ||
14 | + | ||
15 | + | func throwErr (msg) = throw(wrapErr(msg)) | |
16 | + | ||
11 | 17 | ||
12 | 18 | func strf (address,key) = valueOrErrorMessage(getString(address, key), (("mandatory this." + key) + " is not defined")) | |
13 | 19 | ||
14 | 20 | ||
15 | 21 | func ioz (address,key) = valueOrElse(getInteger(address, key), 0) | |
16 | 22 | ||
17 | 23 | ||
18 | 24 | func iod (address,key,defaultVal) = valueOrElse(getInteger(address, key), defaultVal) | |
19 | 25 | ||
20 | 26 | ||
21 | 27 | func iof (address,key) = valueOrErrorMessage(getInteger(address, key), (("mandatory this." + key) + " is not defined")) | |
22 | 28 | ||
23 | 29 | ||
24 | 30 | func abs (val) = if ((0 > val)) | |
25 | 31 | then -(val) | |
26 | 32 | else val | |
27 | 33 | ||
28 | 34 | ||
29 | 35 | func aal (val) = match val { | |
30 | 36 | case valAnyLyst: List[Any] => | |
31 | 37 | valAnyLyst | |
32 | 38 | case _ => | |
33 | 39 | throw("fail to cast into List[Any]") | |
34 | 40 | } | |
35 | 41 | ||
36 | 42 | ||
37 | 43 | func ai (val) = match val { | |
38 | 44 | case valInt: Int => | |
39 | 45 | valInt | |
40 | 46 | case _ => | |
41 | 47 | throw("fail to cast into Int") | |
42 | 48 | } | |
43 | 49 | ||
44 | 50 | ||
45 | 51 | func keyReferralsContractAddress () = makeString(["%s%s", "config", "referralsContractAddress"], SEP) | |
46 | 52 | ||
47 | 53 | ||
48 | 54 | let referralsContractAddressOrFail = addressFromStringValue(strf(this, keyReferralsContractAddress())) | |
49 | 55 | ||
50 | 56 | let keyReferralProgramName = makeString(["%s%s", "referral", "programName"], SEP) | |
51 | 57 | ||
52 | 58 | let referralProgramNameDefault = "wxlock" | |
53 | 59 | ||
54 | 60 | let referralProgramName = valueOrElse(getString(this, keyReferralProgramName), referralProgramNameDefault) | |
55 | 61 | ||
56 | 62 | func keyFactoryAddress () = "%s%s__config__factoryAddress" | |
57 | 63 | ||
58 | 64 | ||
59 | 65 | let IdxFactoryCfgStakingDapp = 1 | |
60 | 66 | ||
61 | 67 | let IdxFactoryCfgBoostingDapp = 2 | |
62 | 68 | ||
63 | 69 | let IdxFactoryCfgIdoDapp = 3 | |
64 | 70 | ||
65 | 71 | let IdxFactoryCfgTeamDapp = 4 | |
66 | 72 | ||
67 | 73 | let IdxFactoryCfgEmissionDapp = 5 | |
68 | 74 | ||
69 | 75 | let IdxFactoryCfgRestDapp = 6 | |
70 | 76 | ||
71 | 77 | let IdxFactoryCfgSlippageDapp = 7 | |
72 | 78 | ||
73 | 79 | let IdxFactoryCfgDaoDapp = 8 | |
74 | 80 | ||
75 | 81 | let IdxFactoryCfgMarketingDapp = 9 | |
76 | 82 | ||
77 | 83 | let IdxFactoryCfgGwxRewardDapp = 10 | |
78 | 84 | ||
79 | 85 | let IdxFactoryCfgBirdsDapp = 11 | |
80 | 86 | ||
81 | 87 | func keyFactoryCfg () = "%s__factoryConfig" | |
82 | 88 | ||
83 | 89 | ||
84 | 90 | func keyFactoryLp2AssetsMapping (lpAssetStr) = makeString(["%s%s%s", lpAssetStr, "mappings__lpAsset2PoolContract"], SEP) | |
85 | 91 | ||
86 | 92 | ||
87 | 93 | func keyFactoryLpList () = "%s__lpTokensList" | |
88 | 94 | ||
89 | 95 | ||
90 | 96 | func keyFactoryLpAssetToPoolContractAddress (lpAssetStr) = makeString(["%s%s%s", lpAssetStr, "mappings__lpAsset2PoolContract"], SEP) | |
91 | 97 | ||
92 | 98 | ||
93 | 99 | func keyFactoryPoolWeight (contractAddress) = makeString(["%s%s", "poolWeight", contractAddress], SEP) | |
94 | 100 | ||
95 | 101 | ||
96 | 102 | func keyFactoryPoolWeightHistory (poolAddress,num) = ((("%s%s__poolWeight__" + poolAddress) + "__") + toString(num)) | |
97 | 103 | ||
98 | 104 | ||
99 | 105 | func readFactoryAddressOrFail () = addressFromStringValue(strf(this, keyFactoryAddress())) | |
100 | 106 | ||
101 | 107 | ||
102 | 108 | func readLpList () = split(valueOrElse(getString(readFactoryAddressOrFail(), keyFactoryLpList()), ""), SEP) | |
103 | 109 | ||
104 | 110 | ||
105 | 111 | func readFactoryCfgOrFail (factory) = split(strf(factory, keyFactoryCfg()), SEP) | |
106 | 112 | ||
107 | 113 | ||
108 | 114 | func getBoostingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgBoostingDapp]) | |
109 | 115 | ||
110 | 116 | ||
111 | 117 | func getEmissionAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgEmissionDapp]) | |
112 | 118 | ||
113 | 119 | ||
114 | 120 | func getStakingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgStakingDapp]) | |
115 | 121 | ||
116 | 122 | ||
117 | 123 | func getGwxRewardAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgGwxRewardDapp]) | |
118 | 124 | ||
119 | 125 | ||
120 | 126 | func keyManagerPublicKey () = "%s__managerPublicKey" | |
121 | 127 | ||
122 | 128 | ||
123 | 129 | func keyPendingManagerPublicKey () = "%s__pendingManagerPublicKey" | |
124 | 130 | ||
125 | 131 | ||
126 | 132 | func keyEmissionRatePerBlockCurrent () = "%s%s__ratePerBlock__current" | |
127 | 133 | ||
128 | 134 | ||
129 | 135 | func keyEmissionRatePerBlockMaxCurrent () = "%s%s__ratePerBlockMax__current" | |
130 | 136 | ||
131 | 137 | ||
132 | 138 | func keyEmissionStartBlock () = "%s%s__emission__startBlock" | |
133 | 139 | ||
134 | 140 | ||
135 | 141 | func keyEmissionDurationInBlocks () = "%s%s__emission__duration" | |
136 | 142 | ||
137 | 143 | ||
138 | 144 | func keyEmissionEndBlock () = "%s%s__emission__endBlock" | |
139 | 145 | ||
140 | 146 | ||
141 | 147 | func keyNextPeriod () = "%s__nextPeriod" | |
142 | 148 | ||
143 | 149 | ||
144 | 150 | func keyGwxRewardEmissionStartHeight () = "%s%s__gwxRewardEmissionPart__startHeight" | |
145 | 151 | ||
146 | 152 | ||
147 | 153 | let IdxCfgAssetId = 1 | |
148 | 154 | ||
149 | 155 | let IdxCfgMinLockAmount = 2 | |
150 | 156 | ||
151 | 157 | let IdxCfgMinLockDuration = 3 | |
152 | 158 | ||
153 | 159 | let IdxCfgMaxLockDuration = 4 | |
154 | 160 | ||
155 | 161 | let IdxCfgMathContract = 5 | |
156 | 162 | ||
157 | 163 | func keyConfig () = "%s__config" | |
158 | 164 | ||
159 | 165 | ||
160 | 166 | func readConfigArrayOrFail () = split(strf(this, keyConfig()), SEP) | |
161 | 167 | ||
162 | 168 | ||
163 | 169 | let mathContract = addressFromStringValue(readConfigArrayOrFail()[IdxCfgMathContract]) | |
164 | 170 | ||
165 | 171 | func formatConfigS (assetId,minLockAmount,minLockDuration,maxLockDuration,mathContract) = makeString(["%s%d%d%d", assetId, minLockAmount, minLockDuration, maxLockDuration, mathContract], SEP) | |
166 | 172 | ||
167 | 173 | ||
168 | 174 | func formatConfig (assetId,minLockAmount,minLockDuration,maxLockDuration,mathContract) = formatConfigS(assetId, toString(minLockAmount), toString(minLockDuration), toString(maxLockDuration), mathContract) | |
169 | 175 | ||
170 | 176 | ||
171 | 177 | func managerPublicKeyOrUnit () = match getString(keyManagerPublicKey()) { | |
172 | 178 | case s: String => | |
173 | 179 | fromBase58String(s) | |
174 | 180 | case _: Unit => | |
175 | 181 | unit | |
176 | 182 | case _ => | |
177 | 183 | throw("Match error") | |
178 | 184 | } | |
179 | 185 | ||
180 | 186 | ||
181 | 187 | func pendingManagerPublicKeyOrUnit () = match getString(keyPendingManagerPublicKey()) { | |
182 | 188 | case s: String => | |
183 | 189 | fromBase58String(s) | |
184 | 190 | case _: Unit => | |
185 | 191 | unit | |
186 | 192 | case _ => | |
187 | 193 | throw("Match error") | |
188 | 194 | } | |
189 | 195 | ||
190 | 196 | ||
191 | 197 | func mustManager (i) = { | |
192 | 198 | let pd = throw("Permission denied") | |
193 | 199 | match managerPublicKeyOrUnit() { | |
194 | 200 | case pk: ByteVector => | |
195 | 201 | if ((i.callerPublicKey == pk)) | |
196 | 202 | then true | |
197 | 203 | else pd | |
198 | 204 | case _: Unit => | |
199 | 205 | if ((i.caller == this)) | |
200 | 206 | then true | |
201 | 207 | else pd | |
202 | 208 | case _ => | |
203 | 209 | throw("Match error") | |
204 | 210 | } | |
205 | 211 | } | |
206 | 212 | ||
207 | 213 | ||
208 | 214 | let IdxLockUserNum = 1 | |
209 | 215 | ||
210 | 216 | let IdxLockAmount = 2 | |
211 | 217 | ||
212 | 218 | let IdxLockStart = 3 | |
213 | 219 | ||
214 | 220 | let IdxLockDuration = 4 | |
215 | 221 | ||
216 | 222 | let IdxLockParamK = 5 | |
217 | 223 | ||
218 | 224 | let IdxLockParamB = 6 | |
219 | 225 | ||
220 | 226 | func keyLockParamsRecord (userAddress) = makeString(["%s%s__lock", userAddress], SEP) | |
221 | 227 | ||
222 | 228 | ||
223 | 229 | func readLockParamsRecordOrFail (userAddress) = split(strf(this, keyLockParamsRecord(userAddress)), SEP) | |
224 | 230 | ||
225 | 231 | ||
226 | 232 | func formatLockParamsRecordS (userNum,amount,start,duration,paramK,paramB,lastUpdTimestamp,gwxAmount) = makeString(["%d%d%d%d%d%d%d%d", userNum, amount, start, duration, paramK, paramB, lastUpdTimestamp, gwxAmount], SEP) | |
227 | 233 | ||
228 | 234 | ||
229 | 235 | func formatLockParamsRecord (userNum,amount,start,duration,paramK,paramB,gwxAmount) = formatLockParamsRecordS(userNum, toString(amount), toString(start), toString(duration), toString(paramK), toString(paramB), toString(lastBlock.timestamp), toString(gwxAmount)) | |
230 | 236 | ||
231 | 237 | ||
232 | 238 | func keyNextUserNum () = "%s__nextUserNum" | |
233 | 239 | ||
234 | 240 | ||
235 | 241 | func keyUser2NumMapping (userAddress) = makeString(["%s%s%s__mapping__user2num", userAddress], SEP) | |
236 | 242 | ||
237 | 243 | ||
238 | 244 | func keyNum2UserMapping (num) = makeString(["%s%s%s__mapping__num2user", num], SEP) | |
239 | 245 | ||
240 | 246 | ||
241 | 247 | func keyLockParamUserAmount (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "amount"], SEP) | |
242 | 248 | ||
243 | 249 | ||
244 | 250 | func keyLockParamStartBlock (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "start"], SEP) | |
245 | 251 | ||
246 | 252 | ||
247 | 253 | func keyLockParamDuration (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "duration"], SEP) | |
248 | 254 | ||
249 | 255 | ||
250 | 256 | func keyLockParamK (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "k"], SEP) | |
251 | 257 | ||
252 | 258 | ||
253 | 259 | func keyLockParamB (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "b"], SEP) | |
254 | 260 | ||
255 | 261 | ||
256 | 262 | func keyLockParamByPeriodK (userNum,period) = makeString(["%s%d%s%d__paramByPeriod", userNum, "k", period], SEP) | |
257 | 263 | ||
258 | 264 | ||
259 | 265 | func keyLockParamByPeriodB (userNum,period) = makeString(["%s%d%s%d__paramByPeriod", userNum, "b", period], SEP) | |
260 | 266 | ||
261 | 267 | ||
262 | 268 | func keyLockParamTotalAmount () = "%s%s__stats__activeTotalLocked" | |
263 | 269 | ||
264 | 270 | ||
265 | 271 | func keyStatsLocksDurationSumInBlocks () = "%s%s__stats__locksDurationSumInBlocks" | |
266 | 272 | ||
267 | 273 | ||
268 | 274 | func keyStatsLocksCount () = "%s%s__stats__locksCount" | |
269 | 275 | ||
270 | 276 | ||
271 | 277 | func keyStatsUsersCount () = "%s%s__stats__activeUsersCount" | |
272 | 278 | ||
273 | 279 | ||
274 | 280 | func keyUserBoostEmissionLastINTEGRAL (userNum) = makeString(["%s%d__userBoostEmissionLastInt", userNum], SEP) | |
275 | 281 | ||
276 | 282 | ||
277 | 283 | func keyUserLpBoostEmissionLastINTEGRAL (userNum,lpAssetId) = makeString(["%s%d__userBoostEmissionLastInt", userNum, lpAssetId], SEP) | |
278 | 284 | ||
279 | 285 | ||
280 | 286 | func keyUserMaxBoostINTEGRAL (userNum) = makeString(["%s%d__maxBoostInt", userNum], SEP) | |
281 | 287 | ||
282 | 288 | ||
283 | 289 | func keyTotalMaxBoostINTEGRAL () = "%s%s__maxBoostInt__total" | |
284 | 290 | ||
285 | 291 | ||
286 | 292 | func keyUserBoostAvalaibleToClaimTotal (userNum) = makeString(["%s%d__userBoostAvaliableToClaimTotal", userNum], SEP) | |
287 | 293 | ||
288 | 294 | ||
289 | 295 | func keyUserBoostClaimed (userNum) = makeString(["%s%d__userBoostClaimed", userNum], SEP) | |
290 | 296 | ||
291 | 297 | ||
292 | 298 | func keyTotalCachedGwx () = "%s%s__gwxCached__total" | |
293 | 299 | ||
294 | 300 | ||
295 | 301 | func keyTotalCachedGwxCorrective () = "%s__gwxCachedTotalCorrective" | |
296 | 302 | ||
297 | 303 | ||
298 | 304 | let factoryContract = readFactoryAddressOrFail() | |
299 | 305 | ||
300 | 306 | let factoryCfg = readFactoryCfgOrFail(factoryContract) | |
301 | 307 | ||
302 | 308 | let emissionContract = getEmissionAddressOrFail(factoryCfg) | |
303 | 309 | ||
304 | 310 | let stakingContract = getStakingAddressOrFail(factoryCfg) | |
305 | 311 | ||
306 | 312 | let gwxRewardContract = getGwxRewardAddressOrFail(factoryCfg) | |
307 | 313 | ||
314 | + | let lpStakingPoolsContract = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(makeString(["%s", "lpStakingPoolsContract"], SEP)), wrapErr("lp_staking_pools contract address is undefined"))), wrapErr("invalid lp_staking_pools contract address")) | |
315 | + | ||
308 | 316 | func getTotalCachedGwx (correct) = { | |
309 | 317 | let keyVotingEmissionContract = makeString(["%s", "votingEmissionContract"], SEP) | |
310 | 318 | let votingEmissionContract = addressFromStringValue(getStringValue(factoryContract, keyVotingEmissionContract)) | |
311 | 319 | let keyCurrentEpochUi = makeString(["%s", "currentEpochUi"], SEP) | |
312 | 320 | let currentEpochUi = getIntegerValue(votingEmissionContract, keyCurrentEpochUi) | |
313 | 321 | let keyTargetEpoch = makeString(["%s%s", "totalCachedGwxCorrection__activationEpoch"], SEP) | |
314 | 322 | let targetEpochOption = getInteger(this, keyTargetEpoch) | |
315 | 323 | let totalCachedGwxRaw = valueOrElse(getInteger(this, keyTotalCachedGwx()), 0) | |
316 | 324 | let isCorrectionActivated = if (isDefined(targetEpochOption)) | |
317 | 325 | then (currentEpochUi >= value(targetEpochOption)) | |
318 | 326 | else false | |
319 | 327 | let corrective = if (if (isCorrectionActivated) | |
320 | 328 | then correct | |
321 | 329 | else false) | |
322 | 330 | then valueOrElse(getInteger(this, keyTotalCachedGwxCorrective()), 0) | |
323 | 331 | else 0 | |
324 | 332 | max([0, (totalCachedGwxRaw + corrective)]) | |
325 | 333 | } | |
326 | 334 | ||
327 | 335 | ||
328 | 336 | func HistoryEntry (type,user,amount,lockStart,duration,k,b,i) = { | |
329 | 337 | let historyKEY = makeString(["%s%s%s%s__history", type, user, toBase58String(i.transactionId)], SEP) | |
330 | 338 | let historyDATA = makeString(["%d%d%d%d%d%d%d", toString(lastBlock.height), toString(lastBlock.timestamp), toString(amount), toString(lockStart), toString(duration), toString(k), toString(b)], SEP) | |
331 | 339 | StringEntry(historyKEY, historyDATA) | |
332 | 340 | } | |
333 | 341 | ||
334 | 342 | ||
335 | 343 | func StatsEntry (totalLockedInc,durationInc,lockCountInc,usersCountInc) = { | |
336 | 344 | let locksDurationSumInBlocksKEY = keyStatsLocksDurationSumInBlocks() | |
337 | 345 | let locksCountKEY = keyStatsLocksCount() | |
338 | 346 | let usersCountKEY = keyStatsUsersCount() | |
339 | 347 | let totalAmountKEY = keyLockParamTotalAmount() | |
340 | 348 | let locksDurationSumInBlocks = ioz(this, locksDurationSumInBlocksKEY) | |
341 | 349 | let locksCount = ioz(this, locksCountKEY) | |
342 | 350 | let usersCount = ioz(this, usersCountKEY) | |
343 | 351 | let totalAmount = ioz(this, totalAmountKEY) | |
344 | 352 | [IntegerEntry(locksDurationSumInBlocksKEY, (locksDurationSumInBlocks + durationInc)), IntegerEntry(locksCountKEY, (locksCount + lockCountInc)), IntegerEntry(usersCountKEY, (usersCount + usersCountInc)), IntegerEntry(totalAmountKEY, (totalAmount + totalLockedInc))] | |
345 | 353 | } | |
346 | 354 | ||
347 | 355 | ||
348 | 356 | func calcGwxAmount (kRaw,bRaw,h) = { | |
349 | 357 | let SCALE = 1000 | |
350 | 358 | (((kRaw * h) + bRaw) / SCALE) | |
351 | 359 | } | |
352 | 360 | ||
353 | 361 | ||
354 | 362 | func LockParamsEntry (userAddress,userNum,amount,start,duration,k,b,period) = { | |
355 | 363 | let userAmountKEY = keyLockParamUserAmount(userNum) | |
356 | 364 | let startBlockKEY = keyLockParamStartBlock(userNum) | |
357 | 365 | let durationKEY = keyLockParamDuration(userNum) | |
358 | 366 | let kKEY = keyLockParamK(userNum) | |
359 | 367 | let bKEY = keyLockParamB(userNum) | |
360 | 368 | let kByPeriodKEY = keyLockParamByPeriodK(userNum, period) | |
361 | 369 | let bByPeriodKEY = keyLockParamByPeriodB(userNum, period) | |
362 | 370 | let gwxAmount = calcGwxAmount(k, b, height) | |
363 | 371 | [IntegerEntry(userAmountKEY, amount), IntegerEntry(startBlockKEY, start), IntegerEntry(durationKEY, duration), IntegerEntry(kKEY, k), IntegerEntry(bKEY, b), IntegerEntry(kByPeriodKEY, k), IntegerEntry(bByPeriodKEY, b), StringEntry(keyLockParamsRecord(userAddress), formatLockParamsRecord(userNum, amount, start, duration, k, b, gwxAmount))] | |
364 | 372 | } | |
365 | 373 | ||
366 | 374 | ||
367 | 375 | func extractOptionalPaymentAmountOrFail (i,expectedAssetId) = if ((size(i.payments) > 1)) | |
368 | 376 | then throw("only one payment is allowed") | |
369 | 377 | else if ((size(i.payments) == 0)) | |
370 | 378 | then 0 | |
371 | 379 | else { | |
372 | 380 | let pmt = i.payments[0] | |
373 | 381 | if ((value(pmt.assetId) != expectedAssetId)) | |
374 | 382 | then throw("invalid asset id in payment") | |
375 | 383 | else pmt.amount | |
376 | 384 | } | |
377 | 385 | ||
378 | 386 | ||
379 | 387 | func calcUserGwxAmountAtHeight (userAddress,targetHeight) = { | |
380 | 388 | let EMPTY = "empty" | |
381 | 389 | let user2NumMappingKEY = keyUser2NumMapping(userAddress) | |
382 | 390 | let userNum = valueOrElse(getString(user2NumMappingKEY), EMPTY) | |
383 | 391 | let k = valueOrElse(getInteger(keyLockParamK(userNum)), 0) | |
384 | 392 | let b = valueOrElse(getInteger(keyLockParamB(userNum)), 0) | |
385 | 393 | let gwxAmountCalc = calcGwxAmount(k, b, targetHeight) | |
386 | 394 | let gwxAmount = if ((0 > gwxAmountCalc)) | |
387 | 395 | then 0 | |
388 | 396 | else gwxAmountCalc | |
389 | 397 | gwxAmount | |
390 | 398 | } | |
391 | 399 | ||
392 | 400 | ||
393 | 401 | func calcCurrentGwxAmount (userAddress) = calcUserGwxAmountAtHeight(userAddress, height) | |
394 | 402 | ||
395 | 403 | ||
396 | 404 | func internalClaimWxBoost (lpAssetIdStr,userAddressStr,readOnly) = { | |
397 | 405 | let EMPTY = "EMPTY" | |
398 | 406 | let userRecordOrEmpty = valueOrElse(getString(this, keyLockParamsRecord(userAddressStr)), EMPTY) | |
399 | 407 | if ((userRecordOrEmpty == EMPTY)) | |
400 | 408 | then $Tuple3(0, nil, "userRecord::is::empty") | |
401 | 409 | else { | |
402 | 410 | let userRecordArray = split(userRecordOrEmpty, SEP) | |
403 | 411 | let userNumStr = userRecordArray[IdxLockUserNum] | |
404 | 412 | let gwxRewardEmissionStartHeight = valueOrElse(getInteger(gwxRewardContract, keyGwxRewardEmissionStartHeight()), 0) | |
405 | 413 | let EMPTYSTR = "empty" | |
406 | - | let $ | |
414 | + | let $t01539715965 = if ((lpAssetIdStr != EMPTYSTR)) | |
407 | 415 | then { | |
408 | 416 | let poolAddressStr = valueOrErrorMessage(getString(factoryContract, keyFactoryLp2AssetsMapping(lpAssetIdStr)), ("unsupported lp asset " + lpAssetIdStr)) | |
409 | 417 | let pw1 = getIntegerValue(factoryContract, keyFactoryPoolWeight(poolAddressStr)) | |
410 | 418 | let pw0 = valueOrElse(getInteger(factoryContract, keyFactoryPoolWeightHistory(poolAddressStr, 0)), pw1) | |
411 | 419 | $Tuple2(pw0, pw1) | |
412 | 420 | } | |
413 | 421 | else if (readOnly) | |
414 | 422 | then $Tuple2(0, 0) | |
415 | 423 | else throw(("not readonly mode: unsupported lp asset " + lpAssetIdStr)) | |
416 | - | let poolWeight0 = $ | |
417 | - | let poolWeight1 = $ | |
424 | + | let poolWeight0 = $t01539715965._1 | |
425 | + | let poolWeight1 = $t01539715965._2 | |
418 | 426 | let wxEmissionPerBlock = iof(emissionContract, keyEmissionRatePerBlockCurrent()) | |
419 | 427 | let emissionStart = iof(emissionContract, keyEmissionStartBlock()) | |
420 | 428 | let emissionEnd = iof(emissionContract, keyEmissionEndBlock()) | |
421 | 429 | let h = if ((height > emissionEnd)) | |
422 | 430 | then emissionEnd | |
423 | 431 | else height | |
424 | 432 | let dh = max([(h - emissionStart), 0]) | |
425 | 433 | let userLpBoostEmissionLastIntegralKEY = keyUserLpBoostEmissionLastINTEGRAL(userNumStr, lpAssetIdStr) | |
426 | 434 | let userBoostEmissionLastIntegralKEY = keyUserBoostEmissionLastINTEGRAL(userNumStr) | |
427 | 435 | let userBoostEmissionLastIntegral = valueOrElse(getInteger(this, userLpBoostEmissionLastIntegralKEY), ioz(this, userBoostEmissionLastIntegralKEY)) | |
428 | 436 | let boostEmissionIntegral = (((wxEmissionPerBlock * dh) * 2) / 3) | |
429 | 437 | let userBoostEmissionIntegral = (boostEmissionIntegral - userBoostEmissionLastIntegral) | |
430 | 438 | let udh = fraction(userBoostEmissionIntegral, 3, (2 * wxEmissionPerBlock)) | |
431 | 439 | let uLastH = (h - udh) | |
432 | 440 | let udh0 = max([(gwxRewardEmissionStartHeight - uLastH), 0]) | |
433 | 441 | let udh1 = ((h - uLastH) - udh0) | |
434 | 442 | if (if (if ((0 > uLastH)) | |
435 | 443 | then true | |
436 | 444 | else (0 > udh1)) | |
437 | 445 | then true | |
438 | 446 | else (abs(((udh0 + udh1) - udh)) >= 1)) | |
439 | 447 | then throw(((((((("invalid udh calc: udh=" + toString(udh)) + " uLastH=") + toString(uLastH)) + " udh0=") + toString(udh0)) + " udh1=") + toString(udh1))) | |
440 | 448 | else if ((0 > userBoostEmissionIntegral)) | |
441 | 449 | then throw("wrong calculations") | |
442 | 450 | else { | |
443 | 451 | let userMaxBoostIntegralKEY = keyUserMaxBoostINTEGRAL(userNumStr) | |
444 | 452 | let totalMaxBoostIntegralKEY = keyTotalMaxBoostINTEGRAL() | |
445 | 453 | let userMaxBoostInt = ioz(this, userMaxBoostIntegralKEY) | |
446 | 454 | let totalMaxBoostInt = ioz(this, totalMaxBoostIntegralKEY) | |
447 | 455 | let totalCachedGwxCorrected = getTotalCachedGwx(true) | |
448 | 456 | let userCurrGwx = calcCurrentGwxAmount(userAddressStr) | |
449 | 457 | let userBoostAvalaibleToClaimTotalKEY = keyUserBoostAvalaibleToClaimTotal(userNumStr) | |
450 | 458 | let userBoostAvaliableToClaimTotal = ioz(this, userBoostAvalaibleToClaimTotalKEY) | |
451 | 459 | let userBoostEmissionIntegral0 = if ((udh == 0)) | |
452 | 460 | then 0 | |
453 | 461 | else fraction(userBoostEmissionIntegral, udh0, udh) | |
454 | 462 | let userBoostEmissionIntegral1 = if ((udh == 0)) | |
455 | 463 | then 0 | |
456 | 464 | else fraction(userBoostEmissionIntegral, udh1, udh) | |
457 | 465 | let poolUserBoostEmissionIntegral0 = fraction(userBoostEmissionIntegral0, poolWeight0, POOLWEIGHTMULT) | |
458 | 466 | let poolUserBoostEmissionIntegral1 = fraction(userBoostEmissionIntegral1, poolWeight1, POOLWEIGHTMULT) | |
459 | 467 | let userBoostAvaliableToClaimTotalNew0 = if ((totalCachedGwxCorrected == 0)) | |
460 | 468 | then 0 | |
461 | 469 | else fraction(poolUserBoostEmissionIntegral0, userCurrGwx, totalCachedGwxCorrected) | |
462 | 470 | let userBoostAvaliableToClaimTotalNew1 = if ((totalCachedGwxCorrected == 0)) | |
463 | 471 | then 0 | |
464 | 472 | else fraction(poolUserBoostEmissionIntegral1, userCurrGwx, totalCachedGwxCorrected) | |
465 | 473 | let userBoostAvaliableToClaimTotalNew = (userBoostAvaliableToClaimTotalNew0 + userBoostAvaliableToClaimTotalNew1) | |
466 | 474 | let userBoostClaimedKEY = keyUserBoostClaimed(userNumStr) | |
467 | 475 | let userBoostClaimed = ioz(this, userBoostClaimedKEY) | |
468 | 476 | let userBoostAvailable = (userBoostAvaliableToClaimTotalNew - userBoostClaimed) | |
469 | 477 | let dataState = [IntegerEntry(userLpBoostEmissionLastIntegralKEY, boostEmissionIntegral)] | |
470 | 478 | let debug = makeString([toString(userBoostEmissionLastIntegral), toString(userBoostEmissionIntegral), toString(userBoostClaimed), toString(userBoostAvailable), toString(poolWeight0), toString(poolWeight1), toString(h), toString(udh), toString(uLastH), toString(udh0), toString(udh1), toString(userCurrGwx), toString(totalCachedGwxCorrected)], ":") | |
471 | 479 | $Tuple3(userBoostAvaliableToClaimTotalNew, dataState, debug) | |
472 | 480 | } | |
473 | 481 | } | |
474 | 482 | } | |
475 | 483 | ||
476 | 484 | ||
477 | 485 | func lockActions (i,duration) = { | |
478 | 486 | let cfgArray = readConfigArrayOrFail() | |
479 | 487 | let assetIdStr = cfgArray[IdxCfgAssetId] | |
480 | 488 | let assetId = fromBase58String(assetIdStr) | |
481 | 489 | let minLockAmount = parseIntValue(cfgArray[IdxCfgMinLockAmount]) | |
482 | 490 | let minLockDuration = parseIntValue(cfgArray[IdxCfgMinLockDuration]) | |
483 | 491 | let maxLockDuration = parseIntValue(cfgArray[IdxCfgMaxLockDuration]) | |
484 | 492 | if ((size(i.payments) != 1)) | |
485 | 493 | then throw("invalid payment - exact one payment must be attached") | |
486 | 494 | else { | |
487 | 495 | let pmt = i.payments[0] | |
488 | 496 | let pmtAmount = pmt.amount | |
489 | 497 | if ((assetId != value(pmt.assetId))) | |
490 | 498 | then throw((("invalid asset is in payment - " + assetIdStr) + " is expected")) | |
491 | 499 | else { | |
492 | 500 | let nextUserNumKEY = keyNextUserNum() | |
493 | 501 | let userAddressStr = toString(i.caller) | |
494 | 502 | let userIsExisting = isDefined(getString(keyUser2NumMapping(userAddressStr))) | |
495 | 503 | let userNumStr = if (userIsExisting) | |
496 | 504 | then value(getString(keyUser2NumMapping(userAddressStr))) | |
497 | 505 | else toString(iof(this, nextUserNumKEY)) | |
498 | 506 | let userNum = parseIntValue(userNumStr) | |
499 | 507 | let lockStart = height | |
500 | 508 | let startBlockKEY = keyLockParamStartBlock(userNumStr) | |
501 | 509 | let durationKEY = keyLockParamDuration(userNumStr) | |
502 | 510 | let userAmountKEY = keyLockParamUserAmount(userNumStr) | |
503 | - | if ((minLockAmount > pmtAmount)) | |
511 | + | if (if ((minLockAmount > pmtAmount)) | |
512 | + | then (i.caller != lpStakingPoolsContract) | |
513 | + | else false) | |
504 | 514 | then throw(("amount is less then minLockAmount=" + toString(minLockAmount))) | |
505 | 515 | else if ((minLockDuration > duration)) | |
506 | 516 | then throw(("passed duration is less then minLockDuration=" + toString(minLockDuration))) | |
507 | 517 | else if ((duration > maxLockDuration)) | |
508 | 518 | then throw(("passed duration is greater then maxLockDuration=" + toString(maxLockDuration))) | |
509 | 519 | else if (if (userIsExisting) | |
510 | 520 | then ((iof(this, startBlockKEY) + iof(this, durationKEY)) >= lockStart) | |
511 | 521 | else false) | |
512 | 522 | then throw("there is an active lock - consider to use increaseLock") | |
513 | 523 | else if ((ioz(this, userAmountKEY) > 0)) | |
514 | 524 | then throw(("there are locked WXs - consider to use increaseLock " + userAmountKEY)) | |
515 | 525 | else { | |
516 | 526 | let coeffX8 = fraction(duration, MULT8, maxLockDuration) | |
517 | 527 | let gWxAmountStart = fraction(pmtAmount, coeffX8, MULT8) | |
518 | 528 | let gWxParamsResultList = aal(invoke(mathContract, "calcGwxParamsREADONLY", [gWxAmountStart, lockStart, duration], nil)) | |
519 | 529 | let k = ai(gWxParamsResultList[0]) | |
520 | 530 | let b = ai(gWxParamsResultList[1]) | |
521 | 531 | let period = toString(ai(gWxParamsResultList[2])) | |
522 | 532 | let wxEmissionPerBlock = iof(emissionContract, keyEmissionRatePerBlockCurrent()) | |
523 | 533 | let emissionStart = iof(emissionContract, keyEmissionStartBlock()) | |
524 | 534 | let emissionEnd = iof(emissionContract, keyEmissionEndBlock()) | |
525 | 535 | let h = if ((height > emissionEnd)) | |
526 | 536 | then emissionEnd | |
527 | 537 | else height | |
528 | 538 | let dh = max([(h - emissionStart), 0]) | |
529 | 539 | let userBoostEmissionLastIntegralKEY = keyUserBoostEmissionLastINTEGRAL(userNumStr) | |
530 | 540 | let boostEmissionIntegral = (((wxEmissionPerBlock * dh) * 2) / 3) | |
531 | 541 | let userMaxBoostIntegralKEY = keyUserMaxBoostINTEGRAL(userNumStr) | |
532 | 542 | let totalMaxBoostIntegralKEY = keyTotalMaxBoostINTEGRAL() | |
533 | 543 | let userMaxBoostInt = ((gWxAmountStart * duration) / 2) | |
534 | 544 | let totalMaxBoostInt = ioz(this, totalMaxBoostIntegralKEY) | |
535 | 545 | let totalCachedGwxRaw = getTotalCachedGwx(false) | |
536 | 546 | let arr = if (userIsExisting) | |
537 | 547 | then nil | |
538 | 548 | else [IntegerEntry(nextUserNumKEY, (userNum + 1)), StringEntry(keyUser2NumMapping(userAddressStr), userNumStr), StringEntry(keyNum2UserMapping(userNumStr), userAddressStr)] | |
539 | 549 | $Tuple2(((((arr ++ LockParamsEntry(userAddressStr, userNumStr, pmtAmount, lockStart, duration, k, b, period)) ++ StatsEntry(pmtAmount, duration, 1, if (userIsExisting) | |
540 | 550 | then 0 | |
541 | 551 | else 1)) :+ HistoryEntry("lock", userAddressStr, pmtAmount, lockStart, duration, k, b, i)) ++ [IntegerEntry(userBoostEmissionLastIntegralKEY, boostEmissionIntegral), IntegerEntry(keyTotalCachedGwx(), (totalCachedGwxRaw + gWxAmountStart))]), gWxAmountStart) | |
542 | 552 | } | |
543 | 553 | } | |
544 | 554 | } | |
545 | 555 | } | |
546 | 556 | ||
547 | 557 | ||
548 | 558 | @Callable(i) | |
549 | 559 | func constructor (factoryAddressStr,lockAssetIdStr,minLockAmount,minDuration,maxDuration,mathContract) = { | |
550 | 560 | let checkCaller = mustManager(i) | |
551 | 561 | if ((checkCaller == checkCaller)) | |
552 | 562 | then ([IntegerEntry(keyNextUserNum(), 0), StringEntry(keyConfig(), formatConfig(lockAssetIdStr, minLockAmount, minDuration, maxDuration, mathContract)), StringEntry(keyFactoryAddress(), factoryAddressStr)] ++ StatsEntry(0, 0, 0, 0)) | |
553 | 563 | else throw("Strict value is not equal to itself.") | |
554 | 564 | } | |
555 | 565 | ||
556 | 566 | ||
557 | 567 | ||
558 | 568 | @Callable(i) | |
559 | 569 | func lockRef (duration,referrerAddress,signature) = { | |
560 | - | let $ | |
561 | - | let lockActionsResult = $ | |
562 | - | let gWxAmountStart = $ | |
570 | + | let $t02436424429 = lockActions(i, duration) | |
571 | + | let lockActionsResult = $t02436424429._1 | |
572 | + | let gWxAmountStart = $t02436424429._2 | |
563 | 573 | let referralAddress = toString(i.caller) | |
564 | 574 | let refInv = if (if ((referrerAddress == "")) | |
565 | 575 | then true | |
566 | 576 | else (signature == base58'')) | |
567 | 577 | then unit | |
568 | 578 | else invoke(referralsContractAddressOrFail, "createPair", [referralProgramName, referrerAddress, referralAddress, signature], nil) | |
569 | 579 | if ((refInv == refInv)) | |
570 | 580 | then { | |
571 | 581 | let updateRefActivity = invoke(mathContract, "updateReferralActivity", [toString(i.caller), gWxAmountStart], nil) | |
572 | 582 | if ((updateRefActivity == updateRefActivity)) | |
573 | 583 | then $Tuple2(lockActionsResult, unit) | |
574 | 584 | else throw("Strict value is not equal to itself.") | |
575 | 585 | } | |
576 | 586 | else throw("Strict value is not equal to itself.") | |
577 | 587 | } | |
578 | 588 | ||
579 | 589 | ||
580 | 590 | ||
581 | 591 | @Callable(i) | |
582 | 592 | func lock (duration) = { | |
583 | - | let $ | |
584 | - | let lockActionsResult = $ | |
585 | - | let gWxAmountStart = $ | |
593 | + | let $t02488724952 = lockActions(i, duration) | |
594 | + | let lockActionsResult = $t02488724952._1 | |
595 | + | let gWxAmountStart = $t02488724952._2 | |
586 | 596 | let updateRefActivity = invoke(mathContract, "updateReferralActivity", [toString(i.caller), gWxAmountStart], nil) | |
587 | 597 | if ((updateRefActivity == updateRefActivity)) | |
588 | 598 | then $Tuple2(lockActionsResult, unit) | |
589 | 599 | else throw("Strict value is not equal to itself.") | |
590 | 600 | } | |
591 | 601 | ||
592 | 602 | ||
593 | 603 | ||
594 | 604 | @Callable(i) | |
595 | 605 | func increaseLock (deltaDuration) = { | |
596 | 606 | let cfgArray = readConfigArrayOrFail() | |
597 | 607 | let assetIdStr = cfgArray[IdxCfgAssetId] | |
598 | 608 | let assetId = fromBase58String(assetIdStr) | |
599 | 609 | let minLockDuration = parseIntValue(cfgArray[IdxCfgMinLockDuration]) | |
600 | 610 | let maxLockDuration = parseIntValue(cfgArray[IdxCfgMaxLockDuration]) | |
601 | 611 | let pmtAmount = extractOptionalPaymentAmountOrFail(i, assetId) | |
602 | 612 | let userAddressStr = toString(i.caller) | |
603 | 613 | let userRecordArray = readLockParamsRecordOrFail(userAddressStr) | |
604 | 614 | let userNumStr = userRecordArray[IdxLockUserNum] | |
605 | 615 | let userAmount = parseIntValue(userRecordArray[IdxLockAmount]) | |
606 | 616 | let lockStart = parseIntValue(userRecordArray[IdxLockStart]) | |
607 | 617 | let lockDuration = parseIntValue(userRecordArray[IdxLockDuration]) | |
608 | 618 | let lockEnd = (lockStart + lockDuration) | |
609 | 619 | let remainingDuration = max([(lockEnd - height), 0]) | |
610 | 620 | let userAmountNew = (userAmount + pmtAmount) | |
611 | 621 | let lockDurationNew = (remainingDuration + deltaDuration) | |
612 | 622 | if ((0 > deltaDuration)) | |
613 | 623 | then throw("duration is less then zero") | |
614 | 624 | else if ((minLockDuration > lockDurationNew)) | |
615 | 625 | then throw(("lockDurationNew is less then minLockDuration=" + toString(minLockDuration))) | |
616 | 626 | else if ((lockDurationNew > maxLockDuration)) | |
617 | 627 | then throw(("deltaDuration + existedLockDuration is greater then maxLockDuration=" + toString(maxLockDuration))) | |
618 | 628 | else { | |
619 | 629 | let coeffX8 = fraction(lockDurationNew, MULT8, maxLockDuration) | |
620 | 630 | let gWxAmountStart = fraction(userAmountNew, coeffX8, MULT8) | |
621 | 631 | let updateRefActivity = invoke(mathContract, "updateReferralActivity", [toString(i.caller), gWxAmountStart], nil) | |
622 | 632 | if ((updateRefActivity == updateRefActivity)) | |
623 | 633 | then { | |
624 | 634 | let lockStartNew = height | |
625 | 635 | let gWxParamsResultList = aal(invoke(mathContract, "calcGwxParamsREADONLY", [gWxAmountStart, lockStartNew, lockDurationNew], nil)) | |
626 | 636 | let k = ai(gWxParamsResultList[0]) | |
627 | 637 | let b = ai(gWxParamsResultList[1]) | |
628 | 638 | let period = toString(ai(gWxParamsResultList[2])) | |
629 | 639 | let wxEmissionPerBlock = iof(emissionContract, keyEmissionRatePerBlockCurrent()) | |
630 | 640 | let emissionStart = iof(emissionContract, keyEmissionStartBlock()) | |
631 | 641 | let emissionEnd = iof(emissionContract, keyEmissionEndBlock()) | |
632 | 642 | let h = if ((height > emissionEnd)) | |
633 | 643 | then emissionEnd | |
634 | 644 | else height | |
635 | 645 | let dh = max([(h - emissionStart), 0]) | |
636 | 646 | let userBoostEmissionLastIntegralKEY = keyUserBoostEmissionLastINTEGRAL(userNumStr) | |
637 | 647 | let userBoostEmissionLastIntegral = ioz(this, userBoostEmissionLastIntegralKEY) | |
638 | 648 | let boostEmissionIntegral = (((wxEmissionPerBlock * dh) * 2) / 3) | |
639 | 649 | let userBoostEmissionIntegral = (boostEmissionIntegral - userBoostEmissionLastIntegral) | |
640 | 650 | if ((0 > userBoostEmissionIntegral)) | |
641 | 651 | then throw("wrong calculations") | |
642 | 652 | else { | |
643 | 653 | let userMaxBoostIntegralKEY = keyUserMaxBoostINTEGRAL(userNumStr) | |
644 | 654 | let totalMaxBoostIntegralKEY = keyTotalMaxBoostINTEGRAL() | |
645 | 655 | let userMaxBoostInt = ioz(this, userMaxBoostIntegralKEY) | |
646 | 656 | let totalMaxBoostInt = ioz(this, totalMaxBoostIntegralKEY) | |
647 | 657 | let currUserGwx = calcCurrentGwxAmount(userAddressStr) | |
648 | 658 | let gwxDiff = (gWxAmountStart - currUserGwx) | |
649 | 659 | if ((0 > gwxDiff)) | |
650 | 660 | then throw(("gwxDiff is less then 0: " + toString(gwxDiff))) | |
651 | 661 | else { | |
652 | 662 | let totalCachedGwxRaw = getTotalCachedGwx(false) | |
653 | 663 | let totalCachedGwxCorrected = getTotalCachedGwx(true) | |
654 | 664 | let userBoostAvalaibleToClaimTotalKEY = keyUserBoostAvalaibleToClaimTotal(userNumStr) | |
655 | 665 | let userBoostAvaliableToClaimTotal = ioz(this, userBoostAvalaibleToClaimTotalKEY) | |
656 | 666 | let userBoostAvaliableToClaimTotalNew = fraction(userBoostEmissionIntegral, currUserGwx, totalCachedGwxCorrected) | |
657 | 667 | let userMaxBoostIntNew = ((gWxAmountStart * lockDurationNew) / 2) | |
658 | 668 | let remainingUserMaxBoostInt = ((currUserGwx * remainingDuration) / 2) | |
659 | 669 | let userMaxBoostIntDiff = (userMaxBoostIntNew - remainingUserMaxBoostInt) | |
660 | 670 | (((LockParamsEntry(userAddressStr, userNumStr, userAmountNew, lockStartNew, lockDurationNew, k, b, period) ++ StatsEntry(pmtAmount, deltaDuration, 0, 0)) :+ HistoryEntry("lock", userAddressStr, pmtAmount, lockStart, lockDurationNew, k, b, i)) ++ [IntegerEntry(keyTotalCachedGwx(), (totalCachedGwxRaw + gwxDiff))]) | |
661 | 671 | } | |
662 | 672 | } | |
663 | 673 | } | |
664 | 674 | else throw("Strict value is not equal to itself.") | |
665 | 675 | } | |
666 | 676 | } | |
667 | 677 | ||
668 | 678 | ||
669 | 679 | ||
670 | 680 | @Callable(i) | |
671 | 681 | func claimWxBoost (lpAssetIdStr,userAddressStr) = if ((stakingContract != i.caller)) | |
672 | 682 | then throw("permissions denied") | |
673 | 683 | else { | |
674 | - | let $ | |
675 | - | let userBoostAvailable = $ | |
676 | - | let dataState = $ | |
677 | - | let debug = $ | |
684 | + | let $t02993330035 = internalClaimWxBoost(lpAssetIdStr, userAddressStr, false) | |
685 | + | let userBoostAvailable = $t02993330035._1 | |
686 | + | let dataState = $t02993330035._2 | |
687 | + | let debug = $t02993330035._3 | |
678 | 688 | $Tuple2(dataState, [userBoostAvailable]) | |
679 | 689 | } | |
680 | 690 | ||
681 | 691 | ||
682 | 692 | ||
683 | 693 | @Callable(i) | |
684 | 694 | func claimWxBoostREADONLY (lpAssetIdStr,userAddressStr) = { | |
685 | - | let $ | |
686 | - | let userBoostAvailable = $ | |
687 | - | let dataState = $ | |
688 | - | let debug = $ | |
695 | + | let $t03016730268 = internalClaimWxBoost(lpAssetIdStr, userAddressStr, true) | |
696 | + | let userBoostAvailable = $t03016730268._1 | |
697 | + | let dataState = $t03016730268._2 | |
698 | + | let debug = $t03016730268._3 | |
689 | 699 | $Tuple2(nil, [userBoostAvailable, debug]) | |
690 | 700 | } | |
691 | 701 | ||
692 | 702 | ||
693 | 703 | ||
694 | 704 | @Callable(i) | |
695 | 705 | func unlock (userAddress) = { | |
696 | 706 | let userRecordArray = readLockParamsRecordOrFail(userAddress) | |
697 | 707 | let userNumStr = userRecordArray[IdxLockUserNum] | |
698 | 708 | let userAmount = parseIntValue(userRecordArray[IdxLockAmount]) | |
699 | 709 | let lockStart = parseIntValue(userRecordArray[IdxLockStart]) | |
700 | 710 | let lockDuration = parseIntValue(userRecordArray[IdxLockDuration]) | |
701 | 711 | let lockEnd = (lockStart + lockDuration) | |
702 | 712 | let cfgArray = readConfigArrayOrFail() | |
703 | 713 | let assetId = fromBase58String(cfgArray[IdxCfgAssetId]) | |
704 | 714 | if ((lockEnd >= height)) | |
705 | 715 | then throw((("wait " + toString(lockEnd)) + " to unlock")) | |
706 | 716 | else if ((0 >= userAmount)) | |
707 | 717 | then throw("nothing to unlock") | |
708 | 718 | else { | |
709 | 719 | let period = valueOrElse(getInteger(mathContract, keyNextPeriod()), 0) | |
710 | 720 | (((LockParamsEntry(userAddress, userNumStr, 0, lockStart, lockDuration, 0, 0, toString(period)) ++ StatsEntry(-(userAmount), 0, 0, -1)) :+ HistoryEntry("unlock", userAddress, userAmount, lockStart, lockDuration, 0, 0, i)) :+ ScriptTransfer(addressFromStringValue(userAddress), userAmount, assetId)) | |
711 | 721 | } | |
712 | 722 | } | |
713 | 723 | ||
714 | 724 | ||
715 | 725 | ||
716 | 726 | @Callable(i) | |
717 | 727 | func gwxUserInfoREADONLY (userAddress) = { | |
718 | 728 | let gwxAmount = calcCurrentGwxAmount(userAddress) | |
719 | 729 | $Tuple2(nil, [gwxAmount]) | |
730 | + | } | |
731 | + | ||
732 | + | ||
733 | + | ||
734 | + | @Callable(i) | |
735 | + | func userMaxDurationREADONLY (userAddressStr) = { | |
736 | + | let cfgArray = readConfigArrayOrFail() | |
737 | + | let maxLockDuration = parseIntValue(cfgArray[IdxCfgMaxLockDuration]) | |
738 | + | let userRecordOption = getString(this, keyLockParamsRecord(userAddressStr)) | |
739 | + | if ((userRecordOption == unit)) | |
740 | + | then $Tuple2(nil, $Tuple2("lock", maxLockDuration)) | |
741 | + | else { | |
742 | + | let userRecordArray = split(value(userRecordOption), SEP) | |
743 | + | let lockStart = parseIntValue(userRecordArray[IdxLockStart]) | |
744 | + | let lockDuration = parseIntValue(userRecordArray[IdxLockDuration]) | |
745 | + | let lockEnd = (lockStart + lockDuration) | |
746 | + | let remainingDuration = max([(lockEnd - height), 0]) | |
747 | + | let maxDeltaDuration = (maxLockDuration - remainingDuration) | |
748 | + | $Tuple2(nil, $Tuple2("increaseLock", maxDeltaDuration)) | |
749 | + | } | |
720 | 750 | } | |
721 | 751 | ||
722 | 752 | ||
723 | 753 | ||
724 | 754 | @Callable(i) | |
725 | 755 | func getUserGwxAmountAtHeightREADONLY (userAddress,targetHeight) = { | |
726 | 756 | let gwxAmount = calcUserGwxAmountAtHeight(userAddress, targetHeight) | |
727 | 757 | $Tuple2(nil, gwxAmount) | |
728 | 758 | } | |
729 | 759 | ||
730 | 760 | ||
731 | 761 | ||
732 | 762 | @Callable(i) | |
733 | 763 | func getTotalCachedGwxREADONLY () = $Tuple2(nil, getTotalCachedGwx(true)) | |
734 | 764 | ||
735 | 765 | ||
736 | 766 | ||
737 | 767 | @Callable(i) | |
738 | 768 | func setManager (pendingManagerPublicKey) = { | |
739 | 769 | let checkCaller = mustManager(i) | |
740 | 770 | if ((checkCaller == checkCaller)) | |
741 | 771 | then { | |
742 | 772 | let checkManagerPublicKey = fromBase58String(pendingManagerPublicKey) | |
743 | 773 | if ((checkManagerPublicKey == checkManagerPublicKey)) | |
744 | 774 | then [StringEntry(keyPendingManagerPublicKey(), pendingManagerPublicKey)] | |
745 | 775 | else throw("Strict value is not equal to itself.") | |
746 | 776 | } | |
747 | 777 | else throw("Strict value is not equal to itself.") | |
748 | 778 | } | |
749 | 779 | ||
750 | 780 | ||
751 | 781 | ||
752 | 782 | @Callable(i) | |
753 | 783 | func confirmManager () = { | |
754 | 784 | let pm = pendingManagerPublicKeyOrUnit() | |
755 | 785 | let hasPM = if (isDefined(pm)) | |
756 | 786 | then true | |
757 | 787 | else throw("No pending manager") | |
758 | 788 | if ((hasPM == hasPM)) | |
759 | 789 | then { | |
760 | 790 | let checkPM = if ((i.callerPublicKey == value(pm))) | |
761 | 791 | then true | |
762 | 792 | else throw("You are not pending manager") | |
763 | 793 | if ((checkPM == checkPM)) | |
764 | 794 | then [StringEntry(keyManagerPublicKey(), toBase58String(value(pm))), DeleteEntry(keyPendingManagerPublicKey())] | |
765 | 795 | else throw("Strict value is not equal to itself.") | |
766 | 796 | } | |
767 | 797 | else throw("Strict value is not equal to itself.") | |
768 | 798 | } | |
769 | 799 | ||
770 | 800 | ||
771 | 801 | @Verifier(tx) | |
772 | 802 | func verify () = { | |
773 | 803 | let targetPublicKey = match managerPublicKeyOrUnit() { | |
774 | 804 | case pk: ByteVector => | |
775 | 805 | pk | |
776 | 806 | case _: Unit => | |
777 | 807 | tx.senderPublicKey | |
778 | 808 | case _ => | |
779 | 809 | throw("Match error") | |
780 | 810 | } | |
781 | 811 | sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey) | |
782 | 812 | } | |
783 | 813 |
github/deemru/w8io/026f985 102.15 ms ◑