tx · 8sxpqpajxTzmu2ixUVi5Xn3m3GMR93vUaCUCcfrLV31G

3Mp5kisFrqESzrXxAMEPk2k69zpeF41czEE:  -0.01400000 Waves

2022.04.04 17:01 [1993932] smart account 3Mp5kisFrqESzrXxAMEPk2k69zpeF41czEE > SELF 0.00000000 Waves

{ "type": 13, "id": "8sxpqpajxTzmu2ixUVi5Xn3m3GMR93vUaCUCcfrLV31G", "fee": 1400000, "feeAssetId": null, "timestamp": 1649080906695, "version": 1, "sender": "3Mp5kisFrqESzrXxAMEPk2k69zpeF41czEE", "senderPublicKey": "G349Uq3FTox7dRNLeAfAQeoACvwZ9iEnVSaHcEYn6j8J", "proofs": [ "4xzspTrCrv111C3BkqsfcPvzxU9jEBTbjADrMxkdop2WwS6SuTjas4btpqrJsd1KWaUSKUXYxqkTpvWQS8qXWsfy" ], "script": "base64:AAIFAAAAAAAAAGYIAhIECgIIARIHCgUCAQEBARIAEgASCQoHAgEBAQEBBBIAEgMKAQgSAwoBCBIDCgEIEgMKAQgSBQoDAQEBEgUKAwEBARIGCgQICAgBEgMKAQgSAwoBCBIAEgMKAQgSBwoFCAgICAgAAAA4AAAAAAtyZXZpc2lvbk51bQIAAAAAAAAAAANTRVACAAAAAl9fAAAAAAhNQVhERVBUSAAAAAAAAAAAEQAAAAAJVVNFUkRFUFRIAAAAAAAAAAAaAAAAAAVTQ0FMRQAAAAAAAAAD6AAAAAAFTVVMVDgAAAAAAAX14QAAAAAACnplcm9CaWdJbnQJAAE2AAAAAQAAAAAAAAAAAAEAAAAOZ2V0TnVtYmVyQnlLZXkAAAABAAAAA2tleQkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABBoAAAACBQAAAAR0aGlzBQAAAANrZXkAAAAAAAAAAAABAAAAD2dldE51bWJlck9yRmFpbAAAAAEAAAADa2V5CQEAAAATdmFsdWVPckVycm9yTWVzc2FnZQAAAAIJAAQaAAAAAgUAAAAEdGhpcwUAAAADa2V5CQABLAAAAAIJAAEsAAAAAgIAAAA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wXzEAAAACAAAAAiRhAAAAAiRpAwkAAGcAAAACBQAAAAIkaQUAAAACJHMFAAAAAiRhCQEAAAAEY2FsYwAAAAIFAAAAAiRhCQABkQAAAAIFAAAAAiRsBQAAAAIkaQoBAAAABSRmMF8yAAAAAgAAAAIkYQAAAAIkaQMJAABnAAAAAgUAAAACJGkFAAAAAiRzBQAAAAIkYQkAAAIAAAABAgAAABNMaXN0IHNpemUgZXhjZWVkcyA3CQEAAAAFJGYwXzIAAAACCQEAAAAFJGYwXzEAAAACCQEAAAAFJGYwXzEAAAACCQEAAAAFJGYwXzEAAAACCQEAAAAFJGYwXzEAAAACCQEAAAAFJGYwXzEAAAACCQEAAAAFJGYwXzEAAAACCQEAAAAFJGYwXzEAAAACBQAAAAUkYWNjMAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAgAAAAAAAAAAAwAAAAAAAAAABAAAAAAAAAAABQAAAAAAAAAABgAAAAAAAAAABwQAAAAFZE5leHQIBQAAAA0kdDAyNDE1MzI0MjAzAAAAAl8xBAAAAAVkUHJldggFAAAADSR0MDI0MTUzMjQyMDMAAAACXzIEAAAABWREaWZmCQEAAAADYWJzAAAAAQkAATgAAAACBQAAAAVkTmV4dAkBAAAABXZhbHVlAAAAAQUAAAAFZFByZXYDCQABQAAAAAIFAAAAD3RhcmdldFByZWNpc2lvbgUAAAAFZERpZmYJAAUUAAAAAgUAAAADbmlsCQABpgAAAAEFAAAABWROZXh0CQAAAgAAAAEJAAEsAAAAAgIAAAAdRCBjYWxjdWxhdGlvbiBlcnJvciwgZERpZmYgPSAJAAGmAAAAAQUAAAAFZERpZmYAAAAAsvyR2A==", "chainId": 84, "height": 1993932, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GoXZZEcVuWBh2rTvBiqZ55BCVqE39ZX66mu9sM5NVL83 Next: BCd1s1aDPdqi8XjCh63aVqXMxvfK9xpLUvs8yeEgWjFt Diff:
OldNewDifferences
8787 func keyNextProcessedPeriod () = "%s__nextProcessedPeriod"
8888
8989
90-func keyNextUnlaimedPeriodOfUser (userIndex) = makeString(["%s%d__nextClaimedPeriod", toString(userIndex)], SEP)
90+func keyNextUnlaimedPeriodOfUserOld (userIndex) = makeString(["%s%d__nextClaimedPeriod", toString(userIndex)], SEP)
91+
92+
93+func keyNextUnlaimedPeriodOfUser (userIndex) = makeString(["%s%d__nextClaimedPeriodNew", toString(userIndex)], SEP)
9194
9295
9396 func keyLastProcessedPeriodOfUser (userIndex) = makeString(["%s%d__lastProcessedPeriod", toString(userIndex)], SEP)
97+
98+
99+func keyLastProcessedPeriodOfUserForClaim (userIndex) = makeString(["%s%d__lastProcessedPeriodForClaim", toString(userIndex)], SEP)
94100
95101
96102 func keyHeightForPeriod (period) = makeString(["%s%d__startHeightForPeriod", toString(period)], SEP)
142148 }
143149 else {
144150 let p = getInteger(this, kLast)
145- if (if (isDefined(p))
146- then (period >= value(p))
147- else false)
151+ if (isDefined(p))
148152 then {
149153 let pv = value(p)
150154 let k = value(getInteger(boostingContractAddress, keyUserKValueForPeriod(pv, userIndex)))
155159 else $Tuple2(0, nil)
156160 }
157161 else $Tuple2(0, nil)
162+ }
163+ }
164+
165+
166+func calcUserWeightForClaim (boostingContractAddress,heightForPeriod,period,userIndex,readonly) = {
167+ let kLast = keyLastProcessedPeriodOfUserForClaim(userIndex)
168+ let kKey = keyUserKValueForPeriod(period, userIndex)
169+ let kRaw = getInteger(boostingContractAddress, kKey)
170+ let nextUnlaimedPeriodOfUserOld = getNumberByKey(keyNextUnlaimedPeriodOfUserOld(userIndex))
171+ let isNotClaimed = if ((period >= nextUnlaimedPeriodOfUserOld))
172+ then (nextUnlaimedPeriodOfUserOld > 0)
173+ else false
174+ if (isDefined(kRaw))
175+ then {
176+ let k = value(kRaw)
177+ let b = value(getInteger(boostingContractAddress, keyUserBValueForPeriod(period, userIndex)))
178+ let w = ((k * heightForPeriod) + b)
179+ let inv = if (readonly)
180+ then unit
181+ else invoke(this, "setInteger", [kLast, period], nil)
182+ if ((inv == inv))
183+ then if (if ((w > 0))
184+ then isNotClaimed
185+ else false)
186+ then (w / SCALE)
187+ else 0
188+ else throw("Strict value is not equal to itself.")
189+ }
190+ else {
191+ let p = getInteger(this, kLast)
192+ if (isDefined(p))
193+ then {
194+ let pv = value(p)
195+ let k = value(getInteger(boostingContractAddress, keyUserKValueForPeriod(pv, userIndex)))
196+ let b = value(getInteger(boostingContractAddress, keyUserBValueForPeriod(pv, userIndex)))
197+ let w = ((k * heightForPeriod) + b)
198+ if (if ((w > 0))
199+ then isNotClaimed
200+ else false)
201+ then (w / SCALE)
202+ else 0
203+ }
204+ else 0
158205 }
159206 }
160207
236283 }
237284
238285
239-func invokeClaim (boostingContract,period,user,depth,totalFromMatcher,totalFromEmission) = {
240- let result = invoke(this, "claimNextBatch", [boostingContract, period, user, depth, totalFromMatcher, totalFromEmission], nil)
286+func invokeClaim (boostingContract,period,user,depth,totalFromMatcher,totalFromEmission,readonly) = {
287+ let result = invoke(this, "claimNextBatch", [boostingContract, period, user, depth, totalFromMatcher, totalFromEmission, readonly], nil)
241288 if ((result == result))
242289 then match result {
243290 case r: (Int, Int, Int) =>
249296 }
250297
251298
252-func claimInternal (boostingContract,currentPeriod,currentUser,depth,userAccumulatedMatcher,userAccumulatedEmission) = {
299+func claimInternal (boostingContract,currentPeriod,currentUser,depth,userAccumulatedMatcher,userAccumulatedEmission,readonly) = {
253300 let boostingContractAddress = Address(boostingContract)
254301 let latestPeriod = getNumberByKey(keyNextProcessedPeriod())
255302 let totalWeight = getNumberByKey(keyTotalWeightForPeriod(currentPeriod))
256303 let heightForPeriod = getNumberByKey(keyHeightForPeriod(currentPeriod))
257- let $t01172411836 = calcUserWeight(boostingContractAddress, heightForPeriod, currentPeriod, currentUser)
258- let userWeight = $t01172411836._1
259- let ignored = $t01172411836._2
304+ let userWeight = calcUserWeightForClaim(boostingContractAddress, heightForPeriod, currentPeriod, currentUser, readonly)
260305 let userAmountMatcherForPeriod = fraction(getNumberByKey(keyTotalAmountForPeriod(currentPeriod)), userWeight, totalWeight)
261306 let userAmountEmissionForPeriod = fraction(getNumberByKey(keyAuxEmissionRewardForPeriod(currentPeriod)), userWeight, totalWeight)
262307 if (if ((0 >= depth))
263308 then true
264309 else ((currentPeriod + 1) >= latestPeriod))
265310 then $Tuple3((currentPeriod + 1), (userAccumulatedMatcher + userAmountMatcherForPeriod), (userAccumulatedEmission + userAmountEmissionForPeriod))
266- else invokeClaim(boostingContract, (currentPeriod + 1), currentUser, (depth - 1), (userAccumulatedMatcher + userAmountMatcherForPeriod), (userAccumulatedEmission + userAmountEmissionForPeriod))
311+ else invokeClaim(boostingContract, (currentPeriod + 1), currentUser, (depth - 1), (userAccumulatedMatcher + userAmountMatcherForPeriod), (userAccumulatedEmission + userAmountEmissionForPeriod), readonly)
267312 }
268313
269314
270-func commonClaimReward (userAddress) = {
315+func commonClaimReward (userAddress,readonly) = {
271316 let cfgArray = readConfigArrayOrFail()
272317 let userIdx = getUserIndexByAddress(cfgArray[IdxCfgBoostingContract], userAddress)
273318 let currentPeriod = getNumberByKey(keyNextUnlaimedPeriodOfUser(userIdx))
276321 then throw("Nothing to claim")
277322 else {
278323 let boostingContract = fromBase58String(cfgArray[IdxCfgBoostingContract])
279- let $t01304813174 = claimInternal(boostingContract, currentPeriod, userIdx, USERDEPTH, 0, 0)
280- let period = $t01304813174._1
281- let amountFromMatcher = $t01304813174._2
282- let amountFromEmission = $t01304813174._3
324+ let $t01465614792 = claimInternal(boostingContract, currentPeriod, userIdx, USERDEPTH, 0, 0, readonly)
325+ let period = $t01465614792._1
326+ let amountFromMatcher = $t01465614792._2
327+ let amountFromEmission = $t01465614792._3
283328 $Tuple6(period, amountFromMatcher, amountFromEmission, userIdx, cfgArray, nextProcessedPeriod)
284329 }
285330 }
331+
332+
333+@Callable(i)
334+func setInteger (k,v) = {
335+ let checkCaller = if ((i.caller == this))
336+ then true
337+ else throw("Should be called by this script only")
338+ if ((checkCaller == checkCaller))
339+ then {
340+ let dataEntries = [IntegerEntry(k, v)]
341+ $Tuple2(dataEntries, dataEntries)
342+ }
343+ else throw("Strict value is not equal to itself.")
344+ }
345+
286346
287347
288348 @Callable(i)
347407
348408
349409 @Callable(i)
350-func claimNextBatch (boostingContract,currentPeriod,currentUser,depth,totalFromMatcher,totalFromEmission) = if ((i.caller != this))
410+func claimNextBatch (boostingContract,currentPeriod,currentUser,depth,totalFromMatcher,totalFromEmission,readonly) = if ((i.caller != this))
351411 then throw("Should be called by this script only")
352412 else {
353- let periodAndTotals = claimInternal(boostingContract, currentPeriod, currentUser, depth, totalFromMatcher, totalFromEmission)
413+ let periodAndTotals = claimInternal(boostingContract, currentPeriod, currentUser, depth, totalFromMatcher, totalFromEmission, readonly)
354414 $Tuple2(nil, periodAndTotals)
355415 }
356416
359419 @Callable(i)
360420 func claimReward () = {
361421 let address = toString(i.caller)
362- let $t01746017580 = commonClaimReward(address)
363- let period = $t01746017580._1
364- let amountFromMatcher = $t01746017580._2
365- let amountFromEmission = $t01746017580._3
366- let userIdx = $t01746017580._4
367- let cfgArray = $t01746017580._5
368- let nextProcessedPeriod = $t01746017580._6
422+ let $t01932219449 = commonClaimReward(address, false)
423+ let period = $t01932219449._1
424+ let amountFromMatcher = $t01932219449._2
425+ let amountFromEmission = $t01932219449._3
426+ let userIdx = $t01932219449._4
427+ let cfgArray = $t01932219449._5
428+ let nextProcessedPeriod = $t01932219449._6
369429 $Tuple2([IntegerEntry(keyNextUnlaimedPeriodOfUser(userIdx), period), ScriptTransfer(i.caller, (amountFromMatcher + amountFromEmission), fromBase58String(cfgArray[IdxCfgAssetId])), HistoryEntry("claim", address, amountFromMatcher, amountFromEmission, period, nextProcessedPeriod, i)], [amountFromMatcher, amountFromEmission])
370430 }
371431
373433
374434 @Callable(i)
375435 func claimRewardREADONLY (address) = {
376- let claimResults = commonClaimReward(address)
436+ let claimResults = commonClaimReward(address, true)
377437 let amount = (claimResults._2 + claimResults._3)
378438 $Tuple2(nil, amount)
379439 }
382442
383443 @Callable(i)
384444 func claimRewardDetailedREADONLY (address) = {
385- let $t01832218391 = commonClaimReward(address)
386- let ignored = $t01832218391._1
387- let fromMatcher = $t01832218391._2
388- let fromEmission = $t01832218391._3
445+ let $t02019720272 = commonClaimReward(address, true)
446+ let ignored = $t02019720272._1
447+ let fromMatcher = $t02019720272._2
448+ let fromEmission = $t02019720272._3
389449 $Tuple2(nil, makeString(["%d%d%d", toString((fromMatcher + fromEmission)), toString(fromMatcher), toString(fromEmission)], SEP))
390450 }
391451
476536 let ann = (amp * nCoins)
477537 let arr = [1, 2, 3, 4, 5, 6, 7]
478538 func calc (acc,cur) = {
479- let $t02187022059 = acc
480- let d = $t02187022059._1
481- let dPrev = $t02187022059._2
539+ let $t02375123940 = acc
540+ let d = $t02375123940._1
541+ let dPrev = $t02375123940._2
482542 let dp = (((d * d) * d) / (((x1 * x2) * nCoins) * nCoins))
483543 let dNext = (((((ann * s) / aPrecision) + (dp * nCoins)) * d) / ((((ann - aPrecision) * d) / aPrecision) + ((nCoins + toBigInt(1)) * dp)))
484544 $Tuple2(dNext, d)
485545 }
486546
487- let $t02227222322 = {
547+ let $t02415324203 = {
488548 let $l = arr
489549 let $s = size($l)
490550 let $acc0 = $Tuple2(s, unit)
498558
499559 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7)
500560 }
501- let dNext = $t02227222322._1
502- let dPrev = $t02227222322._2
561+ let dNext = $t02415324203._1
562+ let dPrev = $t02415324203._2
503563 let dDiff = abs((dNext - value(dPrev)))
504564 if ((targetPrecision >= dDiff))
505565 then $Tuple2(nil, toString(dNext))
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let revisionNum = ""
55
66 let SEP = "__"
77
88 let MAXDEPTH = 17
99
1010 let USERDEPTH = 26
1111
1212 let SCALE = 1000
1313
1414 let MULT8 = 100000000
1515
1616 let zeroBigInt = toBigInt(0)
1717
1818 func getNumberByKey (key) = valueOrElse(getInteger(this, key), 0)
1919
2020
2121 func getNumberOrFail (key) = valueOrErrorMessage(getInteger(this, key), (("mandatory this." + key) + " is not defined"))
2222
2323
2424 func getStringByKey (key) = valueOrElse(getString(this, key), "")
2525
2626
2727 func getStringOrFail (key) = valueOrErrorMessage(getString(key), (("mandatory this." + key) + " is not defined"))
2828
2929
3030 func abs (val) = if ((zeroBigInt > val))
3131 then -(val)
3232 else val
3333
3434
3535 func keyFactoryAddress () = "%s%s__config__factoryAddress"
3636
3737
3838 let factoryAddressStr = getStringOrFail(keyFactoryAddress())
3939
4040 let factoryContract = addressFromStringValue(factoryAddressStr)
4141
4242 func keyEmissionAddress () = "%s%s__config__emissionAddress"
4343
4444
4545 let emissionAddressStr = getStringOrFail(keyEmissionAddress())
4646
4747 let emissionContract = addressFromStringValue(emissionAddressStr)
4848
4949 let IdxCfgAssetId = 1
5050
5151 let IdxCfgPacemakerAddress = 2
5252
5353 let IdxCfgBoostingContract = 3
5454
5555 let IdxCfgMaxDepth = 4
5656
5757 func keyConfig () = "%s__config"
5858
5959
6060 func readConfigArrayOrFail () = split(getStringOrFail(keyConfig()), SEP)
6161
6262
6363 func formatConfig (wxAssetIdStr,matcherPacemakerAddressStr,boostingContractAddressStr,maxDepth) = makeString(["%s%s%s%d", wxAssetIdStr, matcherPacemakerAddressStr, boostingContractAddressStr, toString(maxDepth)], SEP)
6464
6565
6666 func keyGwxRewardEmissionStartHeight () = "%s%s__gwxRewardEmissionPart__startHeight"
6767
6868
6969 func keyUsersCount () = "%s__nextUserNum"
7070
7171
7272 func keyRatePerBlockCurrent () = "%s%s__ratePerBlock__current"
7373
7474
7575 func keyPoolWeightVirtual () = "%s%s__poolWeight__GWXvirtualPOOL"
7676
7777
7878 func keyNextProcessedUser () = "%s__nextProcessedUser"
7979
8080
8181 func keyLatestPeriod () = "%s__latestPeriod"
8282
8383
8484 func keyNextPeriod () = "%s__nextPeriod"
8585
8686
8787 func keyNextProcessedPeriod () = "%s__nextProcessedPeriod"
8888
8989
90-func keyNextUnlaimedPeriodOfUser (userIndex) = makeString(["%s%d__nextClaimedPeriod", toString(userIndex)], SEP)
90+func keyNextUnlaimedPeriodOfUserOld (userIndex) = makeString(["%s%d__nextClaimedPeriod", toString(userIndex)], SEP)
91+
92+
93+func keyNextUnlaimedPeriodOfUser (userIndex) = makeString(["%s%d__nextClaimedPeriodNew", toString(userIndex)], SEP)
9194
9295
9396 func keyLastProcessedPeriodOfUser (userIndex) = makeString(["%s%d__lastProcessedPeriod", toString(userIndex)], SEP)
97+
98+
99+func keyLastProcessedPeriodOfUserForClaim (userIndex) = makeString(["%s%d__lastProcessedPeriodForClaim", toString(userIndex)], SEP)
94100
95101
96102 func keyHeightForPeriod (period) = makeString(["%s%d__startHeightForPeriod", toString(period)], SEP)
97103
98104
99105 func keyAuxEmissionRewardForPeriod (period) = makeString(["%s%d__auxEmissionReward", toString(period)], SEP)
100106
101107
102108 func keyTotalAmountForPeriod (period) = makeString(["%s%d__totalAmountForPeriod", toString(period)], SEP)
103109
104110
105111 func keyLastPayoutInfo () = "%s__lastPayoutInfo"
106112
107113
108114 func PeriodPayoutInfo (period,matcherReward,emissionReward) = makeString(["%d%d%d", toString(period), toString(matcherReward), toString(emissionReward)], SEP)
109115
110116
111117 func keyPayoutHistoryInfo (period) = makeString(["%s%s%d__payouts__history", toString(period)], SEP)
112118
113119
114120 func keyTotalWeightForPeriod (period) = makeString(["%s%d__totalWeightForPeriod", toString(period)], SEP)
115121
116122
117123 func keyUserKValueForPeriod (period,userIndex) = makeString(["%s%d%s%d__paramByPeriod", toString(userIndex), "k", toString(period)], SEP)
118124
119125
120126 func keyUserBValueForPeriod (period,userIndex) = makeString(["%s%d%s%d__paramByPeriod", toString(userIndex), "b", toString(period)], SEP)
121127
122128
123129 func HistoryEntry (type,user,amountFromMatcher,amountFromEmission,currentPeriod,latestPeriod,i) = {
124130 let historyKEY = makeString(["%s%s%s%s__history", type, user, toBase58String(i.transactionId)], SEP)
125131 let historyDATA = makeString(["%d%d%d%d%d%d", toString(lastBlock.height), toString(lastBlock.timestamp), toString(amountFromMatcher), toString(amountFromEmission), toString(currentPeriod), toString(latestPeriod)], SEP)
126132 StringEntry(historyKEY, historyDATA)
127133 }
128134
129135
130136 func calcUserWeight (boostingContractAddress,heightForPeriod,period,userIndex) = {
131137 let kLast = keyLastProcessedPeriodOfUser(userIndex)
132138 let kKey = keyUserKValueForPeriod(period, userIndex)
133139 let kRaw = getInteger(boostingContractAddress, kKey)
134140 if (isDefined(kRaw))
135141 then {
136142 let k = value(kRaw)
137143 let b = value(getInteger(boostingContractAddress, keyUserBValueForPeriod(period, userIndex)))
138144 let w = ((k * heightForPeriod) + b)
139145 if ((w > 0))
140146 then $Tuple2((w / SCALE), [IntegerEntry(kLast, period)])
141147 else $Tuple2(0, nil)
142148 }
143149 else {
144150 let p = getInteger(this, kLast)
145- if (if (isDefined(p))
146- then (period >= value(p))
147- else false)
151+ if (isDefined(p))
148152 then {
149153 let pv = value(p)
150154 let k = value(getInteger(boostingContractAddress, keyUserKValueForPeriod(pv, userIndex)))
151155 let b = value(getInteger(boostingContractAddress, keyUserBValueForPeriod(pv, userIndex)))
152156 let w = ((k * heightForPeriod) + b)
153157 if ((w > 0))
154158 then $Tuple2((w / SCALE), nil)
155159 else $Tuple2(0, nil)
156160 }
157161 else $Tuple2(0, nil)
162+ }
163+ }
164+
165+
166+func calcUserWeightForClaim (boostingContractAddress,heightForPeriod,period,userIndex,readonly) = {
167+ let kLast = keyLastProcessedPeriodOfUserForClaim(userIndex)
168+ let kKey = keyUserKValueForPeriod(period, userIndex)
169+ let kRaw = getInteger(boostingContractAddress, kKey)
170+ let nextUnlaimedPeriodOfUserOld = getNumberByKey(keyNextUnlaimedPeriodOfUserOld(userIndex))
171+ let isNotClaimed = if ((period >= nextUnlaimedPeriodOfUserOld))
172+ then (nextUnlaimedPeriodOfUserOld > 0)
173+ else false
174+ if (isDefined(kRaw))
175+ then {
176+ let k = value(kRaw)
177+ let b = value(getInteger(boostingContractAddress, keyUserBValueForPeriod(period, userIndex)))
178+ let w = ((k * heightForPeriod) + b)
179+ let inv = if (readonly)
180+ then unit
181+ else invoke(this, "setInteger", [kLast, period], nil)
182+ if ((inv == inv))
183+ then if (if ((w > 0))
184+ then isNotClaimed
185+ else false)
186+ then (w / SCALE)
187+ else 0
188+ else throw("Strict value is not equal to itself.")
189+ }
190+ else {
191+ let p = getInteger(this, kLast)
192+ if (isDefined(p))
193+ then {
194+ let pv = value(p)
195+ let k = value(getInteger(boostingContractAddress, keyUserKValueForPeriod(pv, userIndex)))
196+ let b = value(getInteger(boostingContractAddress, keyUserBValueForPeriod(pv, userIndex)))
197+ let w = ((k * heightForPeriod) + b)
198+ if (if ((w > 0))
199+ then isNotClaimed
200+ else false)
201+ then (w / SCALE)
202+ else 0
203+ }
204+ else 0
158205 }
159206 }
160207
161208
162209 func getUserIndexByAddress (boostingContractAddressStr,userAddress) = {
163210 let key = makeString(["%s%s%s", "mapping", "user2num", userAddress], SEP)
164211 parseIntValue(valueOrErrorMessage(getString(Address(fromBase58String(boostingContractAddressStr)), key), ((("User address " + userAddress) + " is not found in boosting contract data, key=") + key)))
165212 }
166213
167214
168215 func nextPeriod () = getNumberByKey(keyNextPeriod())
169216
170217
171218 func invokeProcess (boostingContract,period,user,depth,weight) = {
172219 let result = invoke(this, "processNextBatch", [boostingContract, period, user, depth, weight], nil)
173220 if ((result == result))
174221 then match result {
175222 case r: (Int, Int, Int) =>
176223 r
177224 case _ =>
178225 throw("Incorrect invoke result")
179226 }
180227 else throw("Strict value is not equal to itself.")
181228 }
182229
183230
184231 func processNextBatchInternal (boostingContract,currentPeriod,currentUser,depth,totalWeight) = {
185232 let boostingContractAddress = Address(boostingContract)
186233 let latestPeriod = getNumberByKey(keyLatestPeriod())
187234 let usersCount = valueOrElse(getInteger(boostingContractAddress, keyUsersCount()), 0)
188235 let totalWeightKey = keyTotalWeightForPeriod(currentPeriod)
189236 let heightForPeriod = getNumberByKey(keyHeightForPeriod(currentPeriod))
190237 if (if ((depth > 0))
191238 then (latestPeriod >= currentPeriod)
192239 else false)
193240 then {
194241 let t0 = calcUserWeight(boostingContractAddress, heightForPeriod, currentPeriod, currentUser)
195242 let weight0 = (totalWeight + t0._1)
196243 if ((usersCount > (currentUser + 1)))
197244 then {
198245 let t1 = calcUserWeight(boostingContractAddress, heightForPeriod, currentPeriod, (currentUser + 1))
199246 let weight1 = (weight0 + t1._1)
200247 if ((usersCount > (currentUser + 2)))
201248 then {
202249 let t2 = calcUserWeight(boostingContractAddress, heightForPeriod, currentPeriod, (currentUser + 2))
203250 let weight2 = (weight1 + t2._1)
204251 if ((usersCount > (currentUser + 3)))
205252 then {
206253 let t3 = calcUserWeight(boostingContractAddress, heightForPeriod, currentPeriod, (currentUser + 3))
207254 let weight3 = (weight2 + t3._1)
208255 if ((usersCount > (currentUser + 4)))
209256 then {
210257 let t4 = calcUserWeight(boostingContractAddress, heightForPeriod, currentPeriod, (currentUser + 4))
211258 let weight4 = (weight3 + t4._1)
212259 if ((usersCount > (currentUser + 5)))
213260 then {
214261 let t5 = calcUserWeight(boostingContractAddress, heightForPeriod, currentPeriod, (currentUser + 5))
215262 let weight5 = (weight4 + t5._1)
216263 if ((usersCount > (currentUser + 6)))
217264 then {
218265 let r5 = invokeProcess(boostingContract, currentPeriod, (currentUser + 6), (depth - 1), weight5)
219266 $Tuple4((((((t0._2 ++ t1._2) ++ t2._2) ++ t3._2) ++ t4._2) ++ t5._2), r5._1, r5._2, r5._3)
220267 }
221268 else $Tuple4((((((([IntegerEntry(totalWeightKey, weight5)] ++ t0._2) ++ t1._2) ++ t2._2) ++ t3._2) ++ t4._2) ++ t5._2), (currentPeriod + 1), 0, 0)
222269 }
223270 else $Tuple4(((((([IntegerEntry(totalWeightKey, weight4)] ++ t0._2) ++ t1._2) ++ t2._2) ++ t3._2) ++ t4._2), (currentPeriod + 1), 0, 0)
224271 }
225272 else $Tuple4((((([IntegerEntry(totalWeightKey, weight3)] ++ t0._2) ++ t1._2) ++ t2._2) ++ t3._2), (currentPeriod + 1), 0, 0)
226273 }
227274 else $Tuple4(((([IntegerEntry(totalWeightKey, weight2)] ++ t0._2) ++ t1._2) ++ t2._2), (currentPeriod + 1), 0, 0)
228275 }
229276 else $Tuple4((([IntegerEntry(totalWeightKey, weight1)] ++ t0._2) ++ t1._2), (currentPeriod + 1), 0, 0)
230277 }
231278 else $Tuple4(([IntegerEntry(totalWeightKey, weight0)] ++ t0._2), (currentPeriod + 1), 0, 0)
232279 }
233280 else if ((currentUser == 0))
234281 then $Tuple4(nil, currentPeriod, 0, 0)
235282 else $Tuple4([IntegerEntry(totalWeightKey, totalWeight)], currentPeriod, currentUser, 0)
236283 }
237284
238285
239-func invokeClaim (boostingContract,period,user,depth,totalFromMatcher,totalFromEmission) = {
240- let result = invoke(this, "claimNextBatch", [boostingContract, period, user, depth, totalFromMatcher, totalFromEmission], nil)
286+func invokeClaim (boostingContract,period,user,depth,totalFromMatcher,totalFromEmission,readonly) = {
287+ let result = invoke(this, "claimNextBatch", [boostingContract, period, user, depth, totalFromMatcher, totalFromEmission, readonly], nil)
241288 if ((result == result))
242289 then match result {
243290 case r: (Int, Int, Int) =>
244291 r
245292 case _ =>
246293 throw("Incorrect invoke result")
247294 }
248295 else throw("Strict value is not equal to itself.")
249296 }
250297
251298
252-func claimInternal (boostingContract,currentPeriod,currentUser,depth,userAccumulatedMatcher,userAccumulatedEmission) = {
299+func claimInternal (boostingContract,currentPeriod,currentUser,depth,userAccumulatedMatcher,userAccumulatedEmission,readonly) = {
253300 let boostingContractAddress = Address(boostingContract)
254301 let latestPeriod = getNumberByKey(keyNextProcessedPeriod())
255302 let totalWeight = getNumberByKey(keyTotalWeightForPeriod(currentPeriod))
256303 let heightForPeriod = getNumberByKey(keyHeightForPeriod(currentPeriod))
257- let $t01172411836 = calcUserWeight(boostingContractAddress, heightForPeriod, currentPeriod, currentUser)
258- let userWeight = $t01172411836._1
259- let ignored = $t01172411836._2
304+ let userWeight = calcUserWeightForClaim(boostingContractAddress, heightForPeriod, currentPeriod, currentUser, readonly)
260305 let userAmountMatcherForPeriod = fraction(getNumberByKey(keyTotalAmountForPeriod(currentPeriod)), userWeight, totalWeight)
261306 let userAmountEmissionForPeriod = fraction(getNumberByKey(keyAuxEmissionRewardForPeriod(currentPeriod)), userWeight, totalWeight)
262307 if (if ((0 >= depth))
263308 then true
264309 else ((currentPeriod + 1) >= latestPeriod))
265310 then $Tuple3((currentPeriod + 1), (userAccumulatedMatcher + userAmountMatcherForPeriod), (userAccumulatedEmission + userAmountEmissionForPeriod))
266- else invokeClaim(boostingContract, (currentPeriod + 1), currentUser, (depth - 1), (userAccumulatedMatcher + userAmountMatcherForPeriod), (userAccumulatedEmission + userAmountEmissionForPeriod))
311+ else invokeClaim(boostingContract, (currentPeriod + 1), currentUser, (depth - 1), (userAccumulatedMatcher + userAmountMatcherForPeriod), (userAccumulatedEmission + userAmountEmissionForPeriod), readonly)
267312 }
268313
269314
270-func commonClaimReward (userAddress) = {
315+func commonClaimReward (userAddress,readonly) = {
271316 let cfgArray = readConfigArrayOrFail()
272317 let userIdx = getUserIndexByAddress(cfgArray[IdxCfgBoostingContract], userAddress)
273318 let currentPeriod = getNumberByKey(keyNextUnlaimedPeriodOfUser(userIdx))
274319 let nextProcessedPeriod = getNumberByKey(keyNextProcessedPeriod())
275320 if ((currentPeriod >= nextProcessedPeriod))
276321 then throw("Nothing to claim")
277322 else {
278323 let boostingContract = fromBase58String(cfgArray[IdxCfgBoostingContract])
279- let $t01304813174 = claimInternal(boostingContract, currentPeriod, userIdx, USERDEPTH, 0, 0)
280- let period = $t01304813174._1
281- let amountFromMatcher = $t01304813174._2
282- let amountFromEmission = $t01304813174._3
324+ let $t01465614792 = claimInternal(boostingContract, currentPeriod, userIdx, USERDEPTH, 0, 0, readonly)
325+ let period = $t01465614792._1
326+ let amountFromMatcher = $t01465614792._2
327+ let amountFromEmission = $t01465614792._3
283328 $Tuple6(period, amountFromMatcher, amountFromEmission, userIdx, cfgArray, nextProcessedPeriod)
284329 }
285330 }
331+
332+
333+@Callable(i)
334+func setInteger (k,v) = {
335+ let checkCaller = if ((i.caller == this))
336+ then true
337+ else throw("Should be called by this script only")
338+ if ((checkCaller == checkCaller))
339+ then {
340+ let dataEntries = [IntegerEntry(k, v)]
341+ $Tuple2(dataEntries, dataEntries)
342+ }
343+ else throw("Strict value is not equal to itself.")
344+ }
345+
286346
287347
288348 @Callable(i)
289349 func processNextBatch (boostingContract,currentPeriod,currentUser,depth,totalWeight) = if ((i.caller != this))
290350 then throw("Should be called by this script only")
291351 else {
292352 let tpl = processNextBatchInternal(boostingContract, currentPeriod, currentUser, depth, totalWeight)
293353 $Tuple2(tpl._1, $Tuple3(tpl._2, tpl._3, tpl._4))
294354 }
295355
296356
297357
298358 @Callable(i)
299359 func processPendingPeriodsAndUsers () = {
300360 let currentPeriod = getNumberByKey(keyNextProcessedPeriod())
301361 if ((currentPeriod > getNumberByKey(keyLatestPeriod())))
302362 then throw("Nothing to process")
303363 else {
304364 let cfgArray = readConfigArrayOrFail()
305365 let depth = parseIntValue(cfgArray[IdxCfgMaxDepth])
306366 if ((depth > MAXDEPTH))
307367 then throw("Depth exceeds MAXDEPTH")
308368 else {
309369 let boostingContract = fromBase58String(cfgArray[IdxCfgBoostingContract])
310370 let currentUser = getNumberByKey(keyNextProcessedUser())
311371 let totalWeight = getNumberByKey(keyTotalWeightForPeriod(currentPeriod))
312372 let r = processNextBatchInternal(boostingContract, currentPeriod, currentUser, depth, totalWeight)
313373 ((r._1 :+ IntegerEntry(keyNextProcessedPeriod(), r._2)) :+ IntegerEntry(keyNextProcessedUser(), r._3))
314374 }
315375 }
316376 }
317377
318378
319379
320380 @Callable(i)
321381 func deposit () = {
322382 let cfgArray = readConfigArrayOrFail()
323383 if ((i.caller != Address(fromBase58String(cfgArray[IdxCfgPacemakerAddress]))))
324384 then throw("Wrong caller address")
325385 else {
326386 let assetId = value(value(i.payments[0]).assetId)
327387 if ((assetId != fromBase58String(cfgArray[IdxCfgAssetId])))
328388 then throw("Wrong payment asset")
329389 else {
330390 let period = nextPeriod()
331391 let deltaH = (height - getNumberOrFail(keyGwxRewardEmissionStartHeight()))
332392 let emissionRate = valueOrErrorMessage(getInteger(emissionContract, keyRatePerBlockCurrent()), (("mandatory emission_contract." + keyRatePerBlockCurrent()) + " is not defined"))
333393 let weight = valueOrErrorMessage(getInteger(factoryContract, keyPoolWeightVirtual()), (("mandatory factory_contract." + keyPoolWeightVirtual()) + " is not defined"))
334394 let auxAmount = fraction((deltaH * weight), emissionRate, MULT8)
335395 let em = invoke(emissionContract, "emit", [auxAmount], nil)
336396 if ((em == em))
337397 then {
338398 let matcherPart = value(i.payments[0]).amount
339399 let payoutInfo = PeriodPayoutInfo(period, matcherPart, auxAmount)
340400 [IntegerEntry(keyLatestPeriod(), period), IntegerEntry(keyHeightForPeriod(period), height), IntegerEntry(keyAuxEmissionRewardForPeriod(period), auxAmount), IntegerEntry(keyGwxRewardEmissionStartHeight(), height), IntegerEntry(keyTotalAmountForPeriod(period), matcherPart), IntegerEntry(keyNextPeriod(), (period + 1)), StringEntry(keyLastPayoutInfo(), payoutInfo), StringEntry(keyPayoutHistoryInfo(period), payoutInfo)]
341401 }
342402 else throw("Strict value is not equal to itself.")
343403 }
344404 }
345405 }
346406
347407
348408
349409 @Callable(i)
350-func claimNextBatch (boostingContract,currentPeriod,currentUser,depth,totalFromMatcher,totalFromEmission) = if ((i.caller != this))
410+func claimNextBatch (boostingContract,currentPeriod,currentUser,depth,totalFromMatcher,totalFromEmission,readonly) = if ((i.caller != this))
351411 then throw("Should be called by this script only")
352412 else {
353- let periodAndTotals = claimInternal(boostingContract, currentPeriod, currentUser, depth, totalFromMatcher, totalFromEmission)
413+ let periodAndTotals = claimInternal(boostingContract, currentPeriod, currentUser, depth, totalFromMatcher, totalFromEmission, readonly)
354414 $Tuple2(nil, periodAndTotals)
355415 }
356416
357417
358418
359419 @Callable(i)
360420 func claimReward () = {
361421 let address = toString(i.caller)
362- let $t01746017580 = commonClaimReward(address)
363- let period = $t01746017580._1
364- let amountFromMatcher = $t01746017580._2
365- let amountFromEmission = $t01746017580._3
366- let userIdx = $t01746017580._4
367- let cfgArray = $t01746017580._5
368- let nextProcessedPeriod = $t01746017580._6
422+ let $t01932219449 = commonClaimReward(address, false)
423+ let period = $t01932219449._1
424+ let amountFromMatcher = $t01932219449._2
425+ let amountFromEmission = $t01932219449._3
426+ let userIdx = $t01932219449._4
427+ let cfgArray = $t01932219449._5
428+ let nextProcessedPeriod = $t01932219449._6
369429 $Tuple2([IntegerEntry(keyNextUnlaimedPeriodOfUser(userIdx), period), ScriptTransfer(i.caller, (amountFromMatcher + amountFromEmission), fromBase58String(cfgArray[IdxCfgAssetId])), HistoryEntry("claim", address, amountFromMatcher, amountFromEmission, period, nextProcessedPeriod, i)], [amountFromMatcher, amountFromEmission])
370430 }
371431
372432
373433
374434 @Callable(i)
375435 func claimRewardREADONLY (address) = {
376- let claimResults = commonClaimReward(address)
436+ let claimResults = commonClaimReward(address, true)
377437 let amount = (claimResults._2 + claimResults._3)
378438 $Tuple2(nil, amount)
379439 }
380440
381441
382442
383443 @Callable(i)
384444 func claimRewardDetailedREADONLY (address) = {
385- let $t01832218391 = commonClaimReward(address)
386- let ignored = $t01832218391._1
387- let fromMatcher = $t01832218391._2
388- let fromEmission = $t01832218391._3
445+ let $t02019720272 = commonClaimReward(address, true)
446+ let ignored = $t02019720272._1
447+ let fromMatcher = $t02019720272._2
448+ let fromEmission = $t02019720272._3
389449 $Tuple2(nil, makeString(["%d%d%d", toString((fromMatcher + fromEmission)), toString(fromMatcher), toString(fromEmission)], SEP))
390450 }
391451
392452
393453
394454 @Callable(i)
395455 func latestFinalizedPeriodREADONLY (address) = $Tuple2(nil, valueOrElse(getInteger(this, keyLatestPeriod()), -1))
396456
397457
398458
399459 @Callable(i)
400460 func latestFinalizedPeriodInfoREADONLY (address) = $Tuple2(nil, getStringByKey(keyLastPayoutInfo()))
401461
402462
403463
404464 @Callable(i)
405465 func calcGwxParamsREADONLY (gwxAmountStart,lockStartHeight,lockDurationBlocks) = {
406466 let lockEndHeight = (lockStartHeight + lockDurationBlocks)
407467 let scale8ParamK = -(fraction(gwxAmountStart, SCALE, lockDurationBlocks))
408468 let scale8ParamB = (fraction(gwxAmountStart, SCALE, lockDurationBlocks) * lockEndHeight)
409469 $Tuple2(nil, [scale8ParamK, scale8ParamB, nextPeriod()])
410470 }
411471
412472
413473
414474 @Callable(i)
415475 func calcGwxAmountStartREADONLY (wxLockAmount,lockDuration,maxLockDuration) = {
416476 let coeffX8 = fraction(lockDuration, MULT8, maxLockDuration)
417477 let gWxAmountStart = fraction(wxLockAmount, coeffX8, MULT8)
418478 $Tuple2(nil, [gWxAmountStart])
419479 }
420480
421481
422482
423483 @Callable(i)
424484 func constructor (wxAssetIdStr,matcherPacemakerAddressStr,boostingContractAddressStr,maxDepth) = if ((this != i.caller))
425485 then throw("not authorized")
426486 else [StringEntry(keyConfig(), formatConfig(wxAssetIdStr, matcherPacemakerAddressStr, boostingContractAddressStr, maxDepth))]
427487
428488
429489
430490 @Callable(i)
431491 func constructorV2 (factoryAddress) = if ((this != i.caller))
432492 then throw("not authorized")
433493 else [StringEntry(keyFactoryAddress(), factoryAddress)]
434494
435495
436496
437497 @Callable(i)
438498 func constructorV3 (emissionAddress) = if ((this != i.caller))
439499 then throw("not authorized")
440500 else {
441501 let initLatestPeriod = if (isDefined(getInteger(this, keyLatestPeriod())))
442502 then nil
443503 else [IntegerEntry(keyLatestPeriod(), -1)]
444504 (initLatestPeriod :+ StringEntry(keyEmissionAddress(), emissionAddress))
445505 }
446506
447507
448508
449509 @Callable(i)
450510 func onEmissionForGwxStart () = if ((i.caller != factoryContract))
451511 then throw("permissions denied")
452512 else [IntegerEntry(keyGwxRewardEmissionStartHeight(), height)]
453513
454514
455515
456516 @Callable(i)
457517 func latestPeriodEmissionRewardsREADONLY (address) = {
458518 let period = nextPeriod()
459519 $Tuple2(nil, [getNumberByKey(keyAuxEmissionRewardForPeriod(period))])
460520 }
461521
462522
463523
464524 @Callable(i)
465525 func calcD (x1BigIntStr,x2BigIntStr,ampBigIntStr,aPrecisionBigIntStr,targetPrecisionBigIntStr) = {
466526 let nCoins = toBigInt(2)
467527 let aPrecision = parseBigIntValue(aPrecisionBigIntStr)
468528 let targetPrecision = parseBigIntValue(targetPrecisionBigIntStr)
469529 let x1 = parseBigIntValue(x1BigIntStr)
470530 let x2 = parseBigIntValue(x2BigIntStr)
471531 let amp = (parseBigIntValue(ampBigIntStr) * aPrecision)
472532 let s = (x1 + x2)
473533 if ((s == zeroBigInt))
474534 then $Tuple2(nil, toString(zeroBigInt))
475535 else {
476536 let ann = (amp * nCoins)
477537 let arr = [1, 2, 3, 4, 5, 6, 7]
478538 func calc (acc,cur) = {
479- let $t02187022059 = acc
480- let d = $t02187022059._1
481- let dPrev = $t02187022059._2
539+ let $t02375123940 = acc
540+ let d = $t02375123940._1
541+ let dPrev = $t02375123940._2
482542 let dp = (((d * d) * d) / (((x1 * x2) * nCoins) * nCoins))
483543 let dNext = (((((ann * s) / aPrecision) + (dp * nCoins)) * d) / ((((ann - aPrecision) * d) / aPrecision) + ((nCoins + toBigInt(1)) * dp)))
484544 $Tuple2(dNext, d)
485545 }
486546
487- let $t02227222322 = {
547+ let $t02415324203 = {
488548 let $l = arr
489549 let $s = size($l)
490550 let $acc0 = $Tuple2(s, unit)
491551 func $f0_1 ($a,$i) = if (($i >= $s))
492552 then $a
493553 else calc($a, $l[$i])
494554
495555 func $f0_2 ($a,$i) = if (($i >= $s))
496556 then $a
497557 else throw("List size exceeds 7")
498558
499559 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7)
500560 }
501- let dNext = $t02227222322._1
502- let dPrev = $t02227222322._2
561+ let dNext = $t02415324203._1
562+ let dPrev = $t02415324203._2
503563 let dDiff = abs((dNext - value(dPrev)))
504564 if ((targetPrecision >= dDiff))
505565 then $Tuple2(nil, toString(dNext))
506566 else throw(("D calculation error, dDiff = " + toString(dDiff)))
507567 }
508568 }
509569
510570

github/deemru/w8io/169f3d6 
119.75 ms