tx · EKQ4zvHXzphsgnHKZeqRJ4KzEDzfs8Po9AyWf897B24j

3Myn55vLkduxbX3ZXfiDCZhaQsLxYp1kmCy:  -0.01000000 Waves

2021.11.25 19:15 [1806800] smart account 3Myn55vLkduxbX3ZXfiDCZhaQsLxYp1kmCy > SELF 0.00000000 Waves

{ "type": 13, "id": "EKQ4zvHXzphsgnHKZeqRJ4KzEDzfs8Po9AyWf897B24j", "fee": 1000000, "feeAssetId": null, "timestamp": 1637856950537, "version": 1, "sender": "3Myn55vLkduxbX3ZXfiDCZhaQsLxYp1kmCy", "senderPublicKey": "9W33iCCNfmFxUbiC6XZcH5x7f6xfwC7Jb3BoExT5q2PV", "proofs": [ "rGiA5ZJPU16upGMW5hq7n8QCopejDC5HUkQ9yv1THMCMdb7bMrGebyMPVuCADo58Rybu1ispyT5H9ZJRpFWVRsV" ], "script": "base64:AAIFAAAAAAAAACoIAhIICgYICAEBAQgSAwoBARIDCgEBEgMKAQgSAwoBCBIDCgEIEgMKAQgAAABSAAAAAANTRVACAAAAAl9fAAAAAAZTQ0FMRTgAAAAAAAAAAAgAAAAABU1VTFQ4AAAAAAAF9eEAAQAAAA9nZXRTdHJpbmdPckZhaWwAAAACAAAAB2FkZHJlc3MAAAADa2V5CQEAAAATdmFsdWVPckVycm9yTWVzc2FnZQAAAAIJAAQdAAAAAgUAAAAHYWRkcmVzcwUAAAADa2V5CQABLAAAAAIJAAEsAAAAAgIAAAAPbWFuZGF0b3J5IHRoaXMuBQAAAANrZXkCAAAADyBpcyBub3QgZGVmaW5lZAEAAAAMZ2V0SW50T3JaZXJvAAAAAgAAAAdhZGRyZXNzAAAAA2tleQkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABBoAAAACBQAAAAdhZGRyZXNzBQAAAANrZXkAAAAAAAAAAAABAAAAD2dldEludE9yRGVmYXVsdAAAAAMAAAAHYWRkcmVzcwAAAANrZXkAAAAKZGVmYXVsdFZhbAkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkAB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VyQWRkcmVzcwUAAAAKdXNlck51bVN0cgAAAAAAAAAAAAUAAAAJbG9ja1N0YXJ0BQAAAAxsb2NrRHVyYXRpb24AAAAAAAAAAAAAAAAAAAAAAAAFAAAABnBlcmlvZAkBAAAAClN0YXRzRW50cnkAAAAECQEAAAABLQAAAAEFAAAACnVzZXJBbW91bnQAAAAAAAAAAAAAAAAAAAAAAAAA//////////8JAQAAAAxIaXN0b3J5RW50cnkAAAAIAgAAAAZ1bmxvY2sFAAAAC3VzZXJBZGRyZXNzBQAAAAp1c2VyQW1vdW50BQAAAAlsb2NrU3RhcnQFAAAADGxvY2tEdXJhdGlvbgAAAAAAAAAAAAAAAAAAAAAAAAUAAAABaQkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQUAAAALdXNlckFkZHJlc3MFAAAACnVzZXJBbW91bnQFAAAAB2Fzc2V0SWQAAAABaQEAAAATZ3d4VXNlckluZm9SRUFET05MWQAAAAEAAAALdXNlckFkZHJlc3MEAAAACWd3eEFtb3VudAkBAAAAFGNhbGNDdXJyZW50R3d4QW1vdW50AAAAAQUAAAALdXNlckFkZHJlc3MJAAUUAAAAAgUAAAADbmlsCQAETAAAAAIFAAAACWd3eEFtb3VudAUAAAADbmlsAAAAABcK+YM=", "chainId": 84, "height": 1806800, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5qjLYtADGC8gcyrxvdJw1y9fCfMNBJg2yXFnVqi7x3Lp Next: As92LD9CiiF8Up1zEcfKaNFZYvtkZ9vvYF4MfNPiS12X Diff:
OldNewDifferences
277277
278278
279279 func internalClaimWxBoost (userAddressStr) = {
280- let userRecordArray = readLockParamsRecordOrFail(userAddressStr)
281- let userNumStr = userRecordArray[IdxLockUserNum]
282- let wxEmissionPerBlock = getIntOrFail(emissionContract, keyEmissionRatePerBlockCurrent())
283- let emissionStart = getIntOrFail(emissionContract, keyEmissionStartBlock())
284- let emissionEnd = getIntOrFail(emissionContract, keyEmissionEndBlock())
285- let h = if ((height > emissionEnd))
286- then emissionEnd
287- else height
288- let dh = max([(h - emissionStart), 0])
289- let userBoostEmissionLastIntegralKEY = keyUserBoostEmissionLastINTEGRAL(userNumStr)
290- let userBoostEmissionLastIntegral = getIntOrZero(this, userBoostEmissionLastIntegralKEY)
291- let boostEmissionIntegral = (((wxEmissionPerBlock * dh) * 2) / 3)
292- let userBoostEmissionIntegral = (boostEmissionIntegral - userBoostEmissionLastIntegral)
293- if ((0 > userBoostEmissionIntegral))
294- then throw("wrong calculations")
280+ let EMPTY = "EMPTY"
281+ let userRecordOrEmpty = valueOrElse(getString(this, keyLockParamsRecord(userAddressStr)), EMPTY)
282+ if ((userRecordOrEmpty == EMPTY))
283+ then $Tuple2(0, nil)
295284 else {
296- let userMaxBoostIntegralKEY = keyUserMaxBoostINTEGRAL(userNumStr)
297- let totalMaxBoostIntegralKEY = keyTotalMaxBoostINTEGRAL()
298- let userBoostAvalaibleToClaimTotalKEY = keyUserBoostAvalaibleToClaimTotal(userNumStr)
299- let userMaxBoostInt = getIntOrZero(this, userMaxBoostIntegralKEY)
300- let totalMaxBoostInt = getIntOrZero(this, totalMaxBoostIntegralKEY)
301- let userBoostAvaliableToClaimTotal = getIntOrZero(this, userBoostAvalaibleToClaimTotalKEY)
302- let userBoostAvaliableToClaimTotalNew = (userBoostAvaliableToClaimTotal + fraction(userBoostEmissionIntegral, userMaxBoostInt, totalMaxBoostInt))
303- let userBoostClaimedKEY = keyUserBoostClaimed(userNumStr)
304- let userBoostClaimed = getIntOrZero(this, userBoostClaimedKEY)
305- let userBoostAvailable = (userBoostAvaliableToClaimTotalNew - userBoostClaimed)
306- let dataState = [IntegerEntry(userBoostAvalaibleToClaimTotalKEY, userBoostAvaliableToClaimTotalNew), IntegerEntry(userBoostEmissionLastIntegralKEY, boostEmissionIntegral)]
307- $Tuple2(userBoostAvailable, dataState)
285+ let userRecordArray = split(userRecordOrEmpty, SEP)
286+ let userNumStr = userRecordArray[IdxLockUserNum]
287+ let wxEmissionPerBlock = getIntOrFail(emissionContract, keyEmissionRatePerBlockCurrent())
288+ let emissionStart = getIntOrFail(emissionContract, keyEmissionStartBlock())
289+ let emissionEnd = getIntOrFail(emissionContract, keyEmissionEndBlock())
290+ let h = if ((height > emissionEnd))
291+ then emissionEnd
292+ else height
293+ let dh = max([(h - emissionStart), 0])
294+ let userBoostEmissionLastIntegralKEY = keyUserBoostEmissionLastINTEGRAL(userNumStr)
295+ let userBoostEmissionLastIntegral = getIntOrZero(this, userBoostEmissionLastIntegralKEY)
296+ let boostEmissionIntegral = (((wxEmissionPerBlock * dh) * 2) / 3)
297+ let userBoostEmissionIntegral = (boostEmissionIntegral - userBoostEmissionLastIntegral)
298+ if ((0 > userBoostEmissionIntegral))
299+ then throw("wrong calculations")
300+ else {
301+ let userMaxBoostIntegralKEY = keyUserMaxBoostINTEGRAL(userNumStr)
302+ let totalMaxBoostIntegralKEY = keyTotalMaxBoostINTEGRAL()
303+ let userBoostAvalaibleToClaimTotalKEY = keyUserBoostAvalaibleToClaimTotal(userNumStr)
304+ let userMaxBoostInt = getIntOrZero(this, userMaxBoostIntegralKEY)
305+ let totalMaxBoostInt = getIntOrZero(this, totalMaxBoostIntegralKEY)
306+ let userBoostAvaliableToClaimTotal = getIntOrZero(this, userBoostAvalaibleToClaimTotalKEY)
307+ let userBoostAvaliableToClaimTotalNew = (userBoostAvaliableToClaimTotal + fraction(userBoostEmissionIntegral, userMaxBoostInt, totalMaxBoostInt))
308+ let userBoostClaimedKEY = keyUserBoostClaimed(userNumStr)
309+ let userBoostClaimed = getIntOrZero(this, userBoostClaimedKEY)
310+ let userBoostAvailable = (userBoostAvaliableToClaimTotalNew - userBoostClaimed)
311+ let dataState = [IntegerEntry(userBoostAvalaibleToClaimTotalKEY, userBoostAvaliableToClaimTotalNew), IntegerEntry(userBoostEmissionLastIntegralKEY, boostEmissionIntegral)]
312+ $Tuple2(userBoostAvailable, dataState)
313+ }
308314 }
309315 }
310316
461467 func claimWxBoost (userAddressStr) = if ((stakingContract != i.caller))
462468 then throw("permissions denied")
463469 else {
464- let $t02175021824 = internalClaimWxBoost(userAddressStr)
465- let userBoostAvailable = $t02175021824._1
466- let dataState = $t02175021824._2
470+ let $t02190721981 = internalClaimWxBoost(userAddressStr)
471+ let userBoostAvailable = $t02190721981._1
472+ let dataState = $t02190721981._2
467473 $Tuple2(dataState, [userBoostAvailable])
468474 }
469475
471477
472478 @Callable(i)
473479 func claimWxBoostREADONLY (userAddressStr) = {
474- let $t02193422008 = internalClaimWxBoost(userAddressStr)
475- let userBoostAvailable = $t02193422008._1
476- let dataState = $t02193422008._2
480+ let $t02209122165 = internalClaimWxBoost(userAddressStr)
481+ let userBoostAvailable = $t02209122165._1
482+ let dataState = $t02209122165._2
477483 $Tuple2(nil, [userBoostAvailable])
478484 }
479485
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 func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), (("mandatory this." + key) + " is not defined"))
1111
1212
1313 func getIntOrZero (address,key) = valueOrElse(getInteger(address, key), 0)
1414
1515
1616 func getIntOrDefault (address,key,defaultVal) = valueOrElse(getInteger(address, key), defaultVal)
1717
1818
1919 func getIntOrFail (address,key) = valueOrErrorMessage(getInteger(address, key), (("mandatory this." + key) + " is not defined"))
2020
2121
2222 func asAnyList (val) = match val {
2323 case valAnyLyst: List[Any] =>
2424 valAnyLyst
2525 case _ =>
2626 throw("fail to cast into List[Any]")
2727 }
2828
2929
3030 func asInt (val) = match val {
3131 case valInt: Int =>
3232 valInt
3333 case _ =>
3434 throw("fail to cast into Int")
3535 }
3636
3737
3838 func keyFactoryAddress () = "%s%s__config__factoryAddress"
3939
4040
4141 let IdxFactoryCfgStakingDapp = 1
4242
4343 let IdxFactoryCfgBoostingDapp = 2
4444
4545 let IdxFactoryCfgIdoDapp = 3
4646
4747 let IdxFactoryCfgTeamDapp = 4
4848
4949 let IdxFactoryCfgEmissionDapp = 5
5050
5151 let IdxFactoryCfgRestDapp = 6
5252
5353 let IdxFactoryCfgSlippageDapp = 7
5454
5555 func keyFactoryCfg () = "%s__factoryConfig"
5656
5757
5858 func keyFactoryLp2AssetsMapping (lpAssetStr) = makeString(["%s%s%s", lpAssetStr, "mappings__lpAsset2PoolContract"], SEP)
5959
6060
6161 func keyFactoryLpList () = "%s__lpTokensList"
6262
6363
6464 func keyFactoryLpAssetToPoolContractAddress (lpAssetStr) = makeString(["%s%s%s", lpAssetStr, "mappings__lpAsset2PoolContract"], SEP)
6565
6666
6767 func keyFactoryPoolWeight (contractAddress) = makeString(["%s%s", "poolWeight", contractAddress], SEP)
6868
6969
7070 func readFactoryAddressOrFail () = addressFromStringValue(getStringOrFail(this, keyFactoryAddress()))
7171
7272
7373 func readLpList () = split(valueOrElse(getString(readFactoryAddressOrFail(), keyFactoryLpList()), ""), SEP)
7474
7575
7676 func readFactoryCfgOrFail (factory) = split(getStringOrFail(factory, keyFactoryCfg()), SEP)
7777
7878
7979 func getBoostingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgBoostingDapp])
8080
8181
8282 func getEmissionAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgEmissionDapp])
8383
8484
8585 func getStakingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgStakingDapp])
8686
8787
8888 func keyEmissionRatePerBlockCurrent () = "%s%s__ratePerBlock__current"
8989
9090
9191 func keyEmissionRatePerBlockMaxCurrent () = "%s%s__ratePerBlockMax__current"
9292
9393
9494 func keyEmissionStartBlock () = "%s%s__emission__startBlock"
9595
9696
9797 func keyEmissionDurationInBlocks () = "%s%s__emission__duration"
9898
9999
100100 func keyEmissionEndBlock () = "%s%s__emission__endBlock"
101101
102102
103103 let IdxCfgAssetId = 1
104104
105105 let IdxCfgMinLockAmount = 2
106106
107107 let IdxCfgMinLockDuration = 3
108108
109109 let IdxCfgMaxLockDuration = 4
110110
111111 let IdxCfgMathContract = 5
112112
113113 func keyConfig () = "%s__config"
114114
115115
116116 func readConfigArrayOrFail () = split(getStringOrFail(this, keyConfig()), SEP)
117117
118118
119119 func formatConfigS (assetId,minLockAmount,minLockDuration,maxLockDuration,mathContract) = makeString(["%s%d%d%d", assetId, minLockAmount, minLockDuration, maxLockDuration, mathContract], SEP)
120120
121121
122122 func formatConfig (assetId,minLockAmount,minLockDuration,maxLockDuration,mathContract) = formatConfigS(assetId, toString(minLockAmount), toString(minLockDuration), toString(maxLockDuration), mathContract)
123123
124124
125125 let IdxLockUserNum = 1
126126
127127 let IdxLockAmount = 2
128128
129129 let IdxLockStart = 3
130130
131131 let IdxLockDuration = 4
132132
133133 let IdxLockParamK = 5
134134
135135 let IdxLockParamB = 6
136136
137137 func keyLockParamsRecord (userAddress) = makeString(["%s%s__lock", userAddress], SEP)
138138
139139
140140 func readLockParamsRecordOrFail (userAddress) = split(getStringOrFail(this, keyLockParamsRecord(userAddress)), SEP)
141141
142142
143143 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)
144144
145145
146146 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))
147147
148148
149149 func keyNextUserNum () = "%s__nextUserNum"
150150
151151
152152 func keyUser2NumMapping (userAddress) = makeString(["%s%s%s__mapping__user2num", userAddress], SEP)
153153
154154
155155 func keyNum2UserMapping (num) = makeString(["%s%s%s__mapping__num2user", num], SEP)
156156
157157
158158 func keyLockParamUserAmount (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "amount"], SEP)
159159
160160
161161 func keyLockParamStartBlock (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "start"], SEP)
162162
163163
164164 func keyLockParamDuration (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "duration"], SEP)
165165
166166
167167 func keyLockParamK (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "k"], SEP)
168168
169169
170170 func keyLockParamB (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "b"], SEP)
171171
172172
173173 func keyLockParamByPeriodK (userNum,period) = makeString(["%s%d%s%d__paramByPeriod", userNum, "k", period], SEP)
174174
175175
176176 func keyLockParamByPeriodB (userNum,period) = makeString(["%s%d%s%d__paramByPeriod", userNum, "b", period], SEP)
177177
178178
179179 func keyLockParamTotalAmount () = "%s%s__stats__activeTotalLocked"
180180
181181
182182 func keyStatsLocksDurationSumInBlocks () = "%s%s__stats__locksDurationSumInBlocks"
183183
184184
185185 func keyStatsLocksCount () = "%s%s__stats__locksCount"
186186
187187
188188 func keyStatsUsersCount () = "%s%s__stats__activeUsersCount"
189189
190190
191191 func keyUserBoostEmissionLastINTEGRAL (userNum) = makeString(["%s%d__userBoostEmissionLastInt", userNum], SEP)
192192
193193
194194 func keyUserMaxBoostINTEGRAL (userNum) = makeString(["%s%d__maxBoostInt", userNum], SEP)
195195
196196
197197 func keyTotalMaxBoostINTEGRAL () = "%s%s__maxBoostInt__total"
198198
199199
200200 func keyUserBoostAvalaibleToClaimTotal (userNum) = makeString(["%s%d__userBoostAvaliableToClaimTotal", userNum], SEP)
201201
202202
203203 func keyUserBoostClaimed (userNum) = makeString(["%s%d__userBoostClaimed", userNum], SEP)
204204
205205
206206 let factoryContract = readFactoryAddressOrFail()
207207
208208 let factoryCfg = readFactoryCfgOrFail(factoryContract)
209209
210210 let emissionContract = getEmissionAddressOrFail(factoryCfg)
211211
212212 let stakingContract = getStakingAddressOrFail(factoryCfg)
213213
214214 func HistoryEntry (type,user,amount,lockStart,duration,k,b,i) = {
215215 let historyKEY = makeString(["%s%s%s%s__history", type, user, toBase58String(i.transactionId)], SEP)
216216 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)
217217 StringEntry(historyKEY, historyDATA)
218218 }
219219
220220
221221 func StatsEntry (totalLockedInc,durationInc,lockCountInc,usersCountInc) = {
222222 let locksDurationSumInBlocksKEY = keyStatsLocksDurationSumInBlocks()
223223 let locksCountKEY = keyStatsLocksCount()
224224 let usersCountKEY = keyStatsUsersCount()
225225 let totalAmountKEY = keyLockParamTotalAmount()
226226 let locksDurationSumInBlocks = getIntOrZero(this, locksDurationSumInBlocksKEY)
227227 let locksCount = getIntOrZero(this, locksCountKEY)
228228 let usersCount = getIntOrZero(this, usersCountKEY)
229229 let totalAmount = getIntOrZero(this, totalAmountKEY)
230230 [IntegerEntry(locksDurationSumInBlocksKEY, (locksDurationSumInBlocks + durationInc)), IntegerEntry(locksCountKEY, (locksCount + lockCountInc)), IntegerEntry(usersCountKEY, (usersCount + usersCountInc)), IntegerEntry(totalAmountKEY, (totalAmount + totalLockedInc))]
231231 }
232232
233233
234234 func calcGwxAmount (kRaw,bRaw,h) = {
235235 let SCALE = 1000
236236 (((kRaw * h) + bRaw) / SCALE)
237237 }
238238
239239
240240 func LockParamsEntry (userAddress,userNum,amount,start,duration,k,b,period) = {
241241 let userAmountKEY = keyLockParamUserAmount(userNum)
242242 let startBlockKEY = keyLockParamStartBlock(userNum)
243243 let durationKEY = keyLockParamDuration(userNum)
244244 let kKEY = keyLockParamK(userNum)
245245 let bKEY = keyLockParamB(userNum)
246246 let kByPerioKEY = keyLockParamByPeriodK(userNum, period)
247247 let bByPeriodKEY = keyLockParamByPeriodB(userNum, period)
248248 let gwxAmount = calcGwxAmount(k, b, height)
249249 [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))]
250250 }
251251
252252
253253 func extractOptionalPaymentAmountOrFail (i,expectedAssetId) = if ((size(i.payments) > 1))
254254 then throw("only one payment is allowed")
255255 else if ((size(i.payments) == 0))
256256 then 0
257257 else {
258258 let pmt = i.payments[0]
259259 if ((value(pmt.assetId) != expectedAssetId))
260260 then throw("invalid asset id in payment")
261261 else pmt.amount
262262 }
263263
264264
265265 func calcCurrentGwxAmount (userAddress) = {
266266 let EMPTY = "empty"
267267 let user2NumMappingKEY = keyUser2NumMapping(userAddress)
268268 let userNum = valueOrElse(getString(user2NumMappingKEY), EMPTY)
269269 let k = valueOrElse(getInteger(keyLockParamK(userNum)), 0)
270270 let b = valueOrElse(getInteger(keyLockParamB(userNum)), 0)
271271 let gwxAmountCalc = calcGwxAmount(k, b, height)
272272 let gwxAmount = if ((0 > gwxAmountCalc))
273273 then 0
274274 else gwxAmountCalc
275275 gwxAmount
276276 }
277277
278278
279279 func internalClaimWxBoost (userAddressStr) = {
280- let userRecordArray = readLockParamsRecordOrFail(userAddressStr)
281- let userNumStr = userRecordArray[IdxLockUserNum]
282- let wxEmissionPerBlock = getIntOrFail(emissionContract, keyEmissionRatePerBlockCurrent())
283- let emissionStart = getIntOrFail(emissionContract, keyEmissionStartBlock())
284- let emissionEnd = getIntOrFail(emissionContract, keyEmissionEndBlock())
285- let h = if ((height > emissionEnd))
286- then emissionEnd
287- else height
288- let dh = max([(h - emissionStart), 0])
289- let userBoostEmissionLastIntegralKEY = keyUserBoostEmissionLastINTEGRAL(userNumStr)
290- let userBoostEmissionLastIntegral = getIntOrZero(this, userBoostEmissionLastIntegralKEY)
291- let boostEmissionIntegral = (((wxEmissionPerBlock * dh) * 2) / 3)
292- let userBoostEmissionIntegral = (boostEmissionIntegral - userBoostEmissionLastIntegral)
293- if ((0 > userBoostEmissionIntegral))
294- then throw("wrong calculations")
280+ let EMPTY = "EMPTY"
281+ let userRecordOrEmpty = valueOrElse(getString(this, keyLockParamsRecord(userAddressStr)), EMPTY)
282+ if ((userRecordOrEmpty == EMPTY))
283+ then $Tuple2(0, nil)
295284 else {
296- let userMaxBoostIntegralKEY = keyUserMaxBoostINTEGRAL(userNumStr)
297- let totalMaxBoostIntegralKEY = keyTotalMaxBoostINTEGRAL()
298- let userBoostAvalaibleToClaimTotalKEY = keyUserBoostAvalaibleToClaimTotal(userNumStr)
299- let userMaxBoostInt = getIntOrZero(this, userMaxBoostIntegralKEY)
300- let totalMaxBoostInt = getIntOrZero(this, totalMaxBoostIntegralKEY)
301- let userBoostAvaliableToClaimTotal = getIntOrZero(this, userBoostAvalaibleToClaimTotalKEY)
302- let userBoostAvaliableToClaimTotalNew = (userBoostAvaliableToClaimTotal + fraction(userBoostEmissionIntegral, userMaxBoostInt, totalMaxBoostInt))
303- let userBoostClaimedKEY = keyUserBoostClaimed(userNumStr)
304- let userBoostClaimed = getIntOrZero(this, userBoostClaimedKEY)
305- let userBoostAvailable = (userBoostAvaliableToClaimTotalNew - userBoostClaimed)
306- let dataState = [IntegerEntry(userBoostAvalaibleToClaimTotalKEY, userBoostAvaliableToClaimTotalNew), IntegerEntry(userBoostEmissionLastIntegralKEY, boostEmissionIntegral)]
307- $Tuple2(userBoostAvailable, dataState)
285+ let userRecordArray = split(userRecordOrEmpty, SEP)
286+ let userNumStr = userRecordArray[IdxLockUserNum]
287+ let wxEmissionPerBlock = getIntOrFail(emissionContract, keyEmissionRatePerBlockCurrent())
288+ let emissionStart = getIntOrFail(emissionContract, keyEmissionStartBlock())
289+ let emissionEnd = getIntOrFail(emissionContract, keyEmissionEndBlock())
290+ let h = if ((height > emissionEnd))
291+ then emissionEnd
292+ else height
293+ let dh = max([(h - emissionStart), 0])
294+ let userBoostEmissionLastIntegralKEY = keyUserBoostEmissionLastINTEGRAL(userNumStr)
295+ let userBoostEmissionLastIntegral = getIntOrZero(this, userBoostEmissionLastIntegralKEY)
296+ let boostEmissionIntegral = (((wxEmissionPerBlock * dh) * 2) / 3)
297+ let userBoostEmissionIntegral = (boostEmissionIntegral - userBoostEmissionLastIntegral)
298+ if ((0 > userBoostEmissionIntegral))
299+ then throw("wrong calculations")
300+ else {
301+ let userMaxBoostIntegralKEY = keyUserMaxBoostINTEGRAL(userNumStr)
302+ let totalMaxBoostIntegralKEY = keyTotalMaxBoostINTEGRAL()
303+ let userBoostAvalaibleToClaimTotalKEY = keyUserBoostAvalaibleToClaimTotal(userNumStr)
304+ let userMaxBoostInt = getIntOrZero(this, userMaxBoostIntegralKEY)
305+ let totalMaxBoostInt = getIntOrZero(this, totalMaxBoostIntegralKEY)
306+ let userBoostAvaliableToClaimTotal = getIntOrZero(this, userBoostAvalaibleToClaimTotalKEY)
307+ let userBoostAvaliableToClaimTotalNew = (userBoostAvaliableToClaimTotal + fraction(userBoostEmissionIntegral, userMaxBoostInt, totalMaxBoostInt))
308+ let userBoostClaimedKEY = keyUserBoostClaimed(userNumStr)
309+ let userBoostClaimed = getIntOrZero(this, userBoostClaimedKEY)
310+ let userBoostAvailable = (userBoostAvaliableToClaimTotalNew - userBoostClaimed)
311+ let dataState = [IntegerEntry(userBoostAvalaibleToClaimTotalKEY, userBoostAvaliableToClaimTotalNew), IntegerEntry(userBoostEmissionLastIntegralKEY, boostEmissionIntegral)]
312+ $Tuple2(userBoostAvailable, dataState)
313+ }
308314 }
309315 }
310316
311317
312318 @Callable(i)
313319 func constructor (factoryAddressStr,lockAssetIdStr,minLockAmount,minDuration,maxDuration,mathContract) = if ((this != i.caller))
314320 then throw("not authorized")
315321 else ([IntegerEntry(keyNextUserNum(), 0), StringEntry(keyConfig(), formatConfig(lockAssetIdStr, minLockAmount, minDuration, maxDuration, mathContract)), StringEntry(keyFactoryAddress(), factoryAddressStr)] ++ StatsEntry(0, 0, 0, 0))
316322
317323
318324
319325 @Callable(i)
320326 func lock (duration) = {
321327 let cfgArray = readConfigArrayOrFail()
322328 let assetIdStr = cfgArray[IdxCfgAssetId]
323329 let assetId = fromBase58String(assetIdStr)
324330 let minLockAmount = parseIntValue(cfgArray[IdxCfgMinLockAmount])
325331 let minLockDuration = parseIntValue(cfgArray[IdxCfgMinLockDuration])
326332 let maxLockDuration = parseIntValue(cfgArray[IdxCfgMaxLockDuration])
327333 let mathContract = addressFromStringValue(cfgArray[IdxCfgMathContract])
328334 if ((size(i.payments) != 1))
329335 then throw("invalid payment - exact one payment must be attached")
330336 else {
331337 let pmt = i.payments[0]
332338 let pmtAmount = pmt.amount
333339 if ((assetId != value(pmt.assetId)))
334340 then throw((("invalid asset is in payment - " + assetIdStr) + " is expected"))
335341 else {
336342 let nextUserNumKEY = keyNextUserNum()
337343 let userAddressStr = toString(i.caller)
338344 let userIsExisting = isDefined(getString(keyUser2NumMapping(userAddressStr)))
339345 let userNumStr = if (userIsExisting)
340346 then value(getString(keyUser2NumMapping(userAddressStr)))
341347 else toString(getIntOrFail(this, nextUserNumKEY))
342348 let userNum = parseIntValue(userNumStr)
343349 let lockStart = height
344350 let startBlockKEY = keyLockParamStartBlock(userNumStr)
345351 let durationKEY = keyLockParamDuration(userNumStr)
346352 let userAmountKEY = keyLockParamUserAmount(userNumStr)
347353 if ((minLockAmount > pmtAmount))
348354 then throw(("amount is less then minLockAmount=" + toString(minLockAmount)))
349355 else if ((minLockDuration > duration))
350356 then throw(("passed duration is less then minLockDuration=" + toString(minLockDuration)))
351357 else if ((duration > maxLockDuration))
352358 then throw(("passed duration is greater then maxLockDuration=" + toString(maxLockDuration)))
353359 else if (if (userIsExisting)
354360 then ((getIntOrFail(this, startBlockKEY) + getIntOrFail(this, durationKEY)) >= lockStart)
355361 else false)
356362 then throw("there is an active lock - consider to use increaseLock")
357363 else {
358364 let coeffX8 = fraction(duration, MULT8, maxLockDuration)
359365 let gWxAmountStart = fraction(pmtAmount, coeffX8, MULT8)
360366 let gWxParamsResultList = asAnyList(invoke(mathContract, "calcGwxParamsREADONLY", [gWxAmountStart, lockStart, duration], nil))
361367 let k = asInt(gWxParamsResultList[0])
362368 let b = asInt(gWxParamsResultList[1])
363369 let period = toString(asInt(gWxParamsResultList[2]))
364370 let wxEmissionPerBlock = getIntOrFail(emissionContract, keyEmissionRatePerBlockCurrent())
365371 let emissionStart = getIntOrFail(emissionContract, keyEmissionStartBlock())
366372 let emissionEnd = getIntOrFail(emissionContract, keyEmissionEndBlock())
367373 let h = if ((height > emissionEnd))
368374 then emissionEnd
369375 else height
370376 let dh = max([(h - emissionStart), 0])
371377 let userBoostEmissionLastIntegralKEY = keyUserBoostEmissionLastINTEGRAL(userNumStr)
372378 let boostEmissionIntegral = (((wxEmissionPerBlock * dh) * 2) / 3)
373379 let userMaxBoostIntegralKEY = keyUserMaxBoostINTEGRAL(userNumStr)
374380 let totalMaxBoostIntegralKEY = keyTotalMaxBoostINTEGRAL()
375381 let userMaxBoostInt = ((gWxAmountStart * duration) / 2)
376382 let totalMaxBoostInt = getIntOrZero(this, totalMaxBoostIntegralKEY)
377383 let arr = if (userIsExisting)
378384 then nil
379385 else [IntegerEntry(nextUserNumKEY, (userNum + 1)), StringEntry(keyUser2NumMapping(userAddressStr), userNumStr), StringEntry(keyNum2UserMapping(userNumStr), userAddressStr)]
380386 ((((arr ++ LockParamsEntry(userAddressStr, userNumStr, pmtAmount, lockStart, duration, k, b, period)) ++ StatsEntry(pmtAmount, duration, 1, if (userIsExisting)
381387 then 0
382388 else 1)) :+ HistoryEntry("lock", userAddressStr, pmtAmount, lockStart, duration, k, b, i)) ++ [IntegerEntry(userBoostEmissionLastIntegralKEY, boostEmissionIntegral), IntegerEntry(userMaxBoostIntegralKEY, userMaxBoostInt), IntegerEntry(totalMaxBoostIntegralKEY, (totalMaxBoostInt + userMaxBoostInt))])
383389 }
384390 }
385391 }
386392 }
387393
388394
389395
390396 @Callable(i)
391397 func increaseLock (deltaDuration) = {
392398 let cfgArray = readConfigArrayOrFail()
393399 let assetIdStr = cfgArray[IdxCfgAssetId]
394400 let assetId = fromBase58String(assetIdStr)
395401 let minLockDuration = parseIntValue(cfgArray[IdxCfgMinLockDuration])
396402 let maxLockDuration = parseIntValue(cfgArray[IdxCfgMaxLockDuration])
397403 let mathContract = addressFromStringValue(cfgArray[IdxCfgMathContract])
398404 let pmtAmount = extractOptionalPaymentAmountOrFail(i, assetId)
399405 let userAddressStr = toString(i.caller)
400406 let userRecordArray = readLockParamsRecordOrFail(userAddressStr)
401407 let userNumStr = userRecordArray[IdxLockUserNum]
402408 let userAmount = parseIntValue(userRecordArray[IdxLockAmount])
403409 let lockStart = parseIntValue(userRecordArray[IdxLockStart])
404410 let lockDuration = parseIntValue(userRecordArray[IdxLockDuration])
405411 let lockEnd = (lockStart + lockDuration)
406412 let remainingDuration = max([(lockEnd - height), 0])
407413 let userAmountNew = (userAmount + pmtAmount)
408414 let lockDurationNew = (remainingDuration + deltaDuration)
409415 if ((0 > deltaDuration))
410416 then throw("duration is less then zero")
411417 else if ((minLockDuration > lockDurationNew))
412418 then throw(("lockDurationNew is less then minLockDuration=" + toString(minLockDuration)))
413419 else if ((lockDurationNew > maxLockDuration))
414420 then throw(("deltaDuration + existedLockDuration is greater then maxLockDuration=" + toString(maxLockDuration)))
415421 else if (if ((height >= lockEnd))
416422 then (userAmount > 0)
417423 else false)
418424 then throw("there is an expired lock - need to unlock before new lock")
419425 else {
420426 let coeffX8 = fraction(lockDurationNew, MULT8, maxLockDuration)
421427 let gWxAmountStart = fraction(userAmountNew, coeffX8, MULT8)
422428 let gWxParamsResultList = asAnyList(invoke(mathContract, "calcGwxParamsREADONLY", [gWxAmountStart, height, lockDurationNew], nil))
423429 let k = asInt(gWxParamsResultList[0])
424430 let b = asInt(gWxParamsResultList[1])
425431 let period = toString(asInt(gWxParamsResultList[2]))
426432 let wxEmissionPerBlock = getIntOrFail(emissionContract, keyEmissionRatePerBlockCurrent())
427433 let emissionStart = getIntOrFail(emissionContract, keyEmissionStartBlock())
428434 let emissionEnd = getIntOrFail(emissionContract, keyEmissionEndBlock())
429435 let h = if ((height > emissionEnd))
430436 then emissionEnd
431437 else height
432438 let dh = max([(h - emissionStart), 0])
433439 let userBoostEmissionLastIntegralKEY = keyUserBoostEmissionLastINTEGRAL(userNumStr)
434440 let userBoostEmissionLastIntegral = getIntOrZero(this, userBoostEmissionLastIntegralKEY)
435441 let boostEmissionIntegral = (((wxEmissionPerBlock * dh) * 2) / 3)
436442 let userBoostEmissionIntegral = (boostEmissionIntegral - userBoostEmissionLastIntegral)
437443 if ((0 > userBoostEmissionIntegral))
438444 then throw("wrong calculations")
439445 else {
440446 let userMaxBoostIntegralKEY = keyUserMaxBoostINTEGRAL(userNumStr)
441447 let totalMaxBoostIntegralKEY = keyTotalMaxBoostINTEGRAL()
442448 let userBoostAvalaibleToClaimTotalKEY = keyUserBoostAvalaibleToClaimTotal(userNumStr)
443449 let userMaxBoostInt = getIntOrZero(this, userMaxBoostIntegralKEY)
444450 let totalMaxBoostInt = getIntOrZero(this, totalMaxBoostIntegralKEY)
445451 let userBoostAvaliableToClaimTotal = getIntOrZero(this, userBoostAvalaibleToClaimTotalKEY)
446452 let userBoostAvaliableToClaimTotalNew = (userBoostAvaliableToClaimTotal + fraction(userBoostEmissionIntegral, userMaxBoostInt, totalMaxBoostInt))
447453 let userMaxBoostIntNew = ((gWxAmountStart * lockDurationNew) / 2)
448454 let currUserGwx = calcCurrentGwxAmount(userAddressStr)
449455 let remainingUserMaxBoostInt = ((currUserGwx * remainingDuration) / 2)
450456 let userMaxBoostIntDiff = (userMaxBoostIntNew - remainingUserMaxBoostInt)
451457 if ((0 > userMaxBoostIntDiff))
452458 then throw("wrong calculations")
453459 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)])
454460 }
455461 }
456462 }
457463
458464
459465
460466 @Callable(i)
461467 func claimWxBoost (userAddressStr) = if ((stakingContract != i.caller))
462468 then throw("permissions denied")
463469 else {
464- let $t02175021824 = internalClaimWxBoost(userAddressStr)
465- let userBoostAvailable = $t02175021824._1
466- let dataState = $t02175021824._2
470+ let $t02190721981 = internalClaimWxBoost(userAddressStr)
471+ let userBoostAvailable = $t02190721981._1
472+ let dataState = $t02190721981._2
467473 $Tuple2(dataState, [userBoostAvailable])
468474 }
469475
470476
471477
472478 @Callable(i)
473479 func claimWxBoostREADONLY (userAddressStr) = {
474- let $t02193422008 = internalClaimWxBoost(userAddressStr)
475- let userBoostAvailable = $t02193422008._1
476- let dataState = $t02193422008._2
480+ let $t02209122165 = internalClaimWxBoost(userAddressStr)
481+ let userBoostAvailable = $t02209122165._1
482+ let dataState = $t02209122165._2
477483 $Tuple2(nil, [userBoostAvailable])
478484 }
479485
480486
481487
482488 @Callable(i)
483489 func unlock (userAddress) = {
484490 let userRecordArray = readLockParamsRecordOrFail(userAddress)
485491 let userNumStr = userRecordArray[IdxLockUserNum]
486492 let userAmount = parseIntValue(userRecordArray[IdxLockAmount])
487493 let lockStart = parseIntValue(userRecordArray[IdxLockStart])
488494 let lockDuration = parseIntValue(userRecordArray[IdxLockDuration])
489495 let lockEnd = (lockStart + lockDuration)
490496 let cfgArray = readConfigArrayOrFail()
491497 let assetId = fromBase58String(cfgArray[IdxCfgAssetId])
492498 if ((lockEnd >= height))
493499 then throw((("wait " + toString(lockEnd)) + " to unlock"))
494500 else if ((0 >= userAmount))
495501 then throw("nothing to unlock")
496502 else {
497503 let period = "0"
498504 (((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))
499505 }
500506 }
501507
502508
503509
504510 @Callable(i)
505511 func gwxUserInfoREADONLY (userAddress) = {
506512 let gwxAmount = calcCurrentGwxAmount(userAddress)
507513 $Tuple2(nil, [gwxAmount])
508514 }
509515
510516

github/deemru/w8io/169f3d6 
83.76 ms