tx · EKQ4zvHXzphsgnHKZeqRJ4KzEDzfs8Po9AyWf897B24j 3Myn55vLkduxbX3ZXfiDCZhaQsLxYp1kmCy: -0.01000000 Waves 2021.11.25 19:15 [1806800] smart account 3Myn55vLkduxbX3ZXfiDCZhaQsLxYp1kmCy > SELF 0.00000000 Waves
{ "type": 13, "id": "EKQ4zvHXzphsgnHKZeqRJ4KzEDzfs8Po9AyWf897B24j", "fee": 1000000, "feeAssetId": null, "timestamp": 1637856950537, "version": 1, "sender": "3Myn55vLkduxbX3ZXfiDCZhaQsLxYp1kmCy", "senderPublicKey": "9W33iCCNfmFxUbiC6XZcH5x7f6xfwC7Jb3BoExT5q2PV", "proofs": [ "rGiA5ZJPU16upGMW5hq7n8QCopejDC5HUkQ9yv1THMCMdb7bMrGebyMPVuCADo58Rybu1ispyT5H9ZJRpFWVRsV" ], "script": "base64:AAIFAAAAAAAAACoIAhIICgYICAEBAQgSAwoBARIDCgEBEgMKAQgSAwoBCBIDCgEIEgMKAQgAAABSAAAAAANTRVACAAAAAl9fAAAAAAZTQ0FMRTgAAAAAAAAAAAgAAAAABU1VTFQ4AAAAAAAF9eEAAQAAAA9nZXRTdHJpbmdPckZhaWwAAAACAAAAB2FkZHJlc3MAAAADa2V5CQEAAAATdmFsdWVPckVycm9yTWVzc2FnZQAAAAIJAAQdAAAAAgUAAAAHYWRkcmVzcwUAAAADa2V5CQABLAAAAAIJAAEsAAAAAgIAAAAPbWFuZGF0b3J5IHRoaXMuBQAAAANrZXkCAAAADyBpcyBub3QgZGVmaW5lZAEAAAAMZ2V0SW50T3JaZXJvAAAAAgAAAAdhZGRyZXNzAAAAA2tleQkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABBoAAAACBQAAAAdhZGRyZXNzBQAAAANrZXkAAAAAAAAAAAABAAAAD2dldEludE9yRGVmYXVsdAAAAAMAAAAHYWRkcmVzcwAAAANrZXkAAAAKZGVmYXVsdFZhbAkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABB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yQWRkcmVzcwUAAAAKdXNlck51bVN0cgAAAAAAAAAAAAUAAAAJbG9ja1N0YXJ0BQAAAAxsb2NrRHVyYXRpb24AAAAAAAAAAAAAAAAAAAAAAAAFAAAABnBlcmlvZAkBAAAAClN0YXRzRW50cnkAAAAECQEAAAABLQAAAAEFAAAACnVzZXJBbW91bnQAAAAAAAAAAAAAAAAAAAAAAAAA//////////8JAQAAAAxIaXN0b3J5RW50cnkAAAAIAgAAAAZ1bmxvY2sFAAAAC3VzZXJBZGRyZXNzBQAAAAp1c2VyQW1vdW50BQAAAAlsb2NrU3RhcnQFAAAADGxvY2tEdXJhdGlvbgAAAAAAAAAAAAAAAAAAAAAAAAUAAAABaQkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQUAAAALdXNlckFkZHJlc3MFAAAACnVzZXJBbW91bnQFAAAAB2Fzc2V0SWQAAAABaQEAAAATZ3d4VXNlckluZm9SRUFET05MWQAAAAEAAAALdXNlckFkZHJlc3MEAAAACWd3eEFtb3VudAkBAAAAFGNhbGNDdXJyZW50R3d4QW1vdW50AAAAAQUAAAALdXNlckFkZHJlc3MJAAUUAAAAAgUAAAADbmlsCQAETAAAAAIFAAAACWd3eEFtb3VudAUAAAADbmlsAAAAABcK+YM=", "chainId": 84, "height": 1806800, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5qjLYtADGC8gcyrxvdJw1y9fCfMNBJg2yXFnVqi7x3Lp Next: As92LD9CiiF8Up1zEcfKaNFZYvtkZ9vvYF4MfNPiS12X Diff:
Old | New | Differences | |
---|---|---|---|
277 | 277 | ||
278 | 278 | ||
279 | 279 | func internalClaimWxBoost (userAddressStr) = { | |
280 | - | let userRecordArray = readLockParamsRecordOrFail(userAddressStr) | |
281 | - | let userNumStr = userRecordArray[IdxLockUserNum] | |
282 | - | let wxEmissionPerBlock = getIntOrFail(emissionContract, keyEmissionRatePerBlockCurrent()) | |
283 | - | let emissionStart = getIntOrFail(emissionContract, keyEmissionStartBlock()) | |
284 | - | let emissionEnd = getIntOrFail(emissionContract, keyEmissionEndBlock()) | |
285 | - | let h = if ((height > emissionEnd)) | |
286 | - | then emissionEnd | |
287 | - | else height | |
288 | - | let dh = max([(h - emissionStart), 0]) | |
289 | - | let userBoostEmissionLastIntegralKEY = keyUserBoostEmissionLastINTEGRAL(userNumStr) | |
290 | - | let userBoostEmissionLastIntegral = getIntOrZero(this, userBoostEmissionLastIntegralKEY) | |
291 | - | let boostEmissionIntegral = (((wxEmissionPerBlock * dh) * 2) / 3) | |
292 | - | let userBoostEmissionIntegral = (boostEmissionIntegral - userBoostEmissionLastIntegral) | |
293 | - | if ((0 > userBoostEmissionIntegral)) | |
294 | - | then throw("wrong calculations") | |
280 | + | let EMPTY = "EMPTY" | |
281 | + | let userRecordOrEmpty = valueOrElse(getString(this, keyLockParamsRecord(userAddressStr)), EMPTY) | |
282 | + | if ((userRecordOrEmpty == EMPTY)) | |
283 | + | then $Tuple2(0, nil) | |
295 | 284 | else { | |
296 | - | let userMaxBoostIntegralKEY = keyUserMaxBoostINTEGRAL(userNumStr) | |
297 | - | let totalMaxBoostIntegralKEY = keyTotalMaxBoostINTEGRAL() | |
298 | - | let userBoostAvalaibleToClaimTotalKEY = keyUserBoostAvalaibleToClaimTotal(userNumStr) | |
299 | - | let userMaxBoostInt = getIntOrZero(this, userMaxBoostIntegralKEY) | |
300 | - | let totalMaxBoostInt = getIntOrZero(this, totalMaxBoostIntegralKEY) | |
301 | - | let userBoostAvaliableToClaimTotal = getIntOrZero(this, userBoostAvalaibleToClaimTotalKEY) | |
302 | - | let userBoostAvaliableToClaimTotalNew = (userBoostAvaliableToClaimTotal + fraction(userBoostEmissionIntegral, userMaxBoostInt, totalMaxBoostInt)) | |
303 | - | let userBoostClaimedKEY = keyUserBoostClaimed(userNumStr) | |
304 | - | let userBoostClaimed = getIntOrZero(this, userBoostClaimedKEY) | |
305 | - | let userBoostAvailable = (userBoostAvaliableToClaimTotalNew - userBoostClaimed) | |
306 | - | let dataState = [IntegerEntry(userBoostAvalaibleToClaimTotalKEY, userBoostAvaliableToClaimTotalNew), IntegerEntry(userBoostEmissionLastIntegralKEY, boostEmissionIntegral)] | |
307 | - | $Tuple2(userBoostAvailable, dataState) | |
285 | + | let userRecordArray = split(userRecordOrEmpty, SEP) | |
286 | + | let userNumStr = userRecordArray[IdxLockUserNum] | |
287 | + | let wxEmissionPerBlock = getIntOrFail(emissionContract, keyEmissionRatePerBlockCurrent()) | |
288 | + | let emissionStart = getIntOrFail(emissionContract, keyEmissionStartBlock()) | |
289 | + | let emissionEnd = getIntOrFail(emissionContract, keyEmissionEndBlock()) | |
290 | + | let h = if ((height > emissionEnd)) | |
291 | + | then emissionEnd | |
292 | + | else height | |
293 | + | let dh = max([(h - emissionStart), 0]) | |
294 | + | let userBoostEmissionLastIntegralKEY = keyUserBoostEmissionLastINTEGRAL(userNumStr) | |
295 | + | let userBoostEmissionLastIntegral = getIntOrZero(this, userBoostEmissionLastIntegralKEY) | |
296 | + | let boostEmissionIntegral = (((wxEmissionPerBlock * dh) * 2) / 3) | |
297 | + | let userBoostEmissionIntegral = (boostEmissionIntegral - userBoostEmissionLastIntegral) | |
298 | + | if ((0 > userBoostEmissionIntegral)) | |
299 | + | then throw("wrong calculations") | |
300 | + | else { | |
301 | + | let userMaxBoostIntegralKEY = keyUserMaxBoostINTEGRAL(userNumStr) | |
302 | + | let totalMaxBoostIntegralKEY = keyTotalMaxBoostINTEGRAL() | |
303 | + | let userBoostAvalaibleToClaimTotalKEY = keyUserBoostAvalaibleToClaimTotal(userNumStr) | |
304 | + | let userMaxBoostInt = getIntOrZero(this, userMaxBoostIntegralKEY) | |
305 | + | let totalMaxBoostInt = getIntOrZero(this, totalMaxBoostIntegralKEY) | |
306 | + | let userBoostAvaliableToClaimTotal = getIntOrZero(this, userBoostAvalaibleToClaimTotalKEY) | |
307 | + | let userBoostAvaliableToClaimTotalNew = (userBoostAvaliableToClaimTotal + fraction(userBoostEmissionIntegral, userMaxBoostInt, totalMaxBoostInt)) | |
308 | + | let userBoostClaimedKEY = keyUserBoostClaimed(userNumStr) | |
309 | + | let userBoostClaimed = getIntOrZero(this, userBoostClaimedKEY) | |
310 | + | let userBoostAvailable = (userBoostAvaliableToClaimTotalNew - userBoostClaimed) | |
311 | + | let dataState = [IntegerEntry(userBoostAvalaibleToClaimTotalKEY, userBoostAvaliableToClaimTotalNew), IntegerEntry(userBoostEmissionLastIntegralKEY, boostEmissionIntegral)] | |
312 | + | $Tuple2(userBoostAvailable, dataState) | |
313 | + | } | |
308 | 314 | } | |
309 | 315 | } | |
310 | 316 | ||
461 | 467 | func claimWxBoost (userAddressStr) = if ((stakingContract != i.caller)) | |
462 | 468 | then throw("permissions denied") | |
463 | 469 | else { | |
464 | - | let $ | |
465 | - | let userBoostAvailable = $ | |
466 | - | let dataState = $ | |
470 | + | let $t02190721981 = internalClaimWxBoost(userAddressStr) | |
471 | + | let userBoostAvailable = $t02190721981._1 | |
472 | + | let dataState = $t02190721981._2 | |
467 | 473 | $Tuple2(dataState, [userBoostAvailable]) | |
468 | 474 | } | |
469 | 475 | ||
471 | 477 | ||
472 | 478 | @Callable(i) | |
473 | 479 | func claimWxBoostREADONLY (userAddressStr) = { | |
474 | - | let $ | |
475 | - | let userBoostAvailable = $ | |
476 | - | let dataState = $ | |
480 | + | let $t02209122165 = internalClaimWxBoost(userAddressStr) | |
481 | + | let userBoostAvailable = $t02209122165._1 | |
482 | + | let dataState = $t02209122165._2 | |
477 | 483 | $Tuple2(nil, [userBoostAvailable]) | |
478 | 484 | } | |
479 | 485 |
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 | func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), (("mandatory this." + key) + " is not defined")) | |
11 | 11 | ||
12 | 12 | ||
13 | 13 | func getIntOrZero (address,key) = valueOrElse(getInteger(address, key), 0) | |
14 | 14 | ||
15 | 15 | ||
16 | 16 | func getIntOrDefault (address,key,defaultVal) = valueOrElse(getInteger(address, key), defaultVal) | |
17 | 17 | ||
18 | 18 | ||
19 | 19 | func getIntOrFail (address,key) = valueOrErrorMessage(getInteger(address, key), (("mandatory this." + key) + " is not defined")) | |
20 | 20 | ||
21 | 21 | ||
22 | 22 | func asAnyList (val) = match val { | |
23 | 23 | case valAnyLyst: List[Any] => | |
24 | 24 | valAnyLyst | |
25 | 25 | case _ => | |
26 | 26 | throw("fail to cast into List[Any]") | |
27 | 27 | } | |
28 | 28 | ||
29 | 29 | ||
30 | 30 | func asInt (val) = match val { | |
31 | 31 | case valInt: Int => | |
32 | 32 | valInt | |
33 | 33 | case _ => | |
34 | 34 | throw("fail to cast into Int") | |
35 | 35 | } | |
36 | 36 | ||
37 | 37 | ||
38 | 38 | func keyFactoryAddress () = "%s%s__config__factoryAddress" | |
39 | 39 | ||
40 | 40 | ||
41 | 41 | let IdxFactoryCfgStakingDapp = 1 | |
42 | 42 | ||
43 | 43 | let IdxFactoryCfgBoostingDapp = 2 | |
44 | 44 | ||
45 | 45 | let IdxFactoryCfgIdoDapp = 3 | |
46 | 46 | ||
47 | 47 | let IdxFactoryCfgTeamDapp = 4 | |
48 | 48 | ||
49 | 49 | let IdxFactoryCfgEmissionDapp = 5 | |
50 | 50 | ||
51 | 51 | let IdxFactoryCfgRestDapp = 6 | |
52 | 52 | ||
53 | 53 | let IdxFactoryCfgSlippageDapp = 7 | |
54 | 54 | ||
55 | 55 | func keyFactoryCfg () = "%s__factoryConfig" | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | func keyFactoryLp2AssetsMapping (lpAssetStr) = makeString(["%s%s%s", lpAssetStr, "mappings__lpAsset2PoolContract"], SEP) | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | func keyFactoryLpList () = "%s__lpTokensList" | |
62 | 62 | ||
63 | 63 | ||
64 | 64 | func keyFactoryLpAssetToPoolContractAddress (lpAssetStr) = makeString(["%s%s%s", lpAssetStr, "mappings__lpAsset2PoolContract"], SEP) | |
65 | 65 | ||
66 | 66 | ||
67 | 67 | func keyFactoryPoolWeight (contractAddress) = makeString(["%s%s", "poolWeight", contractAddress], SEP) | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | func readFactoryAddressOrFail () = addressFromStringValue(getStringOrFail(this, keyFactoryAddress())) | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | func readLpList () = split(valueOrElse(getString(readFactoryAddressOrFail(), keyFactoryLpList()), ""), SEP) | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func readFactoryCfgOrFail (factory) = split(getStringOrFail(factory, keyFactoryCfg()), SEP) | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | func getBoostingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgBoostingDapp]) | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | func getEmissionAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgEmissionDapp]) | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | func getStakingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgStakingDapp]) | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | func keyEmissionRatePerBlockCurrent () = "%s%s__ratePerBlock__current" | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | func keyEmissionRatePerBlockMaxCurrent () = "%s%s__ratePerBlockMax__current" | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | func keyEmissionStartBlock () = "%s%s__emission__startBlock" | |
95 | 95 | ||
96 | 96 | ||
97 | 97 | func keyEmissionDurationInBlocks () = "%s%s__emission__duration" | |
98 | 98 | ||
99 | 99 | ||
100 | 100 | func keyEmissionEndBlock () = "%s%s__emission__endBlock" | |
101 | 101 | ||
102 | 102 | ||
103 | 103 | let IdxCfgAssetId = 1 | |
104 | 104 | ||
105 | 105 | let IdxCfgMinLockAmount = 2 | |
106 | 106 | ||
107 | 107 | let IdxCfgMinLockDuration = 3 | |
108 | 108 | ||
109 | 109 | let IdxCfgMaxLockDuration = 4 | |
110 | 110 | ||
111 | 111 | let IdxCfgMathContract = 5 | |
112 | 112 | ||
113 | 113 | func keyConfig () = "%s__config" | |
114 | 114 | ||
115 | 115 | ||
116 | 116 | func readConfigArrayOrFail () = split(getStringOrFail(this, keyConfig()), SEP) | |
117 | 117 | ||
118 | 118 | ||
119 | 119 | func formatConfigS (assetId,minLockAmount,minLockDuration,maxLockDuration,mathContract) = makeString(["%s%d%d%d", assetId, minLockAmount, minLockDuration, maxLockDuration, mathContract], SEP) | |
120 | 120 | ||
121 | 121 | ||
122 | 122 | func formatConfig (assetId,minLockAmount,minLockDuration,maxLockDuration,mathContract) = formatConfigS(assetId, toString(minLockAmount), toString(minLockDuration), toString(maxLockDuration), mathContract) | |
123 | 123 | ||
124 | 124 | ||
125 | 125 | let IdxLockUserNum = 1 | |
126 | 126 | ||
127 | 127 | let IdxLockAmount = 2 | |
128 | 128 | ||
129 | 129 | let IdxLockStart = 3 | |
130 | 130 | ||
131 | 131 | let IdxLockDuration = 4 | |
132 | 132 | ||
133 | 133 | let IdxLockParamK = 5 | |
134 | 134 | ||
135 | 135 | let IdxLockParamB = 6 | |
136 | 136 | ||
137 | 137 | func keyLockParamsRecord (userAddress) = makeString(["%s%s__lock", userAddress], SEP) | |
138 | 138 | ||
139 | 139 | ||
140 | 140 | func readLockParamsRecordOrFail (userAddress) = split(getStringOrFail(this, keyLockParamsRecord(userAddress)), SEP) | |
141 | 141 | ||
142 | 142 | ||
143 | 143 | 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) | |
144 | 144 | ||
145 | 145 | ||
146 | 146 | 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)) | |
147 | 147 | ||
148 | 148 | ||
149 | 149 | func keyNextUserNum () = "%s__nextUserNum" | |
150 | 150 | ||
151 | 151 | ||
152 | 152 | func keyUser2NumMapping (userAddress) = makeString(["%s%s%s__mapping__user2num", userAddress], SEP) | |
153 | 153 | ||
154 | 154 | ||
155 | 155 | func keyNum2UserMapping (num) = makeString(["%s%s%s__mapping__num2user", num], SEP) | |
156 | 156 | ||
157 | 157 | ||
158 | 158 | func keyLockParamUserAmount (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "amount"], SEP) | |
159 | 159 | ||
160 | 160 | ||
161 | 161 | func keyLockParamStartBlock (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "start"], SEP) | |
162 | 162 | ||
163 | 163 | ||
164 | 164 | func keyLockParamDuration (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "duration"], SEP) | |
165 | 165 | ||
166 | 166 | ||
167 | 167 | func keyLockParamK (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "k"], SEP) | |
168 | 168 | ||
169 | 169 | ||
170 | 170 | func keyLockParamB (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "b"], SEP) | |
171 | 171 | ||
172 | 172 | ||
173 | 173 | func keyLockParamByPeriodK (userNum,period) = makeString(["%s%d%s%d__paramByPeriod", userNum, "k", period], SEP) | |
174 | 174 | ||
175 | 175 | ||
176 | 176 | func keyLockParamByPeriodB (userNum,period) = makeString(["%s%d%s%d__paramByPeriod", userNum, "b", period], SEP) | |
177 | 177 | ||
178 | 178 | ||
179 | 179 | func keyLockParamTotalAmount () = "%s%s__stats__activeTotalLocked" | |
180 | 180 | ||
181 | 181 | ||
182 | 182 | func keyStatsLocksDurationSumInBlocks () = "%s%s__stats__locksDurationSumInBlocks" | |
183 | 183 | ||
184 | 184 | ||
185 | 185 | func keyStatsLocksCount () = "%s%s__stats__locksCount" | |
186 | 186 | ||
187 | 187 | ||
188 | 188 | func keyStatsUsersCount () = "%s%s__stats__activeUsersCount" | |
189 | 189 | ||
190 | 190 | ||
191 | 191 | func keyUserBoostEmissionLastINTEGRAL (userNum) = makeString(["%s%d__userBoostEmissionLastInt", userNum], SEP) | |
192 | 192 | ||
193 | 193 | ||
194 | 194 | func keyUserMaxBoostINTEGRAL (userNum) = makeString(["%s%d__maxBoostInt", userNum], SEP) | |
195 | 195 | ||
196 | 196 | ||
197 | 197 | func keyTotalMaxBoostINTEGRAL () = "%s%s__maxBoostInt__total" | |
198 | 198 | ||
199 | 199 | ||
200 | 200 | func keyUserBoostAvalaibleToClaimTotal (userNum) = makeString(["%s%d__userBoostAvaliableToClaimTotal", userNum], SEP) | |
201 | 201 | ||
202 | 202 | ||
203 | 203 | func keyUserBoostClaimed (userNum) = makeString(["%s%d__userBoostClaimed", userNum], SEP) | |
204 | 204 | ||
205 | 205 | ||
206 | 206 | let factoryContract = readFactoryAddressOrFail() | |
207 | 207 | ||
208 | 208 | let factoryCfg = readFactoryCfgOrFail(factoryContract) | |
209 | 209 | ||
210 | 210 | let emissionContract = getEmissionAddressOrFail(factoryCfg) | |
211 | 211 | ||
212 | 212 | let stakingContract = getStakingAddressOrFail(factoryCfg) | |
213 | 213 | ||
214 | 214 | func HistoryEntry (type,user,amount,lockStart,duration,k,b,i) = { | |
215 | 215 | let historyKEY = makeString(["%s%s%s%s__history", type, user, toBase58String(i.transactionId)], SEP) | |
216 | 216 | 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) | |
217 | 217 | StringEntry(historyKEY, historyDATA) | |
218 | 218 | } | |
219 | 219 | ||
220 | 220 | ||
221 | 221 | func StatsEntry (totalLockedInc,durationInc,lockCountInc,usersCountInc) = { | |
222 | 222 | let locksDurationSumInBlocksKEY = keyStatsLocksDurationSumInBlocks() | |
223 | 223 | let locksCountKEY = keyStatsLocksCount() | |
224 | 224 | let usersCountKEY = keyStatsUsersCount() | |
225 | 225 | let totalAmountKEY = keyLockParamTotalAmount() | |
226 | 226 | let locksDurationSumInBlocks = getIntOrZero(this, locksDurationSumInBlocksKEY) | |
227 | 227 | let locksCount = getIntOrZero(this, locksCountKEY) | |
228 | 228 | let usersCount = getIntOrZero(this, usersCountKEY) | |
229 | 229 | let totalAmount = getIntOrZero(this, totalAmountKEY) | |
230 | 230 | [IntegerEntry(locksDurationSumInBlocksKEY, (locksDurationSumInBlocks + durationInc)), IntegerEntry(locksCountKEY, (locksCount + lockCountInc)), IntegerEntry(usersCountKEY, (usersCount + usersCountInc)), IntegerEntry(totalAmountKEY, (totalAmount + totalLockedInc))] | |
231 | 231 | } | |
232 | 232 | ||
233 | 233 | ||
234 | 234 | func calcGwxAmount (kRaw,bRaw,h) = { | |
235 | 235 | let SCALE = 1000 | |
236 | 236 | (((kRaw * h) + bRaw) / SCALE) | |
237 | 237 | } | |
238 | 238 | ||
239 | 239 | ||
240 | 240 | func LockParamsEntry (userAddress,userNum,amount,start,duration,k,b,period) = { | |
241 | 241 | let userAmountKEY = keyLockParamUserAmount(userNum) | |
242 | 242 | let startBlockKEY = keyLockParamStartBlock(userNum) | |
243 | 243 | let durationKEY = keyLockParamDuration(userNum) | |
244 | 244 | let kKEY = keyLockParamK(userNum) | |
245 | 245 | let bKEY = keyLockParamB(userNum) | |
246 | 246 | let kByPerioKEY = keyLockParamByPeriodK(userNum, period) | |
247 | 247 | let bByPeriodKEY = keyLockParamByPeriodB(userNum, period) | |
248 | 248 | let gwxAmount = calcGwxAmount(k, b, height) | |
249 | 249 | [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))] | |
250 | 250 | } | |
251 | 251 | ||
252 | 252 | ||
253 | 253 | func extractOptionalPaymentAmountOrFail (i,expectedAssetId) = if ((size(i.payments) > 1)) | |
254 | 254 | then throw("only one payment is allowed") | |
255 | 255 | else if ((size(i.payments) == 0)) | |
256 | 256 | then 0 | |
257 | 257 | else { | |
258 | 258 | let pmt = i.payments[0] | |
259 | 259 | if ((value(pmt.assetId) != expectedAssetId)) | |
260 | 260 | then throw("invalid asset id in payment") | |
261 | 261 | else pmt.amount | |
262 | 262 | } | |
263 | 263 | ||
264 | 264 | ||
265 | 265 | func calcCurrentGwxAmount (userAddress) = { | |
266 | 266 | let EMPTY = "empty" | |
267 | 267 | let user2NumMappingKEY = keyUser2NumMapping(userAddress) | |
268 | 268 | let userNum = valueOrElse(getString(user2NumMappingKEY), EMPTY) | |
269 | 269 | let k = valueOrElse(getInteger(keyLockParamK(userNum)), 0) | |
270 | 270 | let b = valueOrElse(getInteger(keyLockParamB(userNum)), 0) | |
271 | 271 | let gwxAmountCalc = calcGwxAmount(k, b, height) | |
272 | 272 | let gwxAmount = if ((0 > gwxAmountCalc)) | |
273 | 273 | then 0 | |
274 | 274 | else gwxAmountCalc | |
275 | 275 | gwxAmount | |
276 | 276 | } | |
277 | 277 | ||
278 | 278 | ||
279 | 279 | func internalClaimWxBoost (userAddressStr) = { | |
280 | - | let userRecordArray = readLockParamsRecordOrFail(userAddressStr) | |
281 | - | let userNumStr = userRecordArray[IdxLockUserNum] | |
282 | - | let wxEmissionPerBlock = getIntOrFail(emissionContract, keyEmissionRatePerBlockCurrent()) | |
283 | - | let emissionStart = getIntOrFail(emissionContract, keyEmissionStartBlock()) | |
284 | - | let emissionEnd = getIntOrFail(emissionContract, keyEmissionEndBlock()) | |
285 | - | let h = if ((height > emissionEnd)) | |
286 | - | then emissionEnd | |
287 | - | else height | |
288 | - | let dh = max([(h - emissionStart), 0]) | |
289 | - | let userBoostEmissionLastIntegralKEY = keyUserBoostEmissionLastINTEGRAL(userNumStr) | |
290 | - | let userBoostEmissionLastIntegral = getIntOrZero(this, userBoostEmissionLastIntegralKEY) | |
291 | - | let boostEmissionIntegral = (((wxEmissionPerBlock * dh) * 2) / 3) | |
292 | - | let userBoostEmissionIntegral = (boostEmissionIntegral - userBoostEmissionLastIntegral) | |
293 | - | if ((0 > userBoostEmissionIntegral)) | |
294 | - | then throw("wrong calculations") | |
280 | + | let EMPTY = "EMPTY" | |
281 | + | let userRecordOrEmpty = valueOrElse(getString(this, keyLockParamsRecord(userAddressStr)), EMPTY) | |
282 | + | if ((userRecordOrEmpty == EMPTY)) | |
283 | + | then $Tuple2(0, nil) | |
295 | 284 | else { | |
296 | - | let userMaxBoostIntegralKEY = keyUserMaxBoostINTEGRAL(userNumStr) | |
297 | - | let totalMaxBoostIntegralKEY = keyTotalMaxBoostINTEGRAL() | |
298 | - | let userBoostAvalaibleToClaimTotalKEY = keyUserBoostAvalaibleToClaimTotal(userNumStr) | |
299 | - | let userMaxBoostInt = getIntOrZero(this, userMaxBoostIntegralKEY) | |
300 | - | let totalMaxBoostInt = getIntOrZero(this, totalMaxBoostIntegralKEY) | |
301 | - | let userBoostAvaliableToClaimTotal = getIntOrZero(this, userBoostAvalaibleToClaimTotalKEY) | |
302 | - | let userBoostAvaliableToClaimTotalNew = (userBoostAvaliableToClaimTotal + fraction(userBoostEmissionIntegral, userMaxBoostInt, totalMaxBoostInt)) | |
303 | - | let userBoostClaimedKEY = keyUserBoostClaimed(userNumStr) | |
304 | - | let userBoostClaimed = getIntOrZero(this, userBoostClaimedKEY) | |
305 | - | let userBoostAvailable = (userBoostAvaliableToClaimTotalNew - userBoostClaimed) | |
306 | - | let dataState = [IntegerEntry(userBoostAvalaibleToClaimTotalKEY, userBoostAvaliableToClaimTotalNew), IntegerEntry(userBoostEmissionLastIntegralKEY, boostEmissionIntegral)] | |
307 | - | $Tuple2(userBoostAvailable, dataState) | |
285 | + | let userRecordArray = split(userRecordOrEmpty, SEP) | |
286 | + | let userNumStr = userRecordArray[IdxLockUserNum] | |
287 | + | let wxEmissionPerBlock = getIntOrFail(emissionContract, keyEmissionRatePerBlockCurrent()) | |
288 | + | let emissionStart = getIntOrFail(emissionContract, keyEmissionStartBlock()) | |
289 | + | let emissionEnd = getIntOrFail(emissionContract, keyEmissionEndBlock()) | |
290 | + | let h = if ((height > emissionEnd)) | |
291 | + | then emissionEnd | |
292 | + | else height | |
293 | + | let dh = max([(h - emissionStart), 0]) | |
294 | + | let userBoostEmissionLastIntegralKEY = keyUserBoostEmissionLastINTEGRAL(userNumStr) | |
295 | + | let userBoostEmissionLastIntegral = getIntOrZero(this, userBoostEmissionLastIntegralKEY) | |
296 | + | let boostEmissionIntegral = (((wxEmissionPerBlock * dh) * 2) / 3) | |
297 | + | let userBoostEmissionIntegral = (boostEmissionIntegral - userBoostEmissionLastIntegral) | |
298 | + | if ((0 > userBoostEmissionIntegral)) | |
299 | + | then throw("wrong calculations") | |
300 | + | else { | |
301 | + | let userMaxBoostIntegralKEY = keyUserMaxBoostINTEGRAL(userNumStr) | |
302 | + | let totalMaxBoostIntegralKEY = keyTotalMaxBoostINTEGRAL() | |
303 | + | let userBoostAvalaibleToClaimTotalKEY = keyUserBoostAvalaibleToClaimTotal(userNumStr) | |
304 | + | let userMaxBoostInt = getIntOrZero(this, userMaxBoostIntegralKEY) | |
305 | + | let totalMaxBoostInt = getIntOrZero(this, totalMaxBoostIntegralKEY) | |
306 | + | let userBoostAvaliableToClaimTotal = getIntOrZero(this, userBoostAvalaibleToClaimTotalKEY) | |
307 | + | let userBoostAvaliableToClaimTotalNew = (userBoostAvaliableToClaimTotal + fraction(userBoostEmissionIntegral, userMaxBoostInt, totalMaxBoostInt)) | |
308 | + | let userBoostClaimedKEY = keyUserBoostClaimed(userNumStr) | |
309 | + | let userBoostClaimed = getIntOrZero(this, userBoostClaimedKEY) | |
310 | + | let userBoostAvailable = (userBoostAvaliableToClaimTotalNew - userBoostClaimed) | |
311 | + | let dataState = [IntegerEntry(userBoostAvalaibleToClaimTotalKEY, userBoostAvaliableToClaimTotalNew), IntegerEntry(userBoostEmissionLastIntegralKEY, boostEmissionIntegral)] | |
312 | + | $Tuple2(userBoostAvailable, dataState) | |
313 | + | } | |
308 | 314 | } | |
309 | 315 | } | |
310 | 316 | ||
311 | 317 | ||
312 | 318 | @Callable(i) | |
313 | 319 | func constructor (factoryAddressStr,lockAssetIdStr,minLockAmount,minDuration,maxDuration,mathContract) = if ((this != i.caller)) | |
314 | 320 | then throw("not authorized") | |
315 | 321 | else ([IntegerEntry(keyNextUserNum(), 0), StringEntry(keyConfig(), formatConfig(lockAssetIdStr, minLockAmount, minDuration, maxDuration, mathContract)), StringEntry(keyFactoryAddress(), factoryAddressStr)] ++ StatsEntry(0, 0, 0, 0)) | |
316 | 322 | ||
317 | 323 | ||
318 | 324 | ||
319 | 325 | @Callable(i) | |
320 | 326 | func lock (duration) = { | |
321 | 327 | let cfgArray = readConfigArrayOrFail() | |
322 | 328 | let assetIdStr = cfgArray[IdxCfgAssetId] | |
323 | 329 | let assetId = fromBase58String(assetIdStr) | |
324 | 330 | let minLockAmount = parseIntValue(cfgArray[IdxCfgMinLockAmount]) | |
325 | 331 | let minLockDuration = parseIntValue(cfgArray[IdxCfgMinLockDuration]) | |
326 | 332 | let maxLockDuration = parseIntValue(cfgArray[IdxCfgMaxLockDuration]) | |
327 | 333 | let mathContract = addressFromStringValue(cfgArray[IdxCfgMathContract]) | |
328 | 334 | if ((size(i.payments) != 1)) | |
329 | 335 | then throw("invalid payment - exact one payment must be attached") | |
330 | 336 | else { | |
331 | 337 | let pmt = i.payments[0] | |
332 | 338 | let pmtAmount = pmt.amount | |
333 | 339 | if ((assetId != value(pmt.assetId))) | |
334 | 340 | then throw((("invalid asset is in payment - " + assetIdStr) + " is expected")) | |
335 | 341 | else { | |
336 | 342 | let nextUserNumKEY = keyNextUserNum() | |
337 | 343 | let userAddressStr = toString(i.caller) | |
338 | 344 | let userIsExisting = isDefined(getString(keyUser2NumMapping(userAddressStr))) | |
339 | 345 | let userNumStr = if (userIsExisting) | |
340 | 346 | then value(getString(keyUser2NumMapping(userAddressStr))) | |
341 | 347 | else toString(getIntOrFail(this, nextUserNumKEY)) | |
342 | 348 | let userNum = parseIntValue(userNumStr) | |
343 | 349 | let lockStart = height | |
344 | 350 | let startBlockKEY = keyLockParamStartBlock(userNumStr) | |
345 | 351 | let durationKEY = keyLockParamDuration(userNumStr) | |
346 | 352 | let userAmountKEY = keyLockParamUserAmount(userNumStr) | |
347 | 353 | if ((minLockAmount > pmtAmount)) | |
348 | 354 | then throw(("amount is less then minLockAmount=" + toString(minLockAmount))) | |
349 | 355 | else if ((minLockDuration > duration)) | |
350 | 356 | then throw(("passed duration is less then minLockDuration=" + toString(minLockDuration))) | |
351 | 357 | else if ((duration > maxLockDuration)) | |
352 | 358 | then throw(("passed duration is greater then maxLockDuration=" + toString(maxLockDuration))) | |
353 | 359 | else if (if (userIsExisting) | |
354 | 360 | then ((getIntOrFail(this, startBlockKEY) + getIntOrFail(this, durationKEY)) >= lockStart) | |
355 | 361 | else false) | |
356 | 362 | then throw("there is an active lock - consider to use increaseLock") | |
357 | 363 | else { | |
358 | 364 | let coeffX8 = fraction(duration, MULT8, maxLockDuration) | |
359 | 365 | let gWxAmountStart = fraction(pmtAmount, coeffX8, MULT8) | |
360 | 366 | let gWxParamsResultList = asAnyList(invoke(mathContract, "calcGwxParamsREADONLY", [gWxAmountStart, lockStart, duration], nil)) | |
361 | 367 | let k = asInt(gWxParamsResultList[0]) | |
362 | 368 | let b = asInt(gWxParamsResultList[1]) | |
363 | 369 | let period = toString(asInt(gWxParamsResultList[2])) | |
364 | 370 | let wxEmissionPerBlock = getIntOrFail(emissionContract, keyEmissionRatePerBlockCurrent()) | |
365 | 371 | let emissionStart = getIntOrFail(emissionContract, keyEmissionStartBlock()) | |
366 | 372 | let emissionEnd = getIntOrFail(emissionContract, keyEmissionEndBlock()) | |
367 | 373 | let h = if ((height > emissionEnd)) | |
368 | 374 | then emissionEnd | |
369 | 375 | else height | |
370 | 376 | let dh = max([(h - emissionStart), 0]) | |
371 | 377 | let userBoostEmissionLastIntegralKEY = keyUserBoostEmissionLastINTEGRAL(userNumStr) | |
372 | 378 | let boostEmissionIntegral = (((wxEmissionPerBlock * dh) * 2) / 3) | |
373 | 379 | let userMaxBoostIntegralKEY = keyUserMaxBoostINTEGRAL(userNumStr) | |
374 | 380 | let totalMaxBoostIntegralKEY = keyTotalMaxBoostINTEGRAL() | |
375 | 381 | let userMaxBoostInt = ((gWxAmountStart * duration) / 2) | |
376 | 382 | let totalMaxBoostInt = getIntOrZero(this, totalMaxBoostIntegralKEY) | |
377 | 383 | let arr = if (userIsExisting) | |
378 | 384 | then nil | |
379 | 385 | else [IntegerEntry(nextUserNumKEY, (userNum + 1)), StringEntry(keyUser2NumMapping(userAddressStr), userNumStr), StringEntry(keyNum2UserMapping(userNumStr), userAddressStr)] | |
380 | 386 | ((((arr ++ LockParamsEntry(userAddressStr, userNumStr, pmtAmount, lockStart, duration, k, b, period)) ++ StatsEntry(pmtAmount, duration, 1, if (userIsExisting) | |
381 | 387 | then 0 | |
382 | 388 | else 1)) :+ HistoryEntry("lock", userAddressStr, pmtAmount, lockStart, duration, k, b, i)) ++ [IntegerEntry(userBoostEmissionLastIntegralKEY, boostEmissionIntegral), IntegerEntry(userMaxBoostIntegralKEY, userMaxBoostInt), IntegerEntry(totalMaxBoostIntegralKEY, (totalMaxBoostInt + userMaxBoostInt))]) | |
383 | 389 | } | |
384 | 390 | } | |
385 | 391 | } | |
386 | 392 | } | |
387 | 393 | ||
388 | 394 | ||
389 | 395 | ||
390 | 396 | @Callable(i) | |
391 | 397 | func increaseLock (deltaDuration) = { | |
392 | 398 | let cfgArray = readConfigArrayOrFail() | |
393 | 399 | let assetIdStr = cfgArray[IdxCfgAssetId] | |
394 | 400 | let assetId = fromBase58String(assetIdStr) | |
395 | 401 | let minLockDuration = parseIntValue(cfgArray[IdxCfgMinLockDuration]) | |
396 | 402 | let maxLockDuration = parseIntValue(cfgArray[IdxCfgMaxLockDuration]) | |
397 | 403 | let mathContract = addressFromStringValue(cfgArray[IdxCfgMathContract]) | |
398 | 404 | let pmtAmount = extractOptionalPaymentAmountOrFail(i, assetId) | |
399 | 405 | let userAddressStr = toString(i.caller) | |
400 | 406 | let userRecordArray = readLockParamsRecordOrFail(userAddressStr) | |
401 | 407 | let userNumStr = userRecordArray[IdxLockUserNum] | |
402 | 408 | let userAmount = parseIntValue(userRecordArray[IdxLockAmount]) | |
403 | 409 | let lockStart = parseIntValue(userRecordArray[IdxLockStart]) | |
404 | 410 | let lockDuration = parseIntValue(userRecordArray[IdxLockDuration]) | |
405 | 411 | let lockEnd = (lockStart + lockDuration) | |
406 | 412 | let remainingDuration = max([(lockEnd - height), 0]) | |
407 | 413 | let userAmountNew = (userAmount + pmtAmount) | |
408 | 414 | let lockDurationNew = (remainingDuration + deltaDuration) | |
409 | 415 | if ((0 > deltaDuration)) | |
410 | 416 | then throw("duration is less then zero") | |
411 | 417 | else if ((minLockDuration > lockDurationNew)) | |
412 | 418 | then throw(("lockDurationNew is less then minLockDuration=" + toString(minLockDuration))) | |
413 | 419 | else if ((lockDurationNew > maxLockDuration)) | |
414 | 420 | then throw(("deltaDuration + existedLockDuration is greater then maxLockDuration=" + toString(maxLockDuration))) | |
415 | 421 | else if (if ((height >= lockEnd)) | |
416 | 422 | then (userAmount > 0) | |
417 | 423 | else false) | |
418 | 424 | then throw("there is an expired lock - need to unlock before new lock") | |
419 | 425 | else { | |
420 | 426 | let coeffX8 = fraction(lockDurationNew, MULT8, maxLockDuration) | |
421 | 427 | let gWxAmountStart = fraction(userAmountNew, coeffX8, MULT8) | |
422 | 428 | let gWxParamsResultList = asAnyList(invoke(mathContract, "calcGwxParamsREADONLY", [gWxAmountStart, height, lockDurationNew], nil)) | |
423 | 429 | let k = asInt(gWxParamsResultList[0]) | |
424 | 430 | let b = asInt(gWxParamsResultList[1]) | |
425 | 431 | let period = toString(asInt(gWxParamsResultList[2])) | |
426 | 432 | let wxEmissionPerBlock = getIntOrFail(emissionContract, keyEmissionRatePerBlockCurrent()) | |
427 | 433 | let emissionStart = getIntOrFail(emissionContract, keyEmissionStartBlock()) | |
428 | 434 | let emissionEnd = getIntOrFail(emissionContract, keyEmissionEndBlock()) | |
429 | 435 | let h = if ((height > emissionEnd)) | |
430 | 436 | then emissionEnd | |
431 | 437 | else height | |
432 | 438 | let dh = max([(h - emissionStart), 0]) | |
433 | 439 | let userBoostEmissionLastIntegralKEY = keyUserBoostEmissionLastINTEGRAL(userNumStr) | |
434 | 440 | let userBoostEmissionLastIntegral = getIntOrZero(this, userBoostEmissionLastIntegralKEY) | |
435 | 441 | let boostEmissionIntegral = (((wxEmissionPerBlock * dh) * 2) / 3) | |
436 | 442 | let userBoostEmissionIntegral = (boostEmissionIntegral - userBoostEmissionLastIntegral) | |
437 | 443 | if ((0 > userBoostEmissionIntegral)) | |
438 | 444 | then throw("wrong calculations") | |
439 | 445 | else { | |
440 | 446 | let userMaxBoostIntegralKEY = keyUserMaxBoostINTEGRAL(userNumStr) | |
441 | 447 | let totalMaxBoostIntegralKEY = keyTotalMaxBoostINTEGRAL() | |
442 | 448 | let userBoostAvalaibleToClaimTotalKEY = keyUserBoostAvalaibleToClaimTotal(userNumStr) | |
443 | 449 | let userMaxBoostInt = getIntOrZero(this, userMaxBoostIntegralKEY) | |
444 | 450 | let totalMaxBoostInt = getIntOrZero(this, totalMaxBoostIntegralKEY) | |
445 | 451 | let userBoostAvaliableToClaimTotal = getIntOrZero(this, userBoostAvalaibleToClaimTotalKEY) | |
446 | 452 | let userBoostAvaliableToClaimTotalNew = (userBoostAvaliableToClaimTotal + fraction(userBoostEmissionIntegral, userMaxBoostInt, totalMaxBoostInt)) | |
447 | 453 | let userMaxBoostIntNew = ((gWxAmountStart * lockDurationNew) / 2) | |
448 | 454 | let currUserGwx = calcCurrentGwxAmount(userAddressStr) | |
449 | 455 | let remainingUserMaxBoostInt = ((currUserGwx * remainingDuration) / 2) | |
450 | 456 | let userMaxBoostIntDiff = (userMaxBoostIntNew - remainingUserMaxBoostInt) | |
451 | 457 | if ((0 > userMaxBoostIntDiff)) | |
452 | 458 | then throw("wrong calculations") | |
453 | 459 | else (((LockParamsEntry(userAddressStr, userNumStr, userAmountNew, lockStart, lockDurationNew, k, b, period) ++ StatsEntry(pmtAmount, deltaDuration, 0, 0)) :+ HistoryEntry("lock", userAddressStr, pmtAmount, lockStart, lockDurationNew, k, b, i)) ++ [IntegerEntry(userMaxBoostIntegralKEY, userMaxBoostIntDiff), IntegerEntry(totalMaxBoostIntegralKEY, (totalMaxBoostInt + userMaxBoostIntDiff)), IntegerEntry(userBoostAvalaibleToClaimTotalKEY, userBoostAvaliableToClaimTotalNew), IntegerEntry(userBoostEmissionLastIntegralKEY, boostEmissionIntegral)]) | |
454 | 460 | } | |
455 | 461 | } | |
456 | 462 | } | |
457 | 463 | ||
458 | 464 | ||
459 | 465 | ||
460 | 466 | @Callable(i) | |
461 | 467 | func claimWxBoost (userAddressStr) = if ((stakingContract != i.caller)) | |
462 | 468 | then throw("permissions denied") | |
463 | 469 | else { | |
464 | - | let $ | |
465 | - | let userBoostAvailable = $ | |
466 | - | let dataState = $ | |
470 | + | let $t02190721981 = internalClaimWxBoost(userAddressStr) | |
471 | + | let userBoostAvailable = $t02190721981._1 | |
472 | + | let dataState = $t02190721981._2 | |
467 | 473 | $Tuple2(dataState, [userBoostAvailable]) | |
468 | 474 | } | |
469 | 475 | ||
470 | 476 | ||
471 | 477 | ||
472 | 478 | @Callable(i) | |
473 | 479 | func claimWxBoostREADONLY (userAddressStr) = { | |
474 | - | let $ | |
475 | - | let userBoostAvailable = $ | |
476 | - | let dataState = $ | |
480 | + | let $t02209122165 = internalClaimWxBoost(userAddressStr) | |
481 | + | let userBoostAvailable = $t02209122165._1 | |
482 | + | let dataState = $t02209122165._2 | |
477 | 483 | $Tuple2(nil, [userBoostAvailable]) | |
478 | 484 | } | |
479 | 485 | ||
480 | 486 | ||
481 | 487 | ||
482 | 488 | @Callable(i) | |
483 | 489 | func unlock (userAddress) = { | |
484 | 490 | let userRecordArray = readLockParamsRecordOrFail(userAddress) | |
485 | 491 | let userNumStr = userRecordArray[IdxLockUserNum] | |
486 | 492 | let userAmount = parseIntValue(userRecordArray[IdxLockAmount]) | |
487 | 493 | let lockStart = parseIntValue(userRecordArray[IdxLockStart]) | |
488 | 494 | let lockDuration = parseIntValue(userRecordArray[IdxLockDuration]) | |
489 | 495 | let lockEnd = (lockStart + lockDuration) | |
490 | 496 | let cfgArray = readConfigArrayOrFail() | |
491 | 497 | let assetId = fromBase58String(cfgArray[IdxCfgAssetId]) | |
492 | 498 | if ((lockEnd >= height)) | |
493 | 499 | then throw((("wait " + toString(lockEnd)) + " to unlock")) | |
494 | 500 | else if ((0 >= userAmount)) | |
495 | 501 | then throw("nothing to unlock") | |
496 | 502 | else { | |
497 | 503 | let period = "0" | |
498 | 504 | (((LockParamsEntry(userAddress, userNumStr, 0, lockStart, lockDuration, 0, 0, period) ++ StatsEntry(-(userAmount), 0, 0, -1)) :+ HistoryEntry("unlock", userAddress, userAmount, lockStart, lockDuration, 0, 0, i)) :+ ScriptTransfer(addressFromStringValue(userAddress), userAmount, assetId)) | |
499 | 505 | } | |
500 | 506 | } | |
501 | 507 | ||
502 | 508 | ||
503 | 509 | ||
504 | 510 | @Callable(i) | |
505 | 511 | func gwxUserInfoREADONLY (userAddress) = { | |
506 | 512 | let gwxAmount = calcCurrentGwxAmount(userAddress) | |
507 | 513 | $Tuple2(nil, [gwxAmount]) | |
508 | 514 | } | |
509 | 515 | ||
510 | 516 |
github/deemru/w8io/169f3d6 83.76 ms ◑