tx · 7aYrCD9kXqDKtmZqZEE3x51z4b8ScfMzfZBL3kRQXi6s

3N7LYefWk1WhvCsY5A9nTq244SbVPmhCypi:  -0.02100000 Waves

2022.11.21 13:53 [2326780] smart account 3N7LYefWk1WhvCsY5A9nTq244SbVPmhCypi > SELF 0.00000000 Waves

{ "type": 13, "id": "7aYrCD9kXqDKtmZqZEE3x51z4b8ScfMzfZBL3kRQXi6s", "fee": 2100000, "feeAssetId": null, "timestamp": 1669028000567, "version": 2, "chainId": 84, "sender": "3N7LYefWk1WhvCsY5A9nTq244SbVPmhCypi", "senderPublicKey": "4qGVXRFATZNzo2RZZ5UYHXojGyJgSRBwtgJcCU8rJe5A", "proofs": [ "2EumJffSeuekuzc1gpZzBWT1aKvrbsY1NVqBSsKs7Ex8pGLbLUgcJmpwTuUQDJhWsCMiZt5pqjmegFCDoYtzYFTj", "4zbPdizXMyrqWtuoeEAHNDMys2UCfPBrDRkPAmAmLpMaWND2kRd2MwtzGXuQCQA9F433dtLa2LA8JxTZrMmHbPxm", "f8grNfKYxv7nRcfkgzkYW3VazziyZiHcyeAEydBqfA5BF278SuFCP7ck9eK1WDWtZPcGAyru3TyUgVF6yfr6nmf" ], "script": "base64:AAIFAAAAAAAAADkIAhIFCgMICAESAwoBARIHCgUBAQEBARIDCgEBEgQKAgECEgMKAQESABIFCgMBAQESBwoFAQEBAQEAAABeAAAAAAtyZXZpc2lvbk51bQIAAAAAAAAAAAlNVUxUU0NBTEUAAAAAAAAAAAgAAAAAB1NDQUxFMTYAAAAAAAAAABAAAAAAA1NFUAIAAAACX18AAAAABUhBTEY4AAAAAAAC+vCAAAAAAAhFVUxFUlgxNgkAATYAAAABAABgkqET2NV0AAAAAARUV09YCQABNgAAAAEAAAAAAAAAAAIAAAAABU1VTFQ2AAAAAAAAD0JAAAAAAAZNVUxUWDYJAAE2AAAAAQAAAAAAAA9CQAAAAAAFTVVMVDgAAAAAAAX14QAAAAAABk1VTFRYOAkAATYAAAABAAAAAAAF9eEAA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AAAAAAAAJAABnAAAAAgUAAAAFY291bnQAAAAAAAAAAAMDm0RS", "height": 2326780, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GLFdBgEuuobAc1SFq2fmyito8FHnjXzrufEvqcmM77tQ Next: 5VxCdrkmizEmZUs9VPXcDnfaeVj7jPf3ZcvSPgETpoGB Diff:
OldNewDifferences
231231
232232 func $f0_2 ($a,$i) = if (($i >= $s))
233233 then $a
234- else throw("List size exceeds 4")
234+ else throw("List size exceeds 5")
235235
236- $f0_2($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4)
236+ $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5)
237237 }
238238 }
239239
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let revisionNum = ""
55
66 let MULTSCALE = 8
77
88 let SCALE16 = 16
99
1010 let SEP = "__"
1111
1212 let HALF8 = 50000000
1313
1414 let EULERX16 = toBigInt(27182818284590452)
1515
1616 let TWOX = toBigInt(2)
1717
1818 let MULT6 = 1000000
1919
2020 let MULTX6 = toBigInt(1000000)
2121
2222 let MULT8 = 100000000
2323
2424 let MULTX8 = toBigInt(100000000)
2525
2626 let MULTX10 = toBigInt(10000000000)
2727
2828 let MULTX16 = toBigInt(10000000000000000)
2929
3030 let WAVESID = fromBase58String("WAVES")
3131
3232 let kResultIdxA = 0
3333
3434 let kResultIdxPaulB = 1
3535
3636 let kResultIdxWReservesInUsdn = 2
3737
3838 let kResultIdxMultBR = 3
3939
4040 let kResultIdxMultPower = 4
4141
4242 let kResultIdxMultExpInPowerStr = 5
4343
4444 let kResultIdxMultKStr = 6
4545
4646 let nMetricIdxPrice = 0
4747
4848 let nMetricIdxUsdnLockedBalance = 1
4949
5050 let nMetricIdxWavesLockedBalance = 2
5151
5252 let nMetricIdxReserve = 3
5353
5454 let nMetricIdxReserveInUsdn = 4
5555
5656 let nMetricIdxUsdnSupply = 5
5757
5858 let nMetricIdxSurplus = 6
5959
6060 let nMetricIdxSurplusPercent = 7
6161
6262 let nMetricIdxBR = 8
6363
6464 let nMetricIdxNsbtSupply = 9
6565
6666 let nMetricIdxMaxNsbtSupply = 10
6767
6868 let nMetricIdxSurfSupply = 11
6969
7070 func keyNeutrinoAddress () = "%s%s__config__neutrinoAddress"
7171
7272
7373 func keySwapAmountAParam () = "%s%s__config__swapAParam"
7474
7575
7676 func keySwapAmountBParam () = "%s%s__config__swapBParam"
7777
7878
7979 func keyUsdnSwapAmountAParam () = "%s%s__config__usdnSwapAParam"
8080
8181
8282 func keyUsdnSwapAmountBParam () = "%s%s__config__usdnSwapBParam"
8383
8484
8585 func keyNeutrinoAssetId () = "neutrino_asset_id"
8686
8787
8888 func keyNsbtAssetId () = "bond_asset_id"
8989
9090
9191 func keySurfAssetId () = "surf_asset_id"
9292
9393
9494 func keyBalanceLocked () = "balance_lock_"
9595
9696
9797 func keyWavesLockedBalance () = (keyBalanceLocked() + "waves")
9898
9999
100100 func keyNeutrinoLockedBalance () = (keyBalanceLocked() + "neutrino")
101101
102102
103103 func swapsTimeframeKEY () = "swaps_timeframe"
104104
105105
106106 func keyUserLastQuickSwapHeight (userAddress) = makeString(["%s%s", "userLastQuickSwapHeight", userAddress], SEP)
107107
108108
109109 func keyQuickSwapUserSpentInPeriod (userAddress) = makeString(["%s%s", "quickSwapUserSpentInPeriod", userAddress], SEP)
110110
111111
112112 func keyPrice () = "price"
113113
114114
115115 let RpdBalanceKey = "rpd_balance"
116116
117117 func rpdUserBalanceKey (owner,assetId) = makeString([RpdBalanceKey, assetId, owner], "_")
118118
119119
120120 func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], ""))
121121
122122
123123 func getIntOrFail (address,key) = valueOrErrorMessage(getInteger(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], ""))
124124
125125
126126 func getNumberByKey (address,key) = valueOrElse(getInteger(address, key), 0)
127127
128128
129129 func getBoolOrFail (address,key) = valueOrErrorMessage(getBoolean(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], ""))
130130
131131
132132 func convertNeutrinoToWaves (amount,price) = fraction(amount, MULT8, price)
133133
134134
135135 func convertWavesToNeutrino (amount,price) = fraction(amount, price, MULT8)
136136
137137
138138 func toX16 (origVal,origScaleMult) = fraction(toBigInt(origVal), MULTX16, toBigInt(origScaleMult))
139139
140140
141141 func fromX16 (val,resultScaleMult) = toInt(fraction(val, toBigInt(resultScaleMult), MULTX16))
142142
143143
144144 func asAnyList (val) = match val {
145145 case valAnyLyst: List[Any] =>
146146 valAnyLyst
147147 case _ =>
148148 throw("fail to cast into List[Any]")
149149 }
150150
151151
152152 func asInt (val) = match val {
153153 case valInt: Int =>
154154 valInt
155155 case _ =>
156156 throw("fail to cast into Int")
157157 }
158158
159159
160160 func asString (val) = match val {
161161 case valStr: String =>
162162 valStr
163163 case _ =>
164164 throw("fail to cast into String")
165165 }
166166
167167
168168 let IdxControlCfgNeutrinoDapp = 1
169169
170170 let IdxControlCfgAuctionDapp = 2
171171
172172 let IdxControlCfgRpdDapp = 3
173173
174174 let IdxControlCfgMathDapp = 4
175175
176176 let IdxControlCfgLiquidationDapp = 5
177177
178178 let IdxControlCfgRestDapp = 6
179179
180180 let IdxControlCfgNodeRegistryDapp = 7
181181
182182 let IdxControlCfgNsbtStakingDapp = 8
183183
184184 let IdxControlCfgMediatorDapp = 9
185185
186186 func keyControlAddress () = "%s%s__config__controlAddress"
187187
188188
189189 func keyControlCfg () = "%s__controlConfig"
190190
191191
192192 func readControlCfgOrFail (control) = split(getStringOrFail(control, keyControlCfg()), SEP)
193193
194194
195195 func getContractAddressOrFail (controlCfg,idx) = valueOrErrorMessage(addressFromString(controlCfg[idx]), ("Control cfg doesn't contain address at index " + toString(idx)))
196196
197197
198198 let controlContract = addressFromStringValue(valueOrElse(getString(this, keyControlAddress()), "3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx"))
199199
200200 let controlCfg = readControlCfgOrFail(controlContract)
201201
202202 let neutrinoContract = getContractAddressOrFail(controlCfg, IdxControlCfgNeutrinoDapp)
203203
204204 let auctionContract = getContractAddressOrFail(controlCfg, IdxControlCfgAuctionDapp)
205205
206206 let liquidationContract = getContractAddressOrFail(controlCfg, IdxControlCfgLiquidationDapp)
207207
208208 let usdnStakingContract = getContractAddressOrFail(controlCfg, IdxControlCfgRpdDapp)
209209
210210 let neutrinoAssetIdStr = getStringOrFail(neutrinoContract, keyNeutrinoAssetId())
211211
212212 let neutrinoAssetId = fromBase58String(neutrinoAssetIdStr)
213213
214214 let nsbtAssetId = fromBase58String(getStringValue(neutrinoContract, keyNsbtAssetId()))
215215
216216 let surfAssetId = fromBase58String(getStringValue(auctionContract, keySurfAssetId()))
217217
218218 func calcUsdnOutOfMarketSupply () = {
219219 let outOfMarketAddressList = valueOrElse(getString(controlContract, "%s%s__control__outOfMarketAddressList"), "")
220220 if ((outOfMarketAddressList == ""))
221221 then 0
222222 else {
223223 func balancesSUM (outOfMarketSupply,nextAddress) = ((outOfMarketSupply + valueOrElse(getInteger(usdnStakingContract, rpdUserBalanceKey(nextAddress, neutrinoAssetIdStr)), 0)) + assetBalance(addressFromStringValue(nextAddress), neutrinoAssetId))
224224
225225 let $l = split(outOfMarketAddressList, SEP)
226226 let $s = size($l)
227227 let $acc0 = 0
228228 func $f0_1 ($a,$i) = if (($i >= $s))
229229 then $a
230230 else balancesSUM($a, $l[$i])
231231
232232 func $f0_2 ($a,$i) = if (($i >= $s))
233233 then $a
234- else throw("List size exceeds 4")
234+ else throw("List size exceeds 5")
235235
236- $f0_2($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4)
236+ $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5)
237237 }
238238 }
239239
240240
241241 let currentPrice = getIntegerValue(controlContract, keyPrice())
242242
243243 let neutrinoLockedBalance = valueOrElse(getInteger(neutrinoContract, keyNeutrinoLockedBalance()), 0)
244244
245245 let wavesLockedBalance = valueOrElse(getInteger(neutrinoContract, keyWavesLockedBalance()), 0)
246246
247247 let reserve = (wavesBalance(neutrinoContract).regular - wavesLockedBalance)
248248
249249 let reservesInUsdn = convertWavesToNeutrino(reserve, currentPrice)
250250
251251 let neutrinoOutOfMarketSupply = calcUsdnOutOfMarketSupply()
252252
253253 let neutrinoTotalSupply = (((neutrinoLockedBalance + value(assetInfo(neutrinoAssetId)).quantity) - assetBalance(neutrinoContract, neutrinoAssetId)) - assetBalance(liquidationContract, neutrinoAssetId))
254254
255255 let neutrinoSupply = (neutrinoTotalSupply - neutrinoOutOfMarketSupply)
256256
257257 let BR = if ((neutrinoSupply == 0))
258258 then 0
259259 else fraction(reservesInUsdn, MULT6, neutrinoSupply)
260260
261261 @Callable(i)
262262 func constructor (neutrinoAddress,nsbtLockAddress,swapAmountAParam) = if ((i.caller != this))
263263 then throw("not authorized")
264264 else [StringEntry(keyNeutrinoAddress(), neutrinoAddress), IntegerEntry(keySwapAmountAParam(), swapAmountAParam)]
265265
266266
267267
268268 @Callable(i)
269269 func calcSwapLimitREADONLY (gNsbtAmount) = {
270270 let limitWavesInUsdn = if ((0 >= gNsbtAmount))
271271 then 0
272272 else {
273273 let aParamX8 = toBigInt(getIntOrFail(this, keySwapAmountAParam()))
274274 let bParamX16 = toBigInt(getIntOrFail(this, keySwapAmountBParam()))
275275 let powPartX8 = pow(toBigInt(gNsbtAmount), 6, bParamX16, 16, 8, CEILING)
276276 toInt(fraction(aParamX8, powPartX8, MULTX10))
277277 }
278278 let limitWaves = convertNeutrinoToWaves(limitWavesInUsdn, currentPrice)
279279 let limitUsdn = if ((0 >= gNsbtAmount))
280280 then 0
281281 else {
282282 let aParamX8 = toBigInt(getIntOrFail(this, keyUsdnSwapAmountAParam()))
283283 let bParamX16 = toBigInt(getIntOrFail(this, keyUsdnSwapAmountBParam()))
284284 let brX6 = toBigInt(BR)
285285 let powPartX8 = pow(toBigInt(gNsbtAmount), 6, bParamX16, 16, 8, CEILING)
286286 toInt(fraction(fraction(aParamX8, powPartX8, MULTX10), brX6, MULTX6))
287287 }
288288 $Tuple2(nil, [limitWavesInUsdn, limitWaves, limitUsdn])
289289 }
290290
291291
292292
293293 @Callable(i)
294294 func calculateKREADONLY (wRaw,uRaw,price,mRaw,sRaw) = {
295295 let EXP = toBigInt(2718281)
296296 let EXPSCALE = 6
297297 let a = valueOrElse(getInteger(auctionContract, "nsbtCurveParam_a"), 3)
298298 let paulB = valueOrElse(getInteger(auctionContract, "nsbtCurveParam_b"), ((3 * MULT6) / 10))
299299 let wReservesInUsdn = convertWavesToNeutrino(wRaw, price)
300300 let multBR = fraction(wReservesInUsdn, MULT8, uRaw)
301301 if ((multBR > 10678564816))
302302 then throw((("BR=" + toString(multBR)) + " > 10678.564816% will overflow exponent"))
303303 else {
304304 let multPower = (a * (multBR - MULT8))
305305 let multExpInPower = pow(EXP, EXPSCALE, toBigInt(multPower), MULTSCALE, SCALE16, DOWN)
306306 let multK = fraction(toBigInt(paulB), multExpInPower, MULTX6)
307307 $Tuple2(nil, [a, paulB, wReservesInUsdn, multBR, multPower, toString(multExpInPower), toString(multK)])
308308 }
309309 }
310310
311311
312312
313313 @Callable(i)
314314 func curveFunctionREADONLY (wavesPayRaw) = {
315315 let neutrinoMetrics = asAnyList(invoke(this, "calcNeutinoMetricsREADONLY", nil, nil))
316316 let price = asInt(neutrinoMetrics[nMetricIdxPrice])
317317 let wRaw = asInt(neutrinoMetrics[nMetricIdxReserve])
318318 let uRaw = asInt(neutrinoMetrics[nMetricIdxUsdnSupply])
319319 let sRaw = asInt(neutrinoMetrics[nMetricIdxNsbtSupply])
320320 let mRaw = asInt(neutrinoMetrics[nMetricIdxMaxNsbtSupply])
321321 let kCalcArray = asAnyList(invoke(this, "calculateKREADONLY", [wRaw, uRaw, price, mRaw, sRaw], nil))
322322 let multK = parseBigIntValue(asString(kCalcArray[kResultIdxMultKStr]))
323323 let usdnPay = convertWavesToNeutrino(wavesPayRaw, price)
324324 let bigMaxNsbtSupply = toBigInt(mRaw)
325325 let bigNsbtSupply = toBigInt((mRaw - sRaw))
326326 let step1 = fraction(toBigInt(usdnPay), MULTX16, multK)
327327 let step2 = fraction(step1, bigNsbtSupply, bigMaxNsbtSupply)
328328 let step3 = toInt(fraction(bigNsbtSupply, bigMaxNsbtSupply, (step2 + bigMaxNsbtSupply)))
329329 let nsbtAmountRaw = ((mRaw - sRaw) - step3)
330330 $Tuple2(nil, [nsbtAmountRaw, usdnPay, wRaw, uRaw, mRaw, sRaw, asInt(kCalcArray[kResultIdxA]), asInt(kCalcArray[kResultIdxPaulB]), asInt(kCalcArray[kResultIdxWReservesInUsdn]), price, asInt(kCalcArray[kResultIdxMultBR]), asInt(kCalcArray[kResultIdxMultPower]), kCalcArray[kResultIdxMultExpInPowerStr], kCalcArray[kResultIdxMultKStr], toString(step1), toString(step2), step3])
331331 }
332332
333333
334334
335335 @Callable(i)
336336 func surfFunctionREADONLY (amount,assetId) = if ((0 > amount))
337337 then throw("amount should be positive")
338338 else {
339339 let price = currentPrice
340340 let priceBig = toBigInt(price)
341341 let reserveBig = toBigInt(reserve)
342342 let supply = neutrinoSupply
343343 let supplyBig = toBigInt(supply)
344344 if ((BR >= MULT6))
345345 then throw((("BR = " + toString(BR)) + ", cannot buy SURF"))
346346 else {
347347 let maxWavesPay = (fraction(supply, MULT8, price) - reserve)
348348 let maxUsdnPay = (supply - fraction(reserve, price, MULT8))
349349 let useAmount = if ((assetId == neutrinoAssetId))
350350 then if ((amount > maxUsdnPay))
351351 then maxUsdnPay
352352 else amount
353353 else if ((assetId == WAVESID))
354354 then if ((amount > maxWavesPay))
355355 then maxWavesPay
356356 else amount
357357 else 0
358358 let amountBig = toBigInt(useAmount)
359359 if ((assetId == neutrinoAssetId))
360360 then $Tuple2(nil, [toInt(fraction(fraction(amountBig, MULTX8, priceBig), (supplyBig - (amountBig / TWOX)), reserveBig)), 0, useAmount, reserve, supply, BR, reserve, (supply - useAmount), fraction(convertWavesToNeutrino(reserve, price), MULT6, (supply - useAmount)), (amount - useAmount), price])
361361 else if ((assetId == WAVESID))
362362 then $Tuple2(nil, [toInt(fraction(supplyBig, log(fraction((reserveBig + amountBig), MULTX16, reserveBig), 16, EULERX16, 16, 16, HALFUP), MULTX16)), useAmount, 0, reserve, supply, BR, (reserve + useAmount), supply, fraction(convertWavesToNeutrino((reserve + useAmount), price), MULT6, supply), (amount - useAmount), price])
363363 else throw("Unsupported asset")
364364 }
365365 }
366366
367367
368368
369369 @Callable(i)
370370 func calcContractNsbtPriceSYSREADONLY (nsbtSupplyDELTA) = {
371371 let neutrinoMetrics = asAnyList(invoke(this, "calcNeutinoMetricsREADONLY", nil, nil))
372372 let price = asInt(neutrinoMetrics[nMetricIdxPrice])
373373 let wRaw = asInt(neutrinoMetrics[nMetricIdxReserve])
374374 let uRaw = (asInt(neutrinoMetrics[nMetricIdxUsdnSupply]) - nsbtSupplyDELTA)
375375 let sRaw = (asInt(neutrinoMetrics[nMetricIdxNsbtSupply]) + nsbtSupplyDELTA)
376376 let mRaw = asInt(neutrinoMetrics[nMetricIdxMaxNsbtSupply])
377377 let kCalcArray = asAnyList(invoke(this, "calculateKREADONLY", [wRaw, uRaw, price, mRaw, sRaw], nil))
378378 let multKX16 = parseBigIntValue(asString(kCalcArray[kResultIdxMultKStr]))
379379 let multStep1X16 = fraction(toBigInt(mRaw), MULTX16, toBigInt((mRaw - sRaw)))
380380 let multStep2X16 = fraction(multStep1X16, multStep1X16, MULTX16)
381381 let multNsbt2usdnPriceX16 = fraction(multKX16, multStep2X16, MULTX16)
382382 let nsbt2usdnPrice = toInt(fraction(multNsbt2usdnPriceX16, toBigInt(MULT6), MULTX16))
383383 let nsbt2wavesPrice = fraction(nsbt2usdnPrice, MULT6, price)
384384 $Tuple2(nil, [nsbt2usdnPrice, nsbt2wavesPrice])
385385 }
386386
387387
388388
389389 @Callable(i)
390390 func calcNeutinoMetricsREADONLY () = {
391391 let nsbtSupplyMAX = value(assetInfo(nsbtAssetId)).quantity
392392 let nsbtSupply = (nsbtSupplyMAX - assetBalance(auctionContract, nsbtAssetId))
393393 let surfSupply = value(assetInfo(surfAssetId)).quantity
394394 $Tuple2(nil, [currentPrice, neutrinoLockedBalance, wavesLockedBalance, reserve, reservesInUsdn, neutrinoSupply, neutrinoOutOfMarketSupply, neutrinoTotalSupply, BR, nsbtSupply, nsbtSupplyMAX, surfSupply])
395395 }
396396
397397
398398
399399 @Callable(i)
400400 func getUnstakeComissionAmountREADONLY (amount,startHeight,halfLife) = $Tuple2(nil, fraction(amount, pow(2, 0, fraction(-((height - startHeight)), MULT8, halfLife), 8, 8, HALFUP), MULT8))
401401
402402
403403
404404 @Callable(i)
405405 func mergeStakesREADONLY (amount1,height1,amount2,height2,halfLife) = {
406406 let w = fraction(amount2, pow(2, 0, fraction((height2 - height1), MULT8, halfLife), 8, 8, HALFUP), MULT8)
407407 let v = fraction((amount1 + amount2), MULT8, (amount1 + w))
408408 $Tuple2(nil, (height1 + ((HALF8 - (halfLife * log(v, 8, 2, 0, 8, HALFUP))) / MULT8)))
409409 }
410410
411411
412412 @Verifier(tx)
413413 func verify () = {
414414 let pubKeyAdminsListStr = makeString(["ExtEEK19nmKj9mCpnWyvEEJFYATLMcVEMvohhUHkyHNm", "Ev5py5FfBQX9cZpYKnfQrTB49Byf8QmpZWeDVRim4yV7", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR"], SEP)
415415 let pubKeyAdminsList = split(valueOrElse(getString(controlContract, "%s__multisig"), pubKeyAdminsListStr), SEP)
416416 let count = ((((if (sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(pubKeyAdminsList[0])))
417417 then 1
418418 else 0) + (if (sigVerify(tx.bodyBytes, tx.proofs[1], fromBase58String(pubKeyAdminsList[1])))
419419 then 1
420420 else 0)) + (if (sigVerify(tx.bodyBytes, tx.proofs[2], fromBase58String(pubKeyAdminsList[2])))
421421 then 1
422422 else 0)) + (if (sigVerify(tx.bodyBytes, tx.proofs[3], fromBase58String(pubKeyAdminsList[3])))
423423 then 2
424424 else 0))
425425 (count >= 3)
426426 }
427427

github/deemru/w8io/026f985 
52.46 ms