tx · AkxFVWFQrYPSAVPouQo5m9z3aXGP4AatVbMDh4iNxcyo

3Myn55vLkduxbX3ZXfiDCZhaQsLxYp1kmCy:  -0.01000000 Waves

2021.12.02 10:24 [1816352] smart account 3Myn55vLkduxbX3ZXfiDCZhaQsLxYp1kmCy > SELF 0.00000000 Waves

{ "type": 13, "id": "AkxFVWFQrYPSAVPouQo5m9z3aXGP4AatVbMDh4iNxcyo", "fee": 1000000, "feeAssetId": null, "timestamp": 1638429880245, "version": 1, "sender": "3Myn55vLkduxbX3ZXfiDCZhaQsLxYp1kmCy", "senderPublicKey": "9W33iCCNfmFxUbiC6XZcH5x7f6xfwC7Jb3BoExT5q2PV", "proofs": [ "2TXK7UFBsg7FTMzTdu6Vnns1hyggzPBmJiQAtarUzw6new9w7LYMgHzYGjMN1dvZoYBmEkCVWZjKKAUe9aRbK2FC" ], "script": "base64:AAIFAAAAAAAAACwIAhIICgYICAEBAQgSAwoBARIDCgEBEgQKAggIEgQKAggIEgMKAQgSAwoBCAAAAFQAAAAAA1NFUAIAAAACX18AAAAABlNDQUxFOAAAAAAAAAAACAAAAAAFTVVMVDgAAAAAAAX14QAAAAAADlBPT0xXRUlHSFRNVUxUBQAAAAVNVUxUOAEAAAAPZ2V0U3RyaW5nT3JGYWlsAAAAAgAAAAdhZGRyZXNzAAAAA2tleQkBAAAAE3ZhbHVlT3JFcnJvck1lc3NhZ2UAAAACCQAEHQAAAAIFAAAAB2FkZHJlc3MFAAAAA2tleQkAASwAAAACCQABLAAAAAICAAAAD21hbmRhdG9yeSB0aGlzLgUAAAADa2V5AgAAAA8gaXMgbm90IGRlZmluZWQBAAAADGdldEludE9yWmVybwAAAAIAAAAHYWRkcmVzcwAAAANrZXkJAQAAAAt2YWx1ZU9yRWxzZQAAAAIJAAQaAAAAAgUAAAAHYWRkcmVzcwUAAAADa2V5AAAAAAAAAAAAAQAAAA9nZXRJbnRPckRlZmF1bHQAAAADAAAAB2FkZHJlc3MAAAADa2V5AAAACmRlZmF1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ABRQAAAACBQAAAANuaWwJAARMAAAAAgUAAAAJZ3d4QW1vdW50BQAAAANuaWwAAAAAk3mwkA==", "chainId": 84, "height": 1816352, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EJUHr7jSppSwQkf45TYcWhLryTd7J2dLckt1u7kcp85r Next: 2eS9b612jnPujdq6fhiQ6a4MZvhPnJ8mqivpgKZ6Ub5y Diff:
OldNewDifferences
66 let SCALE8 = 8
77
88 let MULT8 = 100000000
9+
10+let POOLWEIGHTMULT = MULT8
911
1012 func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), (("mandatory this." + key) + " is not defined"))
1113
279281 }
280282
281283
282-func internalClaimWxBoost (userAddressStr) = {
284+func internalClaimWxBoost (lpAssetIdStr,userAddressStr,readOnly) = {
283285 let EMPTY = "EMPTY"
284286 let userRecordOrEmpty = valueOrElse(getString(this, keyLockParamsRecord(userAddressStr)), EMPTY)
285287 if ((userRecordOrEmpty == EMPTY))
287289 else {
288290 let userRecordArray = split(userRecordOrEmpty, SEP)
289291 let userNumStr = userRecordArray[IdxLockUserNum]
292+ let EMPTYSTR = "empty"
293+ let poolWeight = if ((lpAssetIdStr != EMPTYSTR))
294+ then {
295+ let poolAddressStr = valueOrErrorMessage(getString(factoryContract, keyFactoryLp2AssetsMapping(lpAssetIdStr)), ("unsupported lp asset " + lpAssetIdStr))
296+ getIntegerValue(factoryContract, keyFactoryPoolWeight(poolAddressStr))
297+ }
298+ else if (readOnly)
299+ then 0
300+ else throw(("not readonly mode: unsupported lp asset " + lpAssetIdStr))
290301 let wxEmissionPerBlock = getIntOrFail(emissionContract, keyEmissionRatePerBlockCurrent())
291302 let emissionStart = getIntOrFail(emissionContract, keyEmissionStartBlock())
292303 let emissionEnd = getIntOrFail(emissionContract, keyEmissionEndBlock())
310321 let userCurrGwx = calcCurrentGwxAmount(userAddressStr)
311322 let userBoostAvalaibleToClaimTotalKEY = keyUserBoostAvalaibleToClaimTotal(userNumStr)
312323 let userBoostAvaliableToClaimTotal = getIntOrZero(this, userBoostAvalaibleToClaimTotalKEY)
324+ let poolUserBoostEmissionIntegral = fraction(userBoostEmissionIntegral, poolWeight, POOLWEIGHTMULT)
313325 let userBoostAvaliableToClaimTotalNew = (userBoostAvaliableToClaimTotal + (if ((totalCachedGwx == 0))
314326 then 0
315- else fraction(userBoostEmissionIntegral, userCurrGwx, totalCachedGwx)))
327+ else fraction(poolUserBoostEmissionIntegral, userCurrGwx, totalCachedGwx)))
316328 let userBoostClaimedKEY = keyUserBoostClaimed(userNumStr)
317329 let userBoostClaimed = getIntOrZero(this, userBoostClaimedKEY)
318330 let userBoostAvailable = (userBoostAvaliableToClaimTotalNew - userBoostClaimed)
484496
485497
486498 @Callable(i)
487-func claimWxBoost (userAddressStr) = if ((stakingContract != i.caller))
499+func claimWxBoost (lpAssetIdStr,userAddressStr) = if ((stakingContract != i.caller))
488500 then throw("permissions denied")
489501 else {
490- let $t02346223543 = internalClaimWxBoost(userAddressStr)
491- let userBoostAvailable = $t02346223543._1
492- let dataState = $t02346223543._2
493- let debug = $t02346223543._3
502+ let $t02409824200 = internalClaimWxBoost(lpAssetIdStr, userAddressStr, false)
503+ let userBoostAvailable = $t02409824200._1
504+ let dataState = $t02409824200._2
505+ let debug = $t02409824200._3
494506 $Tuple2(dataState, [userBoostAvailable])
495507 }
496508
497509
498510
499511 @Callable(i)
500-func claimWxBoostREADONLY (userAddressStr) = {
501- let $t02365323734 = internalClaimWxBoost(userAddressStr)
502- let userBoostAvailable = $t02365323734._1
503- let dataState = $t02365323734._2
504- let debug = $t02365323734._3
512+func claimWxBoostREADONLY (lpAssetIdStr,userAddressStr) = {
513+ let $t02433224433 = internalClaimWxBoost(lpAssetIdStr, userAddressStr, true)
514+ let userBoostAvailable = $t02433224433._1
515+ let dataState = $t02433224433._2
516+ let debug = $t02433224433._3
505517 $Tuple2(nil, [userBoostAvailable, debug])
506518 }
507519
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
9+
10+let POOLWEIGHTMULT = MULT8
911
1012 func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), (("mandatory this." + key) + " is not defined"))
1113
1214
1315 func getIntOrZero (address,key) = valueOrElse(getInteger(address, key), 0)
1416
1517
1618 func getIntOrDefault (address,key,defaultVal) = valueOrElse(getInteger(address, key), defaultVal)
1719
1820
1921 func getIntOrFail (address,key) = valueOrErrorMessage(getInteger(address, key), (("mandatory this." + key) + " is not defined"))
2022
2123
2224 func asAnyList (val) = match val {
2325 case valAnyLyst: List[Any] =>
2426 valAnyLyst
2527 case _ =>
2628 throw("fail to cast into List[Any]")
2729 }
2830
2931
3032 func asInt (val) = match val {
3133 case valInt: Int =>
3234 valInt
3335 case _ =>
3436 throw("fail to cast into Int")
3537 }
3638
3739
3840 func keyFactoryAddress () = "%s%s__config__factoryAddress"
3941
4042
4143 let IdxFactoryCfgStakingDapp = 1
4244
4345 let IdxFactoryCfgBoostingDapp = 2
4446
4547 let IdxFactoryCfgIdoDapp = 3
4648
4749 let IdxFactoryCfgTeamDapp = 4
4850
4951 let IdxFactoryCfgEmissionDapp = 5
5052
5153 let IdxFactoryCfgRestDapp = 6
5254
5355 let IdxFactoryCfgSlippageDapp = 7
5456
5557 func keyFactoryCfg () = "%s__factoryConfig"
5658
5759
5860 func keyFactoryLp2AssetsMapping (lpAssetStr) = makeString(["%s%s%s", lpAssetStr, "mappings__lpAsset2PoolContract"], SEP)
5961
6062
6163 func keyFactoryLpList () = "%s__lpTokensList"
6264
6365
6466 func keyFactoryLpAssetToPoolContractAddress (lpAssetStr) = makeString(["%s%s%s", lpAssetStr, "mappings__lpAsset2PoolContract"], SEP)
6567
6668
6769 func keyFactoryPoolWeight (contractAddress) = makeString(["%s%s", "poolWeight", contractAddress], SEP)
6870
6971
7072 func readFactoryAddressOrFail () = addressFromStringValue(getStringOrFail(this, keyFactoryAddress()))
7173
7274
7375 func readLpList () = split(valueOrElse(getString(readFactoryAddressOrFail(), keyFactoryLpList()), ""), SEP)
7476
7577
7678 func readFactoryCfgOrFail (factory) = split(getStringOrFail(factory, keyFactoryCfg()), SEP)
7779
7880
7981 func getBoostingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgBoostingDapp])
8082
8183
8284 func getEmissionAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgEmissionDapp])
8385
8486
8587 func getStakingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgStakingDapp])
8688
8789
8890 func keyEmissionRatePerBlockCurrent () = "%s%s__ratePerBlock__current"
8991
9092
9193 func keyEmissionRatePerBlockMaxCurrent () = "%s%s__ratePerBlockMax__current"
9294
9395
9496 func keyEmissionStartBlock () = "%s%s__emission__startBlock"
9597
9698
9799 func keyEmissionDurationInBlocks () = "%s%s__emission__duration"
98100
99101
100102 func keyEmissionEndBlock () = "%s%s__emission__endBlock"
101103
102104
103105 let IdxCfgAssetId = 1
104106
105107 let IdxCfgMinLockAmount = 2
106108
107109 let IdxCfgMinLockDuration = 3
108110
109111 let IdxCfgMaxLockDuration = 4
110112
111113 let IdxCfgMathContract = 5
112114
113115 func keyConfig () = "%s__config"
114116
115117
116118 func readConfigArrayOrFail () = split(getStringOrFail(this, keyConfig()), SEP)
117119
118120
119121 func formatConfigS (assetId,minLockAmount,minLockDuration,maxLockDuration,mathContract) = makeString(["%s%d%d%d", assetId, minLockAmount, minLockDuration, maxLockDuration, mathContract], SEP)
120122
121123
122124 func formatConfig (assetId,minLockAmount,minLockDuration,maxLockDuration,mathContract) = formatConfigS(assetId, toString(minLockAmount), toString(minLockDuration), toString(maxLockDuration), mathContract)
123125
124126
125127 let IdxLockUserNum = 1
126128
127129 let IdxLockAmount = 2
128130
129131 let IdxLockStart = 3
130132
131133 let IdxLockDuration = 4
132134
133135 let IdxLockParamK = 5
134136
135137 let IdxLockParamB = 6
136138
137139 func keyLockParamsRecord (userAddress) = makeString(["%s%s__lock", userAddress], SEP)
138140
139141
140142 func readLockParamsRecordOrFail (userAddress) = split(getStringOrFail(this, keyLockParamsRecord(userAddress)), SEP)
141143
142144
143145 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)
144146
145147
146148 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))
147149
148150
149151 func keyNextUserNum () = "%s__nextUserNum"
150152
151153
152154 func keyUser2NumMapping (userAddress) = makeString(["%s%s%s__mapping__user2num", userAddress], SEP)
153155
154156
155157 func keyNum2UserMapping (num) = makeString(["%s%s%s__mapping__num2user", num], SEP)
156158
157159
158160 func keyLockParamUserAmount (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "amount"], SEP)
159161
160162
161163 func keyLockParamStartBlock (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "start"], SEP)
162164
163165
164166 func keyLockParamDuration (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "duration"], SEP)
165167
166168
167169 func keyLockParamK (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "k"], SEP)
168170
169171
170172 func keyLockParamB (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "b"], SEP)
171173
172174
173175 func keyLockParamByPeriodK (userNum,period) = makeString(["%s%d%s%d__paramByPeriod", userNum, "k", period], SEP)
174176
175177
176178 func keyLockParamByPeriodB (userNum,period) = makeString(["%s%d%s%d__paramByPeriod", userNum, "b", period], SEP)
177179
178180
179181 func keyLockParamTotalAmount () = "%s%s__stats__activeTotalLocked"
180182
181183
182184 func keyStatsLocksDurationSumInBlocks () = "%s%s__stats__locksDurationSumInBlocks"
183185
184186
185187 func keyStatsLocksCount () = "%s%s__stats__locksCount"
186188
187189
188190 func keyStatsUsersCount () = "%s%s__stats__activeUsersCount"
189191
190192
191193 func keyUserBoostEmissionLastINTEGRAL (userNum) = makeString(["%s%d__userBoostEmissionLastInt", userNum], SEP)
192194
193195
194196 func keyUserMaxBoostINTEGRAL (userNum) = makeString(["%s%d__maxBoostInt", userNum], SEP)
195197
196198
197199 func keyTotalMaxBoostINTEGRAL () = "%s%s__maxBoostInt__total"
198200
199201
200202 func keyUserBoostAvalaibleToClaimTotal (userNum) = makeString(["%s%d__userBoostAvaliableToClaimTotal", userNum], SEP)
201203
202204
203205 func keyUserBoostClaimed (userNum) = makeString(["%s%d__userBoostClaimed", userNum], SEP)
204206
205207
206208 func keyTotalCachedGwx () = "%s%s__gwxCached__total"
207209
208210
209211 let factoryContract = readFactoryAddressOrFail()
210212
211213 let factoryCfg = readFactoryCfgOrFail(factoryContract)
212214
213215 let emissionContract = getEmissionAddressOrFail(factoryCfg)
214216
215217 let stakingContract = getStakingAddressOrFail(factoryCfg)
216218
217219 func HistoryEntry (type,user,amount,lockStart,duration,k,b,i) = {
218220 let historyKEY = makeString(["%s%s%s%s__history", type, user, toBase58String(i.transactionId)], SEP)
219221 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)
220222 StringEntry(historyKEY, historyDATA)
221223 }
222224
223225
224226 func StatsEntry (totalLockedInc,durationInc,lockCountInc,usersCountInc) = {
225227 let locksDurationSumInBlocksKEY = keyStatsLocksDurationSumInBlocks()
226228 let locksCountKEY = keyStatsLocksCount()
227229 let usersCountKEY = keyStatsUsersCount()
228230 let totalAmountKEY = keyLockParamTotalAmount()
229231 let locksDurationSumInBlocks = getIntOrZero(this, locksDurationSumInBlocksKEY)
230232 let locksCount = getIntOrZero(this, locksCountKEY)
231233 let usersCount = getIntOrZero(this, usersCountKEY)
232234 let totalAmount = getIntOrZero(this, totalAmountKEY)
233235 [IntegerEntry(locksDurationSumInBlocksKEY, (locksDurationSumInBlocks + durationInc)), IntegerEntry(locksCountKEY, (locksCount + lockCountInc)), IntegerEntry(usersCountKEY, (usersCount + usersCountInc)), IntegerEntry(totalAmountKEY, (totalAmount + totalLockedInc))]
234236 }
235237
236238
237239 func calcGwxAmount (kRaw,bRaw,h) = {
238240 let SCALE = 1000
239241 (((kRaw * h) + bRaw) / SCALE)
240242 }
241243
242244
243245 func LockParamsEntry (userAddress,userNum,amount,start,duration,k,b,period) = {
244246 let userAmountKEY = keyLockParamUserAmount(userNum)
245247 let startBlockKEY = keyLockParamStartBlock(userNum)
246248 let durationKEY = keyLockParamDuration(userNum)
247249 let kKEY = keyLockParamK(userNum)
248250 let bKEY = keyLockParamB(userNum)
249251 let kByPerioKEY = keyLockParamByPeriodK(userNum, period)
250252 let bByPeriodKEY = keyLockParamByPeriodB(userNum, period)
251253 let gwxAmount = calcGwxAmount(k, b, height)
252254 [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))]
253255 }
254256
255257
256258 func extractOptionalPaymentAmountOrFail (i,expectedAssetId) = if ((size(i.payments) > 1))
257259 then throw("only one payment is allowed")
258260 else if ((size(i.payments) == 0))
259261 then 0
260262 else {
261263 let pmt = i.payments[0]
262264 if ((value(pmt.assetId) != expectedAssetId))
263265 then throw("invalid asset id in payment")
264266 else pmt.amount
265267 }
266268
267269
268270 func calcCurrentGwxAmount (userAddress) = {
269271 let EMPTY = "empty"
270272 let user2NumMappingKEY = keyUser2NumMapping(userAddress)
271273 let userNum = valueOrElse(getString(user2NumMappingKEY), EMPTY)
272274 let k = valueOrElse(getInteger(keyLockParamK(userNum)), 0)
273275 let b = valueOrElse(getInteger(keyLockParamB(userNum)), 0)
274276 let gwxAmountCalc = calcGwxAmount(k, b, height)
275277 let gwxAmount = if ((0 > gwxAmountCalc))
276278 then 0
277279 else gwxAmountCalc
278280 gwxAmount
279281 }
280282
281283
282-func internalClaimWxBoost (userAddressStr) = {
284+func internalClaimWxBoost (lpAssetIdStr,userAddressStr,readOnly) = {
283285 let EMPTY = "EMPTY"
284286 let userRecordOrEmpty = valueOrElse(getString(this, keyLockParamsRecord(userAddressStr)), EMPTY)
285287 if ((userRecordOrEmpty == EMPTY))
286288 then $Tuple3(0, nil, "userRecord::is::empty")
287289 else {
288290 let userRecordArray = split(userRecordOrEmpty, SEP)
289291 let userNumStr = userRecordArray[IdxLockUserNum]
292+ let EMPTYSTR = "empty"
293+ let poolWeight = if ((lpAssetIdStr != EMPTYSTR))
294+ then {
295+ let poolAddressStr = valueOrErrorMessage(getString(factoryContract, keyFactoryLp2AssetsMapping(lpAssetIdStr)), ("unsupported lp asset " + lpAssetIdStr))
296+ getIntegerValue(factoryContract, keyFactoryPoolWeight(poolAddressStr))
297+ }
298+ else if (readOnly)
299+ then 0
300+ else throw(("not readonly mode: unsupported lp asset " + lpAssetIdStr))
290301 let wxEmissionPerBlock = getIntOrFail(emissionContract, keyEmissionRatePerBlockCurrent())
291302 let emissionStart = getIntOrFail(emissionContract, keyEmissionStartBlock())
292303 let emissionEnd = getIntOrFail(emissionContract, keyEmissionEndBlock())
293304 let h = if ((height > emissionEnd))
294305 then emissionEnd
295306 else height
296307 let dh = max([(h - emissionStart), 0])
297308 let userBoostEmissionLastIntegralKEY = keyUserBoostEmissionLastINTEGRAL(userNumStr)
298309 let userBoostEmissionLastIntegral = getIntOrZero(this, userBoostEmissionLastIntegralKEY)
299310 let boostEmissionIntegral = (((wxEmissionPerBlock * dh) * 2) / 3)
300311 let userBoostEmissionIntegral = (boostEmissionIntegral - userBoostEmissionLastIntegral)
301312 if ((0 > userBoostEmissionIntegral))
302313 then throw("wrong calculations")
303314 else {
304315 let userMaxBoostIntegralKEY = keyUserMaxBoostINTEGRAL(userNumStr)
305316 let totalMaxBoostIntegralKEY = keyTotalMaxBoostINTEGRAL()
306317 let userMaxBoostInt = getIntOrZero(this, userMaxBoostIntegralKEY)
307318 let totalMaxBoostInt = getIntOrZero(this, totalMaxBoostIntegralKEY)
308319 let totalCachedGwxKEY = keyTotalCachedGwx()
309320 let totalCachedGwx = valueOrElse(getInteger(this, totalCachedGwxKEY), 0)
310321 let userCurrGwx = calcCurrentGwxAmount(userAddressStr)
311322 let userBoostAvalaibleToClaimTotalKEY = keyUserBoostAvalaibleToClaimTotal(userNumStr)
312323 let userBoostAvaliableToClaimTotal = getIntOrZero(this, userBoostAvalaibleToClaimTotalKEY)
324+ let poolUserBoostEmissionIntegral = fraction(userBoostEmissionIntegral, poolWeight, POOLWEIGHTMULT)
313325 let userBoostAvaliableToClaimTotalNew = (userBoostAvaliableToClaimTotal + (if ((totalCachedGwx == 0))
314326 then 0
315- else fraction(userBoostEmissionIntegral, userCurrGwx, totalCachedGwx)))
327+ else fraction(poolUserBoostEmissionIntegral, userCurrGwx, totalCachedGwx)))
316328 let userBoostClaimedKEY = keyUserBoostClaimed(userNumStr)
317329 let userBoostClaimed = getIntOrZero(this, userBoostClaimedKEY)
318330 let userBoostAvailable = (userBoostAvaliableToClaimTotalNew - userBoostClaimed)
319331 let dataState = [IntegerEntry(userBoostAvalaibleToClaimTotalKEY, userBoostAvaliableToClaimTotalNew), IntegerEntry(userBoostEmissionLastIntegralKEY, boostEmissionIntegral)]
320332 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))], "::")
321333 $Tuple3(userBoostAvailable, dataState, debug)
322334 }
323335 }
324336 }
325337
326338
327339 @Callable(i)
328340 func constructor (factoryAddressStr,lockAssetIdStr,minLockAmount,minDuration,maxDuration,mathContract) = if ((this != i.caller))
329341 then throw("not authorized")
330342 else ([IntegerEntry(keyNextUserNum(), 0), StringEntry(keyConfig(), formatConfig(lockAssetIdStr, minLockAmount, minDuration, maxDuration, mathContract)), StringEntry(keyFactoryAddress(), factoryAddressStr)] ++ StatsEntry(0, 0, 0, 0))
331343
332344
333345
334346 @Callable(i)
335347 func lock (duration) = {
336348 let cfgArray = readConfigArrayOrFail()
337349 let assetIdStr = cfgArray[IdxCfgAssetId]
338350 let assetId = fromBase58String(assetIdStr)
339351 let minLockAmount = parseIntValue(cfgArray[IdxCfgMinLockAmount])
340352 let minLockDuration = parseIntValue(cfgArray[IdxCfgMinLockDuration])
341353 let maxLockDuration = parseIntValue(cfgArray[IdxCfgMaxLockDuration])
342354 let mathContract = addressFromStringValue(cfgArray[IdxCfgMathContract])
343355 if ((size(i.payments) != 1))
344356 then throw("invalid payment - exact one payment must be attached")
345357 else {
346358 let pmt = i.payments[0]
347359 let pmtAmount = pmt.amount
348360 if ((assetId != value(pmt.assetId)))
349361 then throw((("invalid asset is in payment - " + assetIdStr) + " is expected"))
350362 else {
351363 let nextUserNumKEY = keyNextUserNum()
352364 let userAddressStr = toString(i.caller)
353365 let userIsExisting = isDefined(getString(keyUser2NumMapping(userAddressStr)))
354366 let userNumStr = if (userIsExisting)
355367 then value(getString(keyUser2NumMapping(userAddressStr)))
356368 else toString(getIntOrFail(this, nextUserNumKEY))
357369 let userNum = parseIntValue(userNumStr)
358370 let lockStart = height
359371 let startBlockKEY = keyLockParamStartBlock(userNumStr)
360372 let durationKEY = keyLockParamDuration(userNumStr)
361373 let userAmountKEY = keyLockParamUserAmount(userNumStr)
362374 if ((minLockAmount > pmtAmount))
363375 then throw(("amount is less then minLockAmount=" + toString(minLockAmount)))
364376 else if ((minLockDuration > duration))
365377 then throw(("passed duration is less then minLockDuration=" + toString(minLockDuration)))
366378 else if ((duration > maxLockDuration))
367379 then throw(("passed duration is greater then maxLockDuration=" + toString(maxLockDuration)))
368380 else if (if (userIsExisting)
369381 then ((getIntOrFail(this, startBlockKEY) + getIntOrFail(this, durationKEY)) >= lockStart)
370382 else false)
371383 then throw("there is an active lock - consider to use increaseLock")
372384 else {
373385 let coeffX8 = fraction(duration, MULT8, maxLockDuration)
374386 let gWxAmountStart = fraction(pmtAmount, coeffX8, MULT8)
375387 let gWxParamsResultList = asAnyList(invoke(mathContract, "calcGwxParamsREADONLY", [gWxAmountStart, lockStart, duration], nil))
376388 let k = asInt(gWxParamsResultList[0])
377389 let b = asInt(gWxParamsResultList[1])
378390 let period = toString(asInt(gWxParamsResultList[2]))
379391 let wxEmissionPerBlock = getIntOrFail(emissionContract, keyEmissionRatePerBlockCurrent())
380392 let emissionStart = getIntOrFail(emissionContract, keyEmissionStartBlock())
381393 let emissionEnd = getIntOrFail(emissionContract, keyEmissionEndBlock())
382394 let h = if ((height > emissionEnd))
383395 then emissionEnd
384396 else height
385397 let dh = max([(h - emissionStart), 0])
386398 let userBoostEmissionLastIntegralKEY = keyUserBoostEmissionLastINTEGRAL(userNumStr)
387399 let boostEmissionIntegral = (((wxEmissionPerBlock * dh) * 2) / 3)
388400 let userMaxBoostIntegralKEY = keyUserMaxBoostINTEGRAL(userNumStr)
389401 let totalMaxBoostIntegralKEY = keyTotalMaxBoostINTEGRAL()
390402 let userMaxBoostInt = ((gWxAmountStart * duration) / 2)
391403 let totalMaxBoostInt = getIntOrZero(this, totalMaxBoostIntegralKEY)
392404 let totalCachedGwxKEY = keyTotalCachedGwx()
393405 let totalCachedGwx = valueOrElse(getInteger(this, totalCachedGwxKEY), 0)
394406 let arr = if (userIsExisting)
395407 then nil
396408 else [IntegerEntry(nextUserNumKEY, (userNum + 1)), StringEntry(keyUser2NumMapping(userAddressStr), userNumStr), StringEntry(keyNum2UserMapping(userNumStr), userAddressStr)]
397409 ((((arr ++ LockParamsEntry(userAddressStr, userNumStr, pmtAmount, lockStart, duration, k, b, period)) ++ StatsEntry(pmtAmount, duration, 1, if (userIsExisting)
398410 then 0
399411 else 1)) :+ HistoryEntry("lock", userAddressStr, pmtAmount, lockStart, duration, k, b, i)) ++ [IntegerEntry(userBoostEmissionLastIntegralKEY, boostEmissionIntegral), IntegerEntry(totalCachedGwxKEY, (totalCachedGwx + gWxAmountStart))])
400412 }
401413 }
402414 }
403415 }
404416
405417
406418
407419 @Callable(i)
408420 func increaseLock (deltaDuration) = {
409421 let cfgArray = readConfigArrayOrFail()
410422 let assetIdStr = cfgArray[IdxCfgAssetId]
411423 let assetId = fromBase58String(assetIdStr)
412424 let minLockDuration = parseIntValue(cfgArray[IdxCfgMinLockDuration])
413425 let maxLockDuration = parseIntValue(cfgArray[IdxCfgMaxLockDuration])
414426 let mathContract = addressFromStringValue(cfgArray[IdxCfgMathContract])
415427 let pmtAmount = extractOptionalPaymentAmountOrFail(i, assetId)
416428 let userAddressStr = toString(i.caller)
417429 let userRecordArray = readLockParamsRecordOrFail(userAddressStr)
418430 let userNumStr = userRecordArray[IdxLockUserNum]
419431 let userAmount = parseIntValue(userRecordArray[IdxLockAmount])
420432 let lockStart = parseIntValue(userRecordArray[IdxLockStart])
421433 let lockDuration = parseIntValue(userRecordArray[IdxLockDuration])
422434 let lockEnd = (lockStart + lockDuration)
423435 let remainingDuration = max([(lockEnd - height), 0])
424436 let userAmountNew = (userAmount + pmtAmount)
425437 let lockDurationNew = (remainingDuration + deltaDuration)
426438 if ((0 > deltaDuration))
427439 then throw("duration is less then zero")
428440 else if ((minLockDuration > lockDurationNew))
429441 then throw(("lockDurationNew is less then minLockDuration=" + toString(minLockDuration)))
430442 else if ((lockDurationNew > maxLockDuration))
431443 then throw(("deltaDuration + existedLockDuration is greater then maxLockDuration=" + toString(maxLockDuration)))
432444 else if (if ((height >= lockEnd))
433445 then (userAmount > 0)
434446 else false)
435447 then throw("there is an expired lock - need to unlock before new lock")
436448 else {
437449 let coeffX8 = fraction(lockDurationNew, MULT8, maxLockDuration)
438450 let gWxAmountStart = fraction(userAmountNew, coeffX8, MULT8)
439451 let gWxParamsResultList = asAnyList(invoke(mathContract, "calcGwxParamsREADONLY", [gWxAmountStart, height, lockDurationNew], nil))
440452 let k = asInt(gWxParamsResultList[0])
441453 let b = asInt(gWxParamsResultList[1])
442454 let period = toString(asInt(gWxParamsResultList[2]))
443455 let wxEmissionPerBlock = getIntOrFail(emissionContract, keyEmissionRatePerBlockCurrent())
444456 let emissionStart = getIntOrFail(emissionContract, keyEmissionStartBlock())
445457 let emissionEnd = getIntOrFail(emissionContract, keyEmissionEndBlock())
446458 let h = if ((height > emissionEnd))
447459 then emissionEnd
448460 else height
449461 let dh = max([(h - emissionStart), 0])
450462 let userBoostEmissionLastIntegralKEY = keyUserBoostEmissionLastINTEGRAL(userNumStr)
451463 let userBoostEmissionLastIntegral = getIntOrZero(this, userBoostEmissionLastIntegralKEY)
452464 let boostEmissionIntegral = (((wxEmissionPerBlock * dh) * 2) / 3)
453465 let userBoostEmissionIntegral = (boostEmissionIntegral - userBoostEmissionLastIntegral)
454466 if ((0 > userBoostEmissionIntegral))
455467 then throw("wrong calculations")
456468 else {
457469 let userMaxBoostIntegralKEY = keyUserMaxBoostINTEGRAL(userNumStr)
458470 let totalMaxBoostIntegralKEY = keyTotalMaxBoostINTEGRAL()
459471 let userBoostAvalaibleToClaimTotalKEY = keyUserBoostAvalaibleToClaimTotal(userNumStr)
460472 let userMaxBoostInt = getIntOrZero(this, userMaxBoostIntegralKEY)
461473 let totalMaxBoostInt = getIntOrZero(this, totalMaxBoostIntegralKEY)
462474 let userBoostAvaliableToClaimTotal = getIntOrZero(this, userBoostAvalaibleToClaimTotalKEY)
463475 let userBoostAvaliableToClaimTotalNew = (userBoostAvaliableToClaimTotal + fraction(userBoostEmissionIntegral, userMaxBoostInt, totalMaxBoostInt))
464476 let userMaxBoostIntNew = ((gWxAmountStart * lockDurationNew) / 2)
465477 let currUserGwx = calcCurrentGwxAmount(userAddressStr)
466478 let remainingUserMaxBoostInt = ((currUserGwx * remainingDuration) / 2)
467479 let userMaxBoostIntDiff = (userMaxBoostIntNew - remainingUserMaxBoostInt)
468480 if ((0 > userMaxBoostIntDiff))
469481 then throw("wrong calculations")
470482 else {
471483 let gwxDiff = (gWxAmountStart - currUserGwx)
472484 if ((0 > gwxDiff))
473485 then throw("gwxDiff is less then 0")
474486 else {
475487 let totalCachedGwxKEY = keyTotalCachedGwx()
476488 let totalCachedGwx = valueOrElse(getInteger(this, totalCachedGwxKEY), 0)
477489 (((LockParamsEntry(userAddressStr, userNumStr, userAmountNew, lockStart, lockDurationNew, k, b, period) ++ StatsEntry(pmtAmount, deltaDuration, 0, 0)) :+ HistoryEntry("lock", userAddressStr, pmtAmount, lockStart, lockDurationNew, k, b, i)) ++ [IntegerEntry(userBoostAvalaibleToClaimTotalKEY, userBoostAvaliableToClaimTotalNew), IntegerEntry(userBoostEmissionLastIntegralKEY, boostEmissionIntegral), IntegerEntry(totalCachedGwxKEY, (totalCachedGwx + gwxDiff))])
478490 }
479491 }
480492 }
481493 }
482494 }
483495
484496
485497
486498 @Callable(i)
487-func claimWxBoost (userAddressStr) = if ((stakingContract != i.caller))
499+func claimWxBoost (lpAssetIdStr,userAddressStr) = if ((stakingContract != i.caller))
488500 then throw("permissions denied")
489501 else {
490- let $t02346223543 = internalClaimWxBoost(userAddressStr)
491- let userBoostAvailable = $t02346223543._1
492- let dataState = $t02346223543._2
493- let debug = $t02346223543._3
502+ let $t02409824200 = internalClaimWxBoost(lpAssetIdStr, userAddressStr, false)
503+ let userBoostAvailable = $t02409824200._1
504+ let dataState = $t02409824200._2
505+ let debug = $t02409824200._3
494506 $Tuple2(dataState, [userBoostAvailable])
495507 }
496508
497509
498510
499511 @Callable(i)
500-func claimWxBoostREADONLY (userAddressStr) = {
501- let $t02365323734 = internalClaimWxBoost(userAddressStr)
502- let userBoostAvailable = $t02365323734._1
503- let dataState = $t02365323734._2
504- let debug = $t02365323734._3
512+func claimWxBoostREADONLY (lpAssetIdStr,userAddressStr) = {
513+ let $t02433224433 = internalClaimWxBoost(lpAssetIdStr, userAddressStr, true)
514+ let userBoostAvailable = $t02433224433._1
515+ let dataState = $t02433224433._2
516+ let debug = $t02433224433._3
505517 $Tuple2(nil, [userBoostAvailable, debug])
506518 }
507519
508520
509521
510522 @Callable(i)
511523 func unlock (userAddress) = {
512524 let userRecordArray = readLockParamsRecordOrFail(userAddress)
513525 let userNumStr = userRecordArray[IdxLockUserNum]
514526 let userAmount = parseIntValue(userRecordArray[IdxLockAmount])
515527 let lockStart = parseIntValue(userRecordArray[IdxLockStart])
516528 let lockDuration = parseIntValue(userRecordArray[IdxLockDuration])
517529 let lockEnd = (lockStart + lockDuration)
518530 let cfgArray = readConfigArrayOrFail()
519531 let assetId = fromBase58String(cfgArray[IdxCfgAssetId])
520532 if ((lockEnd >= height))
521533 then throw((("wait " + toString(lockEnd)) + " to unlock"))
522534 else if ((0 >= userAmount))
523535 then throw("nothing to unlock")
524536 else {
525537 let period = "0"
526538 (((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))
527539 }
528540 }
529541
530542
531543
532544 @Callable(i)
533545 func gwxUserInfoREADONLY (userAddress) = {
534546 let gwxAmount = calcCurrentGwxAmount(userAddress)
535547 $Tuple2(nil, [gwxAmount])
536548 }
537549
538550

github/deemru/w8io/169f3d6 
118.60 ms