tx · GZUviw5gAezdToEWnDMAifKnj4RtdRg1HRi8bSJvNjFz 3Myu2fd7qjgM3kBm1YGjCWAB6RF8STyv9Gs: -0.01000000 Waves 2021.11.25 17:00 [1806655] smart account 3Myu2fd7qjgM3kBm1YGjCWAB6RF8STyv9Gs > SELF 0.00000000 Waves
{ "type": 13, "id": "GZUviw5gAezdToEWnDMAifKnj4RtdRg1HRi8bSJvNjFz", "fee": 1000000, "feeAssetId": null, "timestamp": 1637848885549, "version": 1, "sender": "3Myu2fd7qjgM3kBm1YGjCWAB6RF8STyv9Gs", "senderPublicKey": "6MNRhMJWPQC5kYFZNsYg1y1bAEh5cHEwVenZHXaBKLTz", "proofs": [ "4RxedChmi9EXQRcE4tPPMpirwisQhwp6qn7PfRoHzW3bt9ikBnXtpFXjsVFsF8tfU5CkkfSc9Jrec3QZnijjbEk5" ], "script": "base64:AAIFAAAAAAAAACoIAhIICgYICAEBAQgSAwoBARIDCgEBEgMKAQgSAwoBCBIDCgEIEgMKAQgAAABSAAAAAANTRVACAAAAAl9fAAAAAAZTQ0FMRTgAAAAAAAAAAAgAAAAABU1VTFQ4AAAAAAAF9eEAAQAAAA9nZXRTdHJpbmdPckZhaWwAAAACAAAAB2FkZHJlc3MAAAADa2V5CQEAAAATdmFsdWVPckVycm9yTWVzc2FnZQAAAAIJAAQdAAAAAgUAAAAHYWRkcmVzcwUAAAADa2V5CQABLAAAAAIJAAEsAAAAAgIAAAAPbWFuZGF0b3J5IHRoaXMuBQAAAANrZXkCAAAADyBpcyBub3QgZGVmaW5lZAEAAAAMZ2V0SW50T3JaZXJvAAAAAgAAAAdhZGRyZXNzAAAAA2tleQkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABBoAAAACBQAAAAdhZGRyZXNzBQAAAANrZXkAAAAAAAAAAAABAAAAD2dldEludE9yRGVmYXVsdAAAAAMAAAAHYWRkcmVzcwAAAANrZXkAAAAKZGVmYXVsdFZhbAkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkAB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2ZSgxMDYyKQAAAAEFAAAAC3VzZXJBZGRyZXNzBQAAAAp1c2VyQW1vdW50BQAAAAdhc3NldElkAAAAAWkBAAAAE2d3eFVzZXJJbmZvUkVBRE9OTFkAAAABAAAAC3VzZXJBZGRyZXNzBAAAAAlnd3hBbW91bnQJAQAAABRjYWxjQ3VycmVudEd3eEFtb3VudAAAAAEFAAAAC3VzZXJBZGRyZXNzCQAFFAAAAAIFAAAAA25pbAkABEwAAAACBQAAAAlnd3hBbW91bnQFAAAAA25pbAAAAAAT7MSF", "chainId": 84, "height": 1806655, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DTXYtkHHqmtmF56TrmDc6vXrDTXh8v5YJyZFDF36Dchk Next: 5brX9A8uSEyM2SSnGN3qy3Wddj9fc1anrAKiUhZsjjbz Diff:
Old | New | Differences | |
---|---|---|---|
472 | 472 | let $t02187021944 = internalClaimWxBoost(userAddressStr) | |
473 | 473 | let userBoostAvailable = $t02187021944._1 | |
474 | 474 | let dataState = $t02187021944._2 | |
475 | - | $Tuple2(nil, [userBoostAvailable]) | |
475 | + | $Tuple2(nil, [userBoostAvailable, height]) | |
476 | 476 | } | |
477 | 477 | ||
478 | 478 |
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 | 280 | let userRecordArray = readLockParamsRecordOrFail(userAddressStr) | |
281 | 281 | let userNumStr = userRecordArray[IdxLockUserNum] | |
282 | 282 | let wxEmissionPerBlock = getIntOrFail(emissionContract, keyEmissionRatePerBlockCurrent()) | |
283 | 283 | let emissionStart = getIntOrFail(emissionContract, keyEmissionStartBlock()) | |
284 | 284 | let emissionEnd = getIntOrFail(emissionContract, keyEmissionEndBlock()) | |
285 | 285 | let h = if ((height > emissionEnd)) | |
286 | 286 | then emissionEnd | |
287 | 287 | else height | |
288 | 288 | let dh = max([(h - emissionStart), 0]) | |
289 | 289 | let userBoostEmissionLastIntegralKEY = keyUserBoostEmissionLastINTEGRAL(userNumStr) | |
290 | 290 | let userBoostEmissionLastIntegral = getIntOrZero(this, userBoostEmissionLastIntegralKEY) | |
291 | 291 | let boostEmissionIntegral = (((wxEmissionPerBlock * dh) * 2) / 3) | |
292 | 292 | let userBoostEmissionIntegral = (boostEmissionIntegral - userBoostEmissionLastIntegral) | |
293 | 293 | if ((0 >= userBoostEmissionIntegral)) | |
294 | 294 | then throw("wrong calculations") | |
295 | 295 | else { | |
296 | 296 | let userMaxBoostIntegralKEY = keyUserMaxBoostINTEGRAL(userNumStr) | |
297 | 297 | let totalMaxBoostIntegralKEY = keyTotalMaxBoostINTEGRAL() | |
298 | 298 | let userBoostAvalaibleToClaimTotalKEY = keyUserBoostAvalaibleToClaimTotal(userNumStr) | |
299 | 299 | let userMaxBoostInt = getIntOrZero(this, userMaxBoostIntegralKEY) | |
300 | 300 | let totalMaxBoostInt = getIntOrZero(this, totalMaxBoostIntegralKEY) | |
301 | 301 | let userBoostAvaliableToClaimTotal = getIntOrZero(this, userBoostAvalaibleToClaimTotalKEY) | |
302 | 302 | let userBoostAvaliableToClaimTotalNew = (userBoostAvaliableToClaimTotal + fraction(userBoostEmissionIntegral, userMaxBoostInt, totalMaxBoostInt)) | |
303 | 303 | let userBoostClaimedKEY = keyUserBoostClaimed(userNumStr) | |
304 | 304 | let userBoostClaimed = getIntOrZero(this, userBoostClaimedKEY) | |
305 | 305 | let userBoostAvailable = (userBoostAvaliableToClaimTotalNew - userBoostClaimed) | |
306 | 306 | let dataState = [IntegerEntry(userBoostAvalaibleToClaimTotalKEY, userBoostAvaliableToClaimTotalNew), IntegerEntry(userBoostEmissionLastIntegralKEY, boostEmissionIntegral)] | |
307 | 307 | $Tuple2(userBoostAvailable, dataState) | |
308 | 308 | } | |
309 | 309 | } | |
310 | 310 | ||
311 | 311 | ||
312 | 312 | @Callable(i) | |
313 | 313 | func constructor (factoryAddressStr,lockAssetIdStr,minLockAmount,minDuration,maxDuration,mathContract) = if ((this != i.caller)) | |
314 | 314 | then throw("not authorized") | |
315 | 315 | else ([IntegerEntry(keyNextUserNum(), 0), StringEntry(keyConfig(), formatConfig(lockAssetIdStr, minLockAmount, minDuration, maxDuration, mathContract)), StringEntry(keyFactoryAddress(), factoryAddressStr)] ++ StatsEntry(0, 0, 0, 0)) | |
316 | 316 | ||
317 | 317 | ||
318 | 318 | ||
319 | 319 | @Callable(i) | |
320 | 320 | func lock (duration) = { | |
321 | 321 | let cfgArray = readConfigArrayOrFail() | |
322 | 322 | let assetIdStr = cfgArray[IdxCfgAssetId] | |
323 | 323 | let assetId = fromBase58String(assetIdStr) | |
324 | 324 | let minLockAmount = parseIntValue(cfgArray[IdxCfgMinLockAmount]) | |
325 | 325 | let minLockDuration = parseIntValue(cfgArray[IdxCfgMinLockDuration]) | |
326 | 326 | let maxLockDuration = parseIntValue(cfgArray[IdxCfgMaxLockDuration]) | |
327 | 327 | let mathContract = addressFromStringValue(cfgArray[IdxCfgMathContract]) | |
328 | 328 | if ((size(i.payments) != 1)) | |
329 | 329 | then throw("invalid payment - exact one payment must be attached") | |
330 | 330 | else { | |
331 | 331 | let pmt = i.payments[0] | |
332 | 332 | let pmtAmount = pmt.amount | |
333 | 333 | if ((assetId != value(pmt.assetId))) | |
334 | 334 | then throw((("invalid asset is in payment - " + assetIdStr) + " is expected")) | |
335 | 335 | else { | |
336 | 336 | let nextUserNumKEY = keyNextUserNum() | |
337 | 337 | let userAddressStr = toString(i.caller) | |
338 | 338 | let userIsExisting = isDefined(getString(keyUser2NumMapping(userAddressStr))) | |
339 | 339 | let userNumStr = if (userIsExisting) | |
340 | 340 | then value(getString(keyUser2NumMapping(userAddressStr))) | |
341 | 341 | else toString(getIntOrFail(this, nextUserNumKEY)) | |
342 | 342 | let userNum = parseIntValue(userNumStr) | |
343 | 343 | let lockStart = height | |
344 | 344 | let startBlockKEY = keyLockParamStartBlock(userNumStr) | |
345 | 345 | let durationKEY = keyLockParamDuration(userNumStr) | |
346 | 346 | let userAmountKEY = keyLockParamUserAmount(userNumStr) | |
347 | 347 | if ((minLockAmount > pmtAmount)) | |
348 | 348 | then throw(("amount is less then minLockAmount=" + toString(minLockAmount))) | |
349 | 349 | else if ((minLockDuration > duration)) | |
350 | 350 | then throw(("passed duration is less then minLockDuration=" + toString(minLockDuration))) | |
351 | 351 | else if ((duration > maxLockDuration)) | |
352 | 352 | then throw(("passed duration is greater then maxLockDuration=" + toString(maxLockDuration))) | |
353 | 353 | else if (if (userIsExisting) | |
354 | 354 | then ((getIntOrFail(this, startBlockKEY) + getIntOrFail(this, durationKEY)) >= lockStart) | |
355 | 355 | else false) | |
356 | 356 | then throw("there is an active lock - consider to use increaseLock") | |
357 | 357 | else { | |
358 | 358 | let coeffX8 = fraction(duration, MULT8, maxLockDuration) | |
359 | 359 | let gWxAmountStart = fraction(pmtAmount, coeffX8, MULT8) | |
360 | 360 | let gWxParamsResultList = asAnyList(invoke(mathContract, "calcGwxParamsREADONLY", [gWxAmountStart, lockStart, duration], nil)) | |
361 | 361 | let k = asInt(gWxParamsResultList[0]) | |
362 | 362 | let b = asInt(gWxParamsResultList[1]) | |
363 | 363 | let period = toString(asInt(gWxParamsResultList[2])) | |
364 | 364 | let wxEmissionPerBlock = getIntOrFail(emissionContract, keyEmissionRatePerBlockCurrent()) | |
365 | 365 | let emissionStart = getIntOrFail(emissionContract, keyEmissionStartBlock()) | |
366 | 366 | let emissionEnd = getIntOrFail(emissionContract, keyEmissionEndBlock()) | |
367 | 367 | let h = if ((height > emissionEnd)) | |
368 | 368 | then emissionEnd | |
369 | 369 | else height | |
370 | 370 | let dh = max([(h - emissionStart), 0]) | |
371 | 371 | let userBoostEmissionLastIntegralKEY = keyUserBoostEmissionLastINTEGRAL(userNumStr) | |
372 | 372 | let boostEmissionIntegral = (((wxEmissionPerBlock * dh) * 2) / 3) | |
373 | 373 | let userMaxBoostIntegralKEY = keyUserMaxBoostINTEGRAL(userNumStr) | |
374 | 374 | let totalMaxBoostIntegralKEY = keyTotalMaxBoostINTEGRAL() | |
375 | 375 | let userMaxBoostInt = ((gWxAmountStart * duration) / 2) | |
376 | 376 | let totalMaxBoostInt = getIntOrZero(this, totalMaxBoostIntegralKEY) | |
377 | 377 | let arr = if (userIsExisting) | |
378 | 378 | then nil | |
379 | 379 | else [IntegerEntry(nextUserNumKEY, (userNum + 1)), StringEntry(keyUser2NumMapping(userAddressStr), userNumStr), StringEntry(keyNum2UserMapping(userNumStr), userAddressStr)] | |
380 | 380 | ((((arr ++ LockParamsEntry(userAddressStr, userNumStr, pmtAmount, lockStart, duration, k, b, period)) ++ StatsEntry(pmtAmount, duration, 1, if (userIsExisting) | |
381 | 381 | then 0 | |
382 | 382 | else 1)) :+ HistoryEntry("lock", userAddressStr, pmtAmount, lockStart, duration, k, b, i)) ++ [IntegerEntry(userBoostEmissionLastIntegralKEY, boostEmissionIntegral), IntegerEntry(userMaxBoostIntegralKEY, userMaxBoostInt), IntegerEntry(totalMaxBoostIntegralKEY, (totalMaxBoostInt + userMaxBoostInt))]) | |
383 | 383 | } | |
384 | 384 | } | |
385 | 385 | } | |
386 | 386 | } | |
387 | 387 | ||
388 | 388 | ||
389 | 389 | ||
390 | 390 | @Callable(i) | |
391 | 391 | func increaseLock (deltaDuration) = { | |
392 | 392 | let cfgArray = readConfigArrayOrFail() | |
393 | 393 | let assetIdStr = cfgArray[IdxCfgAssetId] | |
394 | 394 | let assetId = fromBase58String(assetIdStr) | |
395 | 395 | let minLockDuration = parseIntValue(cfgArray[IdxCfgMinLockDuration]) | |
396 | 396 | let maxLockDuration = parseIntValue(cfgArray[IdxCfgMaxLockDuration]) | |
397 | 397 | let mathContract = addressFromStringValue(cfgArray[IdxCfgMathContract]) | |
398 | 398 | let pmtAmount = extractOptionalPaymentAmountOrFail(i, assetId) | |
399 | 399 | let userAddressStr = toString(i.caller) | |
400 | 400 | let userRecordArray = readLockParamsRecordOrFail(userAddressStr) | |
401 | 401 | let userNumStr = userRecordArray[IdxLockUserNum] | |
402 | 402 | let userAmount = parseIntValue(userRecordArray[IdxLockAmount]) | |
403 | 403 | let lockStart = parseIntValue(userRecordArray[IdxLockStart]) | |
404 | 404 | let lockDuration = parseIntValue(userRecordArray[IdxLockDuration]) | |
405 | 405 | let lockEnd = (lockStart + lockDuration) | |
406 | 406 | let remainingDuration = max([(lockEnd - height), 0]) | |
407 | 407 | let userAmountNew = (userAmount + pmtAmount) | |
408 | 408 | let lockDurationNew = (remainingDuration + deltaDuration) | |
409 | 409 | if ((0 > deltaDuration)) | |
410 | 410 | then throw("duration is less then zero") | |
411 | 411 | else if ((minLockDuration > lockDurationNew)) | |
412 | 412 | then throw(("lockDurationNew is less then minLockDuration=" + toString(minLockDuration))) | |
413 | 413 | else if ((lockDurationNew > maxLockDuration)) | |
414 | 414 | then throw(("deltaDuration + existedLockDuration is greater then maxLockDuration=" + toString(maxLockDuration))) | |
415 | 415 | else if (if ((height >= lockEnd)) | |
416 | 416 | then (userAmount > 0) | |
417 | 417 | else false) | |
418 | 418 | then throw("there is an expired lock - need to unlock before new lock") | |
419 | 419 | else { | |
420 | 420 | let coeffX8 = fraction(lockDurationNew, MULT8, maxLockDuration) | |
421 | 421 | let gWxAmountStart = fraction(userAmountNew, coeffX8, MULT8) | |
422 | 422 | let gWxParamsResultList = asAnyList(invoke(mathContract, "calcGwxParamsREADONLY", [gWxAmountStart, height, lockDurationNew], nil)) | |
423 | 423 | let k = asInt(gWxParamsResultList[0]) | |
424 | 424 | let b = asInt(gWxParamsResultList[1]) | |
425 | 425 | let period = toString(asInt(gWxParamsResultList[2])) | |
426 | 426 | let wxEmissionPerBlock = getIntOrFail(emissionContract, keyEmissionRatePerBlockCurrent()) | |
427 | 427 | let emissionStart = getIntOrFail(emissionContract, keyEmissionStartBlock()) | |
428 | 428 | let emissionEnd = getIntOrFail(emissionContract, keyEmissionEndBlock()) | |
429 | 429 | let h = if ((height > emissionEnd)) | |
430 | 430 | then emissionEnd | |
431 | 431 | else height | |
432 | 432 | let dh = max([(h - emissionStart), 0]) | |
433 | 433 | let userBoostEmissionLastIntegralKEY = keyUserBoostEmissionLastINTEGRAL(userNumStr) | |
434 | 434 | let userBoostEmissionLastIntegral = getIntOrZero(this, userBoostEmissionLastIntegralKEY) | |
435 | 435 | let boostEmissionIntegral = (((wxEmissionPerBlock * dh) * 2) / 3) | |
436 | 436 | let userBoostEmissionIntegral = (boostEmissionIntegral - userBoostEmissionLastIntegral) | |
437 | 437 | if ((0 >= userBoostEmissionIntegral)) | |
438 | 438 | then throw("wrong calculations") | |
439 | 439 | else { | |
440 | 440 | let userMaxBoostIntegralKEY = keyUserMaxBoostINTEGRAL(userNumStr) | |
441 | 441 | let totalMaxBoostIntegralKEY = keyTotalMaxBoostINTEGRAL() | |
442 | 442 | let userBoostAvalaibleToClaimTotalKEY = keyUserBoostAvalaibleToClaimTotal(userNumStr) | |
443 | 443 | let userMaxBoostInt = getIntOrZero(this, userMaxBoostIntegralKEY) | |
444 | 444 | let totalMaxBoostInt = getIntOrZero(this, totalMaxBoostIntegralKEY) | |
445 | 445 | let userBoostAvaliableToClaimTotal = getIntOrZero(this, userBoostAvalaibleToClaimTotalKEY) | |
446 | 446 | let userBoostAvaliableToClaimTotalNew = (userBoostAvaliableToClaimTotal + fraction(userBoostEmissionIntegral, userMaxBoostInt, totalMaxBoostInt)) | |
447 | 447 | let userMaxBoostIntNew = ((gWxAmountStart * lockDurationNew) / 2) | |
448 | 448 | let currUserGwx = calcCurrentGwxAmount(userAddressStr) | |
449 | 449 | let remainingUserMaxBoostInt = ((currUserGwx * remainingDuration) / 2) | |
450 | 450 | let userMaxBoostIntDiff = (userMaxBoostIntNew - remainingUserMaxBoostInt) | |
451 | 451 | if ((0 >= userMaxBoostIntDiff)) | |
452 | 452 | then throw("wrong calculations") | |
453 | 453 | 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 | 454 | } | |
455 | 455 | } | |
456 | 456 | } | |
457 | 457 | ||
458 | 458 | ||
459 | 459 | ||
460 | 460 | @Callable(i) | |
461 | 461 | func claimWxBoost (userAddressStr) = { | |
462 | 462 | let $t02168021792 = internalClaimWxBoost(userAddressStr) | |
463 | 463 | let userBoostAvailable = $t02168021792._1 | |
464 | 464 | let dataState = $t02168021792._2 | |
465 | 465 | nil | |
466 | 466 | } | |
467 | 467 | ||
468 | 468 | ||
469 | 469 | ||
470 | 470 | @Callable(i) | |
471 | 471 | func claimWxBoostREADONLY (userAddressStr) = { | |
472 | 472 | let $t02187021944 = internalClaimWxBoost(userAddressStr) | |
473 | 473 | let userBoostAvailable = $t02187021944._1 | |
474 | 474 | let dataState = $t02187021944._2 | |
475 | - | $Tuple2(nil, [userBoostAvailable]) | |
475 | + | $Tuple2(nil, [userBoostAvailable, height]) | |
476 | 476 | } | |
477 | 477 | ||
478 | 478 | ||
479 | 479 | ||
480 | 480 | @Callable(i) | |
481 | 481 | func unlock (userAddress) = { | |
482 | 482 | let userRecordArray = readLockParamsRecordOrFail(userAddress) | |
483 | 483 | let userNumStr = userRecordArray[IdxLockUserNum] | |
484 | 484 | let userAmount = parseIntValue(userRecordArray[IdxLockAmount]) | |
485 | 485 | let lockStart = parseIntValue(userRecordArray[IdxLockStart]) | |
486 | 486 | let lockDuration = parseIntValue(userRecordArray[IdxLockDuration]) | |
487 | 487 | let lockEnd = (lockStart + lockDuration) | |
488 | 488 | let cfgArray = readConfigArrayOrFail() | |
489 | 489 | let assetId = fromBase58String(cfgArray[IdxCfgAssetId]) | |
490 | 490 | if ((lockEnd >= height)) | |
491 | 491 | then throw((("wait " + toString(lockEnd)) + " to unlock")) | |
492 | 492 | else if ((0 >= userAmount)) | |
493 | 493 | then throw("nothing to unlock") | |
494 | 494 | else { | |
495 | 495 | let period = "0" | |
496 | 496 | (((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)) | |
497 | 497 | } | |
498 | 498 | } | |
499 | 499 | ||
500 | 500 | ||
501 | 501 | ||
502 | 502 | @Callable(i) | |
503 | 503 | func gwxUserInfoREADONLY (userAddress) = { | |
504 | 504 | let gwxAmount = calcCurrentGwxAmount(userAddress) | |
505 | 505 | $Tuple2(nil, [gwxAmount]) | |
506 | 506 | } | |
507 | 507 | ||
508 | 508 |
github/deemru/w8io/026f985 68.87 ms ◑