tx · DV9ZTyyUojXpVgqaZV1rTfyFjv8Xuqd2SmVfF1MGUTMs 3Myn55vLkduxbX3ZXfiDCZhaQsLxYp1kmCy: -0.01000000 Waves 2021.12.23 17:18 [1847015] smart account 3Myn55vLkduxbX3ZXfiDCZhaQsLxYp1kmCy > SELF 0.00000000 Waves
{ "type": 13, "id": "DV9ZTyyUojXpVgqaZV1rTfyFjv8Xuqd2SmVfF1MGUTMs", "fee": 1000000, "feeAssetId": null, "timestamp": 1640269106310, "version": 1, "sender": "3Myn55vLkduxbX3ZXfiDCZhaQsLxYp1kmCy", "senderPublicKey": "9W33iCCNfmFxUbiC6XZcH5x7f6xfwC7Jb3BoExT5q2PV", "proofs": [ "cw7onHhxpVzDWBsqxqt8EzXTfxCeFEppBCwAcgbAmdh2zj87Pwmn4uaw5cW8Fi4LhBQNuCsHyX8GyiuDCZthvgF" ], "script": "base64:AAIFAAAAAAAAAC4IAhIICgYICAEBAQgSAwoBARIDCgEBEgQKAggIEgQKAggIEgMKAQgSAwoBCBIAAAAAYAAAAAADU0VQAgAAAAJfXwAAAAAGU0NBTEU4AAAAAAAAAAAIAAAAAAVNVUxUOAAAAAAABfXhAAAAAAAOUE9PTFdFSUdIVE1VTFQFAAAABU1VTFQ4AQAAAA9nZXRTdHJpbmdPckZhaWwAAAACAAAAB2FkZHJlc3MAAAADa2V5CQEAAAATdmFsdWVPckVycm9yTWVzc2FnZQAAAAIJAAQdAAAAAgUAAAAHYWRkcmVzcwUAAAADa2V5CQABLAAAAAIJAAEsAAAAAgIAAAAPbWFuZGF0b3J5IHRoaXMuBQAAAANrZXkCAAAADyBpcyBub3QgZGVmaW5lZAEAAAAMZ2V0SW50T3JaZXJvAAAAAgAAAAdhZGRyZXNzAAAAA2tleQkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABBoAAAACBQAAAAdhZGRyZXNzBQAAAANrZXkAAAAAAAAAAAABAAAAD2dldEludE9yRGVmYXVsdAAAAAMAAAAHYWRkcmVzcwAAAANrZ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J1UwUAAAADbHAzBAAAAANscDQJAAGRAAAAAgUAAAADbHBzAAAAAAAAAAAEBAAAAA0kdDAyOTY5MTI5NzQ1CQEAAAAUaW50ZXJuYWxDbGFpbVd4Qm9vc3QAAAADBQAAAANscDQFAAAAAXUGBAAAAAJiNAgFAAAADSR0MDI5NjkxMjk3NDUAAAACXzEEAAAAA2RzNAgFAAAADSR0MDI5NjkxMjk3NDUAAAACXzIEAAAAAmQ0CAUAAAANJHQwMjk2OTEyOTc0NQAAAAJfMwQAAAADYks0CQEAAAAia2V5VXNlckJvb3N0QXZhbGFpYmxlVG9DbGFpbUNhY2hlZAAAAAIFAAAAAnVTBQAAAANscDQJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIFAAAABW5leHRLCQAAZAAAAAIFAAAAAnVOAAAAAAAAAAABCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACBQAAAANiSzAFAAAAAmIwCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACBQAAAANiSzEFAAAAAmIxCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACBQAAAANiSzIFAAAAAmIyCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACBQAAAANiSzMFAAAAAmIzCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACBQAAAANiSzQFAAAAAmI0CQAETAAAAAIJAAGRAAAAAgUAAAADZHMwAAAAAAAAAAAACQAETAAAAAIJAAGRAAAAAgUAAAADZHMxAAAAAAAAAAAACQAETAAAAAIJAAGRAAAAAgUAAAADZHMyAAAAAAAAAAAACQAETAAAAAIJAAGRAAAAAgUAAAADZHMzAAAAAAAAAAAACQAETAAAAAIJAAGRAAAAAgUAAAADZHM0AAAAAAAAAAAABQAAAANuaWwAAAAAshhFHQ==", "chainId": 84, "height": 1847015, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 41PpT18pgdbvYnbdVZn36iqhYSFF5MURzxhbYXHX6yJr Next: HeQKND9sTpFP2R2SUK1SjdmMoj5Ew2GucS7Mf1GEMiZs Diff:
Old | New | Differences | |
---|---|---|---|
383 | 383 | let userBoostAvalaibleToClaimCached = valueOrElse(getInteger(this, userBoostAvalaibleToClaimCachedKEY), 0) | |
384 | 384 | let userBoostAvaliableToClaimTotalNew = ((userBoostAvaliableToClaimTotalNew0 + userBoostAvaliableToClaimTotalNew1) + userBoostAvalaibleToClaimCached) | |
385 | 385 | let dataState = [IntegerEntry(userLpBoostEmissionLastIntegralKEY, boostEmissionIntegral), IntegerEntry(userBoostAvalaibleToClaimCachedKEY, 0)] | |
386 | - | let debug = makeString([("userBoostEmissionLastIntegral=" + toString(userBoostEmissionLastIntegral)), ("userBoostEmissionIntegral=" + toString(userBoostEmissionIntegral)), (" | |
386 | + | let debug = makeString([("userBoostEmissionLastIntegral=" + toString(userBoostEmissionLastIntegral)), ("userBoostEmissionIntegral=" + toString(userBoostEmissionIntegral)), ("userBoostAvalaibleToClaimCached=" + toString(userBoostAvalaibleToClaimCached)), ("userBoostAvaliableToClaimTotalNew=" + toString(userBoostAvaliableToClaimTotalNew)), ("userBoostEmissionIntegral0=" + toString(userBoostEmissionIntegral0)), ("userBoostEmissionIntegral1=" + toString(userBoostEmissionIntegral1)), ("poolUserBoostEmissionIntegral0=" + toString(poolUserBoostEmissionIntegral0)), ("poolUserBoostEmissionIntegral1=" + toString(poolUserBoostEmissionIntegral1)), ("poolWeight0=" + toString(poolWeight0)), ("poolWeight1=" + toString(poolWeight1)), ("h=" + toString(h)), ("udh=" + toString(udh)), ("uLastH=" + toString(uLastH)), ("udh0=" + toString(udh0)), ("udh1=" + toString(udh1)), ("userCurrGwx=" + toString(userCurrGwx)), ("totalCachedGwx=" + toString(totalCachedGwx))], "::") | |
387 | 387 | $Tuple3(userBoostAvaliableToClaimTotalNew, dataState, debug) | |
388 | 388 | } | |
389 | 389 | } | |
548 | 548 | func claimWxBoost (lpAssetIdStr,userAddressStr) = if ((stakingContract != i.caller)) | |
549 | 549 | then throw("permissions denied") | |
550 | 550 | else { | |
551 | - | let $ | |
552 | - | let userBoostAvailable = $ | |
553 | - | let dataState = $ | |
554 | - | let debug = $ | |
551 | + | let $t02692327025 = internalClaimWxBoost(lpAssetIdStr, userAddressStr, false) | |
552 | + | let userBoostAvailable = $t02692327025._1 | |
553 | + | let dataState = $t02692327025._2 | |
554 | + | let debug = $t02692327025._3 | |
555 | 555 | $Tuple2(dataState, [userBoostAvailable]) | |
556 | 556 | } | |
557 | 557 | ||
559 | 559 | ||
560 | 560 | @Callable(i) | |
561 | 561 | func claimWxBoostREADONLY (lpAssetIdStr,userAddressStr) = { | |
562 | - | let $ | |
563 | - | let userBoostAvailable = $ | |
564 | - | let dataState = $ | |
565 | - | let debug = $ | |
562 | + | let $t02715727258 = internalClaimWxBoost(lpAssetIdStr, userAddressStr, true) | |
563 | + | let userBoostAvailable = $t02715727258._1 | |
564 | + | let dataState = $t02715727258._2 | |
565 | + | let debug = $t02715727258._3 | |
566 | 566 | $Tuple2(nil, [userBoostAvailable, debug]) | |
567 | 567 | } | |
568 | 568 | ||
613 | 613 | let uS = toString(uN) | |
614 | 614 | let u = getStringOrFail(this, keyNum2UserMapping(uS)) | |
615 | 615 | let lp0 = lps[0] | |
616 | - | let $ | |
617 | - | let b0 = $ | |
618 | - | let ds0 = $ | |
619 | - | let d0 = $ | |
616 | + | let $t02916329217 = internalClaimWxBoost(lp0, u, true) | |
617 | + | let b0 = $t02916329217._1 | |
618 | + | let ds0 = $t02916329217._2 | |
619 | + | let d0 = $t02916329217._3 | |
620 | 620 | let bK0 = keyUserBoostAvalaibleToClaimCached(uS, lp0) | |
621 | 621 | let lp1 = lps[1] | |
622 | - | let $ | |
623 | - | let b1 = $ | |
624 | - | let ds1 = $ | |
625 | - | let d1 = $ | |
622 | + | let $t02929529349 = internalClaimWxBoost(lp1, u, true) | |
623 | + | let b1 = $t02929529349._1 | |
624 | + | let ds1 = $t02929529349._2 | |
625 | + | let d1 = $t02929529349._3 | |
626 | 626 | let bK1 = keyUserBoostAvalaibleToClaimCached(uS, lp1) | |
627 | 627 | let lp2 = lps[2] | |
628 | - | let $ | |
629 | - | let b2 = $ | |
630 | - | let ds2 = $ | |
631 | - | let d2 = $ | |
628 | + | let $t02942729481 = internalClaimWxBoost(lp2, u, true) | |
629 | + | let b2 = $t02942729481._1 | |
630 | + | let ds2 = $t02942729481._2 | |
631 | + | let d2 = $t02942729481._3 | |
632 | 632 | let bK2 = keyUserBoostAvalaibleToClaimCached(uS, lp2) | |
633 | 633 | let lp3 = lps[3] | |
634 | - | let $ | |
635 | - | let b3 = $ | |
636 | - | let ds3 = $ | |
637 | - | let d3 = $ | |
634 | + | let $t02955929613 = internalClaimWxBoost(lp3, u, true) | |
635 | + | let b3 = $t02955929613._1 | |
636 | + | let ds3 = $t02955929613._2 | |
637 | + | let d3 = $t02955929613._3 | |
638 | 638 | let bK3 = keyUserBoostAvalaibleToClaimCached(uS, lp3) | |
639 | 639 | let lp4 = lps[4] | |
640 | - | let $ | |
641 | - | let b4 = $ | |
642 | - | let ds4 = $ | |
643 | - | let d4 = $ | |
640 | + | let $t02969129745 = internalClaimWxBoost(lp4, u, true) | |
641 | + | let b4 = $t02969129745._1 | |
642 | + | let ds4 = $t02969129745._2 | |
643 | + | let d4 = $t02969129745._3 | |
644 | 644 | let bK4 = keyUserBoostAvalaibleToClaimCached(uS, lp4) | |
645 | 645 | [IntegerEntry(nextK, (uN + 1)), IntegerEntry(bK0, b0), IntegerEntry(bK1, b1), IntegerEntry(bK2, b2), IntegerEntry(bK3, b3), IntegerEntry(bK4, b4), ds0[0], ds1[0], ds2[0], ds3[0], ds4[0]] | |
646 | 646 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
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 | 11 | ||
12 | 12 | func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), (("mandatory this." + key) + " is not defined")) | |
13 | 13 | ||
14 | 14 | ||
15 | 15 | func getIntOrZero (address,key) = valueOrElse(getInteger(address, key), 0) | |
16 | 16 | ||
17 | 17 | ||
18 | 18 | func getIntOrDefault (address,key,defaultVal) = valueOrElse(getInteger(address, key), defaultVal) | |
19 | 19 | ||
20 | 20 | ||
21 | 21 | func getIntOrFail (address,key) = valueOrErrorMessage(getInteger(address, key), (("mandatory this." + key) + " is not defined")) | |
22 | 22 | ||
23 | 23 | ||
24 | 24 | func abs (val) = if ((0 > val)) | |
25 | 25 | then -(val) | |
26 | 26 | else val | |
27 | 27 | ||
28 | 28 | ||
29 | 29 | func asAnyList (val) = match val { | |
30 | 30 | case valAnyLyst: List[Any] => | |
31 | 31 | valAnyLyst | |
32 | 32 | case _ => | |
33 | 33 | throw("fail to cast into List[Any]") | |
34 | 34 | } | |
35 | 35 | ||
36 | 36 | ||
37 | 37 | func asInt (val) = match val { | |
38 | 38 | case valInt: Int => | |
39 | 39 | valInt | |
40 | 40 | case _ => | |
41 | 41 | throw("fail to cast into Int") | |
42 | 42 | } | |
43 | 43 | ||
44 | 44 | ||
45 | 45 | func keyFactoryAddress () = "%s%s__config__factoryAddress" | |
46 | 46 | ||
47 | 47 | ||
48 | 48 | let IdxFactoryCfgStakingDapp = 1 | |
49 | 49 | ||
50 | 50 | let IdxFactoryCfgBoostingDapp = 2 | |
51 | 51 | ||
52 | 52 | let IdxFactoryCfgIdoDapp = 3 | |
53 | 53 | ||
54 | 54 | let IdxFactoryCfgTeamDapp = 4 | |
55 | 55 | ||
56 | 56 | let IdxFactoryCfgEmissionDapp = 5 | |
57 | 57 | ||
58 | 58 | let IdxFactoryCfgRestDapp = 6 | |
59 | 59 | ||
60 | 60 | let IdxFactoryCfgSlippageDapp = 7 | |
61 | 61 | ||
62 | 62 | let IdxFactoryCfgDaoDapp = 8 | |
63 | 63 | ||
64 | 64 | let IdxFactoryCfgMarketingDapp = 9 | |
65 | 65 | ||
66 | 66 | let IdxFactoryCfgGwxRewardDapp = 10 | |
67 | 67 | ||
68 | 68 | let IdxFactoryCfgBirdsDapp = 11 | |
69 | 69 | ||
70 | 70 | func keyFactoryCfg () = "%s__factoryConfig" | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | func keyFactoryLp2AssetsMapping (lpAssetStr) = makeString(["%s%s%s", lpAssetStr, "mappings__lpAsset2PoolContract"], SEP) | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func keyFactoryLpList () = "%s__lpTokensList" | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | func keyFactoryLpAssetToPoolContractAddress (lpAssetStr) = makeString(["%s%s%s", lpAssetStr, "mappings__lpAsset2PoolContract"], SEP) | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | func keyFactoryPoolWeight (contractAddress) = makeString(["%s%s", "poolWeight", contractAddress], SEP) | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | func keyFactoryPoolWeightHistory (poolAddress,num) = ((("%s%s__poolWeight__" + poolAddress) + "__") + toString(num)) | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | func readFactoryAddressOrFail () = addressFromStringValue(getStringOrFail(this, keyFactoryAddress())) | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | func readLpList () = split(valueOrElse(getString(readFactoryAddressOrFail(), keyFactoryLpList()), ""), SEP) | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | func readFactoryCfgOrFail (factory) = split(getStringOrFail(factory, keyFactoryCfg()), SEP) | |
95 | 95 | ||
96 | 96 | ||
97 | 97 | func getBoostingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgBoostingDapp]) | |
98 | 98 | ||
99 | 99 | ||
100 | 100 | func getEmissionAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgEmissionDapp]) | |
101 | 101 | ||
102 | 102 | ||
103 | 103 | func getStakingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgStakingDapp]) | |
104 | 104 | ||
105 | 105 | ||
106 | 106 | func getGwxRewardAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgGwxRewardDapp]) | |
107 | 107 | ||
108 | 108 | ||
109 | 109 | func keyEmissionRatePerBlockCurrent () = "%s%s__ratePerBlock__current" | |
110 | 110 | ||
111 | 111 | ||
112 | 112 | func keyEmissionRatePerBlockMaxCurrent () = "%s%s__ratePerBlockMax__current" | |
113 | 113 | ||
114 | 114 | ||
115 | 115 | func keyEmissionStartBlock () = "%s%s__emission__startBlock" | |
116 | 116 | ||
117 | 117 | ||
118 | 118 | func keyEmissionDurationInBlocks () = "%s%s__emission__duration" | |
119 | 119 | ||
120 | 120 | ||
121 | 121 | func keyEmissionEndBlock () = "%s%s__emission__endBlock" | |
122 | 122 | ||
123 | 123 | ||
124 | 124 | func keyNextPeriod () = "%s__nextPeriod" | |
125 | 125 | ||
126 | 126 | ||
127 | 127 | func keyGwxRewardEmissionStartHeight () = "%s%s__gwxRewardEmissionPart__startHeight" | |
128 | 128 | ||
129 | 129 | ||
130 | 130 | let IdxCfgAssetId = 1 | |
131 | 131 | ||
132 | 132 | let IdxCfgMinLockAmount = 2 | |
133 | 133 | ||
134 | 134 | let IdxCfgMinLockDuration = 3 | |
135 | 135 | ||
136 | 136 | let IdxCfgMaxLockDuration = 4 | |
137 | 137 | ||
138 | 138 | let IdxCfgMathContract = 5 | |
139 | 139 | ||
140 | 140 | func keyConfig () = "%s__config" | |
141 | 141 | ||
142 | 142 | ||
143 | 143 | func readConfigArrayOrFail () = split(getStringOrFail(this, keyConfig()), SEP) | |
144 | 144 | ||
145 | 145 | ||
146 | 146 | func formatConfigS (assetId,minLockAmount,minLockDuration,maxLockDuration,mathContract) = makeString(["%s%d%d%d", assetId, minLockAmount, minLockDuration, maxLockDuration, mathContract], SEP) | |
147 | 147 | ||
148 | 148 | ||
149 | 149 | func formatConfig (assetId,minLockAmount,minLockDuration,maxLockDuration,mathContract) = formatConfigS(assetId, toString(minLockAmount), toString(minLockDuration), toString(maxLockDuration), mathContract) | |
150 | 150 | ||
151 | 151 | ||
152 | 152 | let IdxLockUserNum = 1 | |
153 | 153 | ||
154 | 154 | let IdxLockAmount = 2 | |
155 | 155 | ||
156 | 156 | let IdxLockStart = 3 | |
157 | 157 | ||
158 | 158 | let IdxLockDuration = 4 | |
159 | 159 | ||
160 | 160 | let IdxLockParamK = 5 | |
161 | 161 | ||
162 | 162 | let IdxLockParamB = 6 | |
163 | 163 | ||
164 | 164 | func keyLockParamsRecord (userAddress) = makeString(["%s%s__lock", userAddress], SEP) | |
165 | 165 | ||
166 | 166 | ||
167 | 167 | func readLockParamsRecordOrFail (userAddress) = split(getStringOrFail(this, keyLockParamsRecord(userAddress)), SEP) | |
168 | 168 | ||
169 | 169 | ||
170 | 170 | 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) | |
171 | 171 | ||
172 | 172 | ||
173 | 173 | 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)) | |
174 | 174 | ||
175 | 175 | ||
176 | 176 | func keyNextUserNum () = "%s__nextUserNum" | |
177 | 177 | ||
178 | 178 | ||
179 | 179 | func keyUser2NumMapping (userAddress) = makeString(["%s%s%s__mapping__user2num", userAddress], SEP) | |
180 | 180 | ||
181 | 181 | ||
182 | 182 | func keyNum2UserMapping (num) = makeString(["%s%s%s__mapping__num2user", num], SEP) | |
183 | 183 | ||
184 | 184 | ||
185 | 185 | func keyLockParamUserAmount (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "amount"], SEP) | |
186 | 186 | ||
187 | 187 | ||
188 | 188 | func keyLockParamStartBlock (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "start"], SEP) | |
189 | 189 | ||
190 | 190 | ||
191 | 191 | func keyLockParamDuration (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "duration"], SEP) | |
192 | 192 | ||
193 | 193 | ||
194 | 194 | func keyLockParamK (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "k"], SEP) | |
195 | 195 | ||
196 | 196 | ||
197 | 197 | func keyLockParamB (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "b"], SEP) | |
198 | 198 | ||
199 | 199 | ||
200 | 200 | func keyLockParamByPeriodK (userNum,period) = makeString(["%s%d%s%d__paramByPeriod", userNum, "k", period], SEP) | |
201 | 201 | ||
202 | 202 | ||
203 | 203 | func keyLockParamByPeriodB (userNum,period) = makeString(["%s%d%s%d__paramByPeriod", userNum, "b", period], SEP) | |
204 | 204 | ||
205 | 205 | ||
206 | 206 | func keyLockParamTotalAmount () = "%s%s__stats__activeTotalLocked" | |
207 | 207 | ||
208 | 208 | ||
209 | 209 | func keyStatsLocksDurationSumInBlocks () = "%s%s__stats__locksDurationSumInBlocks" | |
210 | 210 | ||
211 | 211 | ||
212 | 212 | func keyStatsLocksCount () = "%s%s__stats__locksCount" | |
213 | 213 | ||
214 | 214 | ||
215 | 215 | func keyStatsUsersCount () = "%s%s__stats__activeUsersCount" | |
216 | 216 | ||
217 | 217 | ||
218 | 218 | func keyUserBoostEmissionLastINTEGRAL (userNum) = makeString(["%s%d__userBoostEmissionLastInt", userNum], SEP) | |
219 | 219 | ||
220 | 220 | ||
221 | 221 | func keyUserLpBoostEmissionLastINTEGRAL (userNum,lpAssetId) = makeString(["%s%d__userBoostEmissionLastInt", userNum, lpAssetId], SEP) | |
222 | 222 | ||
223 | 223 | ||
224 | 224 | func keyUserMaxBoostINTEGRAL (userNum) = makeString(["%s%d__maxBoostInt", userNum], SEP) | |
225 | 225 | ||
226 | 226 | ||
227 | 227 | func keyTotalMaxBoostINTEGRAL () = "%s%s__maxBoostInt__total" | |
228 | 228 | ||
229 | 229 | ||
230 | 230 | func keyUserBoostAvalaibleToClaimTotal (userNum) = makeString(["%s%d__userBoostAvaliableToClaimTotal", userNum], SEP) | |
231 | 231 | ||
232 | 232 | ||
233 | 233 | func keyUserBoostClaimed (userNum) = makeString(["%s%d__userBoostClaimed", userNum], SEP) | |
234 | 234 | ||
235 | 235 | ||
236 | 236 | func keyUserBoostAvalaibleToClaimCached (userNum,lpAssetId) = makeString(["%s%d%s__userBoostAvaliableToClaim", userNum, lpAssetId], SEP) | |
237 | 237 | ||
238 | 238 | ||
239 | 239 | func keyTotalCachedGwx () = "%s%s__gwxCached__total" | |
240 | 240 | ||
241 | 241 | ||
242 | 242 | let factoryContract = readFactoryAddressOrFail() | |
243 | 243 | ||
244 | 244 | let factoryCfg = readFactoryCfgOrFail(factoryContract) | |
245 | 245 | ||
246 | 246 | let emissionContract = getEmissionAddressOrFail(factoryCfg) | |
247 | 247 | ||
248 | 248 | let stakingContract = getStakingAddressOrFail(factoryCfg) | |
249 | 249 | ||
250 | 250 | let gwxRewardContract = getGwxRewardAddressOrFail(factoryCfg) | |
251 | 251 | ||
252 | 252 | func HistoryEntry (type,user,amount,lockStart,duration,k,b,i) = { | |
253 | 253 | let historyKEY = makeString(["%s%s%s%s__history", type, user, toBase58String(i.transactionId)], SEP) | |
254 | 254 | 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) | |
255 | 255 | StringEntry(historyKEY, historyDATA) | |
256 | 256 | } | |
257 | 257 | ||
258 | 258 | ||
259 | 259 | func StatsEntry (totalLockedInc,durationInc,lockCountInc,usersCountInc) = { | |
260 | 260 | let locksDurationSumInBlocksKEY = keyStatsLocksDurationSumInBlocks() | |
261 | 261 | let locksCountKEY = keyStatsLocksCount() | |
262 | 262 | let usersCountKEY = keyStatsUsersCount() | |
263 | 263 | let totalAmountKEY = keyLockParamTotalAmount() | |
264 | 264 | let locksDurationSumInBlocks = getIntOrZero(this, locksDurationSumInBlocksKEY) | |
265 | 265 | let locksCount = getIntOrZero(this, locksCountKEY) | |
266 | 266 | let usersCount = getIntOrZero(this, usersCountKEY) | |
267 | 267 | let totalAmount = getIntOrZero(this, totalAmountKEY) | |
268 | 268 | [IntegerEntry(locksDurationSumInBlocksKEY, (locksDurationSumInBlocks + durationInc)), IntegerEntry(locksCountKEY, (locksCount + lockCountInc)), IntegerEntry(usersCountKEY, (usersCount + usersCountInc)), IntegerEntry(totalAmountKEY, (totalAmount + totalLockedInc))] | |
269 | 269 | } | |
270 | 270 | ||
271 | 271 | ||
272 | 272 | func calcGwxAmount (kRaw,bRaw,h) = { | |
273 | 273 | let SCALE = 1000 | |
274 | 274 | (((kRaw * h) + bRaw) / SCALE) | |
275 | 275 | } | |
276 | 276 | ||
277 | 277 | ||
278 | 278 | func LockParamsEntry (userAddress,userNum,amount,start,duration,k,b,period) = { | |
279 | 279 | let userAmountKEY = keyLockParamUserAmount(userNum) | |
280 | 280 | let startBlockKEY = keyLockParamStartBlock(userNum) | |
281 | 281 | let durationKEY = keyLockParamDuration(userNum) | |
282 | 282 | let kKEY = keyLockParamK(userNum) | |
283 | 283 | let bKEY = keyLockParamB(userNum) | |
284 | 284 | let kByPerioKEY = keyLockParamByPeriodK(userNum, period) | |
285 | 285 | let bByPeriodKEY = keyLockParamByPeriodB(userNum, period) | |
286 | 286 | let gwxAmount = calcGwxAmount(k, b, height) | |
287 | 287 | [IntegerEntry(userAmountKEY, amount), IntegerEntry(startBlockKEY, start), IntegerEntry(durationKEY, duration), IntegerEntry(kKEY, k), IntegerEntry(bKEY, b), IntegerEntry(kByPerioKEY, k), IntegerEntry(bByPeriodKEY, b), StringEntry(keyLockParamsRecord(userAddress), formatLockParamsRecord(userNum, amount, start, duration, k, b, gwxAmount))] | |
288 | 288 | } | |
289 | 289 | ||
290 | 290 | ||
291 | 291 | func extractOptionalPaymentAmountOrFail (i,expectedAssetId) = if ((size(i.payments) > 1)) | |
292 | 292 | then throw("only one payment is allowed") | |
293 | 293 | else if ((size(i.payments) == 0)) | |
294 | 294 | then 0 | |
295 | 295 | else { | |
296 | 296 | let pmt = i.payments[0] | |
297 | 297 | if ((value(pmt.assetId) != expectedAssetId)) | |
298 | 298 | then throw("invalid asset id in payment") | |
299 | 299 | else pmt.amount | |
300 | 300 | } | |
301 | 301 | ||
302 | 302 | ||
303 | 303 | func calcCurrentGwxAmount (userAddress) = { | |
304 | 304 | let EMPTY = "empty" | |
305 | 305 | let user2NumMappingKEY = keyUser2NumMapping(userAddress) | |
306 | 306 | let userNum = valueOrElse(getString(user2NumMappingKEY), EMPTY) | |
307 | 307 | let k = valueOrElse(getInteger(keyLockParamK(userNum)), 0) | |
308 | 308 | let b = valueOrElse(getInteger(keyLockParamB(userNum)), 0) | |
309 | 309 | let gwxAmountCalc = calcGwxAmount(k, b, height) | |
310 | 310 | let gwxAmount = if ((0 > gwxAmountCalc)) | |
311 | 311 | then 0 | |
312 | 312 | else gwxAmountCalc | |
313 | 313 | gwxAmount | |
314 | 314 | } | |
315 | 315 | ||
316 | 316 | ||
317 | 317 | func internalClaimWxBoost (lpAssetIdStr,userAddressStr,readOnly) = { | |
318 | 318 | let EMPTY = "EMPTY" | |
319 | 319 | let userRecordOrEmpty = valueOrElse(getString(this, keyLockParamsRecord(userAddressStr)), EMPTY) | |
320 | 320 | if ((userRecordOrEmpty == EMPTY)) | |
321 | 321 | then $Tuple3(0, nil, "userRecord::is::empty") | |
322 | 322 | else { | |
323 | 323 | let userRecordArray = split(userRecordOrEmpty, SEP) | |
324 | 324 | let userNumStr = userRecordArray[IdxLockUserNum] | |
325 | 325 | let gwxRewardEmissionStartHeight = valueOrElse(getInteger(gwxRewardContract, keyGwxRewardEmissionStartHeight()), 0) | |
326 | 326 | let EMPTYSTR = "empty" | |
327 | 327 | let $t01252513093 = if ((lpAssetIdStr != EMPTYSTR)) | |
328 | 328 | then { | |
329 | 329 | let poolAddressStr = valueOrErrorMessage(getString(factoryContract, keyFactoryLp2AssetsMapping(lpAssetIdStr)), ("unsupported lp asset " + lpAssetIdStr)) | |
330 | 330 | let pw1 = getIntegerValue(factoryContract, keyFactoryPoolWeight(poolAddressStr)) | |
331 | 331 | let pw0 = valueOrElse(getInteger(factoryContract, keyFactoryPoolWeightHistory(poolAddressStr, 0)), pw1) | |
332 | 332 | $Tuple2(pw0, pw1) | |
333 | 333 | } | |
334 | 334 | else if (readOnly) | |
335 | 335 | then $Tuple2(0, 0) | |
336 | 336 | else throw(("not readonly mode: unsupported lp asset " + lpAssetIdStr)) | |
337 | 337 | let poolWeight0 = $t01252513093._1 | |
338 | 338 | let poolWeight1 = $t01252513093._2 | |
339 | 339 | let wxEmissionPerBlock = getIntOrFail(emissionContract, keyEmissionRatePerBlockCurrent()) | |
340 | 340 | let emissionStart = getIntOrFail(emissionContract, keyEmissionStartBlock()) | |
341 | 341 | let emissionEnd = getIntOrFail(emissionContract, keyEmissionEndBlock()) | |
342 | 342 | let h = if ((height > emissionEnd)) | |
343 | 343 | then emissionEnd | |
344 | 344 | else height | |
345 | 345 | let dh = max([(h - emissionStart), 0]) | |
346 | 346 | let userLpBoostEmissionLastIntegralKEY = keyUserLpBoostEmissionLastINTEGRAL(userNumStr, lpAssetIdStr) | |
347 | 347 | let userBoostEmissionLastIntegralKEY = keyUserBoostEmissionLastINTEGRAL(userNumStr) | |
348 | 348 | let userBoostEmissionLastIntegral = valueOrElse(getInteger(this, userLpBoostEmissionLastIntegralKEY), getIntOrZero(this, userBoostEmissionLastIntegralKEY)) | |
349 | 349 | let boostEmissionIntegral = (((wxEmissionPerBlock * dh) * 2) / 3) | |
350 | 350 | let userBoostEmissionIntegral = (boostEmissionIntegral - userBoostEmissionLastIntegral) | |
351 | 351 | let udh = fraction(userBoostEmissionIntegral, 3, (2 * wxEmissionPerBlock)) | |
352 | 352 | let uLastH = (h - udh) | |
353 | 353 | let udh0 = max([(gwxRewardEmissionStartHeight - uLastH), 0]) | |
354 | 354 | let udh1 = ((h - uLastH) - udh0) | |
355 | 355 | if (if (if ((0 > uLastH)) | |
356 | 356 | then true | |
357 | 357 | else (0 > udh1)) | |
358 | 358 | then true | |
359 | 359 | else (abs(((udh0 + udh1) - udh)) >= 1)) | |
360 | 360 | then throw(((((((("invalid udh calc: udh=" + toString(udh)) + " uLastH=") + toString(uLastH)) + " udh0=") + toString(udh0)) + " udh1=") + toString(udh1))) | |
361 | 361 | else if ((0 > userBoostEmissionIntegral)) | |
362 | 362 | then throw("wrong calculations") | |
363 | 363 | else { | |
364 | 364 | let userMaxBoostIntegralKEY = keyUserMaxBoostINTEGRAL(userNumStr) | |
365 | 365 | let totalMaxBoostIntegralKEY = keyTotalMaxBoostINTEGRAL() | |
366 | 366 | let userMaxBoostInt = getIntOrZero(this, userMaxBoostIntegralKEY) | |
367 | 367 | let totalMaxBoostInt = getIntOrZero(this, totalMaxBoostIntegralKEY) | |
368 | 368 | let totalCachedGwxKEY = keyTotalCachedGwx() | |
369 | 369 | let totalCachedGwx = valueOrElse(getInteger(this, totalCachedGwxKEY), 0) | |
370 | 370 | let userCurrGwx = calcCurrentGwxAmount(userAddressStr) | |
371 | 371 | let userBoostAvalaibleToClaimTotalKEY = keyUserBoostAvalaibleToClaimTotal(userNumStr) | |
372 | 372 | let userBoostEmissionIntegral0 = fraction(userBoostEmissionIntegral, udh0, udh) | |
373 | 373 | let userBoostEmissionIntegral1 = fraction(userBoostEmissionIntegral, udh1, udh) | |
374 | 374 | let poolUserBoostEmissionIntegral0 = fraction(userBoostEmissionIntegral0, poolWeight0, POOLWEIGHTMULT) | |
375 | 375 | let poolUserBoostEmissionIntegral1 = fraction(userBoostEmissionIntegral1, poolWeight1, POOLWEIGHTMULT) | |
376 | 376 | let userBoostAvaliableToClaimTotalNew0 = if ((totalCachedGwx == 0)) | |
377 | 377 | then 0 | |
378 | 378 | else fraction(poolUserBoostEmissionIntegral0, userCurrGwx, totalCachedGwx) | |
379 | 379 | let userBoostAvaliableToClaimTotalNew1 = if ((totalCachedGwx == 0)) | |
380 | 380 | then 0 | |
381 | 381 | else fraction(poolUserBoostEmissionIntegral1, userCurrGwx, totalCachedGwx) | |
382 | 382 | let userBoostAvalaibleToClaimCachedKEY = keyUserBoostAvalaibleToClaimCached(userNumStr, lpAssetIdStr) | |
383 | 383 | let userBoostAvalaibleToClaimCached = valueOrElse(getInteger(this, userBoostAvalaibleToClaimCachedKEY), 0) | |
384 | 384 | let userBoostAvaliableToClaimTotalNew = ((userBoostAvaliableToClaimTotalNew0 + userBoostAvaliableToClaimTotalNew1) + userBoostAvalaibleToClaimCached) | |
385 | 385 | let dataState = [IntegerEntry(userLpBoostEmissionLastIntegralKEY, boostEmissionIntegral), IntegerEntry(userBoostAvalaibleToClaimCachedKEY, 0)] | |
386 | - | let debug = makeString([("userBoostEmissionLastIntegral=" + toString(userBoostEmissionLastIntegral)), ("userBoostEmissionIntegral=" + toString(userBoostEmissionIntegral)), (" | |
386 | + | let debug = makeString([("userBoostEmissionLastIntegral=" + toString(userBoostEmissionLastIntegral)), ("userBoostEmissionIntegral=" + toString(userBoostEmissionIntegral)), ("userBoostAvalaibleToClaimCached=" + toString(userBoostAvalaibleToClaimCached)), ("userBoostAvaliableToClaimTotalNew=" + toString(userBoostAvaliableToClaimTotalNew)), ("userBoostEmissionIntegral0=" + toString(userBoostEmissionIntegral0)), ("userBoostEmissionIntegral1=" + toString(userBoostEmissionIntegral1)), ("poolUserBoostEmissionIntegral0=" + toString(poolUserBoostEmissionIntegral0)), ("poolUserBoostEmissionIntegral1=" + toString(poolUserBoostEmissionIntegral1)), ("poolWeight0=" + toString(poolWeight0)), ("poolWeight1=" + toString(poolWeight1)), ("h=" + toString(h)), ("udh=" + toString(udh)), ("uLastH=" + toString(uLastH)), ("udh0=" + toString(udh0)), ("udh1=" + toString(udh1)), ("userCurrGwx=" + toString(userCurrGwx)), ("totalCachedGwx=" + toString(totalCachedGwx))], "::") | |
387 | 387 | $Tuple3(userBoostAvaliableToClaimTotalNew, dataState, debug) | |
388 | 388 | } | |
389 | 389 | } | |
390 | 390 | } | |
391 | 391 | ||
392 | 392 | ||
393 | 393 | @Callable(i) | |
394 | 394 | func constructor (factoryAddressStr,lockAssetIdStr,minLockAmount,minDuration,maxDuration,mathContract) = if ((this != i.caller)) | |
395 | 395 | then throw("not authorized") | |
396 | 396 | else ([IntegerEntry(keyNextUserNum(), 0), StringEntry(keyConfig(), formatConfig(lockAssetIdStr, minLockAmount, minDuration, maxDuration, mathContract)), StringEntry(keyFactoryAddress(), factoryAddressStr)] ++ StatsEntry(0, 0, 0, 0)) | |
397 | 397 | ||
398 | 398 | ||
399 | 399 | ||
400 | 400 | @Callable(i) | |
401 | 401 | func lock (duration) = { | |
402 | 402 | let cfgArray = readConfigArrayOrFail() | |
403 | 403 | let assetIdStr = cfgArray[IdxCfgAssetId] | |
404 | 404 | let assetId = fromBase58String(assetIdStr) | |
405 | 405 | let minLockAmount = parseIntValue(cfgArray[IdxCfgMinLockAmount]) | |
406 | 406 | let minLockDuration = parseIntValue(cfgArray[IdxCfgMinLockDuration]) | |
407 | 407 | let maxLockDuration = parseIntValue(cfgArray[IdxCfgMaxLockDuration]) | |
408 | 408 | let mathContract = addressFromStringValue(cfgArray[IdxCfgMathContract]) | |
409 | 409 | if ((size(i.payments) != 1)) | |
410 | 410 | then throw("invalid payment - exact one payment must be attached") | |
411 | 411 | else { | |
412 | 412 | let pmt = i.payments[0] | |
413 | 413 | let pmtAmount = pmt.amount | |
414 | 414 | if ((assetId != value(pmt.assetId))) | |
415 | 415 | then throw((("invalid asset is in payment - " + assetIdStr) + " is expected")) | |
416 | 416 | else { | |
417 | 417 | let nextUserNumKEY = keyNextUserNum() | |
418 | 418 | let userAddressStr = toString(i.caller) | |
419 | 419 | let userIsExisting = isDefined(getString(keyUser2NumMapping(userAddressStr))) | |
420 | 420 | let userNumStr = if (userIsExisting) | |
421 | 421 | then value(getString(keyUser2NumMapping(userAddressStr))) | |
422 | 422 | else toString(getIntOrFail(this, nextUserNumKEY)) | |
423 | 423 | let userNum = parseIntValue(userNumStr) | |
424 | 424 | let lockStart = height | |
425 | 425 | let startBlockKEY = keyLockParamStartBlock(userNumStr) | |
426 | 426 | let durationKEY = keyLockParamDuration(userNumStr) | |
427 | 427 | let userAmountKEY = keyLockParamUserAmount(userNumStr) | |
428 | 428 | if ((minLockAmount > pmtAmount)) | |
429 | 429 | then throw(("amount is less then minLockAmount=" + toString(minLockAmount))) | |
430 | 430 | else if ((minLockDuration > duration)) | |
431 | 431 | then throw(("passed duration is less then minLockDuration=" + toString(minLockDuration))) | |
432 | 432 | else if ((duration > maxLockDuration)) | |
433 | 433 | then throw(("passed duration is greater then maxLockDuration=" + toString(maxLockDuration))) | |
434 | 434 | else if (if (userIsExisting) | |
435 | 435 | then ((getIntOrFail(this, startBlockKEY) + getIntOrFail(this, durationKEY)) >= lockStart) | |
436 | 436 | else false) | |
437 | 437 | then throw("there is an active lock - consider to use increaseLock") | |
438 | 438 | else if ((getIntOrZero(this, userAmountKEY) > 0)) | |
439 | 439 | then throw(("there are locked WXs - consider to use increaseLock " + userAmountKEY)) | |
440 | 440 | else { | |
441 | 441 | let coeffX8 = fraction(duration, MULT8, maxLockDuration) | |
442 | 442 | let gWxAmountStart = fraction(pmtAmount, coeffX8, MULT8) | |
443 | 443 | let gWxParamsResultList = asAnyList(invoke(mathContract, "calcGwxParamsREADONLY", [gWxAmountStart, lockStart, duration], nil)) | |
444 | 444 | let k = asInt(gWxParamsResultList[0]) | |
445 | 445 | let b = asInt(gWxParamsResultList[1]) | |
446 | 446 | let period = toString(asInt(gWxParamsResultList[2])) | |
447 | 447 | let wxEmissionPerBlock = getIntOrFail(emissionContract, keyEmissionRatePerBlockCurrent()) | |
448 | 448 | let emissionStart = getIntOrFail(emissionContract, keyEmissionStartBlock()) | |
449 | 449 | let emissionEnd = getIntOrFail(emissionContract, keyEmissionEndBlock()) | |
450 | 450 | let h = if ((height > emissionEnd)) | |
451 | 451 | then emissionEnd | |
452 | 452 | else height | |
453 | 453 | let dh = max([(h - emissionStart), 0]) | |
454 | 454 | let userBoostEmissionLastIntegralKEY = keyUserBoostEmissionLastINTEGRAL(userNumStr) | |
455 | 455 | let boostEmissionIntegral = (((wxEmissionPerBlock * dh) * 2) / 3) | |
456 | 456 | let userMaxBoostIntegralKEY = keyUserMaxBoostINTEGRAL(userNumStr) | |
457 | 457 | let totalMaxBoostIntegralKEY = keyTotalMaxBoostINTEGRAL() | |
458 | 458 | let userMaxBoostInt = ((gWxAmountStart * duration) / 2) | |
459 | 459 | let totalMaxBoostInt = getIntOrZero(this, totalMaxBoostIntegralKEY) | |
460 | 460 | let totalCachedGwxKEY = keyTotalCachedGwx() | |
461 | 461 | let totalCachedGwx = valueOrElse(getInteger(this, totalCachedGwxKEY), 0) | |
462 | 462 | let arr = if (userIsExisting) | |
463 | 463 | then nil | |
464 | 464 | else [IntegerEntry(nextUserNumKEY, (userNum + 1)), StringEntry(keyUser2NumMapping(userAddressStr), userNumStr), StringEntry(keyNum2UserMapping(userNumStr), userAddressStr)] | |
465 | 465 | ((((arr ++ LockParamsEntry(userAddressStr, userNumStr, pmtAmount, lockStart, duration, k, b, period)) ++ StatsEntry(pmtAmount, duration, 1, if (userIsExisting) | |
466 | 466 | then 0 | |
467 | 467 | else 1)) :+ HistoryEntry("lock", userAddressStr, pmtAmount, lockStart, duration, k, b, i)) ++ [IntegerEntry(userBoostEmissionLastIntegralKEY, boostEmissionIntegral), IntegerEntry(totalCachedGwxKEY, (totalCachedGwx + gWxAmountStart))]) | |
468 | 468 | } | |
469 | 469 | } | |
470 | 470 | } | |
471 | 471 | } | |
472 | 472 | ||
473 | 473 | ||
474 | 474 | ||
475 | 475 | @Callable(i) | |
476 | 476 | func increaseLock (deltaDuration) = { | |
477 | 477 | let cfgArray = readConfigArrayOrFail() | |
478 | 478 | let assetIdStr = cfgArray[IdxCfgAssetId] | |
479 | 479 | let assetId = fromBase58String(assetIdStr) | |
480 | 480 | let minLockDuration = parseIntValue(cfgArray[IdxCfgMinLockDuration]) | |
481 | 481 | let maxLockDuration = parseIntValue(cfgArray[IdxCfgMaxLockDuration]) | |
482 | 482 | let mathContract = addressFromStringValue(cfgArray[IdxCfgMathContract]) | |
483 | 483 | let pmtAmount = extractOptionalPaymentAmountOrFail(i, assetId) | |
484 | 484 | let userAddressStr = toString(i.caller) | |
485 | 485 | let userRecordArray = readLockParamsRecordOrFail(userAddressStr) | |
486 | 486 | let userNumStr = userRecordArray[IdxLockUserNum] | |
487 | 487 | let userAmount = parseIntValue(userRecordArray[IdxLockAmount]) | |
488 | 488 | let lockStart = parseIntValue(userRecordArray[IdxLockStart]) | |
489 | 489 | let lockDuration = parseIntValue(userRecordArray[IdxLockDuration]) | |
490 | 490 | let lockEnd = (lockStart + lockDuration) | |
491 | 491 | let remainingDuration = max([(lockEnd - height), 0]) | |
492 | 492 | let userAmountNew = (userAmount + pmtAmount) | |
493 | 493 | let lockDurationNew = (remainingDuration + deltaDuration) | |
494 | 494 | if ((0 > deltaDuration)) | |
495 | 495 | then throw("duration is less then zero") | |
496 | 496 | else if ((minLockDuration > lockDurationNew)) | |
497 | 497 | then throw(("lockDurationNew is less then minLockDuration=" + toString(minLockDuration))) | |
498 | 498 | else if ((lockDurationNew > maxLockDuration)) | |
499 | 499 | then throw(("deltaDuration + existedLockDuration is greater then maxLockDuration=" + toString(maxLockDuration))) | |
500 | 500 | else { | |
501 | 501 | let coeffX8 = fraction(lockDurationNew, MULT8, maxLockDuration) | |
502 | 502 | let gWxAmountStart = fraction(userAmountNew, coeffX8, MULT8) | |
503 | 503 | let lockStartNew = height | |
504 | 504 | let gWxParamsResultList = asAnyList(invoke(mathContract, "calcGwxParamsREADONLY", [gWxAmountStart, lockStartNew, lockDurationNew], nil)) | |
505 | 505 | let k = asInt(gWxParamsResultList[0]) | |
506 | 506 | let b = asInt(gWxParamsResultList[1]) | |
507 | 507 | let period = toString(asInt(gWxParamsResultList[2])) | |
508 | 508 | let wxEmissionPerBlock = getIntOrFail(emissionContract, keyEmissionRatePerBlockCurrent()) | |
509 | 509 | let emissionStart = getIntOrFail(emissionContract, keyEmissionStartBlock()) | |
510 | 510 | let emissionEnd = getIntOrFail(emissionContract, keyEmissionEndBlock()) | |
511 | 511 | let h = if ((height > emissionEnd)) | |
512 | 512 | then emissionEnd | |
513 | 513 | else height | |
514 | 514 | let dh = max([(h - emissionStart), 0]) | |
515 | 515 | let userBoostEmissionLastIntegralKEY = keyUserBoostEmissionLastINTEGRAL(userNumStr) | |
516 | 516 | let userBoostEmissionLastIntegral = getIntOrZero(this, userBoostEmissionLastIntegralKEY) | |
517 | 517 | let boostEmissionIntegral = (((wxEmissionPerBlock * dh) * 2) / 3) | |
518 | 518 | let userBoostEmissionIntegral = (boostEmissionIntegral - userBoostEmissionLastIntegral) | |
519 | 519 | if ((0 > userBoostEmissionIntegral)) | |
520 | 520 | then throw("wrong calculations") | |
521 | 521 | else { | |
522 | 522 | let userMaxBoostIntegralKEY = keyUserMaxBoostINTEGRAL(userNumStr) | |
523 | 523 | let totalMaxBoostIntegralKEY = keyTotalMaxBoostINTEGRAL() | |
524 | 524 | let userMaxBoostInt = getIntOrZero(this, userMaxBoostIntegralKEY) | |
525 | 525 | let totalMaxBoostInt = getIntOrZero(this, totalMaxBoostIntegralKEY) | |
526 | 526 | let currUserGwx = calcCurrentGwxAmount(userAddressStr) | |
527 | 527 | let gwxDiff = (gWxAmountStart - currUserGwx) | |
528 | 528 | if ((0 > gwxDiff)) | |
529 | 529 | then throw(("gwxDiff is less then 0: " + toString(gwxDiff))) | |
530 | 530 | else { | |
531 | 531 | let totalCachedGwxKEY = keyTotalCachedGwx() | |
532 | 532 | let totalCachedGwx = valueOrElse(getInteger(this, totalCachedGwxKEY), 0) | |
533 | 533 | let userBoostAvalaibleToClaimTotalKEY = keyUserBoostAvalaibleToClaimTotal(userNumStr) | |
534 | 534 | let userBoostAvaliableToClaimTotal = getIntOrZero(this, userBoostAvalaibleToClaimTotalKEY) | |
535 | 535 | let userBoostAvaliableToClaimTotalNew = fraction(userBoostEmissionIntegral, currUserGwx, totalCachedGwx) | |
536 | 536 | let userMaxBoostIntNew = ((gWxAmountStart * lockDurationNew) / 2) | |
537 | 537 | let remainingUserMaxBoostInt = ((currUserGwx * remainingDuration) / 2) | |
538 | 538 | let userMaxBoostIntDiff = (userMaxBoostIntNew - remainingUserMaxBoostInt) | |
539 | 539 | (((LockParamsEntry(userAddressStr, userNumStr, userAmountNew, lockStartNew, lockDurationNew, k, b, period) ++ StatsEntry(pmtAmount, deltaDuration, 0, 0)) :+ HistoryEntry("lock", userAddressStr, pmtAmount, lockStart, lockDurationNew, k, b, i)) ++ [IntegerEntry(totalCachedGwxKEY, (totalCachedGwx + gwxDiff))]) | |
540 | 540 | } | |
541 | 541 | } | |
542 | 542 | } | |
543 | 543 | } | |
544 | 544 | ||
545 | 545 | ||
546 | 546 | ||
547 | 547 | @Callable(i) | |
548 | 548 | func claimWxBoost (lpAssetIdStr,userAddressStr) = if ((stakingContract != i.caller)) | |
549 | 549 | then throw("permissions denied") | |
550 | 550 | else { | |
551 | - | let $ | |
552 | - | let userBoostAvailable = $ | |
553 | - | let dataState = $ | |
554 | - | let debug = $ | |
551 | + | let $t02692327025 = internalClaimWxBoost(lpAssetIdStr, userAddressStr, false) | |
552 | + | let userBoostAvailable = $t02692327025._1 | |
553 | + | let dataState = $t02692327025._2 | |
554 | + | let debug = $t02692327025._3 | |
555 | 555 | $Tuple2(dataState, [userBoostAvailable]) | |
556 | 556 | } | |
557 | 557 | ||
558 | 558 | ||
559 | 559 | ||
560 | 560 | @Callable(i) | |
561 | 561 | func claimWxBoostREADONLY (lpAssetIdStr,userAddressStr) = { | |
562 | - | let $ | |
563 | - | let userBoostAvailable = $ | |
564 | - | let dataState = $ | |
565 | - | let debug = $ | |
562 | + | let $t02715727258 = internalClaimWxBoost(lpAssetIdStr, userAddressStr, true) | |
563 | + | let userBoostAvailable = $t02715727258._1 | |
564 | + | let dataState = $t02715727258._2 | |
565 | + | let debug = $t02715727258._3 | |
566 | 566 | $Tuple2(nil, [userBoostAvailable, debug]) | |
567 | 567 | } | |
568 | 568 | ||
569 | 569 | ||
570 | 570 | ||
571 | 571 | @Callable(i) | |
572 | 572 | func unlock (userAddress) = { | |
573 | 573 | let userRecordArray = readLockParamsRecordOrFail(userAddress) | |
574 | 574 | let userNumStr = userRecordArray[IdxLockUserNum] | |
575 | 575 | let userAmount = parseIntValue(userRecordArray[IdxLockAmount]) | |
576 | 576 | let lockStart = parseIntValue(userRecordArray[IdxLockStart]) | |
577 | 577 | let lockDuration = parseIntValue(userRecordArray[IdxLockDuration]) | |
578 | 578 | let lockEnd = (lockStart + lockDuration) | |
579 | 579 | let cfgArray = readConfigArrayOrFail() | |
580 | 580 | let assetId = fromBase58String(cfgArray[IdxCfgAssetId]) | |
581 | 581 | let mathContract = addressFromStringValue(cfgArray[IdxCfgMathContract]) | |
582 | 582 | if ((lockEnd >= height)) | |
583 | 583 | then throw((("wait " + toString(lockEnd)) + " to unlock")) | |
584 | 584 | else if ((0 >= userAmount)) | |
585 | 585 | then throw("nothing to unlock") | |
586 | 586 | else { | |
587 | 587 | let period = valueOrElse(getInteger(mathContract, keyNextPeriod()), 0) | |
588 | 588 | (((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)) | |
589 | 589 | } | |
590 | 590 | } | |
591 | 591 | ||
592 | 592 | ||
593 | 593 | ||
594 | 594 | @Callable(i) | |
595 | 595 | func gwxUserInfoREADONLY (userAddress) = { | |
596 | 596 | let gwxAmount = calcCurrentGwxAmount(userAddress) | |
597 | 597 | $Tuple2(nil, [gwxAmount]) | |
598 | 598 | } | |
599 | 599 | ||
600 | 600 | ||
601 | 601 | ||
602 | 602 | @Callable(i) | |
603 | 603 | func normalizeBeforeUnlockAndBurn () = if ((i.caller != this)) | |
604 | 604 | then throw("permissions denied") | |
605 | 605 | else { | |
606 | 606 | let tot = getIntOrFail(this, keyNextUserNum()) | |
607 | 607 | let lps = split(getStringOrFail(this, keyFactoryLpList()), SEP) | |
608 | 608 | let nextK = "%s__nextUserToNormalaize" | |
609 | 609 | let uN = valueOrElse(getInteger(this, nextK), 0) | |
610 | 610 | if ((uN == tot)) | |
611 | 611 | then throw("normalization is finished") | |
612 | 612 | else { | |
613 | 613 | let uS = toString(uN) | |
614 | 614 | let u = getStringOrFail(this, keyNum2UserMapping(uS)) | |
615 | 615 | let lp0 = lps[0] | |
616 | - | let $ | |
617 | - | let b0 = $ | |
618 | - | let ds0 = $ | |
619 | - | let d0 = $ | |
616 | + | let $t02916329217 = internalClaimWxBoost(lp0, u, true) | |
617 | + | let b0 = $t02916329217._1 | |
618 | + | let ds0 = $t02916329217._2 | |
619 | + | let d0 = $t02916329217._3 | |
620 | 620 | let bK0 = keyUserBoostAvalaibleToClaimCached(uS, lp0) | |
621 | 621 | let lp1 = lps[1] | |
622 | - | let $ | |
623 | - | let b1 = $ | |
624 | - | let ds1 = $ | |
625 | - | let d1 = $ | |
622 | + | let $t02929529349 = internalClaimWxBoost(lp1, u, true) | |
623 | + | let b1 = $t02929529349._1 | |
624 | + | let ds1 = $t02929529349._2 | |
625 | + | let d1 = $t02929529349._3 | |
626 | 626 | let bK1 = keyUserBoostAvalaibleToClaimCached(uS, lp1) | |
627 | 627 | let lp2 = lps[2] | |
628 | - | let $ | |
629 | - | let b2 = $ | |
630 | - | let ds2 = $ | |
631 | - | let d2 = $ | |
628 | + | let $t02942729481 = internalClaimWxBoost(lp2, u, true) | |
629 | + | let b2 = $t02942729481._1 | |
630 | + | let ds2 = $t02942729481._2 | |
631 | + | let d2 = $t02942729481._3 | |
632 | 632 | let bK2 = keyUserBoostAvalaibleToClaimCached(uS, lp2) | |
633 | 633 | let lp3 = lps[3] | |
634 | - | let $ | |
635 | - | let b3 = $ | |
636 | - | let ds3 = $ | |
637 | - | let d3 = $ | |
634 | + | let $t02955929613 = internalClaimWxBoost(lp3, u, true) | |
635 | + | let b3 = $t02955929613._1 | |
636 | + | let ds3 = $t02955929613._2 | |
637 | + | let d3 = $t02955929613._3 | |
638 | 638 | let bK3 = keyUserBoostAvalaibleToClaimCached(uS, lp3) | |
639 | 639 | let lp4 = lps[4] | |
640 | - | let $ | |
641 | - | let b4 = $ | |
642 | - | let ds4 = $ | |
643 | - | let d4 = $ | |
640 | + | let $t02969129745 = internalClaimWxBoost(lp4, u, true) | |
641 | + | let b4 = $t02969129745._1 | |
642 | + | let ds4 = $t02969129745._2 | |
643 | + | let d4 = $t02969129745._3 | |
644 | 644 | let bK4 = keyUserBoostAvalaibleToClaimCached(uS, lp4) | |
645 | 645 | [IntegerEntry(nextK, (uN + 1)), IntegerEntry(bK0, b0), IntegerEntry(bK1, b1), IntegerEntry(bK2, b2), IntegerEntry(bK3, b3), IntegerEntry(bK4, b4), ds0[0], ds1[0], ds2[0], ds3[0], ds4[0]] | |
646 | 646 | } | |
647 | 647 | } | |
648 | 648 | ||
649 | 649 |
github/deemru/w8io/026f985 97.00 ms ◑