tx · BBAnX63Ve1aYqoA7CWJnecdA2zkxyJAt5QY8bLJtNjn

3MsNhK6uve98J6DeqbuwGFBRh9GoHPGUFgp:  -0.02300000 Waves

2023.12.26 15:40 [2903727] smart account 3MsNhK6uve98J6DeqbuwGFBRh9GoHPGUFgp > SELF 0.00000000 Waves

{ "type": 13, "id": "BBAnX63Ve1aYqoA7CWJnecdA2zkxyJAt5QY8bLJtNjn", "fee": 2300000, "feeAssetId": null, "timestamp": 1703594503322, "version": 2, "chainId": 84, "sender": "3MsNhK6uve98J6DeqbuwGFBRh9GoHPGUFgp", "senderPublicKey": "86RHVxKovtU7yKnepY8wKsd8niDxGAsiwuA1XA1DNqrS", "proofs": [ "5YAY3RuW1ka5iBH5ZUdZfEPiQZz7hUeXLR3wQRkhakVNv8NqWgUPB9WFhBoBUDWML8bZv4LKUJ21eKmhEWAtxqU3" ], "script": "base64:BgL6IAgCEgMKAQgSAwoBCBIECgIICBIJCgcBERERGAgYEgcKBRERERgIEgcKBQEBAQgIEgASAwoBCBIECgIIARIECgIIARIECgIIARIDCgEIEgYKBAgBCAESBQoDARgYEgMKARgiBlNDQUxFOCIFTVVMVDgiB1NDQUxFMTgiBk1VTFQxOCIDU0VQIg5QT09MV0VJR0hUTVVMVCIKemVyb0JpZ0ludCIOaWR4UG9vbEFkZHJlc3MiDWlkeFBvb2xTdGF0dXMiEGlkeFBvb2xMUEFzc2V0SWQiDWlkeEFtdEFzc2V0SWQiD2lkeFByaWNlQXNzZXRJZCIOaWR4QW10QXNzZXREY20iEGlkeFByaWNlQXNzZXREY20iDmlkeElBbXRBc3NldElkIhBpZHhJUHJpY2VBc3NldElkIg1pZHhMUEFzc2V0RGNtIg9nZXRTdHJpbmdPckZhaWwiA2tleSIYZ2V0U3RyaW5nQnlBZGRyZXNzT3JGYWlsIgdhZGRyZXNzIgxnZXRJbnRPclplcm8iDGdldEludE9yRmFpbCIJYXNBbnlMaXN0IgN2YWwiByRtYXRjaDAiCnZhbEFueUx5c3QiBW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QJiTwICKysEAmJ3CQERQGV4dHJOYXRpdmUoMTA2MikBCQCRAwIFAmRTAAAEAXMJAJEDAgUCZFMAAQQCYngJAJEDAgUCZFMAAgQBeQkBAmJ2AwUCYncFAXMFAmJ4BAJjYQkAzQgCBQJiVQUBeQQCY2IJAPwHBAUEdGhpcwITZ2V0S2V5c0J1bGtJbnRlcm5hbAkAzAgCCQBkAgUCYk8AAQkAzAgCBQJkUgkAzAgCBQJjYQUDbmlsBQNuaWwDCQAAAgUCY2IFAmNiCQCUCgIFA25pbAUCY2IJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4CYkIBC2dldEtleXNCdWxrAQJkUgQCY2EJAPwHBAUEdGhpcwITZ2V0S2V5c0J1bGtJbnRlcm5hbAkAzAgCAAAJAMwIAgUCZFIJAMwIAgUDbmlsBQNuaWwFA25pbAkAlAoCBQNuaWwFAmNhAQJkVAECZFUABAJkVgQBegkBAmJ5AAMJAAECBQF6AgpCeXRlVmVjdG9yBAJiQwUBegUCYkMDCQABAgUBegIEVW5pdAgFAmRUD3NlbmRlclB1YmxpY0tleQkAAgECC01hdGNoIGVycm9yCQD0AwMIBQJkVAlib2R5Qnl0ZXMJAJEDAggFAmRUBnByb29mcwAABQJkVuGMOQI=", "height": 2903727, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9Y4qWsaqmDnRcXxdJeSz8TRMwAcVs45ZfvDm2Rh7RwdT Next: none Diff:
OldNewDifferences
571571 let $t02285123204 = match res {
572572 case _ =>
573573 if (if (if ($isInstanceOf($match0._1, "Int"))
574- then if ($isInstanceOf($match0._3, "Int"))
575- then if ($isInstanceOf($match0._4, "Int"))
576- then if ($isInstanceOf($match0._5, "Int"))
577- then $isInstanceOf($match0._6, "Int")
574+ then if (true)
575+ then if ($isInstanceOf($match0._3, "Int"))
576+ then if ($isInstanceOf($match0._4, "Int"))
577+ then if ($isInstanceOf($match0._5, "Int"))
578+ then if ($isInstanceOf($match0._6, "Int"))
579+ then if (true)
580+ then if (true)
581+ then if (true)
582+ then if (true)
583+ then if (true)
584+ then if (true)
585+ then true
586+ else false
587+ else false
588+ else false
589+ else false
590+ else false
591+ else false
592+ else false
593+ else false
578594 else false
579595 else false
580596 else false
629645 let $t02577726130 = match res {
630646 case _ =>
631647 if (if (if ($isInstanceOf($match0._1, "Int"))
632- then if ($isInstanceOf($match0._3, "Int"))
633- then if ($isInstanceOf($match0._4, "Int"))
634- then if ($isInstanceOf($match0._5, "Int"))
635- then $isInstanceOf($match0._6, "Int")
648+ then if (true)
649+ then if ($isInstanceOf($match0._3, "Int"))
650+ then if ($isInstanceOf($match0._4, "Int"))
651+ then if ($isInstanceOf($match0._5, "Int"))
652+ then if ($isInstanceOf($match0._6, "Int"))
653+ then if (true)
654+ then if (true)
655+ then if (true)
656+ then if (true)
657+ then if (true)
658+ then if (true)
659+ then true
660+ else false
661+ else false
662+ else false
663+ else false
664+ else false
665+ else false
666+ else false
667+ else false
636668 else false
637669 else false
638670 else false
667699 case _ =>
668700 if (if (if ($isInstanceOf($match0._1, "Int"))
669701 then if ($isInstanceOf($match0._2, "Int"))
670- then if ($isInstanceOf($match0._5, "Int"))
671- then if ($isInstanceOf($match0._6, "Int"))
672- then if ($isInstanceOf($match0._7, "Int"))
673- then if ($isInstanceOf($match0._8, "String"))
674- then $isInstanceOf($match0._9, "String")
702+ then if (true)
703+ then if (true)
704+ then if ($isInstanceOf($match0._5, "Int"))
705+ then if ($isInstanceOf($match0._6, "Int"))
706+ then if ($isInstanceOf($match0._7, "Int"))
707+ then if ($isInstanceOf($match0._8, "String"))
708+ then if ($isInstanceOf($match0._9, "String"))
709+ then true
710+ else false
711+ else false
712+ else false
675713 else false
676714 else false
677715 else false
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let SCALE8 = 8
55
66 let MULT8 = 100000000
77
88 let SCALE18 = 18
99
1010 let MULT18 = toBigInt(1000000000000000000)
1111
1212 let SEP = "__"
1313
1414 let POOLWEIGHTMULT = MULT8
1515
1616 let zeroBigInt = toBigInt(0)
1717
1818 let idxPoolAddress = 1
1919
2020 let idxPoolStatus = 2
2121
2222 let idxPoolLPAssetId = 3
2323
2424 let idxAmtAssetId = 4
2525
2626 let idxPriceAssetId = 5
2727
2828 let idxAmtAssetDcm = 6
2929
3030 let idxPriceAssetDcm = 7
3131
3232 let idxIAmtAssetId = 8
3333
3434 let idxIPriceAssetId = 9
3535
3636 let idxLPAssetDcm = 10
3737
3838 func getStringOrFail (key) = valueOrErrorMessage(getString(key), (("mandatory this." + key) + " is not defined"))
3939
4040
4141 func getStringByAddressOrFail (address,key) = valueOrErrorMessage(getString(address, key), (((("mandatory " + toString(address)) + ".") + key) + " is not defined"))
4242
4343
4444 func getIntOrZero (address,key) = valueOrElse(getInteger(address, key), 0)
4545
4646
4747 func getIntOrFail (address,key) = valueOrErrorMessage(getInteger(address, key), (("mandatory this." + key) + " is not defined"))
4848
4949
5050 func asAnyList (val) = match val {
5151 case valAnyLyst: List[Any] =>
5252 valAnyLyst
5353 case _ =>
5454 throw("fail to cast into List[Any]")
5555 }
5656
5757
5858 func asInt (val) = match val {
5959 case valInt: Int =>
6060 valInt
6161 case _ =>
6262 throw("fail to cast into Int")
6363 }
6464
6565
6666 func asString (val) = match val {
6767 case valStr: String =>
6868 valStr
6969 case _ =>
7070 throw("fail to cast into String")
7171 }
7272
7373
7474 func keyFactoryAddress () = "%s%s__config__factoryAddress"
7575
7676
7777 let IdxFactoryCfgStakingDapp = 1
7878
7979 let IdxFactoryCfgBoostingDapp = 2
8080
8181 let IdxFactoryCfgIdoDapp = 3
8282
8383 let IdxFactoryCfgTeamDapp = 4
8484
8585 let IdxFactoryCfgEmissionDapp = 5
8686
8787 let IdxFactoryCfgRestDapp = 6
8888
8989 let IdxFactoryCfgSlippageDapp = 7
9090
9191 let IdxFactoryCfgGwxRewardDapp = 8
9292
9393 func keyFactoryCfg () = "%s__factoryConfig"
9494
9595
9696 func keyFactoryLp2AssetsMapping (lpAssetStr) = makeString(["%s%s%s", lpAssetStr, "mappings__lpAsset2PoolContract"], SEP)
9797
9898
9999 func keyFactoryLpList () = "%s__lpTokensList"
100100
101101
102102 func keyFactoryLpAssetToPoolContractAddress (lpAssetStr) = makeString(["%s%s%s", lpAssetStr, "mappings__lpAsset2PoolContract"], SEP)
103103
104104
105105 func keyFactoryPoolWeight (contractAddress) = makeString(["%s%s", "poolWeight", contractAddress], SEP)
106106
107107
108108 func keyManagerVaultAddress () = "%s__managerVaultAddress"
109109
110110
111111 func keyManagerPublicKey () = "%s__managerPublicKey"
112112
113113
114114 func readFactoryAddressOrFail () = addressFromStringValue(getStringOrFail(keyFactoryAddress()))
115115
116116
117117 func readLpList () = split(valueOrElse(getString(readFactoryAddressOrFail(), keyFactoryLpList()), ""), SEP)
118118
119119
120120 func readFactoryCfgOrFail (factory) = split(getStringByAddressOrFail(factory, keyFactoryCfg()), SEP)
121121
122122
123123 func getBoostingAddressOrFail (fCfg) = addressFromStringValue(fCfg[IdxFactoryCfgBoostingDapp])
124124
125125
126126 func getEmissionAddressOrFail (fCfg) = addressFromStringValue(fCfg[IdxFactoryCfgEmissionDapp])
127127
128128
129129 func getStakingAddressOrFail (fCfg) = addressFromStringValue(fCfg[IdxFactoryCfgStakingDapp])
130130
131131
132132 func getGwxRewardAddressOrFail (fCfg) = addressFromStringValue(fCfg[IdxFactoryCfgGwxRewardDapp])
133133
134134
135135 func getManagerVaultAddressOrThis () = match getString(keyManagerVaultAddress()) {
136136 case s: String =>
137137 addressFromStringValue(s)
138138 case _ =>
139139 this
140140 }
141141
142142
143143 func keyBoostCfg () = "%s__config"
144144
145145
146146 func keyBoostingLockParamTotalAmount () = "%s%s__stats__activeTotalLocked"
147147
148148
149149 func keyBoostingStatsLocksDurationSumInBlocks () = "%s%s__stats__locksDurationSumInBlocks"
150150
151151
152152 func keyBoostingStatsLocksCount () = "%s%s__stats__locksCount"
153153
154154
155155 func keyBoostingStatsUsersCount () = "%s%s__stats__activeUsersCount"
156156
157157
158158 func keyUser2NumMapping (userAddress) = makeString(["%s%s%s__mapping__user2num", userAddress], SEP)
159159
160160
161161 func keyNum2UserMapping (num) = makeString(["%s%s%s__mapping__num2user", num], SEP)
162162
163163
164164 func keyLockParamUserAmount (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "amount"], SEP)
165165
166166
167167 func keyLockParamStartBlock (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "start"], SEP)
168168
169169
170170 func keyLockParamDuration (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "duration"], SEP)
171171
172172
173173 func keyLockParamK (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "k"], SEP)
174174
175175
176176 func keyLockParamB (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "b"], SEP)
177177
178178
179179 func keyLockParamByPeriodK (userNum,period) = makeString(["%s%d%s%d__paramByPeriod", userNum, "k", period], SEP)
180180
181181
182182 func keyLockParamByPeriodB (userNum,period) = makeString(["%s%d%s%d__paramByPeriod", userNum, "b", period], SEP)
183183
184184
185185 func keyUserBoostEmissionLastINTEGRAL (userNum) = makeString(["%s%d__userBoostEmissionLastInt", userNum], SEP)
186186
187187
188188 func keyUserMaxBoostINTEGRAL (userNum) = makeString(["%s%d__maxBoostInt", userNum], SEP)
189189
190190
191191 func keyTotalMaxBoostINTEGRAL () = "%s%s__maxBoostInt__total"
192192
193193
194194 func keyUserBoostAvalaibleToClaimTotal (userNum) = makeString(["%s%d__userBoostAvaliableToClaimTotal", userNum], SEP)
195195
196196
197197 func keyUserBoostClaimed (userNum) = makeString(["%s%d__userBoostClaimed", userNum], SEP)
198198
199199
200200 func keyTotalCachedGwx () = "%s%s__gwxCached__total"
201201
202202
203203 func keyStakedByUser (userAddressStr,lpAssetIdStr) = makeString(["%s%s%s__staked", userAddressStr, lpAssetIdStr], SEP)
204204
205205
206206 func keyStakedTotal (lpAssetIdStr) = ("%s%s%s__staked__total__" + lpAssetIdStr)
207207
208208
209209 func keyClaimedByUser (lpAssetIdStr,userAddressStr) = makeString(["%s%s%s__claimed", userAddressStr, lpAssetIdStr], SEP)
210210
211211
212212 func keyClaimedByUserMinReward (lpAssetIdStr,userAddressStr) = makeString(["%s%s%s__claimedMinReward", userAddressStr, lpAssetIdStr], SEP)
213213
214214
215215 func keyClaimedByUserBoostReward (lpAssetIdStr,userAddressStr) = makeString(["%s%s%s__claimedBoostReward", userAddressStr, lpAssetIdStr], SEP)
216216
217217
218218 func readStaked (stakingDapp,key) = valueOrElse(getInteger(stakingDapp, key), 0)
219219
220220
221221 func keyEmissionRatePerBlockCurrent () = "%s%s__ratePerBlock__current"
222222
223223
224224 func keyEmissionRatePerBlockMaxCurrent () = "%s%s__ratePerBlockMax__current"
225225
226226
227227 func keyEmissionStartBlock () = "%s%s__emission__startBlock"
228228
229229
230230 func keyEmissionDurationInBlocks () = "%s%s__emission__duration"
231231
232232
233233 func keyEmissionEndBlock () = "%s%s__emission__endBlock"
234234
235235
236236 let factoryDapp = readFactoryAddressOrFail()
237237
238238 let factoryCfg = readFactoryCfgOrFail(factoryDapp)
239239
240240 let emissionDapp = getEmissionAddressOrFail(factoryCfg)
241241
242242 let stakingDapp = getStakingAddressOrFail(factoryCfg)
243243
244244 let gwxRewardDapp = getGwxRewardAddressOrFail(factoryCfg)
245245
246246 let boostingDapp = getBoostingAddressOrFail(factoryCfg)
247247
248248 func getPoolInFee (poolAddress) = {
249249 let @ = invoke(factoryDapp, "getInFeeREADONLY", [toString(poolAddress)], nil)
250250 if ($isInstanceOf(@, "Int"))
251251 then @
252252 else throw(($getType(@) + " couldn't be cast to Int"))
253253 }
254254
255255
256256 func getPoolOutFee (poolAddress) = {
257257 let @ = invoke(factoryDapp, "getOutFeeREADONLY", [toString(poolAddress)], nil)
258258 if ($isInstanceOf(@, "Int"))
259259 then @
260260 else throw(($getType(@) + " couldn't be cast to Int"))
261261 }
262262
263263
264264 func internalCurrentRewardRate (lpAssetId) = {
265265 let poolAddressStr = getStringByAddressOrFail(factoryDapp, keyFactoryLpAssetToPoolContractAddress(lpAssetId))
266266 let poolWeightMult = MULT8
267267 let poolWeight = getIntegerValue(factoryDapp, keyFactoryPoolWeight(poolAddressStr))
268268 let wxEmissionPerBlock = getIntOrFail(emissionDapp, keyEmissionRatePerBlockCurrent())
269269 let wxEmissionPerBlockMax = getIntOrFail(emissionDapp, keyEmissionRatePerBlockMaxCurrent())
270270 let boostMaxCoeff = {
271271 let @ = invoke(emissionDapp, "getBoostCoeffREADONLY", nil, nil)
272272 if ($isInstanceOf(@, "Int"))
273273 then @
274274 else throw(($getType(@) + " couldn't be cast to Int"))
275275 }
276276 let poolWxEmissionPerBlock = (fraction(wxEmissionPerBlock, poolWeight, poolWeightMult) / boostMaxCoeff)
277277 let poolWxEmissionPerBlockMax = fraction(wxEmissionPerBlockMax, poolWeight, poolWeightMult)
278278 let maxFactor = (boostMaxCoeff * MULT8)
279279 let totalLpStaked = getIntOrZero(stakingDapp, keyStakedTotal(lpAssetId))
280280 [poolWxEmissionPerBlock, maxFactor, totalLpStaked]
281281 }
282282
283283
284284 func calcGwxAmountStartREADONLY (lockAmount,lockDuration,maxLockDuration) = {
285285 let coeffX8 = fraction(lockDuration, MULT8, maxLockDuration)
286286 let gWxAmountStart = fraction(lockAmount, coeffX8, MULT8)
287287 [gWxAmountStart]
288288 }
289289
290290
291291 func getKey (addr,key,type) = if ((type == "string"))
292292 then getStringValue(addr, key)
293293 else if ((type == "integer"))
294294 then toString(getIntegerValue(addr, key))
295295 else if ((type == "boolean"))
296296 then toString(getBooleanValue(addr, key))
297297 else throw("unknown type. expected string/integer/boolean")
298298
299299
300300 func managerPublicKeyOrUnit () = {
301301 let managerVaultAddress = getManagerVaultAddressOrThis()
302302 match getString(managerVaultAddress, keyManagerPublicKey()) {
303303 case s: String =>
304304 fromBase58String(s)
305305 case _: Unit =>
306306 unit
307307 case _ =>
308308 throw("Match error")
309309 }
310310 }
311311
312312
313313 func isManager (i) = match managerPublicKeyOrUnit() {
314314 case pk: ByteVector =>
315315 (i.callerPublicKey == pk)
316316 case _: Unit =>
317317 (i.caller == this)
318318 case _ =>
319319 throw("Match error")
320320 }
321321
322322
323323 func mustManager (i) = if (isManager(i))
324324 then true
325325 else throw("permission denied")
326326
327327
328328 @Callable(i)
329329 func constructor (factoryAddress) = {
330330 let checkCaller = mustManager(i)
331331 if ((checkCaller == checkCaller))
332332 then [StringEntry(keyFactoryAddress(), factoryAddress)]
333333 else throw("Strict value is not equal to itself.")
334334 }
335335
336336
337337
338338 @Callable(i)
339339 func currentRewardRateREADONLY (lpAssetId) = {
340340 let rewardData = internalCurrentRewardRate(lpAssetId)
341341 let wxEmissionPerBlock = rewardData[0]
342342 let maxFactor = rewardData[1]
343343 let totalLpStaked = rewardData[2]
344344 let votingResultStaked = {
345345 let @ = invoke(boostingDapp, "getVotingResultStakedREADONLY", [lpAssetId], nil)
346346 if ($isInstanceOf(@, "Int"))
347347 then @
348348 else throw(($getType(@) + " couldn't be cast to Int"))
349349 }
350350 $Tuple2(nil, makeString(["%d%d%d%d", toString(wxEmissionPerBlock), toString(maxFactor), toString(totalLpStaked), toString(votingResultStaked)], SEP))
351351 }
352352
353353
354354
355355 @Callable(i)
356356 func currentUserRewardRateREADONLY (lpAssetId,userAddress) = {
357357 let rewardData = internalCurrentRewardRate(lpAssetId)
358358 let wxEmissionPerBlock = rewardData[0]
359359 let maxFactor = rewardData[1]
360360 let totalLpStaked = rewardData[2]
361361 let lpStakedByUser = getIntOrZero(stakingDapp, keyStakedByUser(userAddress, lpAssetId))
362362 let userClaimInfo = split(asString(invoke(stakingDapp, "claimWxREADONLY", [lpAssetId, userAddress], nil)), SEP)
363363 let minRewardPart = valueOrErrorMessage(parseInt(userClaimInfo[5]), "couldn't parse minRewardPart")
364364 let boostRewardPart = valueOrErrorMessage(parseInt(userClaimInfo[6]), "couldn't parse boostRewardPart")
365365 let debug = userClaimInfo[7]
366366 let boostingPower = if ((boostRewardPart == 0))
367367 then (1 * MULT8)
368368 else fraction((minRewardPart + boostRewardPart), MULT8, minRewardPart)
369369 $Tuple2(nil, makeString(["%d%d%d%d%d%s", toString(wxEmissionPerBlock), toString(maxFactor), toString(totalLpStaked), toString(lpStakedByUser), toString(boostingPower), debug], SEP))
370370 }
371371
372372
373373
374374 @Callable(i)
375375 func calcBoostBulkInternalREADONLY (currentIter,deltaWxAmountBulk,deltaLockPeriodInBlocksBulk,deltaLpAmountBulk,lpAssetIdOptBulk,userAddressOpt,resAcc) = if ((currentIter == size(deltaWxAmountBulk)))
376376 then $Tuple2(nil, resAcc)
377377 else {
378378 let deltaWxAmount = deltaWxAmountBulk[currentIter]
379379 let deltaLockPeriodInBlocks = deltaLockPeriodInBlocksBulk[currentIter]
380380 let deltaLpAmount = deltaLpAmountBulk[currentIter]
381381 let lpAssetIdOpt = lpAssetIdOptBulk[currentIter]
382382 let info = {
383383 let @ = invoke(this, "calcBoostREADONLY", [deltaWxAmount, deltaLockPeriodInBlocks, deltaLpAmount, lpAssetIdOpt, userAddressOpt], nil)
384384 if ($isInstanceOf(@, "String"))
385385 then @
386386 else throw(($getType(@) + " couldn't be cast to String"))
387387 }
388388 let res = (resAcc :+ info)
389389 let inv = {
390390 let @ = invoke(this, "calcBoostBulkInternalREADONLY", [(currentIter + 1), deltaWxAmountBulk, deltaLockPeriodInBlocksBulk, deltaLpAmountBulk, lpAssetIdOptBulk, userAddressOpt, res], nil)
391391 if ($isInstanceOf(@, "List[Any]"))
392392 then @
393393 else throw(($getType(@) + " couldn't be cast to List[Any]"))
394394 }
395395 if ((inv == inv))
396396 then $Tuple2(nil, inv)
397397 else throw("Strict value is not equal to itself.")
398398 }
399399
400400
401401
402402 @Callable(i)
403403 func calcBoostBulkREADONLY (deltaWxAmount,deltaLockPeriodInBlocks,deltaLpAmount,lpAssetIdOpt,userAddressOpt) = {
404404 let res = invoke(this, "calcBoostBulkInternalREADONLY", [0, deltaWxAmount, deltaLockPeriodInBlocks, deltaLpAmount, lpAssetIdOpt, userAddressOpt, nil], nil)
405405 $Tuple2(nil, res)
406406 }
407407
408408
409409
410410 @Callable(i)
411411 func calcBoostREADONLY (deltaWxAmount,deltaLockPeriodInBlocks,deltaLpAmount,lpAssetIdOpt,userAddressOpt) = {
412412 let boostCoeff = {
413413 let @ = invoke(emissionDapp, "getBoostCoeffREADONLY", nil, nil)
414414 if ($isInstanceOf(@, "Int"))
415415 then @
416416 else throw(($getType(@) + " couldn't be cast to Int"))
417417 }
418418 let mathDapp = gwxRewardDapp
419419 let EMPTYSTR = "empty"
420420 let maxLockDurationInBlocks = parseIntValue(split(getStringByAddressOrFail(boostingDapp, keyBoostCfg()), SEP)[4])
421421 let lpAssetIdStr = if ((lpAssetIdOpt == ""))
422422 then EMPTYSTR
423423 else lpAssetIdOpt
424424 let userAddressStr = if ((userAddressOpt == ""))
425425 then EMPTYSTR
426426 else userAddressOpt
427427 let userNumStr = valueOrElse(getString(boostingDapp, keyUser2NumMapping(userAddressOpt)), EMPTYSTR)
428428 let userAmount = valueOrElse(getInteger(boostingDapp, keyLockParamUserAmount(userNumStr)), 0)
429429 let lockStart = valueOrElse(getInteger(boostingDapp, keyLockParamStartBlock(userNumStr)), height)
430430 let lockDuration = valueOrElse(getInteger(boostingDapp, keyLockParamDuration(userNumStr)), 0)
431431 let lockEnd = (lockStart + lockDuration)
432432 let remainingDuration = max([(lockEnd - height), 0])
433433 let userAmountNew = (userAmount + deltaWxAmount)
434434 let lockDurationNew = min([(remainingDuration + deltaLockPeriodInBlocks), maxLockDurationInBlocks])
435435 let userCurrgWxAmount = asInt(asAnyList(invoke(boostingDapp, "gwxUserInfoREADONLY", [userAddressStr], nil))[0])
436436 let gWxAmountStartNew = calcGwxAmountStartREADONLY(userAmountNew, lockDurationNew, maxLockDurationInBlocks)[0]
437437 let totalCachedGwx = {
438438 let @ = invoke(boostingDapp, "getTotalCachedGwxREADONLY", nil, nil)
439439 if ($isInstanceOf(@, "Int"))
440440 then @
441441 else throw(($getType(@) + " couldn't be cast to Int"))
442442 }
443443 let MULT3 = 1000
444444 let wxEmissionPerBlockX3 = (getIntOrFail(emissionDapp, keyEmissionRatePerBlockCurrent()) * MULT3)
445445 let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr)
446446 let stakedTotalKEY = keyStakedTotal(lpAssetIdStr)
447447 let stakedByUser = readStaked(stakingDapp, stakedByUserKEY)
448448 let stakedTotal = readStaked(stakingDapp, stakedTotalKEY)
449449 let poolWeight = if ((lpAssetIdStr != EMPTYSTR))
450450 then {
451451 let poolAddressStr = valueOrErrorMessage(getString(factoryDapp, keyFactoryLp2AssetsMapping(lpAssetIdStr)), ("unsupported lp asset " + lpAssetIdStr))
452452 getIntegerValue(factoryDapp, keyFactoryPoolWeight(poolAddressStr))
453453 }
454454 else 0
455455 let poolWxEmissionPerBlockX3 = fraction(wxEmissionPerBlockX3, poolWeight, (POOLWEIGHTMULT * boostCoeff))
456456 let wxPerLpX3 = if ((stakedTotal != 0))
457457 then fraction(poolWxEmissionPerBlockX3, MULT8, stakedTotal)
458458 else 0
459459 let userWxPerBlockX3 = fraction(wxPerLpX3, stakedByUser, MULT8)
460460 let boostEmissionPerBlockX3 = (poolWxEmissionPerBlockX3 * (boostCoeff - 1))
461461 let tmpUserBoostPerBlockX3 = fraction(userCurrgWxAmount, boostEmissionPerBlockX3, totalCachedGwx)
462462 let userBoostPerBlockX3 = min([tmpUserBoostPerBlockX3, (userWxPerBlockX3 * (boostCoeff - 1))])
463463 let userBoostCoeff = if ((userWxPerBlockX3 == 0))
464464 then (1 * MULT8)
465465 else fraction((userBoostPerBlockX3 + userWxPerBlockX3), MULT8, userWxPerBlockX3)
466466 $Tuple2(nil, makeString(["%d%d%s", toString(gWxAmountStartNew), toString(userBoostCoeff), "d"], SEP))
467467 }
468468
469469
470470
471471 @Callable(i)
472472 func wxEmissionStatsREADONLY () = {
473473 let ONEMULT = toString(MULT8)
474474 let ONE = "1"
475475 let wxEmissionPerBlock = getIntOrFail(emissionDapp, keyEmissionRatePerBlockCurrent())
476476 let emissionStartBlock = getIntOrFail(emissionDapp, keyEmissionStartBlock())
477477 let passedBlocks = if ((emissionStartBlock > height))
478478 then 0
479479 else (height - emissionStartBlock)
480480 let teamEmDuration = (1440 * 365)
481481 let teamEmMax = (201000000 * MULT8)
482482 let teamEm = if ((passedBlocks > teamEmDuration))
483483 then teamEmMax
484484 else fraction(teamEmMax, passedBlocks, teamEmDuration)
485485 let totalWxReleased = ((wxEmissionPerBlock * passedBlocks) + teamEm)
486486 let totalWxLocked = getIntOrZero(boostingDapp, keyBoostingLockParamTotalAmount())
487487 let locksDurationSumInBlocks = getIntOrZero(boostingDapp, keyBoostingStatsLocksDurationSumInBlocks())
488488 let locksCount = getIntOrZero(boostingDapp, keyBoostingStatsLocksCount())
489489 $Tuple2(nil, makeString(["%d%d%d%d", toString(totalWxReleased), toString(totalWxLocked), toString(locksDurationSumInBlocks), toString(locksCount)], SEP))
490490 }
491491
492492
493493
494494 @Callable(i)
495495 func poolStatsREADONLY (lpAsset) = {
496496 let poolAddress = addressFromStringValue(getStringByAddressOrFail(factoryDapp, keyFactoryLpAssetToPoolContractAddress(lpAsset)))
497497 let status = {
498498 let @ = invoke(factoryDapp, "getPoolStatusREADONLY", [toString(poolAddress)], nil)
499499 if ($isInstanceOf(@, "Int"))
500500 then @
501501 else throw(($getType(@) + " couldn't be cast to Int"))
502502 }
503503 let tpl = "%d%d%d%d%d%d%d%d%d%s"
504504 if ((status == 4))
505505 then $Tuple2(nil, makeString([tpl, toString(0), toString(0), toString(0), toString(0), toString(0), toString(0), toString(0), toString(0), toString(0), toString(false)], SEP))
506506 else {
507507 let cfg = asAnyList(invoke(poolAddress, "getPoolConfigWrapperREADONLY", nil, nil))
508508 let lpAssetId = fromBase58String(asString(cfg[idxPoolLPAssetId]))
509509 let amtAssetId = asString(cfg[idxAmtAssetId])
510510 let priceAssetId = asString(cfg[idxPriceAssetId])
511511 let iAmtAssetId = asString(cfg[idxIAmtAssetId])
512512 let iPriceAssetId = asString(cfg[idxIPriceAssetId])
513513 let amtAssetDcm = parseIntValue(asString(cfg[idxAmtAssetDcm]))
514514 let priceAssetDcm = parseIntValue(asString(cfg[idxPriceAssetDcm]))
515515 let poolLPBalance = valueOrErrorMessage(assetInfo(lpAssetId), (("Asset " + toBase58String(lpAssetId)) + " doesn't exist")).quantity
516516 let accAmtAssetBalance = asInt(invoke(poolAddress, "getAccBalanceWrapperREADONLY", [amtAssetId], nil))
517517 let accPriceAssetBalance = asInt(invoke(poolAddress, "getAccBalanceWrapperREADONLY", [priceAssetId], nil))
518518 let pricesList = if ((poolLPBalance == 0))
519519 then [toString(zeroBigInt), toString(zeroBigInt), toString(zeroBigInt)]
520520 else asAnyList(invoke(poolAddress, "calcPricesWrapperREADONLY", [accAmtAssetBalance, accPriceAssetBalance, poolLPBalance], nil))
521521 let curPrice = 0
522522 let lpAmtAssetShare = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [pricesList[1], MULT8], nil))
523523 let lpPriceAssetShare = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [pricesList[2], MULT8], nil))
524524 let poolWeight = getIntegerValue(factoryDapp, keyFactoryPoolWeight(toString(poolAddress)))
525525 let inFee = getPoolInFee(poolAddress)
526526 let outFee = getPoolOutFee(poolAddress)
527527 let poolOneTokenOperationsDisabled = {
528528 let @ = invoke(factoryDapp, "isPoolOneTokenOperationsDisabledREADONLY", [toString(poolAddress)], nil)
529529 if ($isInstanceOf(@, "Boolean"))
530530 then @
531531 else throw(($getType(@) + " couldn't be cast to Boolean"))
532532 }
533533 let poolOneTokenOperationsEnabled = !(poolOneTokenOperationsDisabled)
534534 let poolSwapEnabled = !({
535535 let @ = invoke(factoryDapp, "isPoolSwapDisabledREADONLY", [toString(poolAddress)], nil)
536536 if ($isInstanceOf(@, "Boolean"))
537537 then @
538538 else throw(($getType(@) + " couldn't be cast to Boolean"))
539539 })
540540 $Tuple2(nil, makeString([tpl, toString(accAmtAssetBalance), toString(accPriceAssetBalance), toString(poolLPBalance), toString(curPrice), toString(lpAmtAssetShare), toString(lpPriceAssetShare), toString(poolWeight), toString(inFee), toString(outFee), toString(poolOneTokenOperationsEnabled), toString(poolSwapEnabled)], SEP))
541541 }
542542 }
543543
544544
545545
546546 @Callable(i)
547547 func poolEvaluatePutByAmountAssetREADONLY (lpAsset,inAmAssetAmt) = {
548548 let poolAddress = addressFromStringValue(getStringByAddressOrFail(factoryDapp, keyFactoryLpAssetToPoolContractAddress(lpAsset)))
549549 let cfg = asAnyList(invoke(poolAddress, "getPoolConfigWrapperREADONLY", nil, nil))
550550 let lpAssetId = fromBase58String(asString(cfg[idxPoolLPAssetId]))
551551 let amAssetIdStr = asString(cfg[idxAmtAssetId])
552552 let amAssetId = fromBase58String(amAssetIdStr)
553553 let prAssetIdStr = asString(cfg[idxPriceAssetId])
554554 let prAssetId = fromBase58String(prAssetIdStr)
555555 let amtAssetDcm = parseIntValue(asString(cfg[idxAmtAssetDcm]))
556556 let priceAssetDcm = parseIntValue(asString(cfg[idxPriceAssetDcm]))
557557 let poolStatus = asString(cfg[idxPoolStatus])
558558 let poolLPBalance = valueOrErrorMessage(assetInfo(lpAssetId), (("Asset " + toBase58String(lpAssetId)) + " doesn't exist")).quantity
559559 let accAmtAssetBalance = asInt(invoke(poolAddress, "getAccBalanceWrapperREADONLY", [amAssetIdStr], nil))
560560 let accPriceAssetBalance = asInt(invoke(poolAddress, "getAccBalanceWrapperREADONLY", [prAssetIdStr], nil))
561561 let amtAssetAmtX18 = parseBigIntValue(asString(invoke(poolAddress, "toX18WrapperREADONLY", [accAmtAssetBalance, amtAssetDcm], nil)))
562562 let priceAssetAmtX18 = parseBigIntValue(asString(invoke(poolAddress, "toX18WrapperREADONLY", [accPriceAssetBalance, priceAssetDcm], nil)))
563563 let curPriceX18 = if ((poolLPBalance == 0))
564564 then zeroBigInt
565565 else parseBigIntValue(asString(invoke(poolAddress, "calcPriceBigIntWrapperREADONLY", [toString(priceAssetAmtX18), toString(amtAssetAmtX18)], nil)))
566566 let curPrice = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [toString(curPriceX18), MULT8], nil))
567567 let inAmAssetAmtX18 = parseBigIntValue(asString(invoke(poolAddress, "toX18WrapperREADONLY", [inAmAssetAmt, amtAssetDcm], nil)))
568568 let inPrAssetAmtX18 = fraction(inAmAssetAmtX18, curPriceX18, MULT18)
569569 let inPrAssetAmt = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [toString(inPrAssetAmtX18), priceAssetDcm], nil))
570570 let res = invoke(poolAddress, "estimatePutOperationWrapperREADONLY", ["", 500000, inAmAssetAmt, amAssetId, inPrAssetAmt, prAssetId, "", true, false], nil)
571571 let $t02285123204 = match res {
572572 case _ =>
573573 if (if (if ($isInstanceOf($match0._1, "Int"))
574- then if ($isInstanceOf($match0._3, "Int"))
575- then if ($isInstanceOf($match0._4, "Int"))
576- then if ($isInstanceOf($match0._5, "Int"))
577- then $isInstanceOf($match0._6, "Int")
574+ then if (true)
575+ then if ($isInstanceOf($match0._3, "Int"))
576+ then if ($isInstanceOf($match0._4, "Int"))
577+ then if ($isInstanceOf($match0._5, "Int"))
578+ then if ($isInstanceOf($match0._6, "Int"))
579+ then if (true)
580+ then if (true)
581+ then if (true)
582+ then if (true)
583+ then if (true)
584+ then if (true)
585+ then true
586+ else false
587+ else false
588+ else false
589+ else false
590+ else false
591+ else false
592+ else false
593+ else false
578594 else false
579595 else false
580596 else false
581597 else false)
582598 then (size($match0) == 13)
583599 else false)
584600 then {
585601 let calcLpAmt = $match0._1
586602 let curPriceCalc = $match0._3
587603 let amBalance = $match0._4
588604 let prBalance = $match0._5
589605 let lpEmission = $match0._6
590606 $Tuple5(calcLpAmt, curPriceCalc, amBalance, prBalance, lpEmission)
591607 }
592608 else throw("Couldn't cast types")
593609 }
594610 let calcLpAmt = $t02285123204._1
595611 let curPriceCalc = $t02285123204._2
596612 let amBalance = $t02285123204._3
597613 let prBalance = $t02285123204._4
598614 let lpEmission = $t02285123204._5
599615 $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(calcLpAmt), toString(curPrice), toString(amBalance), toString(prBalance), toString(lpEmission), poolStatus, toString(inAmAssetAmt), toString(inPrAssetAmt)], SEP))
600616 }
601617
602618
603619
604620 @Callable(i)
605621 func poolEvaluatePutByPriceAssetREADONLY (lpAsset,inPrAssetAmt) = {
606622 let poolAddress = addressFromStringValue(getStringByAddressOrFail(factoryDapp, keyFactoryLpAssetToPoolContractAddress(lpAsset)))
607623 let cfg = asAnyList(invoke(poolAddress, "getPoolConfigWrapperREADONLY", nil, nil))
608624 let lpAssetId = fromBase58String(asString(cfg[idxPoolLPAssetId]))
609625 let amAssetIdStr = asString(cfg[idxAmtAssetId])
610626 let amAssetId = fromBase58String(amAssetIdStr)
611627 let prAssetIdStr = asString(cfg[idxPriceAssetId])
612628 let prAssetId = fromBase58String(prAssetIdStr)
613629 let amtAssetDcm = parseIntValue(asString(cfg[idxAmtAssetDcm]))
614630 let priceAssetDcm = parseIntValue(asString(cfg[idxPriceAssetDcm]))
615631 let poolStatus = asString(cfg[idxPoolStatus])
616632 let poolLPBalance = valueOrErrorMessage(assetInfo(lpAssetId), (("Asset " + toBase58String(lpAssetId)) + " doesn't exist")).quantity
617633 let amBalanceRaw = asInt(invoke(poolAddress, "getAccBalanceWrapperREADONLY", [amAssetIdStr], nil))
618634 let prBalanceRaw = asInt(invoke(poolAddress, "getAccBalanceWrapperREADONLY", [prAssetIdStr], nil))
619635 let amBalanceRawX18 = parseBigIntValue(asString(invoke(poolAddress, "toX18WrapperREADONLY", [amBalanceRaw, amtAssetDcm], nil)))
620636 let prBalanceRawX18 = parseBigIntValue(asString(invoke(poolAddress, "toX18WrapperREADONLY", [prBalanceRaw, priceAssetDcm], nil)))
621637 let curPriceX18 = if ((poolLPBalance == 0))
622638 then zeroBigInt
623639 else parseBigIntValue(asString(invoke(poolAddress, "calcPriceBigIntWrapperREADONLY", [toString(prBalanceRawX18), toString(amBalanceRawX18)], nil)))
624640 let curPrice = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [toString(curPriceX18), MULT8], nil))
625641 let inPrAssetAmtX18 = parseBigIntValue(asString(invoke(poolAddress, "toX18WrapperREADONLY", [inPrAssetAmt, priceAssetDcm], nil)))
626642 let inAmAssetAmtX18 = fraction(inPrAssetAmtX18, MULT18, curPriceX18)
627643 let inAmAssetAmt = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [toString(inAmAssetAmtX18), amtAssetDcm], nil))
628644 let res = invoke(poolAddress, "estimatePutOperationWrapperREADONLY", ["", 500000, inAmAssetAmt, amAssetId, inPrAssetAmt, prAssetId, "", true, false], nil)
629645 let $t02577726130 = match res {
630646 case _ =>
631647 if (if (if ($isInstanceOf($match0._1, "Int"))
632- then if ($isInstanceOf($match0._3, "Int"))
633- then if ($isInstanceOf($match0._4, "Int"))
634- then if ($isInstanceOf($match0._5, "Int"))
635- then $isInstanceOf($match0._6, "Int")
648+ then if (true)
649+ then if ($isInstanceOf($match0._3, "Int"))
650+ then if ($isInstanceOf($match0._4, "Int"))
651+ then if ($isInstanceOf($match0._5, "Int"))
652+ then if ($isInstanceOf($match0._6, "Int"))
653+ then if (true)
654+ then if (true)
655+ then if (true)
656+ then if (true)
657+ then if (true)
658+ then if (true)
659+ then true
660+ else false
661+ else false
662+ else false
663+ else false
664+ else false
665+ else false
666+ else false
667+ else false
636668 else false
637669 else false
638670 else false
639671 else false)
640672 then (size($match0) == 13)
641673 else false)
642674 then {
643675 let calcLpAmt = $match0._1
644676 let curPriceCalc = $match0._3
645677 let amBalance = $match0._4
646678 let prBalance = $match0._5
647679 let lpEmission = $match0._6
648680 $Tuple5(calcLpAmt, curPriceCalc, amBalance, prBalance, lpEmission)
649681 }
650682 else throw("Couldn't cast types")
651683 }
652684 let calcLpAmt = $t02577726130._1
653685 let curPriceCalc = $t02577726130._2
654686 let amBalance = $t02577726130._3
655687 let prBalance = $t02577726130._4
656688 let lpEmission = $t02577726130._5
657689 $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(calcLpAmt), toString(curPrice), toString(amBalance), toString(prBalance), toString(lpEmission), poolStatus, toString(inAmAssetAmt), toString(inPrAssetAmt)], SEP))
658690 }
659691
660692
661693
662694 @Callable(i)
663695 func poolEvaluateGetREADONLY (paymentLpAssetId,paymentLpAmt) = {
664696 let poolAddress = addressFromStringValue(getStringByAddressOrFail(factoryDapp, keyFactoryLpAssetToPoolContractAddress(paymentLpAssetId)))
665697 let res = invoke(poolAddress, "estimateGetOperationWrapperREADONLY", ["", paymentLpAssetId, paymentLpAmt, toString(poolAddress)], nil)
666698 let $t02682527242 = match res {
667699 case _ =>
668700 if (if (if ($isInstanceOf($match0._1, "Int"))
669701 then if ($isInstanceOf($match0._2, "Int"))
670- then if ($isInstanceOf($match0._5, "Int"))
671- then if ($isInstanceOf($match0._6, "Int"))
672- then if ($isInstanceOf($match0._7, "Int"))
673- then if ($isInstanceOf($match0._8, "String"))
674- then $isInstanceOf($match0._9, "String")
702+ then if (true)
703+ then if (true)
704+ then if ($isInstanceOf($match0._5, "Int"))
705+ then if ($isInstanceOf($match0._6, "Int"))
706+ then if ($isInstanceOf($match0._7, "Int"))
707+ then if ($isInstanceOf($match0._8, "String"))
708+ then if ($isInstanceOf($match0._9, "String"))
709+ then true
710+ else false
711+ else false
712+ else false
675713 else false
676714 else false
677715 else false
678716 else false
679717 else false
680718 else false)
681719 then (size($match0) == 10)
682720 else false)
683721 then {
684722 let outAmAmt = $match0._1
685723 let outPrAmt = $match0._2
686724 let amBalance = $match0._5
687725 let prBalance = $match0._6
688726 let lpEmission = $match0._7
689727 let curPrice = $match0._8
690728 let poolStatus = $match0._9
691729 $Tuple7(outAmAmt, outPrAmt, amBalance, prBalance, lpEmission, curPrice, poolStatus)
692730 }
693731 else throw("Couldn't cast types")
694732 }
695733 let outAmAmt = $t02682527242._1
696734 let outPrAmt = $t02682527242._2
697735 let amBalance = $t02682527242._3
698736 let prBalance = $t02682527242._4
699737 let lpEmission = $t02682527242._5
700738 let curPrice = $t02682527242._6
701739 let poolStatus = $t02682527242._7
702740 $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(outAmAmt), toString(outPrAmt), toString(amBalance), toString(prBalance), toString(lpEmission), curPrice, poolStatus], SEP))
703741 }
704742
705743
706744
707745 @Callable(i)
708746 func gwxUserInfoREADONLY (userAddress) = {
709747 let gwxUserInfoLIST = asAnyList(invoke(boostingDapp, "gwxUserInfoREADONLY", [userAddress], nil))
710748 let gwxAmount = asInt(gwxUserInfoLIST[0])
711749 $Tuple2(nil, makeString(["%d", toString(gwxAmount)], SEP))
712750 }
713751
714752
715753
716754 @Callable(i)
717755 func unstakeAndGetOneTknV2 (poolAddress,unstakeAmount,outAssetId,minOutAmount) = {
718756 let inv = invoke(addressFromStringValue(poolAddress), "unstakeAndGetOneTknV2", [unstakeAmount, outAssetId, minOutAmount], nil)
719757 if ((inv == inv))
720758 then $Tuple2(nil, unit)
721759 else throw("Strict value is not equal to itself.")
722760 }
723761
724762
725763
726764 @Callable(i)
727765 func getKeysBulkInternal (currentIter,keys,resAcc) = if ((currentIter == size(keys)))
728766 then $Tuple2(nil, resAcc)
729767 else {
730768 let k = split(keys[currentIter], "++")
731769 let addr = addressFromStringValue(k[0])
732770 let key = k[1]
733771 let type = k[2]
734772 let val = getKey(addr, key, type)
735773 let res = (resAcc :+ val)
736774 let inv = invoke(this, "getKeysBulkInternal", [(currentIter + 1), keys, res], nil)
737775 if ((inv == inv))
738776 then $Tuple2(nil, inv)
739777 else throw("Strict value is not equal to itself.")
740778 }
741779
742780
743781
744782 @Callable(i)
745783 func getKeysBulk (keys) = {
746784 let res = invoke(this, "getKeysBulkInternal", [0, keys, nil], nil)
747785 $Tuple2(nil, res)
748786 }
749787
750788
751789 @Verifier(tx)
752790 func verify () = {
753791 let targetPublicKey = match managerPublicKeyOrUnit() {
754792 case pk: ByteVector =>
755793 pk
756794 case _: Unit =>
757795 tx.senderPublicKey
758796 case _ =>
759797 throw("Match error")
760798 }
761799 sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)
762800 }
763801

github/deemru/w8io/873ac7e 
125.51 ms