tx · 9heaPi1NThZTuxzCg1yfszA6b4YefV7GErYeH45e7MmE

3Myn55vLkduxbX3ZXfiDCZhaQsLxYp1kmCy:  -0.01400000 Waves

2022.03.17 13:27 [1967815] smart account 3Myn55vLkduxbX3ZXfiDCZhaQsLxYp1kmCy > SELF 0.00000000 Waves

{ "type": 13, "id": "9heaPi1NThZTuxzCg1yfszA6b4YefV7GErYeH45e7MmE", "fee": 1400000, "feeAssetId": null, "timestamp": 1647512843669, "version": 1, "sender": "3Myn55vLkduxbX3ZXfiDCZhaQsLxYp1kmCy", "senderPublicKey": "9W33iCCNfmFxUbiC6XZcH5x7f6xfwC7Jb3BoExT5q2PV", "proofs": [ "qfFFqpmyECtSfJQa28NYsgrTS8xjRmj2SU2QuYf2rti78v3pYxyT3UihmSxmo9eDDR6Z1jqTvFodY4xWPpd1Z9K" ], "script": "base64:AAIFAAAAAAAAFtsIAhIICgYICAEBAQgSAwoBARIDCgEBEgQKAggIEgQKAggIEgMKAQgSAwoBCBIECgIIARIDCgEIEgAaGQoBQRIUSWR4RmFjdG9yeUNmZ0Rhb0RhcHAaHwoBQhIaSWR4RmFjdG9yeUNmZ01hcmtldGluZ0RhcHAaHwoBQxIaSWR4RmFjdG9yeUNmZ0d3eFJld2FyZERhcHAaGwoBRBIWSWR4RmFjdG9yeUNmZ0JpcmRzRGFwcBoSCgFFEg1rZXlGYWN0b3J5Q2ZnGh8KAUYSGmtleUZhY3RvcnlMcDJBc3NldHNNYXBwaW5nGg8KAUcSCmxwQXNzZXRTdHIaFQoBSBIQa2V5RmFjdG9yeUxwTGlzdBorCgFJEiZrZXlGYWN0b3J5THBBc3NldFRvUG9vbENvbnRyYWN0QWRkcmVzcxoZCgFKEhRrZXlGYWN0b3J5UG9vbFdlaWdodBoUCgFLEg9jb250cmFjdEFkZHJlc3MaIAoBTBIba2V5RmFjdG9yeVBvb2xXZWlnaHRIaXN0b3J5GhAKAU0SC3Bvb2xBZGRyZXNzGggKAU4SA251bRodCgFPEhhyZW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IJAAH0AAAAAwgFAAAAAmRSAAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACZFIAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAAJkVE4n94w=", "chainId": 84, "height": 1967815, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HnAN5fcy312uGAVtMs9ZCcoBEU51nyRf3PyNe4DH7mw1 Next: 4vPaHqZC5m7isPt1EnhiRwn2YVmPVRaf91eGUNUipm14 Diff:
OldNewDifferences
340340 }
341341
342342
343-func calcCurrentGwxAmount (userAddress) = {
343+func calcUserGwxAmountAtHeight (userAddress,targetHeight) = {
344344 let EMPTY = "empty"
345345 let user2NumMappingKEY = keyUser2NumMapping(userAddress)
346346 let userNum = valueOrElse(getString(user2NumMappingKEY), EMPTY)
347347 let k = valueOrElse(getInteger(keyLockParamK(userNum)), 0)
348348 let b = valueOrElse(getInteger(keyLockParamB(userNum)), 0)
349- let gwxAmountCalc = calcGwxAmount(k, b, height)
349+ let gwxAmountCalc = calcGwxAmount(k, b, targetHeight)
350350 let gwxAmount = if ((0 > gwxAmountCalc))
351351 then 0
352352 else gwxAmountCalc
353353 gwxAmount
354354 }
355+
356+
357+func calcCurrentGwxAmount (userAddress) = calcUserGwxAmountAtHeight(userAddress, height)
355358
356359
357360 func internalClaimWxBoost (lpAssetIdStr,userAddressStr,readOnly) = {
364367 let userNumStr = userRecordArray[IdxLockUserNum]
365368 let gwxRewardEmissionStartHeight = valueOrElse(getInteger(gwxRewardContract, keyGwxRewardEmissionStartHeight()), 0)
366369 let EMPTYSTR = "empty"
367- let $t01304213610 = if ((lpAssetIdStr != EMPTYSTR))
370+ let $t01317413742 = if ((lpAssetIdStr != EMPTYSTR))
368371 then {
369372 let poolAddressStr = valueOrErrorMessage(getString(factoryContract, keyFactoryLp2AssetsMapping(lpAssetIdStr)), ("unsupported lp asset " + lpAssetIdStr))
370373 let pw1 = getIntegerValue(factoryContract, keyFactoryPoolWeight(poolAddressStr))
374377 else if (readOnly)
375378 then $Tuple2(0, 0)
376379 else throw(("not readonly mode: unsupported lp asset " + lpAssetIdStr))
377- let poolWeight0 = $t01304213610._1
378- let poolWeight1 = $t01304213610._2
380+ let poolWeight0 = $t01317413742._1
381+ let poolWeight1 = $t01317413742._2
379382 let wxEmissionPerBlock = getIntOrFail(emissionContract, keyEmissionRatePerBlockCurrent())
380383 let emissionStart = getIntOrFail(emissionContract, keyEmissionStartBlock())
381384 let emissionEnd = getIntOrFail(emissionContract, keyEmissionEndBlock())
593596 func claimWxBoost (lpAssetIdStr,userAddressStr) = if ((stakingContract != i.caller))
594597 then throw("permissions denied")
595598 else {
596- let $t02781027912 = internalClaimWxBoost(lpAssetIdStr, userAddressStr, false)
597- let userBoostAvailable = $t02781027912._1
598- let dataState = $t02781027912._2
599- let debug = $t02781027912._3
599+ let $t02794228044 = internalClaimWxBoost(lpAssetIdStr, userAddressStr, false)
600+ let userBoostAvailable = $t02794228044._1
601+ let dataState = $t02794228044._2
602+ let debug = $t02794228044._3
600603 $Tuple2(dataState, [userBoostAvailable])
601604 }
602605
604607
605608 @Callable(i)
606609 func claimWxBoostREADONLY (lpAssetIdStr,userAddressStr) = {
607- let $t02804428145 = internalClaimWxBoost(lpAssetIdStr, userAddressStr, true)
608- let userBoostAvailable = $t02804428145._1
609- let dataState = $t02804428145._2
610- let debug = $t02804428145._3
610+ let $t02817628277 = internalClaimWxBoost(lpAssetIdStr, userAddressStr, true)
611+ let userBoostAvailable = $t02817628277._1
612+ let dataState = $t02817628277._2
613+ let debug = $t02817628277._3
611614 $Tuple2(nil, [userBoostAvailable, debug])
612615 }
613616
640643 func gwxUserInfoREADONLY (userAddress) = {
641644 let gwxAmount = calcCurrentGwxAmount(userAddress)
642645 $Tuple2(nil, [gwxAmount])
646+ }
647+
648+
649+
650+@Callable(i)
651+func getUserGwxAmountAtHeightREADONLY (userAddress,targetHeight) = {
652+ let gwxAmount = calcUserGwxAmountAtHeight(userAddress, targetHeight)
653+ $Tuple2(nil, gwxAmount)
643654 }
644655
645656
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let SEP = "__"
55
66 let SCALE8 = 8
77
88 let MULT8 = 100000000
99
1010 let POOLWEIGHTMULT = MULT8
1111
1212 func strf (address,key) = valueOrErrorMessage(getString(address, key), (("mandatory this." + key) + " is not defined"))
1313
1414
1515 func getIntOrZero (address,key) = valueOrElse(getInteger(address, key), 0)
1616
1717
1818 func getIntOrDefault (address,key,defaultVal) = valueOrElse(getInteger(address, key), defaultVal)
1919
2020
2121 func getIntOrFail (address,key) = valueOrErrorMessage(getInteger(address, key), (("mandatory this." + key) + " is not defined"))
2222
2323
2424 func abs (val) = if ((0 > val))
2525 then -(val)
2626 else val
2727
2828
2929 func asAnyList (val) = match val {
3030 case valAnyLyst: List[Any] =>
3131 valAnyLyst
3232 case _ =>
3333 throw("fail to cast into List[Any]")
3434 }
3535
3636
3737 func asInt (val) = match val {
3838 case valInt: Int =>
3939 valInt
4040 case _ =>
4141 throw("fail to cast into Int")
4242 }
4343
4444
4545 func keyFactoryAddress () = "%s%s__config__factoryAddress"
4646
4747
4848 let IdxFactoryCfgStakingDapp = 1
4949
5050 let IdxFactoryCfgBoostingDapp = 2
5151
5252 let IdxFactoryCfgIdoDapp = 3
5353
5454 let IdxFactoryCfgTeamDapp = 4
5555
5656 let IdxFactoryCfgEmissionDapp = 5
5757
5858 let IdxFactoryCfgRestDapp = 6
5959
6060 let IdxFactoryCfgSlippageDapp = 7
6161
6262 let IdxFactoryCfgDaoDapp = 8
6363
6464 let IdxFactoryCfgMarketingDapp = 9
6565
6666 let IdxFactoryCfgGwxRewardDapp = 10
6767
6868 let IdxFactoryCfgBirdsDapp = 11
6969
7070 func keyFactoryCfg () = "%s__factoryConfig"
7171
7272
7373 func keyFactoryLp2AssetsMapping (lpAssetStr) = makeString(["%s%s%s", lpAssetStr, "mappings__lpAsset2PoolContract"], SEP)
7474
7575
7676 func keyFactoryLpList () = "%s__lpTokensList"
7777
7878
7979 func keyFactoryLpAssetToPoolContractAddress (lpAssetStr) = makeString(["%s%s%s", lpAssetStr, "mappings__lpAsset2PoolContract"], SEP)
8080
8181
8282 func keyFactoryPoolWeight (contractAddress) = makeString(["%s%s", "poolWeight", contractAddress], SEP)
8383
8484
8585 func keyFactoryPoolWeightHistory (poolAddress,num) = ((("%s%s__poolWeight__" + poolAddress) + "__") + toString(num))
8686
8787
8888 func readFactoryAddressOrFail () = addressFromStringValue(strf(this, keyFactoryAddress()))
8989
9090
9191 func readLpList () = split(valueOrElse(getString(readFactoryAddressOrFail(), keyFactoryLpList()), ""), SEP)
9292
9393
9494 func readFactoryCfgOrFail (factory) = split(strf(factory, keyFactoryCfg()), SEP)
9595
9696
9797 func getBoostingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgBoostingDapp])
9898
9999
100100 func getEmissionAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgEmissionDapp])
101101
102102
103103 func getStakingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgStakingDapp])
104104
105105
106106 func getGwxRewardAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgGwxRewardDapp])
107107
108108
109109 func keyManagerPublicKey () = "%s__managerPublicKey"
110110
111111
112112 func keyPendingManagerPublicKey () = "%s__pendingManagerPublicKey"
113113
114114
115115 func keyEmissionRatePerBlockCurrent () = "%s%s__ratePerBlock__current"
116116
117117
118118 func keyEmissionRatePerBlockMaxCurrent () = "%s%s__ratePerBlockMax__current"
119119
120120
121121 func keyEmissionStartBlock () = "%s%s__emission__startBlock"
122122
123123
124124 func keyEmissionDurationInBlocks () = "%s%s__emission__duration"
125125
126126
127127 func keyEmissionEndBlock () = "%s%s__emission__endBlock"
128128
129129
130130 func keyNextPeriod () = "%s__nextPeriod"
131131
132132
133133 func keyGwxRewardEmissionStartHeight () = "%s%s__gwxRewardEmissionPart__startHeight"
134134
135135
136136 let IdxCfgAssetId = 1
137137
138138 let IdxCfgMinLockAmount = 2
139139
140140 let IdxCfgMinLockDuration = 3
141141
142142 let IdxCfgMaxLockDuration = 4
143143
144144 let IdxCfgMathContract = 5
145145
146146 func keyConfig () = "%s__config"
147147
148148
149149 func readConfigArrayOrFail () = split(strf(this, keyConfig()), SEP)
150150
151151
152152 func formatConfigS (assetId,minLockAmount,minLockDuration,maxLockDuration,mathContract) = makeString(["%s%d%d%d", assetId, minLockAmount, minLockDuration, maxLockDuration, mathContract], SEP)
153153
154154
155155 func formatConfig (assetId,minLockAmount,minLockDuration,maxLockDuration,mathContract) = formatConfigS(assetId, toString(minLockAmount), toString(minLockDuration), toString(maxLockDuration), mathContract)
156156
157157
158158 func managerPublicKeyOrUnit () = match getString(keyManagerPublicKey()) {
159159 case s: String =>
160160 fromBase58String(s)
161161 case _: Unit =>
162162 unit
163163 case _ =>
164164 throw("Match error")
165165 }
166166
167167
168168 func pendingManagerPublicKeyOrUnit () = match getString(keyPendingManagerPublicKey()) {
169169 case s: String =>
170170 fromBase58String(s)
171171 case _: Unit =>
172172 unit
173173 case _ =>
174174 throw("Match error")
175175 }
176176
177177
178178 func mustManager (i) = {
179179 let pd = throw("Permission denied")
180180 match managerPublicKeyOrUnit() {
181181 case pk: ByteVector =>
182182 if ((i.callerPublicKey == pk))
183183 then true
184184 else pd
185185 case _: Unit =>
186186 if ((i.caller == this))
187187 then true
188188 else pd
189189 case _ =>
190190 throw("Match error")
191191 }
192192 }
193193
194194
195195 let IdxLockUserNum = 1
196196
197197 let IdxLockAmount = 2
198198
199199 let IdxLockStart = 3
200200
201201 let IdxLockDuration = 4
202202
203203 let IdxLockParamK = 5
204204
205205 let IdxLockParamB = 6
206206
207207 func keyLockParamsRecord (userAddress) = makeString(["%s%s__lock", userAddress], SEP)
208208
209209
210210 func readLockParamsRecordOrFail (userAddress) = split(strf(this, keyLockParamsRecord(userAddress)), SEP)
211211
212212
213213 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)
214214
215215
216216 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))
217217
218218
219219 func keyNextUserNum () = "%s__nextUserNum"
220220
221221
222222 func keyUser2NumMapping (userAddress) = makeString(["%s%s%s__mapping__user2num", userAddress], SEP)
223223
224224
225225 func keyNum2UserMapping (num) = makeString(["%s%s%s__mapping__num2user", num], SEP)
226226
227227
228228 func keyLockParamUserAmount (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "amount"], SEP)
229229
230230
231231 func keyLockParamStartBlock (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "start"], SEP)
232232
233233
234234 func keyLockParamDuration (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "duration"], SEP)
235235
236236
237237 func keyLockParamK (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "k"], SEP)
238238
239239
240240 func keyLockParamB (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "b"], SEP)
241241
242242
243243 func keyLockParamByPeriodK (userNum,period) = makeString(["%s%d%s%d__paramByPeriod", userNum, "k", period], SEP)
244244
245245
246246 func keyLockParamByPeriodB (userNum,period) = makeString(["%s%d%s%d__paramByPeriod", userNum, "b", period], SEP)
247247
248248
249249 func keyLockParamTotalAmount () = "%s%s__stats__activeTotalLocked"
250250
251251
252252 func keyStatsLocksDurationSumInBlocks () = "%s%s__stats__locksDurationSumInBlocks"
253253
254254
255255 func keyStatsLocksCount () = "%s%s__stats__locksCount"
256256
257257
258258 func keyStatsUsersCount () = "%s%s__stats__activeUsersCount"
259259
260260
261261 func keyUserBoostEmissionLastINTEGRAL (userNum) = makeString(["%s%d__userBoostEmissionLastInt", userNum], SEP)
262262
263263
264264 func keyUserLpBoostEmissionLastINTEGRAL (userNum,lpAssetId) = makeString(["%s%d__userBoostEmissionLastInt", userNum, lpAssetId], SEP)
265265
266266
267267 func keyUserMaxBoostINTEGRAL (userNum) = makeString(["%s%d__maxBoostInt", userNum], SEP)
268268
269269
270270 func keyTotalMaxBoostINTEGRAL () = "%s%s__maxBoostInt__total"
271271
272272
273273 func keyUserBoostAvalaibleToClaimTotal (userNum) = makeString(["%s%d__userBoostAvaliableToClaimTotal", userNum], SEP)
274274
275275
276276 func keyUserBoostClaimed (userNum) = makeString(["%s%d__userBoostClaimed", userNum], SEP)
277277
278278
279279 func keyTotalCachedGwx () = "%s%s__gwxCached__total"
280280
281281
282282 let factoryContract = readFactoryAddressOrFail()
283283
284284 let factoryCfg = readFactoryCfgOrFail(factoryContract)
285285
286286 let emissionContract = getEmissionAddressOrFail(factoryCfg)
287287
288288 let stakingContract = getStakingAddressOrFail(factoryCfg)
289289
290290 let gwxRewardContract = getGwxRewardAddressOrFail(factoryCfg)
291291
292292 func HistoryEntry (type,user,amount,lockStart,duration,k,b,i) = {
293293 let historyKEY = makeString(["%s%s%s%s__history", type, user, toBase58String(i.transactionId)], SEP)
294294 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)
295295 StringEntry(historyKEY, historyDATA)
296296 }
297297
298298
299299 func StatsEntry (totalLockedInc,durationInc,lockCountInc,usersCountInc) = {
300300 let locksDurationSumInBlocksKEY = keyStatsLocksDurationSumInBlocks()
301301 let locksCountKEY = keyStatsLocksCount()
302302 let usersCountKEY = keyStatsUsersCount()
303303 let totalAmountKEY = keyLockParamTotalAmount()
304304 let locksDurationSumInBlocks = getIntOrZero(this, locksDurationSumInBlocksKEY)
305305 let locksCount = getIntOrZero(this, locksCountKEY)
306306 let usersCount = getIntOrZero(this, usersCountKEY)
307307 let totalAmount = getIntOrZero(this, totalAmountKEY)
308308 [IntegerEntry(locksDurationSumInBlocksKEY, (locksDurationSumInBlocks + durationInc)), IntegerEntry(locksCountKEY, (locksCount + lockCountInc)), IntegerEntry(usersCountKEY, (usersCount + usersCountInc)), IntegerEntry(totalAmountKEY, (totalAmount + totalLockedInc))]
309309 }
310310
311311
312312 func calcGwxAmount (kRaw,bRaw,h) = {
313313 let SCALE = 1000
314314 (((kRaw * h) + bRaw) / SCALE)
315315 }
316316
317317
318318 func LockParamsEntry (userAddress,userNum,amount,start,duration,k,b,period) = {
319319 let userAmountKEY = keyLockParamUserAmount(userNum)
320320 let startBlockKEY = keyLockParamStartBlock(userNum)
321321 let durationKEY = keyLockParamDuration(userNum)
322322 let kKEY = keyLockParamK(userNum)
323323 let bKEY = keyLockParamB(userNum)
324324 let kByPeriodKEY = keyLockParamByPeriodK(userNum, period)
325325 let bByPeriodKEY = keyLockParamByPeriodB(userNum, period)
326326 let gwxAmount = calcGwxAmount(k, b, height)
327327 [IntegerEntry(userAmountKEY, amount), IntegerEntry(startBlockKEY, start), IntegerEntry(durationKEY, duration), IntegerEntry(kKEY, k), IntegerEntry(bKEY, b), IntegerEntry(kByPeriodKEY, k), IntegerEntry(bByPeriodKEY, b), StringEntry(keyLockParamsRecord(userAddress), formatLockParamsRecord(userNum, amount, start, duration, k, b, gwxAmount))]
328328 }
329329
330330
331331 func extractOptionalPaymentAmountOrFail (i,expectedAssetId) = if ((size(i.payments) > 1))
332332 then throw("only one payment is allowed")
333333 else if ((size(i.payments) == 0))
334334 then 0
335335 else {
336336 let pmt = i.payments[0]
337337 if ((value(pmt.assetId) != expectedAssetId))
338338 then throw("invalid asset id in payment")
339339 else pmt.amount
340340 }
341341
342342
343-func calcCurrentGwxAmount (userAddress) = {
343+func calcUserGwxAmountAtHeight (userAddress,targetHeight) = {
344344 let EMPTY = "empty"
345345 let user2NumMappingKEY = keyUser2NumMapping(userAddress)
346346 let userNum = valueOrElse(getString(user2NumMappingKEY), EMPTY)
347347 let k = valueOrElse(getInteger(keyLockParamK(userNum)), 0)
348348 let b = valueOrElse(getInteger(keyLockParamB(userNum)), 0)
349- let gwxAmountCalc = calcGwxAmount(k, b, height)
349+ let gwxAmountCalc = calcGwxAmount(k, b, targetHeight)
350350 let gwxAmount = if ((0 > gwxAmountCalc))
351351 then 0
352352 else gwxAmountCalc
353353 gwxAmount
354354 }
355+
356+
357+func calcCurrentGwxAmount (userAddress) = calcUserGwxAmountAtHeight(userAddress, height)
355358
356359
357360 func internalClaimWxBoost (lpAssetIdStr,userAddressStr,readOnly) = {
358361 let EMPTY = "EMPTY"
359362 let userRecordOrEmpty = valueOrElse(getString(this, keyLockParamsRecord(userAddressStr)), EMPTY)
360363 if ((userRecordOrEmpty == EMPTY))
361364 then $Tuple3(0, nil, "userRecord::is::empty")
362365 else {
363366 let userRecordArray = split(userRecordOrEmpty, SEP)
364367 let userNumStr = userRecordArray[IdxLockUserNum]
365368 let gwxRewardEmissionStartHeight = valueOrElse(getInteger(gwxRewardContract, keyGwxRewardEmissionStartHeight()), 0)
366369 let EMPTYSTR = "empty"
367- let $t01304213610 = if ((lpAssetIdStr != EMPTYSTR))
370+ let $t01317413742 = if ((lpAssetIdStr != EMPTYSTR))
368371 then {
369372 let poolAddressStr = valueOrErrorMessage(getString(factoryContract, keyFactoryLp2AssetsMapping(lpAssetIdStr)), ("unsupported lp asset " + lpAssetIdStr))
370373 let pw1 = getIntegerValue(factoryContract, keyFactoryPoolWeight(poolAddressStr))
371374 let pw0 = valueOrElse(getInteger(factoryContract, keyFactoryPoolWeightHistory(poolAddressStr, 0)), pw1)
372375 $Tuple2(pw0, pw1)
373376 }
374377 else if (readOnly)
375378 then $Tuple2(0, 0)
376379 else throw(("not readonly mode: unsupported lp asset " + lpAssetIdStr))
377- let poolWeight0 = $t01304213610._1
378- let poolWeight1 = $t01304213610._2
380+ let poolWeight0 = $t01317413742._1
381+ let poolWeight1 = $t01317413742._2
379382 let wxEmissionPerBlock = getIntOrFail(emissionContract, keyEmissionRatePerBlockCurrent())
380383 let emissionStart = getIntOrFail(emissionContract, keyEmissionStartBlock())
381384 let emissionEnd = getIntOrFail(emissionContract, keyEmissionEndBlock())
382385 let h = if ((height > emissionEnd))
383386 then emissionEnd
384387 else height
385388 let dh = max([(h - emissionStart), 0])
386389 let userLpBoostEmissionLastIntegralKEY = keyUserLpBoostEmissionLastINTEGRAL(userNumStr, lpAssetIdStr)
387390 let userBoostEmissionLastIntegralKEY = keyUserBoostEmissionLastINTEGRAL(userNumStr)
388391 let userBoostEmissionLastIntegral = valueOrElse(getInteger(this, userLpBoostEmissionLastIntegralKEY), getIntOrZero(this, userBoostEmissionLastIntegralKEY))
389392 let boostEmissionIntegral = (((wxEmissionPerBlock * dh) * 2) / 3)
390393 let userBoostEmissionIntegral = (boostEmissionIntegral - userBoostEmissionLastIntegral)
391394 let udh = fraction(userBoostEmissionIntegral, 3, (2 * wxEmissionPerBlock))
392395 let uLastH = (h - udh)
393396 let udh0 = max([(gwxRewardEmissionStartHeight - uLastH), 0])
394397 let udh1 = ((h - uLastH) - udh0)
395398 if (if (if ((0 > uLastH))
396399 then true
397400 else (0 > udh1))
398401 then true
399402 else (abs(((udh0 + udh1) - udh)) >= 1))
400403 then throw(((((((("invalid udh calc: udh=" + toString(udh)) + " uLastH=") + toString(uLastH)) + " udh0=") + toString(udh0)) + " udh1=") + toString(udh1)))
401404 else if ((0 > userBoostEmissionIntegral))
402405 then throw("wrong calculations")
403406 else {
404407 let userMaxBoostIntegralKEY = keyUserMaxBoostINTEGRAL(userNumStr)
405408 let totalMaxBoostIntegralKEY = keyTotalMaxBoostINTEGRAL()
406409 let userMaxBoostInt = getIntOrZero(this, userMaxBoostIntegralKEY)
407410 let totalMaxBoostInt = getIntOrZero(this, totalMaxBoostIntegralKEY)
408411 let totalCachedGwxKEY = keyTotalCachedGwx()
409412 let totalCachedGwx = valueOrElse(getInteger(this, totalCachedGwxKEY), 0)
410413 let userCurrGwx = calcCurrentGwxAmount(userAddressStr)
411414 let userBoostAvalaibleToClaimTotalKEY = keyUserBoostAvalaibleToClaimTotal(userNumStr)
412415 let userBoostAvaliableToClaimTotal = getIntOrZero(this, userBoostAvalaibleToClaimTotalKEY)
413416 let userBoostEmissionIntegral0 = fraction(userBoostEmissionIntegral, udh0, udh)
414417 let userBoostEmissionIntegral1 = fraction(userBoostEmissionIntegral, udh1, udh)
415418 let poolUserBoostEmissionIntegral0 = fraction(userBoostEmissionIntegral0, poolWeight0, POOLWEIGHTMULT)
416419 let poolUserBoostEmissionIntegral1 = fraction(userBoostEmissionIntegral1, poolWeight1, POOLWEIGHTMULT)
417420 let userBoostAvaliableToClaimTotalNew0 = if ((totalCachedGwx == 0))
418421 then 0
419422 else fraction(poolUserBoostEmissionIntegral0, userCurrGwx, totalCachedGwx)
420423 let userBoostAvaliableToClaimTotalNew1 = if ((totalCachedGwx == 0))
421424 then 0
422425 else fraction(poolUserBoostEmissionIntegral1, userCurrGwx, totalCachedGwx)
423426 let userBoostAvaliableToClaimTotalNew = (userBoostAvaliableToClaimTotalNew0 + userBoostAvaliableToClaimTotalNew1)
424427 let userBoostClaimedKEY = keyUserBoostClaimed(userNumStr)
425428 let userBoostClaimed = getIntOrZero(this, userBoostClaimedKEY)
426429 let userBoostAvailable = (userBoostAvaliableToClaimTotalNew - userBoostClaimed)
427430 let dataState = [IntegerEntry(userLpBoostEmissionLastIntegralKEY, boostEmissionIntegral)]
428431 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)), ("userBoostEmissionIntegral0=" + toString(userBoostEmissionIntegral0)), ("userBoostEmissionIntegral1=" + toString(userBoostEmissionIntegral1)), ("poolUserBoostEmissionIntegral0=" + toString(poolUserBoostEmissionIntegral0)), ("poolUserBoostEmissionIntegral1=" + toString(poolUserBoostEmissionIntegral1)), ("poolWeight0=" + toString(poolWeight0)), ("poolWeight1=" + toString(poolWeight1)), ("h=" + toString(h)), ("udh=" + toString(udh)), ("uLastH=" + toString(uLastH)), ("udh0=" + toString(udh0)), ("udh1=" + toString(udh1)), ("userCurrGwx=" + toString(userCurrGwx)), ("totalCachedGwx=" + toString(totalCachedGwx))], "::")
429432 $Tuple3(userBoostAvaliableToClaimTotalNew, dataState, debug)
430433 }
431434 }
432435 }
433436
434437
435438 @Callable(i)
436439 func constructor (factoryAddressStr,lockAssetIdStr,minLockAmount,minDuration,maxDuration,mathContract) = {
437440 let checkCaller = mustManager(i)
438441 if ((checkCaller == checkCaller))
439442 then ([IntegerEntry(keyNextUserNum(), 0), StringEntry(keyConfig(), formatConfig(lockAssetIdStr, minLockAmount, minDuration, maxDuration, mathContract)), StringEntry(keyFactoryAddress(), factoryAddressStr)] ++ StatsEntry(0, 0, 0, 0))
440443 else throw("Strict value is not equal to itself.")
441444 }
442445
443446
444447
445448 @Callable(i)
446449 func lock (duration) = {
447450 let cfgArray = readConfigArrayOrFail()
448451 let assetIdStr = cfgArray[IdxCfgAssetId]
449452 let assetId = fromBase58String(assetIdStr)
450453 let minLockAmount = parseIntValue(cfgArray[IdxCfgMinLockAmount])
451454 let minLockDuration = parseIntValue(cfgArray[IdxCfgMinLockDuration])
452455 let maxLockDuration = parseIntValue(cfgArray[IdxCfgMaxLockDuration])
453456 let mathContract = addressFromStringValue(cfgArray[IdxCfgMathContract])
454457 if ((size(i.payments) != 1))
455458 then throw("invalid payment - exact one payment must be attached")
456459 else {
457460 let pmt = i.payments[0]
458461 let pmtAmount = pmt.amount
459462 if ((assetId != value(pmt.assetId)))
460463 then throw((("invalid asset is in payment - " + assetIdStr) + " is expected"))
461464 else {
462465 let nextUserNumKEY = keyNextUserNum()
463466 let userAddressStr = toString(i.caller)
464467 let userIsExisting = isDefined(getString(keyUser2NumMapping(userAddressStr)))
465468 let userNumStr = if (userIsExisting)
466469 then value(getString(keyUser2NumMapping(userAddressStr)))
467470 else toString(getIntOrFail(this, nextUserNumKEY))
468471 let userNum = parseIntValue(userNumStr)
469472 let lockStart = height
470473 let startBlockKEY = keyLockParamStartBlock(userNumStr)
471474 let durationKEY = keyLockParamDuration(userNumStr)
472475 let userAmountKEY = keyLockParamUserAmount(userNumStr)
473476 if ((minLockAmount > pmtAmount))
474477 then throw(("amount is less then minLockAmount=" + toString(minLockAmount)))
475478 else if ((minLockDuration > duration))
476479 then throw(("passed duration is less then minLockDuration=" + toString(minLockDuration)))
477480 else if ((duration > maxLockDuration))
478481 then throw(("passed duration is greater then maxLockDuration=" + toString(maxLockDuration)))
479482 else if (if (userIsExisting)
480483 then ((getIntOrFail(this, startBlockKEY) + getIntOrFail(this, durationKEY)) >= lockStart)
481484 else false)
482485 then throw("there is an active lock - consider to use increaseLock")
483486 else if ((getIntOrZero(this, userAmountKEY) > 0))
484487 then throw(("there are locked WXs - consider to use increaseLock " + userAmountKEY))
485488 else {
486489 let coeffX8 = fraction(duration, MULT8, maxLockDuration)
487490 let gWxAmountStart = fraction(pmtAmount, coeffX8, MULT8)
488491 let gWxParamsResultList = asAnyList(invoke(mathContract, "calcGwxParamsREADONLY", [gWxAmountStart, lockStart, duration], nil))
489492 let k = asInt(gWxParamsResultList[0])
490493 let b = asInt(gWxParamsResultList[1])
491494 let period = toString(asInt(gWxParamsResultList[2]))
492495 let wxEmissionPerBlock = getIntOrFail(emissionContract, keyEmissionRatePerBlockCurrent())
493496 let emissionStart = getIntOrFail(emissionContract, keyEmissionStartBlock())
494497 let emissionEnd = getIntOrFail(emissionContract, keyEmissionEndBlock())
495498 let h = if ((height > emissionEnd))
496499 then emissionEnd
497500 else height
498501 let dh = max([(h - emissionStart), 0])
499502 let userBoostEmissionLastIntegralKEY = keyUserBoostEmissionLastINTEGRAL(userNumStr)
500503 let boostEmissionIntegral = (((wxEmissionPerBlock * dh) * 2) / 3)
501504 let userMaxBoostIntegralKEY = keyUserMaxBoostINTEGRAL(userNumStr)
502505 let totalMaxBoostIntegralKEY = keyTotalMaxBoostINTEGRAL()
503506 let userMaxBoostInt = ((gWxAmountStart * duration) / 2)
504507 let totalMaxBoostInt = getIntOrZero(this, totalMaxBoostIntegralKEY)
505508 let totalCachedGwxKEY = keyTotalCachedGwx()
506509 let totalCachedGwx = valueOrElse(getInteger(this, totalCachedGwxKEY), 0)
507510 let arr = if (userIsExisting)
508511 then nil
509512 else [IntegerEntry(nextUserNumKEY, (userNum + 1)), StringEntry(keyUser2NumMapping(userAddressStr), userNumStr), StringEntry(keyNum2UserMapping(userNumStr), userAddressStr)]
510513 ((((arr ++ LockParamsEntry(userAddressStr, userNumStr, pmtAmount, lockStart, duration, k, b, period)) ++ StatsEntry(pmtAmount, duration, 1, if (userIsExisting)
511514 then 0
512515 else 1)) :+ HistoryEntry("lock", userAddressStr, pmtAmount, lockStart, duration, k, b, i)) ++ [IntegerEntry(userBoostEmissionLastIntegralKEY, boostEmissionIntegral), IntegerEntry(totalCachedGwxKEY, (totalCachedGwx + gWxAmountStart))])
513516 }
514517 }
515518 }
516519 }
517520
518521
519522
520523 @Callable(i)
521524 func increaseLock (deltaDuration) = {
522525 let cfgArray = readConfigArrayOrFail()
523526 let assetIdStr = cfgArray[IdxCfgAssetId]
524527 let assetId = fromBase58String(assetIdStr)
525528 let minLockDuration = parseIntValue(cfgArray[IdxCfgMinLockDuration])
526529 let maxLockDuration = parseIntValue(cfgArray[IdxCfgMaxLockDuration])
527530 let mathContract = addressFromStringValue(cfgArray[IdxCfgMathContract])
528531 let pmtAmount = extractOptionalPaymentAmountOrFail(i, assetId)
529532 let userAddressStr = toString(i.caller)
530533 let userRecordArray = readLockParamsRecordOrFail(userAddressStr)
531534 let userNumStr = userRecordArray[IdxLockUserNum]
532535 let userAmount = parseIntValue(userRecordArray[IdxLockAmount])
533536 let lockStart = parseIntValue(userRecordArray[IdxLockStart])
534537 let lockDuration = parseIntValue(userRecordArray[IdxLockDuration])
535538 let lockEnd = (lockStart + lockDuration)
536539 let remainingDuration = max([(lockEnd - height), 0])
537540 let userAmountNew = (userAmount + pmtAmount)
538541 let lockDurationNew = (remainingDuration + deltaDuration)
539542 if ((0 > deltaDuration))
540543 then throw("duration is less then zero")
541544 else if ((minLockDuration > lockDurationNew))
542545 then throw(("lockDurationNew is less then minLockDuration=" + toString(minLockDuration)))
543546 else if ((lockDurationNew > maxLockDuration))
544547 then throw(("deltaDuration + existedLockDuration is greater then maxLockDuration=" + toString(maxLockDuration)))
545548 else {
546549 let coeffX8 = fraction(lockDurationNew, MULT8, maxLockDuration)
547550 let gWxAmountStart = fraction(userAmountNew, coeffX8, MULT8)
548551 let lockStartNew = height
549552 let gWxParamsResultList = asAnyList(invoke(mathContract, "calcGwxParamsREADONLY", [gWxAmountStart, lockStartNew, lockDurationNew], nil))
550553 let k = asInt(gWxParamsResultList[0])
551554 let b = asInt(gWxParamsResultList[1])
552555 let period = toString(asInt(gWxParamsResultList[2]))
553556 let wxEmissionPerBlock = getIntOrFail(emissionContract, keyEmissionRatePerBlockCurrent())
554557 let emissionStart = getIntOrFail(emissionContract, keyEmissionStartBlock())
555558 let emissionEnd = getIntOrFail(emissionContract, keyEmissionEndBlock())
556559 let h = if ((height > emissionEnd))
557560 then emissionEnd
558561 else height
559562 let dh = max([(h - emissionStart), 0])
560563 let userBoostEmissionLastIntegralKEY = keyUserBoostEmissionLastINTEGRAL(userNumStr)
561564 let userBoostEmissionLastIntegral = getIntOrZero(this, userBoostEmissionLastIntegralKEY)
562565 let boostEmissionIntegral = (((wxEmissionPerBlock * dh) * 2) / 3)
563566 let userBoostEmissionIntegral = (boostEmissionIntegral - userBoostEmissionLastIntegral)
564567 if ((0 > userBoostEmissionIntegral))
565568 then throw("wrong calculations")
566569 else {
567570 let userMaxBoostIntegralKEY = keyUserMaxBoostINTEGRAL(userNumStr)
568571 let totalMaxBoostIntegralKEY = keyTotalMaxBoostINTEGRAL()
569572 let userMaxBoostInt = getIntOrZero(this, userMaxBoostIntegralKEY)
570573 let totalMaxBoostInt = getIntOrZero(this, totalMaxBoostIntegralKEY)
571574 let currUserGwx = calcCurrentGwxAmount(userAddressStr)
572575 let gwxDiff = (gWxAmountStart - currUserGwx)
573576 if ((0 > gwxDiff))
574577 then throw(("gwxDiff is less then 0: " + toString(gwxDiff)))
575578 else {
576579 let totalCachedGwxKEY = keyTotalCachedGwx()
577580 let totalCachedGwx = valueOrElse(getInteger(this, totalCachedGwxKEY), 0)
578581 let userBoostAvalaibleToClaimTotalKEY = keyUserBoostAvalaibleToClaimTotal(userNumStr)
579582 let userBoostAvaliableToClaimTotal = getIntOrZero(this, userBoostAvalaibleToClaimTotalKEY)
580583 let userBoostAvaliableToClaimTotalNew = fraction(userBoostEmissionIntegral, currUserGwx, totalCachedGwx)
581584 let userMaxBoostIntNew = ((gWxAmountStart * lockDurationNew) / 2)
582585 let remainingUserMaxBoostInt = ((currUserGwx * remainingDuration) / 2)
583586 let userMaxBoostIntDiff = (userMaxBoostIntNew - remainingUserMaxBoostInt)
584587 (((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))])
585588 }
586589 }
587590 }
588591 }
589592
590593
591594
592595 @Callable(i)
593596 func claimWxBoost (lpAssetIdStr,userAddressStr) = if ((stakingContract != i.caller))
594597 then throw("permissions denied")
595598 else {
596- let $t02781027912 = internalClaimWxBoost(lpAssetIdStr, userAddressStr, false)
597- let userBoostAvailable = $t02781027912._1
598- let dataState = $t02781027912._2
599- let debug = $t02781027912._3
599+ let $t02794228044 = internalClaimWxBoost(lpAssetIdStr, userAddressStr, false)
600+ let userBoostAvailable = $t02794228044._1
601+ let dataState = $t02794228044._2
602+ let debug = $t02794228044._3
600603 $Tuple2(dataState, [userBoostAvailable])
601604 }
602605
603606
604607
605608 @Callable(i)
606609 func claimWxBoostREADONLY (lpAssetIdStr,userAddressStr) = {
607- let $t02804428145 = internalClaimWxBoost(lpAssetIdStr, userAddressStr, true)
608- let userBoostAvailable = $t02804428145._1
609- let dataState = $t02804428145._2
610- let debug = $t02804428145._3
610+ let $t02817628277 = internalClaimWxBoost(lpAssetIdStr, userAddressStr, true)
611+ let userBoostAvailable = $t02817628277._1
612+ let dataState = $t02817628277._2
613+ let debug = $t02817628277._3
611614 $Tuple2(nil, [userBoostAvailable, debug])
612615 }
613616
614617
615618
616619 @Callable(i)
617620 func unlock (userAddress) = {
618621 let userRecordArray = readLockParamsRecordOrFail(userAddress)
619622 let userNumStr = userRecordArray[IdxLockUserNum]
620623 let userAmount = parseIntValue(userRecordArray[IdxLockAmount])
621624 let lockStart = parseIntValue(userRecordArray[IdxLockStart])
622625 let lockDuration = parseIntValue(userRecordArray[IdxLockDuration])
623626 let lockEnd = (lockStart + lockDuration)
624627 let cfgArray = readConfigArrayOrFail()
625628 let assetId = fromBase58String(cfgArray[IdxCfgAssetId])
626629 let mathContract = addressFromStringValue(cfgArray[IdxCfgMathContract])
627630 if ((lockEnd >= height))
628631 then throw((("wait " + toString(lockEnd)) + " to unlock"))
629632 else if ((0 >= userAmount))
630633 then throw("nothing to unlock")
631634 else {
632635 let period = valueOrElse(getInteger(mathContract, keyNextPeriod()), 0)
633636 (((LockParamsEntry(userAddress, userNumStr, 0, lockStart, lockDuration, 0, 0, toString(period)) ++ StatsEntry(-(userAmount), 0, 0, -1)) :+ HistoryEntry("unlock", userAddress, userAmount, lockStart, lockDuration, 0, 0, i)) :+ ScriptTransfer(addressFromStringValue(userAddress), userAmount, assetId))
634637 }
635638 }
636639
637640
638641
639642 @Callable(i)
640643 func gwxUserInfoREADONLY (userAddress) = {
641644 let gwxAmount = calcCurrentGwxAmount(userAddress)
642645 $Tuple2(nil, [gwxAmount])
646+ }
647+
648+
649+
650+@Callable(i)
651+func getUserGwxAmountAtHeightREADONLY (userAddress,targetHeight) = {
652+ let gwxAmount = calcUserGwxAmountAtHeight(userAddress, targetHeight)
653+ $Tuple2(nil, gwxAmount)
643654 }
644655
645656
646657
647658 @Callable(i)
648659 func setManager (pendingManagerPublicKey) = {
649660 let checkCaller = mustManager(i)
650661 if ((checkCaller == checkCaller))
651662 then {
652663 let checkManagerPublicKey = fromBase58String(pendingManagerPublicKey)
653664 if ((checkManagerPublicKey == checkManagerPublicKey))
654665 then [StringEntry(keyPendingManagerPublicKey(), pendingManagerPublicKey)]
655666 else throw("Strict value is not equal to itself.")
656667 }
657668 else throw("Strict value is not equal to itself.")
658669 }
659670
660671
661672
662673 @Callable(i)
663674 func confirmManager () = {
664675 let pm = pendingManagerPublicKeyOrUnit()
665676 let hasPM = if (isDefined(pm))
666677 then true
667678 else throw("No pending manager")
668679 if ((hasPM == hasPM))
669680 then {
670681 let checkPM = if ((i.callerPublicKey == value(pm)))
671682 then true
672683 else throw("You are not pending manager")
673684 if ((checkPM == checkPM))
674685 then [StringEntry(keyManagerPublicKey(), toBase58String(value(pm))), DeleteEntry(keyPendingManagerPublicKey())]
675686 else throw("Strict value is not equal to itself.")
676687 }
677688 else throw("Strict value is not equal to itself.")
678689 }
679690
680691
681692 @Verifier(tx)
682693 func verify () = {
683694 let targetPublicKey = match managerPublicKeyOrUnit() {
684695 case pk: ByteVector =>
685696 pk
686697 case _: Unit =>
687698 tx.senderPublicKey
688699 case _ =>
689700 throw("Match error")
690701 }
691702 sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)
692703 }
693704

github/deemru/w8io/026f985 
92.74 ms