tx · E7Yt2pDHc5Uap3ov9kiLEK1R413JRpRaaDkAz7du4zow

3Myn55vLkduxbX3ZXfiDCZhaQsLxYp1kmCy:  -0.02800000 Waves

2023.03.02 12:50 [2472277] smart account 3Myn55vLkduxbX3ZXfiDCZhaQsLxYp1kmCy > SELF 0.00000000 Waves

{ "type": 13, "id": "E7Yt2pDHc5Uap3ov9kiLEK1R413JRpRaaDkAz7du4zow", "fee": 2800000, "feeAssetId": null, "timestamp": 1677750632920, "version": 2, "chainId": 84, "sender": "3Myn55vLkduxbX3ZXfiDCZhaQsLxYp1kmCy", "senderPublicKey": "9W33iCCNfmFxUbiC6XZcH5x7f6xfwC7Jb3BoExT5q2PV", "proofs": [ "5iStmndo2ZRt9kQR9ru88LexN9A5s1YfwTzQ1MkwAugduMHvvhjRaPyFsYgrLXvpbMjBYBGqa7ZFJJKucy1Bi7fK" ], "script": "base64:BgJHCAISCAoGCAgBAQEIEgUKAwEIAhIDCgEBEgMKAQESBAoCCAgSBAoCCAgSAwoBCBIDCgEIEgMKAQgSBAoCCAESABIDCgEIEgBxAANTRVACAl9fAAZTQ0FMRTgACAAFTVVMVDgAgMLXLwAOUE9PTFdFSUdIVE1VTFQFBU1VTFQ4AQd3cmFwRXJyAQNtc2cJALkJAgkAzAgCAg5ib29zdGluZy5yaWRlOgkAzAgCBQNtc2cFA25pbAIBIAEIdGhyb3dFcnIBA21zZwkAAgEJAQd3cmFwRXJyAQUDbXNnAQRzdHJmAgdhZGRyZXNzA2tleQkBE3ZhbHVlT3JFcnJvck1lc3NhZ2UCCQCdCAIFB2FkZHJlc3MFA2tleQkArAICCQCsAgICD21hbmRhdG9yeSB0aGlzLgUDa2V5Ag8gaXMgbm90IGRlZmluZWQBA2lvegIHYWRkcmVzcwNrZXkJAQt2YWx1ZU9yRWxzZQIJAJoIAgUHYWRkcmVzcwUDa2V5AAABA2lvZAMHYWRkcmVzcwNrZXkKZGVmYXVsdFZhbAkBC3ZhbHVlT3JFbHNlAgkAmggCBQd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0Y2gwAgRVbml0CAUCdHgPc2VuZGVyUHVibGljS2V5CQACAQILTWF0Y2ggZXJyb3IJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAFD3RhcmdldFB1YmxpY0tleVFh5iQ=", "height": 2472277, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2erBZ56btCsuRf679LFe6bGSJeUWua6NoRuTzhssrEZU Next: CQzU9r9DqQ5WQeJEyU33WSZvCsjCxJSSHZBUL2RdE8Up Diff:
OldNewDifferences
434434 let userBoostEmissionLastIntegralKEY = keyUserBoostEmissionLastINTEGRAL(userNumStr)
435435 let userBoostEmissionLastIntegral = valueOrElse(getInteger(this, userLpBoostEmissionLastIntegralKEY), ioz(this, userBoostEmissionLastIntegralKEY))
436436 let boostEmissionIntegral = (((wxEmissionPerBlock * dh) * 2) / 3)
437- let userBoostEmissionIntegral = max([0, (boostEmissionIntegral - userBoostEmissionLastIntegral)])
437+ let userBoostEmissionIntegral = (boostEmissionIntegral - userBoostEmissionLastIntegral)
438438 let udh = fraction(userBoostEmissionIntegral, 3, (2 * wxEmissionPerBlock))
439439 let uLastH = (h - udh)
440440 let udh0 = max([(gwxRewardEmissionStartHeight - uLastH), 0])
567567
568568 @Callable(i)
569569 func lockRef (duration,referrerAddress,signature) = {
570- let $t02444024505 = lockActions(i, duration)
571- let lockActionsResult = $t02444024505._1
572- let gWxAmountStart = $t02444024505._2
570+ let $t02443024495 = lockActions(i, duration)
571+ let lockActionsResult = $t02443024495._1
572+ let gWxAmountStart = $t02443024495._2
573573 let referralAddress = toString(i.caller)
574574 let refInv = if (if ((referrerAddress == ""))
575575 then true
590590
591591 @Callable(i)
592592 func lock (duration) = {
593- let $t02496325028 = lockActions(i, duration)
594- let lockActionsResult = $t02496325028._1
595- let gWxAmountStart = $t02496325028._2
593+ let $t02495325018 = lockActions(i, duration)
594+ let lockActionsResult = $t02495325018._1
595+ let gWxAmountStart = $t02495325018._2
596596 let updateRefActivity = invoke(mathContract, "updateReferralActivity", [toString(i.caller), gWxAmountStart], nil)
597597 if ((updateRefActivity == updateRefActivity))
598598 then $Tuple2(lockActionsResult, unit)
681681 func claimWxBoost (lpAssetIdStr,userAddressStr) = if ((stakingContract != i.caller))
682682 then throw("permissions denied")
683683 else {
684- let $t03000930111 = internalClaimWxBoost(lpAssetIdStr, userAddressStr, false)
685- let userBoostAvailable = $t03000930111._1
686- let dataState = $t03000930111._2
687- let debug = $t03000930111._3
684+ let $t02999930101 = internalClaimWxBoost(lpAssetIdStr, userAddressStr, false)
685+ let userBoostAvailable = $t02999930101._1
686+ let dataState = $t02999930101._2
687+ let debug = $t02999930101._3
688688 $Tuple2(dataState, [userBoostAvailable])
689689 }
690690
692692
693693 @Callable(i)
694694 func claimWxBoostREADONLY (lpAssetIdStr,userAddressStr) = {
695- let $t03024330344 = internalClaimWxBoost(lpAssetIdStr, userAddressStr, true)
696- let userBoostAvailable = $t03024330344._1
697- let dataState = $t03024330344._2
698- let debug = $t03024330344._3
695+ let $t03023330334 = internalClaimWxBoost(lpAssetIdStr, userAddressStr, true)
696+ let userBoostAvailable = $t03023330334._1
697+ let dataState = $t03023330334._2
698+ let debug = $t03023330334._3
699699 $Tuple2(nil, [userBoostAvailable, debug])
700700 }
701701
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let SEP = "__"
55
66 let SCALE8 = 8
77
88 let MULT8 = 100000000
99
1010 let POOLWEIGHTMULT = MULT8
1111
1212 func wrapErr (msg) = makeString(["boosting.ride:", msg], " ")
1313
1414
1515 func throwErr (msg) = throw(wrapErr(msg))
1616
1717
1818 func strf (address,key) = valueOrErrorMessage(getString(address, key), (("mandatory this." + key) + " is not defined"))
1919
2020
2121 func ioz (address,key) = valueOrElse(getInteger(address, key), 0)
2222
2323
2424 func iod (address,key,defaultVal) = valueOrElse(getInteger(address, key), defaultVal)
2525
2626
2727 func iof (address,key) = valueOrErrorMessage(getInteger(address, key), (("mandatory this." + key) + " is not defined"))
2828
2929
3030 func abs (val) = if ((0 > val))
3131 then -(val)
3232 else val
3333
3434
3535 func aal (val) = match val {
3636 case valAnyLyst: List[Any] =>
3737 valAnyLyst
3838 case _ =>
3939 throw("fail to cast into List[Any]")
4040 }
4141
4242
4343 func ai (val) = match val {
4444 case valInt: Int =>
4545 valInt
4646 case _ =>
4747 throw("fail to cast into Int")
4848 }
4949
5050
5151 func keyReferralsContractAddress () = makeString(["%s%s", "config", "referralsContractAddress"], SEP)
5252
5353
5454 let referralsContractAddressOrFail = addressFromStringValue(strf(this, keyReferralsContractAddress()))
5555
5656 let keyReferralProgramName = makeString(["%s%s", "referral", "programName"], SEP)
5757
5858 let referralProgramNameDefault = "wxlock"
5959
6060 let referralProgramName = valueOrElse(getString(this, keyReferralProgramName), referralProgramNameDefault)
6161
6262 func keyFactoryAddress () = "%s%s__config__factoryAddress"
6363
6464
6565 let IdxFactoryCfgStakingDapp = 1
6666
6767 let IdxFactoryCfgBoostingDapp = 2
6868
6969 let IdxFactoryCfgIdoDapp = 3
7070
7171 let IdxFactoryCfgTeamDapp = 4
7272
7373 let IdxFactoryCfgEmissionDapp = 5
7474
7575 let IdxFactoryCfgRestDapp = 6
7676
7777 let IdxFactoryCfgSlippageDapp = 7
7878
7979 let IdxFactoryCfgDaoDapp = 8
8080
8181 let IdxFactoryCfgMarketingDapp = 9
8282
8383 let IdxFactoryCfgGwxRewardDapp = 10
8484
8585 let IdxFactoryCfgBirdsDapp = 11
8686
8787 func keyFactoryCfg () = "%s__factoryConfig"
8888
8989
9090 func keyFactoryLp2AssetsMapping (lpAssetStr) = makeString(["%s%s%s", lpAssetStr, "mappings__lpAsset2PoolContract"], SEP)
9191
9292
9393 func keyFactoryLpList () = "%s__lpTokensList"
9494
9595
9696 func keyFactoryLpAssetToPoolContractAddress (lpAssetStr) = makeString(["%s%s%s", lpAssetStr, "mappings__lpAsset2PoolContract"], SEP)
9797
9898
9999 func keyFactoryPoolWeight (contractAddress) = makeString(["%s%s", "poolWeight", contractAddress], SEP)
100100
101101
102102 func keyFactoryPoolWeightHistory (poolAddress,num) = ((("%s%s__poolWeight__" + poolAddress) + "__") + toString(num))
103103
104104
105105 func readFactoryAddressOrFail () = addressFromStringValue(strf(this, keyFactoryAddress()))
106106
107107
108108 func readLpList () = split(valueOrElse(getString(readFactoryAddressOrFail(), keyFactoryLpList()), ""), SEP)
109109
110110
111111 func readFactoryCfgOrFail (factory) = split(strf(factory, keyFactoryCfg()), SEP)
112112
113113
114114 func getBoostingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgBoostingDapp])
115115
116116
117117 func getEmissionAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgEmissionDapp])
118118
119119
120120 func getStakingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgStakingDapp])
121121
122122
123123 func getGwxRewardAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgGwxRewardDapp])
124124
125125
126126 func keyManagerPublicKey () = "%s__managerPublicKey"
127127
128128
129129 func keyPendingManagerPublicKey () = "%s__pendingManagerPublicKey"
130130
131131
132132 func keyEmissionRatePerBlockCurrent () = "%s%s__ratePerBlock__current"
133133
134134
135135 func keyEmissionRatePerBlockMaxCurrent () = "%s%s__ratePerBlockMax__current"
136136
137137
138138 func keyEmissionStartBlock () = "%s%s__emission__startBlock"
139139
140140
141141 func keyEmissionDurationInBlocks () = "%s%s__emission__duration"
142142
143143
144144 func keyEmissionEndBlock () = "%s%s__emission__endBlock"
145145
146146
147147 func keyNextPeriod () = "%s__nextPeriod"
148148
149149
150150 func keyGwxRewardEmissionStartHeight () = "%s%s__gwxRewardEmissionPart__startHeight"
151151
152152
153153 let IdxCfgAssetId = 1
154154
155155 let IdxCfgMinLockAmount = 2
156156
157157 let IdxCfgMinLockDuration = 3
158158
159159 let IdxCfgMaxLockDuration = 4
160160
161161 let IdxCfgMathContract = 5
162162
163163 func keyConfig () = "%s__config"
164164
165165
166166 func readConfigArrayOrFail () = split(strf(this, keyConfig()), SEP)
167167
168168
169169 let mathContract = addressFromStringValue(readConfigArrayOrFail()[IdxCfgMathContract])
170170
171171 func formatConfigS (assetId,minLockAmount,minLockDuration,maxLockDuration,mathContract) = makeString(["%s%d%d%d", assetId, minLockAmount, minLockDuration, maxLockDuration, mathContract], SEP)
172172
173173
174174 func formatConfig (assetId,minLockAmount,minLockDuration,maxLockDuration,mathContract) = formatConfigS(assetId, toString(minLockAmount), toString(minLockDuration), toString(maxLockDuration), mathContract)
175175
176176
177177 func managerPublicKeyOrUnit () = match getString(keyManagerPublicKey()) {
178178 case s: String =>
179179 fromBase58String(s)
180180 case _: Unit =>
181181 unit
182182 case _ =>
183183 throw("Match error")
184184 }
185185
186186
187187 func pendingManagerPublicKeyOrUnit () = match getString(keyPendingManagerPublicKey()) {
188188 case s: String =>
189189 fromBase58String(s)
190190 case _: Unit =>
191191 unit
192192 case _ =>
193193 throw("Match error")
194194 }
195195
196196
197197 func mustManager (i) = {
198198 let pd = throw("Permission denied")
199199 match managerPublicKeyOrUnit() {
200200 case pk: ByteVector =>
201201 if ((i.callerPublicKey == pk))
202202 then true
203203 else pd
204204 case _: Unit =>
205205 if ((i.caller == this))
206206 then true
207207 else pd
208208 case _ =>
209209 throw("Match error")
210210 }
211211 }
212212
213213
214214 let IdxLockUserNum = 1
215215
216216 let IdxLockAmount = 2
217217
218218 let IdxLockStart = 3
219219
220220 let IdxLockDuration = 4
221221
222222 let IdxLockParamK = 5
223223
224224 let IdxLockParamB = 6
225225
226226 func keyLockParamsRecord (userAddress) = makeString(["%s%s__lock", userAddress], SEP)
227227
228228
229229 func readLockParamsRecordOrFail (userAddress) = split(strf(this, keyLockParamsRecord(userAddress)), SEP)
230230
231231
232232 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)
233233
234234
235235 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))
236236
237237
238238 func keyNextUserNum () = "%s__nextUserNum"
239239
240240
241241 func keyUser2NumMapping (userAddress) = makeString(["%s%s%s__mapping__user2num", userAddress], SEP)
242242
243243
244244 func keyNum2UserMapping (num) = makeString(["%s%s%s__mapping__num2user", num], SEP)
245245
246246
247247 func keyLockParamUserAmount (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "amount"], SEP)
248248
249249
250250 func keyLockParamStartBlock (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "start"], SEP)
251251
252252
253253 func keyLockParamDuration (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "duration"], SEP)
254254
255255
256256 func keyLockParamK (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "k"], SEP)
257257
258258
259259 func keyLockParamB (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "b"], SEP)
260260
261261
262262 func keyLockParamByPeriodK (userNum,period) = makeString(["%s%d%s%d__paramByPeriod", userNum, "k", period], SEP)
263263
264264
265265 func keyLockParamByPeriodB (userNum,period) = makeString(["%s%d%s%d__paramByPeriod", userNum, "b", period], SEP)
266266
267267
268268 func keyLockParamTotalAmount () = "%s%s__stats__activeTotalLocked"
269269
270270
271271 func keyStatsLocksDurationSumInBlocks () = "%s%s__stats__locksDurationSumInBlocks"
272272
273273
274274 func keyStatsLocksCount () = "%s%s__stats__locksCount"
275275
276276
277277 func keyStatsUsersCount () = "%s%s__stats__activeUsersCount"
278278
279279
280280 func keyUserBoostEmissionLastINTEGRAL (userNum) = makeString(["%s%d__userBoostEmissionLastInt", userNum], SEP)
281281
282282
283283 func keyUserLpBoostEmissionLastINTEGRAL (userNum,lpAssetId) = makeString(["%s%d__userBoostEmissionLastInt", userNum, lpAssetId], SEP)
284284
285285
286286 func keyUserMaxBoostINTEGRAL (userNum) = makeString(["%s%d__maxBoostInt", userNum], SEP)
287287
288288
289289 func keyTotalMaxBoostINTEGRAL () = "%s%s__maxBoostInt__total"
290290
291291
292292 func keyUserBoostAvalaibleToClaimTotal (userNum) = makeString(["%s%d__userBoostAvaliableToClaimTotal", userNum], SEP)
293293
294294
295295 func keyUserBoostClaimed (userNum) = makeString(["%s%d__userBoostClaimed", userNum], SEP)
296296
297297
298298 func keyTotalCachedGwx () = "%s%s__gwxCached__total"
299299
300300
301301 func keyTotalCachedGwxCorrective () = "%s__gwxCachedTotalCorrective"
302302
303303
304304 let factoryContract = readFactoryAddressOrFail()
305305
306306 let factoryCfg = readFactoryCfgOrFail(factoryContract)
307307
308308 let emissionContract = getEmissionAddressOrFail(factoryCfg)
309309
310310 let stakingContract = getStakingAddressOrFail(factoryCfg)
311311
312312 let gwxRewardContract = getGwxRewardAddressOrFail(factoryCfg)
313313
314314 let lpStakingPoolsContract = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(makeString(["%s", "lpStakingPoolsContract"], SEP)), wrapErr("lp_staking_pools contract address is undefined"))), wrapErr("invalid lp_staking_pools contract address"))
315315
316316 func getTotalCachedGwx (correct) = {
317317 let keyVotingEmissionContract = makeString(["%s", "votingEmissionContract"], SEP)
318318 let votingEmissionContract = addressFromStringValue(getStringValue(factoryContract, keyVotingEmissionContract))
319319 let keyCurrentEpochUi = makeString(["%s", "currentEpochUi"], SEP)
320320 let currentEpochUi = getIntegerValue(votingEmissionContract, keyCurrentEpochUi)
321321 let keyTargetEpoch = makeString(["%s%s", "totalCachedGwxCorrection__activationEpoch"], SEP)
322322 let targetEpochOption = getInteger(this, keyTargetEpoch)
323323 let totalCachedGwxRaw = valueOrElse(getInteger(this, keyTotalCachedGwx()), 0)
324324 let isCorrectionActivated = if (isDefined(targetEpochOption))
325325 then (currentEpochUi >= value(targetEpochOption))
326326 else false
327327 let corrective = if (if (isCorrectionActivated)
328328 then correct
329329 else false)
330330 then valueOrElse(getInteger(this, keyTotalCachedGwxCorrective()), 0)
331331 else 0
332332 max([0, (totalCachedGwxRaw + corrective)])
333333 }
334334
335335
336336 func HistoryEntry (type,user,amount,lockStart,duration,k,b,i) = {
337337 let historyKEY = makeString(["%s%s%s%s__history", type, user, toBase58String(i.transactionId)], SEP)
338338 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)
339339 StringEntry(historyKEY, historyDATA)
340340 }
341341
342342
343343 func StatsEntry (totalLockedInc,durationInc,lockCountInc,usersCountInc) = {
344344 let locksDurationSumInBlocksKEY = keyStatsLocksDurationSumInBlocks()
345345 let locksCountKEY = keyStatsLocksCount()
346346 let usersCountKEY = keyStatsUsersCount()
347347 let totalAmountKEY = keyLockParamTotalAmount()
348348 let locksDurationSumInBlocks = ioz(this, locksDurationSumInBlocksKEY)
349349 let locksCount = ioz(this, locksCountKEY)
350350 let usersCount = ioz(this, usersCountKEY)
351351 let totalAmount = ioz(this, totalAmountKEY)
352352 [IntegerEntry(locksDurationSumInBlocksKEY, (locksDurationSumInBlocks + durationInc)), IntegerEntry(locksCountKEY, (locksCount + lockCountInc)), IntegerEntry(usersCountKEY, (usersCount + usersCountInc)), IntegerEntry(totalAmountKEY, (totalAmount + totalLockedInc))]
353353 }
354354
355355
356356 func calcGwxAmount (kRaw,bRaw,h) = {
357357 let SCALE = 1000
358358 (((kRaw * h) + bRaw) / SCALE)
359359 }
360360
361361
362362 func LockParamsEntry (userAddress,userNum,amount,start,duration,k,b,period) = {
363363 let userAmountKEY = keyLockParamUserAmount(userNum)
364364 let startBlockKEY = keyLockParamStartBlock(userNum)
365365 let durationKEY = keyLockParamDuration(userNum)
366366 let kKEY = keyLockParamK(userNum)
367367 let bKEY = keyLockParamB(userNum)
368368 let kByPeriodKEY = keyLockParamByPeriodK(userNum, period)
369369 let bByPeriodKEY = keyLockParamByPeriodB(userNum, period)
370370 let gwxAmount = calcGwxAmount(k, b, height)
371371 [IntegerEntry(userAmountKEY, amount), IntegerEntry(startBlockKEY, start), IntegerEntry(durationKEY, duration), IntegerEntry(kKEY, k), IntegerEntry(bKEY, b), IntegerEntry(kByPeriodKEY, k), IntegerEntry(bByPeriodKEY, b), StringEntry(keyLockParamsRecord(userAddress), formatLockParamsRecord(userNum, amount, start, duration, k, b, gwxAmount))]
372372 }
373373
374374
375375 func extractOptionalPaymentAmountOrFail (i,expectedAssetId) = if ((size(i.payments) > 1))
376376 then throw("only one payment is allowed")
377377 else if ((size(i.payments) == 0))
378378 then 0
379379 else {
380380 let pmt = i.payments[0]
381381 if ((value(pmt.assetId) != expectedAssetId))
382382 then throw("invalid asset id in payment")
383383 else pmt.amount
384384 }
385385
386386
387387 func calcUserGwxAmountAtHeight (userAddress,targetHeight) = {
388388 let EMPTY = "empty"
389389 let user2NumMappingKEY = keyUser2NumMapping(userAddress)
390390 let userNum = valueOrElse(getString(user2NumMappingKEY), EMPTY)
391391 let k = valueOrElse(getInteger(keyLockParamK(userNum)), 0)
392392 let b = valueOrElse(getInteger(keyLockParamB(userNum)), 0)
393393 let gwxAmountCalc = calcGwxAmount(k, b, targetHeight)
394394 let gwxAmount = if ((0 > gwxAmountCalc))
395395 then 0
396396 else gwxAmountCalc
397397 gwxAmount
398398 }
399399
400400
401401 func calcCurrentGwxAmount (userAddress) = calcUserGwxAmountAtHeight(userAddress, height)
402402
403403
404404 func internalClaimWxBoost (lpAssetIdStr,userAddressStr,readOnly) = {
405405 let EMPTY = "EMPTY"
406406 let userRecordOrEmpty = valueOrElse(getString(this, keyLockParamsRecord(userAddressStr)), EMPTY)
407407 if ((userRecordOrEmpty == EMPTY))
408408 then $Tuple3(0, nil, "userRecord::is::empty")
409409 else {
410410 let userRecordArray = split(userRecordOrEmpty, SEP)
411411 let userNumStr = userRecordArray[IdxLockUserNum]
412412 let gwxRewardEmissionStartHeight = valueOrElse(getInteger(gwxRewardContract, keyGwxRewardEmissionStartHeight()), 0)
413413 let EMPTYSTR = "empty"
414414 let $t01539715965 = if ((lpAssetIdStr != EMPTYSTR))
415415 then {
416416 let poolAddressStr = valueOrErrorMessage(getString(factoryContract, keyFactoryLp2AssetsMapping(lpAssetIdStr)), ("unsupported lp asset " + lpAssetIdStr))
417417 let pw1 = getIntegerValue(factoryContract, keyFactoryPoolWeight(poolAddressStr))
418418 let pw0 = valueOrElse(getInteger(factoryContract, keyFactoryPoolWeightHistory(poolAddressStr, 0)), pw1)
419419 $Tuple2(pw0, pw1)
420420 }
421421 else if (readOnly)
422422 then $Tuple2(0, 0)
423423 else throw(("not readonly mode: unsupported lp asset " + lpAssetIdStr))
424424 let poolWeight0 = $t01539715965._1
425425 let poolWeight1 = $t01539715965._2
426426 let wxEmissionPerBlock = iof(emissionContract, keyEmissionRatePerBlockCurrent())
427427 let emissionStart = iof(emissionContract, keyEmissionStartBlock())
428428 let emissionEnd = iof(emissionContract, keyEmissionEndBlock())
429429 let h = if ((height > emissionEnd))
430430 then emissionEnd
431431 else height
432432 let dh = max([(h - emissionStart), 0])
433433 let userLpBoostEmissionLastIntegralKEY = keyUserLpBoostEmissionLastINTEGRAL(userNumStr, lpAssetIdStr)
434434 let userBoostEmissionLastIntegralKEY = keyUserBoostEmissionLastINTEGRAL(userNumStr)
435435 let userBoostEmissionLastIntegral = valueOrElse(getInteger(this, userLpBoostEmissionLastIntegralKEY), ioz(this, userBoostEmissionLastIntegralKEY))
436436 let boostEmissionIntegral = (((wxEmissionPerBlock * dh) * 2) / 3)
437- let userBoostEmissionIntegral = max([0, (boostEmissionIntegral - userBoostEmissionLastIntegral)])
437+ let userBoostEmissionIntegral = (boostEmissionIntegral - userBoostEmissionLastIntegral)
438438 let udh = fraction(userBoostEmissionIntegral, 3, (2 * wxEmissionPerBlock))
439439 let uLastH = (h - udh)
440440 let udh0 = max([(gwxRewardEmissionStartHeight - uLastH), 0])
441441 let udh1 = ((h - uLastH) - udh0)
442442 if (if (if ((0 > uLastH))
443443 then true
444444 else (0 > udh1))
445445 then true
446446 else (abs(((udh0 + udh1) - udh)) >= 1))
447447 then throw(((((((((((("invalid udh calc: udh=" + toString(udh)) + " uLastH=") + toString(uLastH)) + " udh0=") + toString(udh0)) + " udh1=") + toString(udh1)) + " lpAssetId=") + lpAssetIdStr) + " userAddress=") + userAddressStr))
448448 else if ((0 > userBoostEmissionIntegral))
449449 then throw("wrong calculations")
450450 else {
451451 let userMaxBoostIntegralKEY = keyUserMaxBoostINTEGRAL(userNumStr)
452452 let totalMaxBoostIntegralKEY = keyTotalMaxBoostINTEGRAL()
453453 let userMaxBoostInt = ioz(this, userMaxBoostIntegralKEY)
454454 let totalMaxBoostInt = ioz(this, totalMaxBoostIntegralKEY)
455455 let totalCachedGwxCorrected = getTotalCachedGwx(true)
456456 let userCurrGwx = calcCurrentGwxAmount(userAddressStr)
457457 let userBoostAvalaibleToClaimTotalKEY = keyUserBoostAvalaibleToClaimTotal(userNumStr)
458458 let userBoostAvaliableToClaimTotal = ioz(this, userBoostAvalaibleToClaimTotalKEY)
459459 let userBoostEmissionIntegral0 = if ((udh == 0))
460460 then 0
461461 else fraction(userBoostEmissionIntegral, udh0, udh)
462462 let userBoostEmissionIntegral1 = if ((udh == 0))
463463 then 0
464464 else fraction(userBoostEmissionIntegral, udh1, udh)
465465 let poolUserBoostEmissionIntegral0 = fraction(userBoostEmissionIntegral0, poolWeight0, POOLWEIGHTMULT)
466466 let poolUserBoostEmissionIntegral1 = fraction(userBoostEmissionIntegral1, poolWeight1, POOLWEIGHTMULT)
467467 let userBoostAvaliableToClaimTotalNew0 = if ((totalCachedGwxCorrected == 0))
468468 then 0
469469 else fraction(poolUserBoostEmissionIntegral0, userCurrGwx, totalCachedGwxCorrected)
470470 let userBoostAvaliableToClaimTotalNew1 = if ((totalCachedGwxCorrected == 0))
471471 then 0
472472 else fraction(poolUserBoostEmissionIntegral1, userCurrGwx, totalCachedGwxCorrected)
473473 let userBoostAvaliableToClaimTotalNew = (userBoostAvaliableToClaimTotalNew0 + userBoostAvaliableToClaimTotalNew1)
474474 let userBoostClaimedKEY = keyUserBoostClaimed(userNumStr)
475475 let userBoostClaimed = ioz(this, userBoostClaimedKEY)
476476 let userBoostAvailable = (userBoostAvaliableToClaimTotalNew - userBoostClaimed)
477477 let dataState = [IntegerEntry(userLpBoostEmissionLastIntegralKEY, boostEmissionIntegral)]
478478 let debug = makeString([toString(userBoostEmissionLastIntegral), toString(userBoostEmissionIntegral), toString(userBoostClaimed), toString(userBoostAvailable), toString(poolWeight0), toString(poolWeight1), toString(h), toString(udh), toString(uLastH), toString(udh0), toString(udh1), toString(userCurrGwx), toString(totalCachedGwxCorrected)], ":")
479479 $Tuple3(userBoostAvaliableToClaimTotalNew, dataState, debug)
480480 }
481481 }
482482 }
483483
484484
485485 func lockActions (i,duration) = {
486486 let cfgArray = readConfigArrayOrFail()
487487 let assetIdStr = cfgArray[IdxCfgAssetId]
488488 let assetId = fromBase58String(assetIdStr)
489489 let minLockAmount = parseIntValue(cfgArray[IdxCfgMinLockAmount])
490490 let minLockDuration = parseIntValue(cfgArray[IdxCfgMinLockDuration])
491491 let maxLockDuration = parseIntValue(cfgArray[IdxCfgMaxLockDuration])
492492 if ((size(i.payments) != 1))
493493 then throw("invalid payment - exact one payment must be attached")
494494 else {
495495 let pmt = i.payments[0]
496496 let pmtAmount = pmt.amount
497497 if ((assetId != value(pmt.assetId)))
498498 then throw((("invalid asset is in payment - " + assetIdStr) + " is expected"))
499499 else {
500500 let nextUserNumKEY = keyNextUserNum()
501501 let userAddressStr = toString(i.caller)
502502 let userIsExisting = isDefined(getString(keyUser2NumMapping(userAddressStr)))
503503 let userNumStr = if (userIsExisting)
504504 then value(getString(keyUser2NumMapping(userAddressStr)))
505505 else toString(iof(this, nextUserNumKEY))
506506 let userNum = parseIntValue(userNumStr)
507507 let lockStart = height
508508 let startBlockKEY = keyLockParamStartBlock(userNumStr)
509509 let durationKEY = keyLockParamDuration(userNumStr)
510510 let userAmountKEY = keyLockParamUserAmount(userNumStr)
511511 if (if ((minLockAmount > pmtAmount))
512512 then (i.caller != lpStakingPoolsContract)
513513 else false)
514514 then throw(("amount is less then minLockAmount=" + toString(minLockAmount)))
515515 else if ((minLockDuration > duration))
516516 then throw(("passed duration is less then minLockDuration=" + toString(minLockDuration)))
517517 else if ((duration > maxLockDuration))
518518 then throw(("passed duration is greater then maxLockDuration=" + toString(maxLockDuration)))
519519 else if (if (userIsExisting)
520520 then ((iof(this, startBlockKEY) + iof(this, durationKEY)) >= lockStart)
521521 else false)
522522 then throw("there is an active lock - consider to use increaseLock")
523523 else if ((ioz(this, userAmountKEY) > 0))
524524 then throw(("there are locked WXs - consider to use increaseLock " + userAmountKEY))
525525 else {
526526 let coeffX8 = fraction(duration, MULT8, maxLockDuration)
527527 let gWxAmountStart = fraction(pmtAmount, coeffX8, MULT8)
528528 let gWxParamsResultList = aal(invoke(mathContract, "calcGwxParamsREADONLY", [gWxAmountStart, lockStart, duration], nil))
529529 let k = ai(gWxParamsResultList[0])
530530 let b = ai(gWxParamsResultList[1])
531531 let period = toString(ai(gWxParamsResultList[2]))
532532 let wxEmissionPerBlock = iof(emissionContract, keyEmissionRatePerBlockCurrent())
533533 let emissionStart = iof(emissionContract, keyEmissionStartBlock())
534534 let emissionEnd = iof(emissionContract, keyEmissionEndBlock())
535535 let h = if ((height > emissionEnd))
536536 then emissionEnd
537537 else height
538538 let dh = max([(h - emissionStart), 0])
539539 let userBoostEmissionLastIntegralKEY = keyUserBoostEmissionLastINTEGRAL(userNumStr)
540540 let boostEmissionIntegral = (((wxEmissionPerBlock * dh) * 2) / 3)
541541 let userMaxBoostIntegralKEY = keyUserMaxBoostINTEGRAL(userNumStr)
542542 let totalMaxBoostIntegralKEY = keyTotalMaxBoostINTEGRAL()
543543 let userMaxBoostInt = ((gWxAmountStart * duration) / 2)
544544 let totalMaxBoostInt = ioz(this, totalMaxBoostIntegralKEY)
545545 let totalCachedGwxRaw = getTotalCachedGwx(false)
546546 let arr = if (userIsExisting)
547547 then nil
548548 else [IntegerEntry(nextUserNumKEY, (userNum + 1)), StringEntry(keyUser2NumMapping(userAddressStr), userNumStr), StringEntry(keyNum2UserMapping(userNumStr), userAddressStr)]
549549 $Tuple2(((((arr ++ LockParamsEntry(userAddressStr, userNumStr, pmtAmount, lockStart, duration, k, b, period)) ++ StatsEntry(pmtAmount, duration, 1, if (userIsExisting)
550550 then 0
551551 else 1)) :+ HistoryEntry("lock", userAddressStr, pmtAmount, lockStart, duration, k, b, i)) ++ [IntegerEntry(userBoostEmissionLastIntegralKEY, boostEmissionIntegral), IntegerEntry(keyTotalCachedGwx(), (totalCachedGwxRaw + gWxAmountStart))]), gWxAmountStart)
552552 }
553553 }
554554 }
555555 }
556556
557557
558558 @Callable(i)
559559 func constructor (factoryAddressStr,lockAssetIdStr,minLockAmount,minDuration,maxDuration,mathContract) = {
560560 let checkCaller = mustManager(i)
561561 if ((checkCaller == checkCaller))
562562 then ([IntegerEntry(keyNextUserNum(), 0), StringEntry(keyConfig(), formatConfig(lockAssetIdStr, minLockAmount, minDuration, maxDuration, mathContract)), StringEntry(keyFactoryAddress(), factoryAddressStr)] ++ StatsEntry(0, 0, 0, 0))
563563 else throw("Strict value is not equal to itself.")
564564 }
565565
566566
567567
568568 @Callable(i)
569569 func lockRef (duration,referrerAddress,signature) = {
570- let $t02444024505 = lockActions(i, duration)
571- let lockActionsResult = $t02444024505._1
572- let gWxAmountStart = $t02444024505._2
570+ let $t02443024495 = lockActions(i, duration)
571+ let lockActionsResult = $t02443024495._1
572+ let gWxAmountStart = $t02443024495._2
573573 let referralAddress = toString(i.caller)
574574 let refInv = if (if ((referrerAddress == ""))
575575 then true
576576 else (signature == base58''))
577577 then unit
578578 else invoke(referralsContractAddressOrFail, "createPair", [referralProgramName, referrerAddress, referralAddress, signature], nil)
579579 if ((refInv == refInv))
580580 then {
581581 let updateRefActivity = invoke(mathContract, "updateReferralActivity", [toString(i.caller), gWxAmountStart], nil)
582582 if ((updateRefActivity == updateRefActivity))
583583 then $Tuple2(lockActionsResult, unit)
584584 else throw("Strict value is not equal to itself.")
585585 }
586586 else throw("Strict value is not equal to itself.")
587587 }
588588
589589
590590
591591 @Callable(i)
592592 func lock (duration) = {
593- let $t02496325028 = lockActions(i, duration)
594- let lockActionsResult = $t02496325028._1
595- let gWxAmountStart = $t02496325028._2
593+ let $t02495325018 = lockActions(i, duration)
594+ let lockActionsResult = $t02495325018._1
595+ let gWxAmountStart = $t02495325018._2
596596 let updateRefActivity = invoke(mathContract, "updateReferralActivity", [toString(i.caller), gWxAmountStart], nil)
597597 if ((updateRefActivity == updateRefActivity))
598598 then $Tuple2(lockActionsResult, unit)
599599 else throw("Strict value is not equal to itself.")
600600 }
601601
602602
603603
604604 @Callable(i)
605605 func increaseLock (deltaDuration) = {
606606 let cfgArray = readConfigArrayOrFail()
607607 let assetIdStr = cfgArray[IdxCfgAssetId]
608608 let assetId = fromBase58String(assetIdStr)
609609 let minLockDuration = parseIntValue(cfgArray[IdxCfgMinLockDuration])
610610 let maxLockDuration = parseIntValue(cfgArray[IdxCfgMaxLockDuration])
611611 let pmtAmount = extractOptionalPaymentAmountOrFail(i, assetId)
612612 let userAddressStr = toString(i.caller)
613613 let userRecordArray = readLockParamsRecordOrFail(userAddressStr)
614614 let userNumStr = userRecordArray[IdxLockUserNum]
615615 let userAmount = parseIntValue(userRecordArray[IdxLockAmount])
616616 let lockStart = parseIntValue(userRecordArray[IdxLockStart])
617617 let lockDuration = parseIntValue(userRecordArray[IdxLockDuration])
618618 let lockEnd = (lockStart + lockDuration)
619619 let remainingDuration = max([(lockEnd - height), 0])
620620 let userAmountNew = (userAmount + pmtAmount)
621621 let lockDurationNew = (remainingDuration + deltaDuration)
622622 if ((0 > deltaDuration))
623623 then throw("duration is less then zero")
624624 else if ((minLockDuration > lockDurationNew))
625625 then throw(("lockDurationNew is less then minLockDuration=" + toString(minLockDuration)))
626626 else if ((lockDurationNew > maxLockDuration))
627627 then throw(("deltaDuration + existedLockDuration is greater then maxLockDuration=" + toString(maxLockDuration)))
628628 else {
629629 let coeffX8 = fraction(lockDurationNew, MULT8, maxLockDuration)
630630 let gWxAmountStart = fraction(userAmountNew, coeffX8, MULT8)
631631 let updateRefActivity = invoke(mathContract, "updateReferralActivity", [toString(i.caller), gWxAmountStart], nil)
632632 if ((updateRefActivity == updateRefActivity))
633633 then {
634634 let lockStartNew = height
635635 let gWxParamsResultList = aal(invoke(mathContract, "calcGwxParamsREADONLY", [gWxAmountStart, lockStartNew, lockDurationNew], nil))
636636 let k = ai(gWxParamsResultList[0])
637637 let b = ai(gWxParamsResultList[1])
638638 let period = toString(ai(gWxParamsResultList[2]))
639639 let wxEmissionPerBlock = iof(emissionContract, keyEmissionRatePerBlockCurrent())
640640 let emissionStart = iof(emissionContract, keyEmissionStartBlock())
641641 let emissionEnd = iof(emissionContract, keyEmissionEndBlock())
642642 let h = if ((height > emissionEnd))
643643 then emissionEnd
644644 else height
645645 let dh = max([(h - emissionStart), 0])
646646 let userBoostEmissionLastIntegralKEY = keyUserBoostEmissionLastINTEGRAL(userNumStr)
647647 let userBoostEmissionLastIntegral = ioz(this, userBoostEmissionLastIntegralKEY)
648648 let boostEmissionIntegral = (((wxEmissionPerBlock * dh) * 2) / 3)
649649 let userBoostEmissionIntegral = (boostEmissionIntegral - userBoostEmissionLastIntegral)
650650 if ((0 > userBoostEmissionIntegral))
651651 then throw("wrong calculations")
652652 else {
653653 let userMaxBoostIntegralKEY = keyUserMaxBoostINTEGRAL(userNumStr)
654654 let totalMaxBoostIntegralKEY = keyTotalMaxBoostINTEGRAL()
655655 let userMaxBoostInt = ioz(this, userMaxBoostIntegralKEY)
656656 let totalMaxBoostInt = ioz(this, totalMaxBoostIntegralKEY)
657657 let currUserGwx = calcCurrentGwxAmount(userAddressStr)
658658 let gwxDiff = (gWxAmountStart - currUserGwx)
659659 if ((0 > gwxDiff))
660660 then throw(("gwxDiff is less then 0: " + toString(gwxDiff)))
661661 else {
662662 let totalCachedGwxRaw = getTotalCachedGwx(false)
663663 let totalCachedGwxCorrected = getTotalCachedGwx(true)
664664 let userBoostAvalaibleToClaimTotalKEY = keyUserBoostAvalaibleToClaimTotal(userNumStr)
665665 let userBoostAvaliableToClaimTotal = ioz(this, userBoostAvalaibleToClaimTotalKEY)
666666 let userBoostAvaliableToClaimTotalNew = fraction(userBoostEmissionIntegral, currUserGwx, totalCachedGwxCorrected)
667667 let userMaxBoostIntNew = ((gWxAmountStart * lockDurationNew) / 2)
668668 let remainingUserMaxBoostInt = ((currUserGwx * remainingDuration) / 2)
669669 let userMaxBoostIntDiff = (userMaxBoostIntNew - remainingUserMaxBoostInt)
670670 (((LockParamsEntry(userAddressStr, userNumStr, userAmountNew, lockStartNew, lockDurationNew, k, b, period) ++ StatsEntry(pmtAmount, deltaDuration, 0, 0)) :+ HistoryEntry("lock", userAddressStr, pmtAmount, lockStart, lockDurationNew, k, b, i)) ++ [IntegerEntry(keyTotalCachedGwx(), (totalCachedGwxRaw + gwxDiff))])
671671 }
672672 }
673673 }
674674 else throw("Strict value is not equal to itself.")
675675 }
676676 }
677677
678678
679679
680680 @Callable(i)
681681 func claimWxBoost (lpAssetIdStr,userAddressStr) = if ((stakingContract != i.caller))
682682 then throw("permissions denied")
683683 else {
684- let $t03000930111 = internalClaimWxBoost(lpAssetIdStr, userAddressStr, false)
685- let userBoostAvailable = $t03000930111._1
686- let dataState = $t03000930111._2
687- let debug = $t03000930111._3
684+ let $t02999930101 = internalClaimWxBoost(lpAssetIdStr, userAddressStr, false)
685+ let userBoostAvailable = $t02999930101._1
686+ let dataState = $t02999930101._2
687+ let debug = $t02999930101._3
688688 $Tuple2(dataState, [userBoostAvailable])
689689 }
690690
691691
692692
693693 @Callable(i)
694694 func claimWxBoostREADONLY (lpAssetIdStr,userAddressStr) = {
695- let $t03024330344 = internalClaimWxBoost(lpAssetIdStr, userAddressStr, true)
696- let userBoostAvailable = $t03024330344._1
697- let dataState = $t03024330344._2
698- let debug = $t03024330344._3
695+ let $t03023330334 = internalClaimWxBoost(lpAssetIdStr, userAddressStr, true)
696+ let userBoostAvailable = $t03023330334._1
697+ let dataState = $t03023330334._2
698+ let debug = $t03023330334._3
699699 $Tuple2(nil, [userBoostAvailable, debug])
700700 }
701701
702702
703703
704704 @Callable(i)
705705 func unlock (userAddress) = {
706706 let userRecordArray = readLockParamsRecordOrFail(userAddress)
707707 let userNumStr = userRecordArray[IdxLockUserNum]
708708 let userAmount = parseIntValue(userRecordArray[IdxLockAmount])
709709 let lockStart = parseIntValue(userRecordArray[IdxLockStart])
710710 let lockDuration = parseIntValue(userRecordArray[IdxLockDuration])
711711 let lockEnd = (lockStart + lockDuration)
712712 let cfgArray = readConfigArrayOrFail()
713713 let assetId = fromBase58String(cfgArray[IdxCfgAssetId])
714714 if ((lockEnd >= height))
715715 then throw((("wait " + toString(lockEnd)) + " to unlock"))
716716 else if ((0 >= userAmount))
717717 then throw("nothing to unlock")
718718 else {
719719 let period = valueOrElse(getInteger(mathContract, keyNextPeriod()), 0)
720720 (((LockParamsEntry(userAddress, userNumStr, 0, lockStart, lockDuration, 0, 0, toString(period)) ++ StatsEntry(-(userAmount), 0, 0, -1)) :+ HistoryEntry("unlock", userAddress, userAmount, lockStart, lockDuration, 0, 0, i)) :+ ScriptTransfer(addressFromStringValue(userAddress), userAmount, assetId))
721721 }
722722 }
723723
724724
725725
726726 @Callable(i)
727727 func gwxUserInfoREADONLY (userAddress) = {
728728 let gwxAmount = calcCurrentGwxAmount(userAddress)
729729 $Tuple2(nil, [gwxAmount])
730730 }
731731
732732
733733
734734 @Callable(i)
735735 func userMaxDurationREADONLY (userAddressStr) = {
736736 let cfgArray = readConfigArrayOrFail()
737737 let maxLockDuration = parseIntValue(cfgArray[IdxCfgMaxLockDuration])
738738 let userRecordOption = getString(this, keyLockParamsRecord(userAddressStr))
739739 if ((userRecordOption == unit))
740740 then $Tuple2(nil, $Tuple2("lock", maxLockDuration))
741741 else {
742742 let userRecordArray = split(value(userRecordOption), SEP)
743743 let lockStart = parseIntValue(userRecordArray[IdxLockStart])
744744 let lockDuration = parseIntValue(userRecordArray[IdxLockDuration])
745745 let lockEnd = (lockStart + lockDuration)
746746 let remainingDuration = max([(lockEnd - height), 0])
747747 let maxDeltaDuration = (maxLockDuration - remainingDuration)
748748 $Tuple2(nil, $Tuple2("increaseLock", maxDeltaDuration))
749749 }
750750 }
751751
752752
753753
754754 @Callable(i)
755755 func getUserGwxAmountAtHeightREADONLY (userAddress,targetHeight) = {
756756 let gwxAmount = calcUserGwxAmountAtHeight(userAddress, targetHeight)
757757 $Tuple2(nil, gwxAmount)
758758 }
759759
760760
761761
762762 @Callable(i)
763763 func getTotalCachedGwxREADONLY () = $Tuple2(nil, getTotalCachedGwx(true))
764764
765765
766766
767767 @Callable(i)
768768 func setManager (pendingManagerPublicKey) = {
769769 let checkCaller = mustManager(i)
770770 if ((checkCaller == checkCaller))
771771 then {
772772 let checkManagerPublicKey = fromBase58String(pendingManagerPublicKey)
773773 if ((checkManagerPublicKey == checkManagerPublicKey))
774774 then [StringEntry(keyPendingManagerPublicKey(), pendingManagerPublicKey)]
775775 else throw("Strict value is not equal to itself.")
776776 }
777777 else throw("Strict value is not equal to itself.")
778778 }
779779
780780
781781
782782 @Callable(i)
783783 func confirmManager () = {
784784 let pm = pendingManagerPublicKeyOrUnit()
785785 let hasPM = if (isDefined(pm))
786786 then true
787787 else throw("No pending manager")
788788 if ((hasPM == hasPM))
789789 then {
790790 let checkPM = if ((i.callerPublicKey == value(pm)))
791791 then true
792792 else throw("You are not pending manager")
793793 if ((checkPM == checkPM))
794794 then [StringEntry(keyManagerPublicKey(), toBase58String(value(pm))), DeleteEntry(keyPendingManagerPublicKey())]
795795 else throw("Strict value is not equal to itself.")
796796 }
797797 else throw("Strict value is not equal to itself.")
798798 }
799799
800800
801801 @Verifier(tx)
802802 func verify () = {
803803 let targetPublicKey = match managerPublicKeyOrUnit() {
804804 case pk: ByteVector =>
805805 pk
806806 case _: Unit =>
807807 tx.senderPublicKey
808808 case _ =>
809809 throw("Match error")
810810 }
811811 sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)
812812 }
813813

github/deemru/w8io/026f985 
95.99 ms