tx · DyfVjne47oHXsdn2Dw7xEYVD7ZGDUmFVx62haxzJSMcc

3Mp5JgVSHA9iziujC9Kmnf2rCN5SYFE97yC:  -0.01400000 Waves

2021.12.06 14:41 [1822352] smart account 3Mp5JgVSHA9iziujC9Kmnf2rCN5SYFE97yC > SELF 0.00000000 Waves

{ "type": 13, "id": "DyfVjne47oHXsdn2Dw7xEYVD7ZGDUmFVx62haxzJSMcc", "fee": 1400000, "feeAssetId": null, "timestamp": 1638790954964, "version": 2, "chainId": 84, "sender": "3Mp5JgVSHA9iziujC9Kmnf2rCN5SYFE97yC", "senderPublicKey": "CSx1y2ADZAi6KvFZT2LoqQmX5qBxDVVGGZ6heDAGngHM", "proofs": [ "5AWvqZdaPyDG3TCDuHZb4CfCpd34hiyudKY3MTqVarKCH8FppvAKE1NSUJqMCHPH7H2VnU1uBn3JCNpRiy5QwJnF", "2tCd51R3MeJHARqS2DSQLoYdeMCVM2kPYGNR1ZxuSwJSf8ng23qc3mUNQrCHbEk8eyRiWs9yre4oBpmXvMFrkQkB" ], "script": "base64:AAIFAAAAAAAAABwIAhIHCgUBERgRGBIAEgMKAQgSBAoCAQgSABIAAAAAHQAAAAAJa2V5QWN0aXZlAgAAAAZhY3RpdmUAAAAADGtleUVuZEhlaWdodAIAAAAKZW5kX2hlaWdodAAAAAAPa2V5UHJpemVzUHJpY2VzAgAAAA1wcml6ZXNfcHJpY2VzAAAAAA1rZXlQcml6ZXNBSWRzAgAAABdwcml6ZXNfYWNoaWV2ZW1lbnRzX2lkcwAAAAAQa2V5UHJpemVzQW1vdW50cwIAAAANcHJpemVzX2Ftb3VudAAAAAAOa2V5TGV2ZWxQcmljZXMCAAAADGxldmVsX3ByaWNlcwAAAAAWa2V5TGV2ZWxBY2hpZXZlbW50c0lkcwIAAAAWbGV2ZWxfYWNoaWV2ZW1lbnRzX2lkcwAAAAAJa2V5U1dPUGlkAgAAAAdTV09QX2lkAAAAAA5rZXlUb3RhbEJ1cm5lZAIAAAAMdG90YWx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AAAAAnR4BQAAABNtdWx0aVNpZ25lZEJ5QWRtaW5zbaaICg==", "height": 1822352, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5EPJnNx2cbQgkC2DJrXD9R4HsXZbvJwPoP8MRGKZybmv Next: 5bGLFJE8q3u6BTaGvAQ4S1xyXizZCnvxSFNGsvFDCsPQ Diff:
OldNewDifferences
2929
3030 let farming = Address(base58'3MsxHxruYWoddB4HRiPBYAWtMXMtCF1V9XT')
3131
32-let achievements = Address(base58'3N3HtdnBkqSSc16DaydiwtrMBUv3DfqKjSW')
32+let achievements = Address(base58'3N9dMg2dGxUmy6RjnP61ZQVBYgf1EKqWn5W')
3333
3434 let keyAdminPubKey1 = "admin_pub_1"
3535
6666
6767
6868 func calcPrizesAmounts (acc,next) = {
69- let $t016511676 = acc
70- let total = $t016511676._1
71- let result = $t016511676._2
69+ let $t016921717 = acc
70+ let total = $t016921717._1
71+ let result = $t016921717._2
7272 $Tuple2(total, (result :+ (total / next)))
7373 }
7474
147147 }
148148 let levelAchievmentsIdsStr = makeString(levelAchievmentsIds, ",")
149149 let prizesAmountStr = "0,0,0,0,0"
150-[IntegerEntry(keyEndHeight, endHeight), StringEntry(keyPrizesPrices, prizePricesStr), StringEntry(keyPrizesAIds, prizeAchievmentsIdsStr), StringEntry(keyLevelPrices, levelPricesStr), StringEntry(keyLevelAchievemntsIds, levelAchievmentsIdsStr), StringEntry(keyPrizesAmounts, prizesAmountStr)]
150+ let firstAddEntries = if (if ((size(i.payments) == 1))
151+ then (i.payments[0].assetId == swopId)
152+ else false)
153+ then {
154+ let newTotalBurned = i.payments[0].amount
155+ let res = {
156+ let $l = prizePrices
157+ let $s = size($l)
158+ let $acc0 = $Tuple2(newTotalBurned, nil)
159+ func 1 ($a,$i) = if (($i >= $s))
160+ then $a
161+ else calcPrizesAmounts($a, $l[$i])
162+
163+ func 2 ($a,$i) = if (($i >= $s))
164+ then $a
165+ else throw("List size exceeds 5")
166+
167+ 2(1(1(1(1(1($acc0, 0), 1), 2), 3), 4), 5)
168+ }
169+ let newPrizesAmounts = res._2
170+ let newPrizesAmountsStr = {
171+ let $l = newPrizesAmounts
172+ let $s = size($l)
173+ let $acc0 = ""
174+ func 1 ($a,$i) = if (($i >= $s))
175+ then $a
176+ else inListToStr($a, $l[$i])
177+
178+ func 2 ($a,$i) = if (($i >= $s))
179+ then $a
180+ else throw("List size exceeds 5")
181+
182+ 2(1(1(1(1(1($acc0, 0), 1), 2), 3), 4), 5)
183+ }
184+[IntegerEntry(keyTotalBurned, newTotalBurned), StringEntry(keyPrizesAmounts, newPrizesAmountsStr)]
185+ }
186+ else [StringEntry(keyPrizesAmounts, prizesAmountStr)]
187+ ([IntegerEntry(keyEndHeight, endHeight), StringEntry(keyPrizesPrices, prizePricesStr), StringEntry(keyPrizesAIds, prizeAchievmentsIdsStr), StringEntry(keyLevelPrices, levelPricesStr), StringEntry(keyLevelAchievemntsIds, levelAchievmentsIdsStr)] ++ firstAddEntries)
151188 }
152189
153190
154191
155192 @Callable(i)
156193 func add () = {
157- let $t035253600 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
158- let pmtAmount = $t035253600._1
159- let pmtAssetId = $t035253600._2
194+ let $t040734148 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
195+ let pmtAmount = $t040734148._1
196+ let pmtAssetId = $t040734148._2
160197 let endHeight = valueOrElse(getInteger(this, keyEndHeight), 0)
161198 if (!(isActive))
162199 then throw("DApp is inactive at this moment")
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let keyActive = "active"
55
66 let keyEndHeight = "end_height"
77
88 let keyPrizesPrices = "prizes_prices"
99
1010 let keyPrizesAIds = "prizes_achievements_ids"
1111
1212 let keyPrizesAmounts = "prizes_amount"
1313
1414 let keyLevelPrices = "level_prices"
1515
1616 let keyLevelAchievemntsIds = "level_achievements_ids"
1717
1818 let keySWOPid = "SWOP_id"
1919
2020 let keyTotalBurned = "total_burned"
2121
2222 let keyVerifyHash = "verify_hash"
2323
2424 let keyFinalizeHeight = "finalize_height"
2525
2626 let keyUserTotalBurned = "_total_burned"
2727
2828 let oracle = Address(base58'3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9')
2929
3030 let farming = Address(base58'3MsxHxruYWoddB4HRiPBYAWtMXMtCF1V9XT')
3131
32-let achievements = Address(base58'3N3HtdnBkqSSc16DaydiwtrMBUv3DfqKjSW')
32+let achievements = Address(base58'3N9dMg2dGxUmy6RjnP61ZQVBYgf1EKqWn5W')
3333
3434 let keyAdminPubKey1 = "admin_pub_1"
3535
3636 let keyAdminPubKey2 = "admin_pub_2"
3737
3838 let keyAdminPubKey3 = "admin_pub_3"
3939
4040 func getAdminPub (keyAdminPub) = match getString(oracle, keyAdminPub) {
4141 case string: String =>
4242 fromBase58String(string)
4343 case nothing =>
4444 throw("Admin public key is empty")
4545 }
4646
4747
4848 let adminPubKey1 = getAdminPub(keyAdminPubKey1)
4949
5050 let adminPubKey2 = getAdminPub(keyAdminPubKey2)
5151
5252 let adminPubKey3 = getAdminPub(keyAdminPubKey3)
5353
5454 let adminPubKeyStaking = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
5555
5656 let swopId = fromBase58String(getStringValue(farming, keySWOPid))
5757
5858 let isActive = valueOrElse(getBoolean(this, keyActive), true)
5959
6060 func inListToStr (acc,next) = if ((acc == ""))
6161 then (acc + toString(next))
6262 else ((acc + ",") + toString(next))
6363
6464
6565 func inListToInt (acc,next) = (acc :+ parseIntValue(next))
6666
6767
6868 func calcPrizesAmounts (acc,next) = {
69- let $t016511676 = acc
70- let total = $t016511676._1
71- let result = $t016511676._2
69+ let $t016921717 = acc
70+ let total = $t016921717._1
71+ let result = $t016921717._2
7272 $Tuple2(total, (result :+ (total / next)))
7373 }
7474
7575
7676 func calcLevel (burned) = {
7777 let levelPrices = {
7878 let $l = split(getStringValue(this, keyLevelPrices), ",")
7979 let $s = size($l)
8080 let $acc0 = nil
8181 func 1 ($a,$i) = if (($i >= $s))
8282 then $a
8383 else inListToInt($a, $l[$i])
8484
8585 func 2 ($a,$i) = if (($i >= $s))
8686 then $a
8787 else throw("List size exceeds 5")
8888
8989 2(1(1(1(1(1($acc0, 0), 1), 2), 3), 4), 5)
9090 }
9191 if ((burned >= levelPrices[3]))
9292 then 4
9393 else if ((burned >= levelPrices[2]))
9494 then 3
9595 else if ((burned >= levelPrices[1]))
9696 then 2
9797 else if ((burned >= levelPrices[0]))
9898 then 1
9999 else 0
100100 }
101101
102102
103103 @Callable(i)
104104 func init (endHeight,prizePrices,prizeAchievmentsIds,levelPrices,levelAchievmentsIds) = if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey)))
105105 then throw("Only admin can call this function")
106106 else if (isDefined(getInteger(this, keyEndHeight)))
107107 then throw("DApp is already inited")
108108 else if ((height > endHeight))
109109 then throw("Burning ending must be greater than current height")
110110 else if (if ((size(prizePrices) != 5))
111111 then true
112112 else (size(prizeAchievmentsIds) != 5))
113113 then throw("Amount of prizes achievemts lists must equal to 5")
114114 else if (if ((size(levelPrices) != 4))
115115 then true
116116 else (size(levelAchievmentsIds) != 4))
117117 then throw("Amount of levels lists must equal to 4")
118118 else {
119119 let prizePricesStr = {
120120 let $l = prizePrices
121121 let $s = size($l)
122122 let $acc0 = ""
123123 func 1 ($a,$i) = if (($i >= $s))
124124 then $a
125125 else inListToStr($a, $l[$i])
126126
127127 func 2 ($a,$i) = if (($i >= $s))
128128 then $a
129129 else throw("List size exceeds 5")
130130
131131 2(1(1(1(1(1($acc0, 0), 1), 2), 3), 4), 5)
132132 }
133133 let prizeAchievmentsIdsStr = makeString(prizeAchievmentsIds, ",")
134134 let levelPricesStr = {
135135 let $l = levelPrices
136136 let $s = size($l)
137137 let $acc0 = ""
138138 func 1 ($a,$i) = if (($i >= $s))
139139 then $a
140140 else inListToStr($a, $l[$i])
141141
142142 func 2 ($a,$i) = if (($i >= $s))
143143 then $a
144144 else throw("List size exceeds 5")
145145
146146 2(1(1(1(1(1($acc0, 0), 1), 2), 3), 4), 5)
147147 }
148148 let levelAchievmentsIdsStr = makeString(levelAchievmentsIds, ",")
149149 let prizesAmountStr = "0,0,0,0,0"
150-[IntegerEntry(keyEndHeight, endHeight), StringEntry(keyPrizesPrices, prizePricesStr), StringEntry(keyPrizesAIds, prizeAchievmentsIdsStr), StringEntry(keyLevelPrices, levelPricesStr), StringEntry(keyLevelAchievemntsIds, levelAchievmentsIdsStr), StringEntry(keyPrizesAmounts, prizesAmountStr)]
150+ let firstAddEntries = if (if ((size(i.payments) == 1))
151+ then (i.payments[0].assetId == swopId)
152+ else false)
153+ then {
154+ let newTotalBurned = i.payments[0].amount
155+ let res = {
156+ let $l = prizePrices
157+ let $s = size($l)
158+ let $acc0 = $Tuple2(newTotalBurned, nil)
159+ func 1 ($a,$i) = if (($i >= $s))
160+ then $a
161+ else calcPrizesAmounts($a, $l[$i])
162+
163+ func 2 ($a,$i) = if (($i >= $s))
164+ then $a
165+ else throw("List size exceeds 5")
166+
167+ 2(1(1(1(1(1($acc0, 0), 1), 2), 3), 4), 5)
168+ }
169+ let newPrizesAmounts = res._2
170+ let newPrizesAmountsStr = {
171+ let $l = newPrizesAmounts
172+ let $s = size($l)
173+ let $acc0 = ""
174+ func 1 ($a,$i) = if (($i >= $s))
175+ then $a
176+ else inListToStr($a, $l[$i])
177+
178+ func 2 ($a,$i) = if (($i >= $s))
179+ then $a
180+ else throw("List size exceeds 5")
181+
182+ 2(1(1(1(1(1($acc0, 0), 1), 2), 3), 4), 5)
183+ }
184+[IntegerEntry(keyTotalBurned, newTotalBurned), StringEntry(keyPrizesAmounts, newPrizesAmountsStr)]
185+ }
186+ else [StringEntry(keyPrizesAmounts, prizesAmountStr)]
187+ ([IntegerEntry(keyEndHeight, endHeight), StringEntry(keyPrizesPrices, prizePricesStr), StringEntry(keyPrizesAIds, prizeAchievmentsIdsStr), StringEntry(keyLevelPrices, levelPricesStr), StringEntry(keyLevelAchievemntsIds, levelAchievmentsIdsStr)] ++ firstAddEntries)
151188 }
152189
153190
154191
155192 @Callable(i)
156193 func add () = {
157- let $t035253600 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
158- let pmtAmount = $t035253600._1
159- let pmtAssetId = $t035253600._2
194+ let $t040734148 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
195+ let pmtAmount = $t040734148._1
196+ let pmtAssetId = $t040734148._2
160197 let endHeight = valueOrElse(getInteger(this, keyEndHeight), 0)
161198 if (!(isActive))
162199 then throw("DApp is inactive at this moment")
163200 else if (if ((height > endHeight))
164201 then true
165202 else (endHeight == 0))
166203 then throw("Swop burning are ended or not started yet")
167204 else if ((pmtAssetId != swopId))
168205 then throw("You can add only SWOP token")
169206 else {
170207 let newTotalBurned = (valueOrElse(getInteger(this, keyTotalBurned), 0) + pmtAmount)
171208 let userTotalBurned = valueOrElse(getInteger(this, (toString(i.caller) + keyUserTotalBurned)), 0)
172209 let prizesAmounts = {
173210 let $l = split(getStringValue(this, keyPrizesAmounts), ",")
174211 let $s = size($l)
175212 let $acc0 = nil
176213 func 1 ($a,$i) = if (($i >= $s))
177214 then $a
178215 else inListToInt($a, $l[$i])
179216
180217 func 2 ($a,$i) = if (($i >= $s))
181218 then $a
182219 else throw("List size exceeds 5")
183220
184221 2(1(1(1(1(1($acc0, 0), 1), 2), 3), 4), 5)
185222 }
186223 let prizesPrices = {
187224 let $l = split(getStringValue(this, keyPrizesPrices), ",")
188225 let $s = size($l)
189226 let $acc0 = nil
190227 func 1 ($a,$i) = if (($i >= $s))
191228 then $a
192229 else inListToInt($a, $l[$i])
193230
194231 func 2 ($a,$i) = if (($i >= $s))
195232 then $a
196233 else throw("List size exceeds 5")
197234
198235 2(1(1(1(1(1($acc0, 0), 1), 2), 3), 4), 5)
199236 }
200237 let prizesAchievementsIds = split(getStringValue(this, keyPrizesAIds), ",")
201238 let levelAchievementsIds = split(getStringValue(this, keyLevelAchievemntsIds), ",")
202239 let res = {
203240 let $l = prizesPrices
204241 let $s = size($l)
205242 let $acc0 = $Tuple2(newTotalBurned, nil)
206243 func 1 ($a,$i) = if (($i >= $s))
207244 then $a
208245 else calcPrizesAmounts($a, $l[$i])
209246
210247 func 2 ($a,$i) = if (($i >= $s))
211248 then $a
212249 else throw("List size exceeds 5")
213250
214251 2(1(1(1(1(1($acc0, 0), 1), 2), 3), 4), 5)
215252 }
216253 let newPrizesAmounts = res._2
217254 let newPrizesAmountsStr = {
218255 let $l = newPrizesAmounts
219256 let $s = size($l)
220257 let $acc0 = ""
221258 func 1 ($a,$i) = if (($i >= $s))
222259 then $a
223260 else inListToStr($a, $l[$i])
224261
225262 func 2 ($a,$i) = if (($i >= $s))
226263 then $a
227264 else throw("List size exceeds 5")
228265
229266 2(1(1(1(1(1($acc0, 0), 1), 2), 3), 4), 5)
230267 }
231268 let inv0 = if ((newPrizesAmounts[0] != prizesAmounts[0]))
232269 then {
233270 let achievementAmount = (newPrizesAmounts[0] - prizesAmounts[0])
234271 invoke(achievements, "add", [prizesAchievementsIds[0], achievementAmount], nil)
235272 }
236273 else 0
237274 if ((inv0 == inv0))
238275 then {
239276 let inv1 = if ((newPrizesAmounts[1] != prizesAmounts[1]))
240277 then {
241278 let achievementAmount = (newPrizesAmounts[1] - prizesAmounts[1])
242279 invoke(achievements, "add", [prizesAchievementsIds[1], achievementAmount], nil)
243280 }
244281 else 0
245282 if ((inv1 == inv1))
246283 then {
247284 let inv2 = if ((newPrizesAmounts[2] != prizesAmounts[2]))
248285 then {
249286 let achievementAmount = (newPrizesAmounts[2] - prizesAmounts[2])
250287 invoke(achievements, "add", [prizesAchievementsIds[2], achievementAmount], nil)
251288 }
252289 else 0
253290 if ((inv2 == inv2))
254291 then {
255292 let inv3 = if ((newPrizesAmounts[3] != prizesAmounts[3]))
256293 then {
257294 let achievementAmount = (newPrizesAmounts[3] - prizesAmounts[3])
258295 invoke(achievements, "add", [prizesAchievementsIds[3], achievementAmount], nil)
259296 }
260297 else 0
261298 if ((inv3 == inv3))
262299 then {
263300 let inv4 = if ((newPrizesAmounts[4] != prizesAmounts[4]))
264301 then {
265302 let achievementAmount = (newPrizesAmounts[4] - prizesAmounts[4])
266303 invoke(achievements, "add", [prizesAchievementsIds[4], achievementAmount], nil)
267304 }
268305 else 0
269306 if ((inv4 == inv4))
270307 then {
271308 let baseEntry = [IntegerEntry(keyTotalBurned, newTotalBurned), IntegerEntry((toString(i.caller) + keyUserTotalBurned), (userTotalBurned + pmtAmount)), StringEntry(keyPrizesAmounts, newPrizesAmountsStr)]
272309 let oldLevel = calcLevel(userTotalBurned)
273310 let newLevel = calcLevel(newTotalBurned)
274311 let levelDiff = (newLevel - oldLevel)
275312 if ((levelDiff > 0))
276313 then {
277314 let inv5 = if ((levelDiff == 1))
278315 then invoke(achievements, "add", [levelAchievementsIds[(newLevel - 1)], 1], nil)
279316 else 0
280317 if ((inv5 == inv5))
281318 then {
282319 let inv6 = if ((levelDiff >= 2))
283320 then invoke(achievements, "add", [levelAchievementsIds[(newLevel - 2)], 1], nil)
284321 else 0
285322 if ((inv6 == inv6))
286323 then {
287324 let inv7 = if ((levelDiff >= 3))
288325 then invoke(achievements, "add", [levelAchievementsIds[(newLevel - 3)], 1], nil)
289326 else 0
290327 if ((inv7 == inv7))
291328 then {
292329 let inv8 = if ((levelDiff == 4))
293330 then invoke(achievements, "add", [levelAchievementsIds[(newLevel - 4)], 1], nil)
294331 else 0
295332 if ((inv8 == inv8))
296333 then baseEntry
297334 else throw("Strict value is not equal to itself.")
298335 }
299336 else throw("Strict value is not equal to itself.")
300337 }
301338 else throw("Strict value is not equal to itself.")
302339 }
303340 else throw("Strict value is not equal to itself.")
304341 }
305342 else baseEntry
306343 }
307344 else throw("Strict value is not equal to itself.")
308345 }
309346 else throw("Strict value is not equal to itself.")
310347 }
311348 else throw("Strict value is not equal to itself.")
312349 }
313350 else throw("Strict value is not equal to itself.")
314351 }
315352 else throw("Strict value is not equal to itself.")
316353 }
317354 }
318355
319356
320357
321358 @Callable(i)
322359 func hashingRandom (hash) = if (!(isActive))
323360 then throw("DApp is inactive at this moment")
324361 else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey)))
325362 then throw("Only admin can call this function")
326363 else [StringEntry(keyVerifyHash, hash)]
327364
328365
329366
330367 @Callable(i)
331368 func finalize (vrfHeight,secretWord) = {
332369 let savedHash = getStringValue(this, keyVerifyHash)
333370 let calcHash = toBase58String(sha256((toBytes(vrfHeight) + toBytes(secretWord))))
334371 if (!(isActive))
335372 then throw("DApp is inactive at this moment")
336373 else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey)))
337374 then throw("Only admin can call this function")
338375 else if ((calcHash != savedHash))
339376 then throw("vrf Height hash not matching")
340377 else {
341378 let burnAmount = getIntegerValue(this, keyTotalBurned)
342379 [Burn(swopId, burnAmount), IntegerEntry(keyFinalizeHeight, height)]
343380 }
344381 }
345382
346383
347384
348385 @Callable(i)
349386 func shutdown () = if (!(isActive))
350387 then throw("DApp already inactive")
351388 else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey)))
352389 then throw("Only admin can call this function")
353390 else [BooleanEntry(keyActive, false)]
354391
355392
356393
357394 @Callable(i)
358395 func activate () = if (isActive)
359396 then throw("DApp already active")
360397 else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey)))
361398 then throw("Only admin can call this function")
362399 else [BooleanEntry(keyActive, true)]
363400
364401
365402 @Verifier(tx)
366403 func verify () = {
367404 let multiSignedByAdmins = {
368405 let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1))
369406 then 1
370407 else 0
371408 let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2))
372409 then 1
373410 else 0
374411 let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3))
375412 then 1
376413 else 0
377414 (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2)
378415 }
379416 let signedByAdmin = if (if (if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1))
380417 then true
381418 else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey2))
382419 then true
383420 else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey3))
384421 then true
385422 else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKeyStaking)
386423 match tx {
387424 case _ =>
388425 multiSignedByAdmins
389426 }
390427 }
391428

github/deemru/w8io/169f3d6 
75.82 ms