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