tx · 5xUjWKDszSkm11CKLqrnpLNkHBYLMDJQEGhwgH9AXmQg 3NCWFHDzdPHZC6636ZkMLNDup9mjpbTLs7h: -0.02100000 Waves 2024.09.02 14:41 [3265891] smart account 3NCWFHDzdPHZC6636ZkMLNDup9mjpbTLs7h > SELF 0.00000000 Waves
{ "type": 13, "id": "5xUjWKDszSkm11CKLqrnpLNkHBYLMDJQEGhwgH9AXmQg", "fee": 2100000, "feeAssetId": null, "timestamp": 1725277320119, "version": 2, "chainId": 84, "sender": "3NCWFHDzdPHZC6636ZkMLNDup9mjpbTLs7h", "senderPublicKey": "3z8Q6Zu3KppVmn6fJJvrLc1Wo3krVHSvfaNcerm82md2", "proofs": [ "r2iasua5xgzNBRbeYLFyxffzCrauvNFvQypFP1HujjCXJCQ1XqVQCNVCbHn21Np6y45F7CKFwitjhVPAVkdx7Zx" ], "script": "base64:BgJECAISAwoBARIDCgEEEgMKAQQSAwoBCBIECgIICBIDCgEIEgQKAggIEgMKAQgSBAoCCAESBAoCCAESAwoBARIAEgMKAQg4AAxjb250cmFjdEZpbGUCEWwybXBfbGVhc2luZy5yaWRlAANTRVACAl9fAQh0aHJvd0VycgEDbXNnCQACAQkArAICCQCsAgIFDGNvbnRyYWN0RmlsZQICOiAFA21zZwAKa2V5QXNzZXRJZAkAuQkCCQDMCAICAiVzCQDMCAICB2Fzc2V0SWQFA25pbAUDU0VQAAxrZXlGb3JjZVN0b3AJALkJAgkAzAgCAgIlcwkAzAgCAglmb3JjZVN0b3AFA25pbAUDU0VQAA9rZXlGb3JjZU91dFN0b3AJALkJAgkAzAgCAgIlcwkAzAgCAgxmb3JjZU91dFN0b3AFA25pbAUDU0VQABFrZXlQZXJpb2RPZmZzZXRJZAkAuQkCCQDMCAICAiVzCQDMCAICCG9mZnNldElkBQNuaWwFA1NFUAAVa2V5UGVyaW9kT2Zmc2V0SGVpZ2h0CQC5CQIJAMwIAgICJXMJAMwIAgIMb2Zmc2V0SGVpZ2h0BQNuaWwFA1NFU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AggFAnR4AmlkCQDZBAEJAQt2YWx1ZU9yRWxzZQIJAJ0IAgUEdGhpcwkBDmtleUFsbG93ZWRUeElkAAIABAdieU93bmVyAwkAZwIJAJADAQkBDWdldEFkbWluc0xpc3QABQZRVU9SVU0HCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5AwUIYnlBZG1pbnMGBQdieU93bmVymWXqtA==", "height": 3265891, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CLyiMgWuJ6HyXx8KisjU7xsDap9ownmuqWCHfxWqQtQD Next: 2aHiTM93eoXBAJnpwC9aJS21Cd9ADmT53cs6neZdKAT7 Diff:
Old | New | Differences | |
---|---|---|---|
11 | 11 | let keyAssetId = makeString(["%s", "assetId"], SEP) | |
12 | 12 | ||
13 | 13 | let keyForceStop = makeString(["%s", "forceStop"], SEP) | |
14 | + | ||
15 | + | let keyForceOutStop = makeString(["%s", "forceOutStop"], SEP) | |
14 | 16 | ||
15 | 17 | let keyPeriodOffsetId = makeString(["%s", "offsetId"], SEP) | |
16 | 18 | ||
82 | 84 | ||
83 | 85 | let isForceStop = valueOrElse(getBoolean(this, keyForceStop), false) | |
84 | 86 | ||
87 | + | let isForceOutStop = valueOrElse(getBoolean(this, keyForceOutStop), false) | |
88 | + | ||
85 | 89 | func isValidAddress (address) = match addressFromString(address) { | |
86 | 90 | case a: Address => | |
87 | 91 | true | |
126 | 130 | ||
127 | 131 | ||
128 | 132 | func genVotesKeysHelper (a,adminAddress) = { | |
129 | - | let $ | |
130 | - | let result = $ | |
131 | - | let prefix = $ | |
133 | + | let $t036963720 = a | |
134 | + | let result = $t036963720._1 | |
135 | + | let prefix = $t036963720._2 | |
132 | 136 | $Tuple2((result :+ keyFullAdminVote(prefix, adminAddress)), prefix) | |
133 | 137 | } | |
134 | 138 | ||
135 | 139 | ||
136 | 140 | func genVotesKeys (keyPrefix) = { | |
137 | 141 | let adminList = keyAdminAddressList() | |
138 | - | let $ | |
142 | + | let $t038673951 = { | |
139 | 143 | let $l = getAdminsList() | |
140 | 144 | let $s = size($l) | |
141 | 145 | let $acc0 = $Tuple2(nil, keyPrefix) | |
149 | 153 | ||
150 | 154 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5) | |
151 | 155 | } | |
152 | - | let result = $ | |
153 | - | let prefix = $ | |
156 | + | let result = $t038673951._1 | |
157 | + | let prefix = $t038673951._2 | |
154 | 158 | result | |
155 | 159 | } | |
156 | 160 | ||
302 | 306 | ||
303 | 307 | ||
304 | 308 | func getUnstakeActions (nodeAddress,userAddress,unstakeAmount) = { | |
305 | - | let $ | |
306 | - | let nodeCurrentLeased = $ | |
307 | - | let nodeNextLeased = $ | |
308 | - | let $ | |
309 | - | let userCurrentLeased = $ | |
310 | - | let userNextLeased = $ | |
309 | + | let $t089919064 = getLeasingNodeData(nodeAddress) | |
310 | + | let nodeCurrentLeased = $t089919064._1 | |
311 | + | let nodeNextLeased = $t089919064._2 | |
312 | + | let $t090699155 = getUserLeasingData(nodeAddress, userAddress) | |
313 | + | let userCurrentLeased = $t090699155._1 | |
314 | + | let userNextLeased = $t090699155._2 | |
311 | 315 | let checks = [if (!(isForceStop)) | |
312 | 316 | then true | |
313 | - | else throwErr("contract is temporary stopped"), if ((unstakeAmount > 0)) | |
317 | + | else throwErr("contract is temporary stopped"), if (!(isForceOutStop)) | |
318 | + | then true | |
319 | + | else throwErr("unstake is temporary disabled"), if ((unstakeAmount > 0)) | |
314 | 320 | then true | |
315 | 321 | else throwErr("unstake amount should be greater than 0"), if ((userNextLeased >= unstakeAmount)) | |
316 | 322 | then true | |
325 | 331 | then { | |
326 | 332 | let newNodeNextLease = (nodeNextLeased - unstakeAmount) | |
327 | 333 | let newUserNextLeased = (userNextLeased - unstakeAmount) | |
328 | - | let $ | |
329 | - | let toClaim = $ | |
330 | - | let toUnlock = $ | |
334 | + | let $t01003910099 = getUserToClaimBalance(userAddress) | |
335 | + | let toClaim = $t01003910099._1 | |
336 | + | let toUnlock = $t01003910099._2 | |
331 | 337 | let newToUnlock = (toUnlock + unstakeAmount) | |
332 | 338 | let userTotalLocked = getUserTotalLocked(userAddress) | |
333 | 339 | let newUserTotalLocked = (userTotalLocked - unstakeAmount) | |
338 | 344 | ||
339 | 345 | ||
340 | 346 | func getClaimUnlockedActions (userAddress,claimAmount) = { | |
341 | - | let $ | |
342 | - | let toClaim = $ | |
343 | - | let toUnlock = $ | |
347 | + | let $t01082810888 = getUserToClaimBalance(userAddress) | |
348 | + | let toClaim = $t01082810888._1 | |
349 | + | let toUnlock = $t01082810888._2 | |
344 | 350 | let checks = [if (!(isForceStop)) | |
345 | 351 | then true | |
346 | - | else throwErr("contract is temporary stopped"), if ((claimAmount > 0)) | |
352 | + | else throwErr("contract is temporary stopped"), if (!(isForceOutStop)) | |
353 | + | then true | |
354 | + | else throwErr("claim is temporary disabled"), if ((claimAmount > 0)) | |
347 | 355 | then true | |
348 | 356 | else throwErr("claim amount should be greater than 0"), if ((toClaim >= claimAmount)) | |
349 | 357 | then true | |
360 | 368 | ||
361 | 369 | ||
362 | 370 | func getStakeActions (nodeAddress,userAddress,userLeasingAmount,i) = { | |
363 | - | let $ | |
364 | - | let toClaim = $ | |
365 | - | let toUnlock = $ | |
371 | + | let $t01171811778 = getUserToClaimBalance(userAddress) | |
372 | + | let toClaim = $t01171811778._1 | |
373 | + | let toUnlock = $t01171811778._2 | |
366 | 374 | let paymentAmount = if ((size(i.payments) == 0)) | |
367 | 375 | then 0 | |
368 | 376 | else i.payments[0].amount | |
388 | 396 | else throwErr(makeString(["user address is not valid:", userAddress], " "))] | |
389 | 397 | if ((checks == checks)) | |
390 | 398 | then { | |
391 | - | let $ | |
392 | - | let nodeCurrentLeased = $ | |
393 | - | let nodeNextLeased = $ | |
399 | + | let $t01284912922 = getLeasingNodeData(nodeAddress) | |
400 | + | let nodeCurrentLeased = $t01284912922._1 | |
401 | + | let nodeNextLeased = $t01284912922._2 | |
394 | 402 | let newNodeNextLease = (nodeNextLeased + userLeasingAmount) | |
395 | - | let $ | |
396 | - | let userCurrentLeased = $ | |
397 | - | let userNextLeased = $ | |
403 | + | let $t01299013076 = getUserLeasingData(nodeAddress, userAddress) | |
404 | + | let userCurrentLeased = $t01299013076._1 | |
405 | + | let userNextLeased = $t01299013076._2 | |
398 | 406 | let newUserNextLeased = (userNextLeased + userLeasingAmount) | |
399 | 407 | let fromUnlockedAmount = (userLeasingAmount - paymentAmount) | |
400 | 408 | let newToUnlock = max([0, (toUnlock - fromUnlockedAmount)]) | |
454 | 462 | ||
455 | 463 | ||
456 | 464 | @Callable(i) | |
465 | + | func setForceOutStopFlag (stop) = { | |
466 | + | let check = [if (isInAdminList(toString(i.caller))) | |
467 | + | then true | |
468 | + | else throwErr("caller is not in adminList")] | |
469 | + | if ((check == check)) | |
470 | + | then [BooleanEntry(keyForceOutStop, stop)] | |
471 | + | else throw("Strict value is not equal to itself.") | |
472 | + | } | |
473 | + | ||
474 | + | ||
475 | + | ||
476 | + | @Callable(i) | |
457 | 477 | func getNodeDataREADONLY (nodeAddress) = { | |
458 | - | let $ | |
459 | - | let currentLease = $ | |
460 | - | let nextLeased = $ | |
478 | + | let $t01574915813 = getLeasingNodeData(nodeAddress) | |
479 | + | let currentLease = $t01574915813._1 | |
480 | + | let nextLeased = $t01574915813._2 | |
461 | 481 | $Tuple2(nil, $Tuple5(currentPeriodHeight, currentLease, nextPeriodHeight, nextLeased, height)) | |
462 | 482 | } | |
463 | 483 | ||
465 | 485 | ||
466 | 486 | @Callable(i) | |
467 | 487 | func getUserLeasingDataREADONLY (nodeAddress,userAddress) = { | |
468 | - | let $ | |
469 | - | let currentLease = $ | |
470 | - | let nextLeased = $ | |
488 | + | let $t01618316260 = getUserLeasingData(nodeAddress, userAddress) | |
489 | + | let currentLease = $t01618316260._1 | |
490 | + | let nextLeased = $t01618316260._2 | |
471 | 491 | $Tuple2(nil, $Tuple5(currentPeriodHeight, currentLease, nextPeriodHeight, nextLeased, height)) | |
472 | 492 | } | |
473 | 493 | ||
475 | 495 | ||
476 | 496 | @Callable(i) | |
477 | 497 | func getUserDataREADONLY (userAddress) = { | |
478 | - | let $ | |
479 | - | let toClaim = $ | |
480 | - | let toUnlock = $ | |
498 | + | let $t01662316683 = getUserToClaimBalance(userAddress) | |
499 | + | let toClaim = $t01662316683._1 | |
500 | + | let toUnlock = $t01662316683._2 | |
481 | 501 | let userTotalLocked = getUserTotalLocked(userAddress) | |
482 | 502 | $Tuple2(nil, $Tuple6(currentPeriodHeight, toClaim, nextPeriodHeight, toUnlock, userTotalLocked, height)) | |
483 | 503 | } | |
524 | 544 | @Callable(i) | |
525 | 545 | func claimAll () = { | |
526 | 546 | let userAddress = toString(i.caller) | |
527 | - | let $ | |
528 | - | let toClaim = $ | |
529 | - | let toUnlock = $ | |
547 | + | let $t01769717757 = getUserToClaimBalance(userAddress) | |
548 | + | let toClaim = $t01769717757._1 | |
549 | + | let toUnlock = $t01769717757._2 | |
530 | 550 | let checks = [if ((toClaim > 0)) | |
531 | 551 | then true | |
532 | 552 | else throwErr("nothing to claim")] |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let contractFile = "l2mp_leasing.ride" | |
5 | 5 | ||
6 | 6 | let SEP = "__" | |
7 | 7 | ||
8 | 8 | func throwErr (msg) = throw(((contractFile + ": ") + msg)) | |
9 | 9 | ||
10 | 10 | ||
11 | 11 | let keyAssetId = makeString(["%s", "assetId"], SEP) | |
12 | 12 | ||
13 | 13 | let keyForceStop = makeString(["%s", "forceStop"], SEP) | |
14 | + | ||
15 | + | let keyForceOutStop = makeString(["%s", "forceOutStop"], SEP) | |
14 | 16 | ||
15 | 17 | let keyPeriodOffsetId = makeString(["%s", "offsetId"], SEP) | |
16 | 18 | ||
17 | 19 | let keyPeriodOffsetHeight = makeString(["%s", "offsetHeight"], SEP) | |
18 | 20 | ||
19 | 21 | let keyPeriodLength = makeString(["%s", "periodLength"], SEP) | |
20 | 22 | ||
21 | 23 | let periodOffsetId = valueOrElse(getInteger(this, keyPeriodOffsetId), 0) | |
22 | 24 | ||
23 | 25 | let periodLength = valueOrElse(getInteger(this, keyPeriodLength), 10000) | |
24 | 26 | ||
25 | 27 | let periodOffsetHeight = valueOrElse(getInteger(this, keyPeriodOffsetHeight), -1) | |
26 | 28 | ||
27 | 29 | let currentPeriodId = if (if ((height > periodOffsetHeight)) | |
28 | 30 | then (periodOffsetHeight != -1) | |
29 | 31 | else false) | |
30 | 32 | then (((height - periodOffsetHeight) / periodLength) + periodOffsetId) | |
31 | 33 | else max([0, (periodOffsetId - 1)]) | |
32 | 34 | ||
33 | 35 | let currentPeriodHeight = if (if ((periodOffsetHeight == -1)) | |
34 | 36 | then true | |
35 | 37 | else if ((currentPeriodId == 0)) | |
36 | 38 | then (periodOffsetHeight > height) | |
37 | 39 | else false) | |
38 | 40 | then 0 | |
39 | 41 | else (periodOffsetHeight + ((currentPeriodId - periodOffsetId) * periodLength)) | |
40 | 42 | ||
41 | 43 | let nextPeriodHeight = if (if ((periodOffsetHeight == -1)) | |
42 | 44 | then true | |
43 | 45 | else if ((currentPeriodId == 0)) | |
44 | 46 | then (periodOffsetHeight > height) | |
45 | 47 | else false) | |
46 | 48 | then 0 | |
47 | 49 | else (currentPeriodHeight + periodLength) | |
48 | 50 | ||
49 | 51 | func keyLeasingNodeData (nodeAddress) = makeString(["%s", nodeAddress], SEP) | |
50 | 52 | ||
51 | 53 | ||
52 | 54 | func keyUserLeasingNodeData (userAddress,nodeAddress) = makeString(["%s%s", nodeAddress, userAddress], SEP) | |
53 | 55 | ||
54 | 56 | ||
55 | 57 | func keyUserToClaim (userAddress) = makeString(["%s%s", "toClaim", userAddress], SEP) | |
56 | 58 | ||
57 | 59 | ||
58 | 60 | func keyUserTotalLocked (userAddress) = makeString(["%s%s", "userTotalLocked", userAddress], SEP) | |
59 | 61 | ||
60 | 62 | ||
61 | 63 | func keyNodeLeasingByHeight (nodeAddress) = { | |
62 | 64 | let h = if ((periodOffsetHeight == -1)) | |
63 | 65 | then 0 | |
64 | 66 | else height | |
65 | 67 | makeString(["%s%d", nodeAddress, toString(h)], SEP) | |
66 | 68 | } | |
67 | 69 | ||
68 | 70 | ||
69 | 71 | func keyUserLeasingByHeight (nodeAddress,userAddress) = { | |
70 | 72 | let h = if ((periodOffsetHeight == -1)) | |
71 | 73 | then 0 | |
72 | 74 | else height | |
73 | 75 | makeString(["%s%s%d", nodeAddress, userAddress, toString(h)], SEP) | |
74 | 76 | } | |
75 | 77 | ||
76 | 78 | ||
77 | 79 | let assetIdString = valueOrElse(getString(this, keyAssetId), "WAVES") | |
78 | 80 | ||
79 | 81 | let assetIdBytes = if ((assetIdString == "WAVES")) | |
80 | 82 | then unit | |
81 | 83 | else fromBase58String(assetIdString) | |
82 | 84 | ||
83 | 85 | let isForceStop = valueOrElse(getBoolean(this, keyForceStop), false) | |
84 | 86 | ||
87 | + | let isForceOutStop = valueOrElse(getBoolean(this, keyForceOutStop), false) | |
88 | + | ||
85 | 89 | func isValidAddress (address) = match addressFromString(address) { | |
86 | 90 | case a: Address => | |
87 | 91 | true | |
88 | 92 | case _ => | |
89 | 93 | false | |
90 | 94 | } | |
91 | 95 | ||
92 | 96 | ||
93 | 97 | let ADMIN_LIST_SIZE = 5 | |
94 | 98 | ||
95 | 99 | let QUORUM = 3 | |
96 | 100 | ||
97 | 101 | let TXID_BYTES_LENGTH = 32 | |
98 | 102 | ||
99 | 103 | func keyAllowedTxIdVotePrefix (txId) = makeString(["%s%s%s", "allowTxId", txId], SEP) | |
100 | 104 | ||
101 | 105 | ||
102 | 106 | func keyFullAdminVote (prefix,adminAddress) = makeString([prefix, adminAddress], SEP) | |
103 | 107 | ||
104 | 108 | ||
105 | 109 | func keyAdminAddressList () = makeString(["%s", "adminAddressList"], SEP) | |
106 | 110 | ||
107 | 111 | ||
108 | 112 | func keyAllowedTxId () = makeString(["%s", "txId"], SEP) | |
109 | 113 | ||
110 | 114 | ||
111 | 115 | func getAdminVote (prefix,admin) = { | |
112 | 116 | let voteKey = keyFullAdminVote(prefix, admin) | |
113 | 117 | valueOrElse(getInteger(voteKey), 0) | |
114 | 118 | } | |
115 | 119 | ||
116 | 120 | ||
117 | 121 | func getAdminsList () = match getString(this, keyAdminAddressList()) { | |
118 | 122 | case s: String => | |
119 | 123 | split(s, SEP) | |
120 | 124 | case _ => | |
121 | 125 | nil | |
122 | 126 | } | |
123 | 127 | ||
124 | 128 | ||
125 | 129 | func isInAdminList (address) = containsElement(getAdminsList(), address) | |
126 | 130 | ||
127 | 131 | ||
128 | 132 | func genVotesKeysHelper (a,adminAddress) = { | |
129 | - | let $ | |
130 | - | let result = $ | |
131 | - | let prefix = $ | |
133 | + | let $t036963720 = a | |
134 | + | let result = $t036963720._1 | |
135 | + | let prefix = $t036963720._2 | |
132 | 136 | $Tuple2((result :+ keyFullAdminVote(prefix, adminAddress)), prefix) | |
133 | 137 | } | |
134 | 138 | ||
135 | 139 | ||
136 | 140 | func genVotesKeys (keyPrefix) = { | |
137 | 141 | let adminList = keyAdminAddressList() | |
138 | - | let $ | |
142 | + | let $t038673951 = { | |
139 | 143 | let $l = getAdminsList() | |
140 | 144 | let $s = size($l) | |
141 | 145 | let $acc0 = $Tuple2(nil, keyPrefix) | |
142 | 146 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
143 | 147 | then $a | |
144 | 148 | else genVotesKeysHelper($a, $l[$i]) | |
145 | 149 | ||
146 | 150 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
147 | 151 | then $a | |
148 | 152 | else throw("List size exceeds 5") | |
149 | 153 | ||
150 | 154 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5) | |
151 | 155 | } | |
152 | - | let result = $ | |
153 | - | let prefix = $ | |
156 | + | let result = $t038673951._1 | |
157 | + | let prefix = $t038673951._2 | |
154 | 158 | result | |
155 | 159 | } | |
156 | 160 | ||
157 | 161 | ||
158 | 162 | func countVotesHelper (result,voteKey) = (result + valueOrElse(getInteger(voteKey), 0)) | |
159 | 163 | ||
160 | 164 | ||
161 | 165 | func countVotes (prefix) = { | |
162 | 166 | let votes = genVotesKeys(prefix) | |
163 | 167 | let $l = votes | |
164 | 168 | let $s = size($l) | |
165 | 169 | let $acc0 = 0 | |
166 | 170 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
167 | 171 | then $a | |
168 | 172 | else countVotesHelper($a, $l[$i]) | |
169 | 173 | ||
170 | 174 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
171 | 175 | then $a | |
172 | 176 | else throw("List size exceeds 5") | |
173 | 177 | ||
174 | 178 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5) | |
175 | 179 | } | |
176 | 180 | ||
177 | 181 | ||
178 | 182 | func clearVotesHelper (result,key) = (result :+ DeleteEntry(key)) | |
179 | 183 | ||
180 | 184 | ||
181 | 185 | func getClearVoteEntries (prefix) = { | |
182 | 186 | let votes = genVotesKeys(prefix) | |
183 | 187 | let $l = votes | |
184 | 188 | let $s = size($l) | |
185 | 189 | let $acc0 = nil | |
186 | 190 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
187 | 191 | then $a | |
188 | 192 | else clearVotesHelper($a, $l[$i]) | |
189 | 193 | ||
190 | 194 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
191 | 195 | then $a | |
192 | 196 | else throw("List size exceeds 5") | |
193 | 197 | ||
194 | 198 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5) | |
195 | 199 | } | |
196 | 200 | ||
197 | 201 | ||
198 | 202 | func voteINTERNAL (callerAddressString,keyPrefix,minVotes,voteResult) = { | |
199 | 203 | let voteKey = keyFullAdminVote(keyPrefix, callerAddressString) | |
200 | 204 | let adminCurrentVote = getAdminVote(keyPrefix, callerAddressString) | |
201 | 205 | let err = if (!(isInAdminList(callerAddressString))) | |
202 | 206 | then throwErr((("Address: " + callerAddressString) + " not in Admin list")) | |
203 | 207 | else if ((adminCurrentVote == 1)) | |
204 | 208 | then throwErr((voteKey + " you already voted")) | |
205 | 209 | else unit | |
206 | 210 | if ((err == err)) | |
207 | 211 | then { | |
208 | 212 | let votes = countVotes(keyPrefix) | |
209 | 213 | if (((votes + 1) >= minVotes)) | |
210 | 214 | then { | |
211 | 215 | let clearVoteEntries = getClearVoteEntries(keyPrefix) | |
212 | 216 | (clearVoteEntries ++ voteResult) | |
213 | 217 | } | |
214 | 218 | else [IntegerEntry(voteKey, 1)] | |
215 | 219 | } | |
216 | 220 | else throw("Strict value is not equal to itself.") | |
217 | 221 | } | |
218 | 222 | ||
219 | 223 | ||
220 | 224 | func getLeasingNodeEntry (nodeAddress,currentLeased,nextLeased) = { | |
221 | 225 | let valueString = makeString(["%d%d%d%d", toString(currentPeriodHeight), toString(currentLeased), toString(nextPeriodHeight), toString(nextLeased)], SEP) | |
222 | 226 | StringEntry(keyLeasingNodeData(nodeAddress), valueString) | |
223 | 227 | } | |
224 | 228 | ||
225 | 229 | ||
226 | 230 | func getLeasingNodeData (nodeAddress) = { | |
227 | 231 | let leasingNodeDataStringRaw = getString(this, keyLeasingNodeData(nodeAddress)) | |
228 | 232 | match leasingNodeDataStringRaw { | |
229 | 233 | case ds: String => | |
230 | 234 | let dataList = split(ds, SEP) | |
231 | 235 | let nodeCurrentPeriod = parseIntValue(dataList[1]) | |
232 | 236 | let nodeCurrentLeased = parseIntValue(dataList[2]) | |
233 | 237 | let nodeNextPeriod = parseIntValue(dataList[3]) | |
234 | 238 | let nodeNextLeased = parseIntValue(dataList[4]) | |
235 | 239 | if (if ((nodeNextPeriod > height)) | |
236 | 240 | then true | |
237 | 241 | else (periodOffsetHeight == -1)) | |
238 | 242 | then $Tuple2(nodeCurrentLeased, nodeNextLeased) | |
239 | 243 | else $Tuple2(nodeNextLeased, nodeNextLeased) | |
240 | 244 | case _ => | |
241 | 245 | $Tuple2(0, 0) | |
242 | 246 | } | |
243 | 247 | } | |
244 | 248 | ||
245 | 249 | ||
246 | 250 | func getUserLeasingEntry (nodeAddress,userAddress,userCurrentLeased,userNextLeased) = { | |
247 | 251 | let valueString = makeString(["%d%d%d%d", toString(currentPeriodHeight), toString(userCurrentLeased), toString(nextPeriodHeight), toString(userNextLeased)], SEP) | |
248 | 252 | StringEntry(keyUserLeasingNodeData(userAddress, nodeAddress), valueString) | |
249 | 253 | } | |
250 | 254 | ||
251 | 255 | ||
252 | 256 | func getUserLeasingData (nodeAddress,userAddress) = { | |
253 | 257 | let leasingUserDataStringRaw = getString(this, keyUserLeasingNodeData(userAddress, nodeAddress)) | |
254 | 258 | match leasingUserDataStringRaw { | |
255 | 259 | case ds: String => | |
256 | 260 | let dataList = split(ds, SEP) | |
257 | 261 | let userCurrentPeriod = parseIntValue(dataList[1]) | |
258 | 262 | let userCurrentLeased = parseIntValue(dataList[2]) | |
259 | 263 | let userNextPeriod = parseIntValue(dataList[3]) | |
260 | 264 | let userNextLeased = parseIntValue(dataList[4]) | |
261 | 265 | if (if ((userNextPeriod > height)) | |
262 | 266 | then true | |
263 | 267 | else (periodOffsetHeight == -1)) | |
264 | 268 | then $Tuple2(userCurrentLeased, userNextLeased) | |
265 | 269 | else $Tuple2(userNextLeased, userNextLeased) | |
266 | 270 | case _ => | |
267 | 271 | $Tuple2(0, 0) | |
268 | 272 | } | |
269 | 273 | } | |
270 | 274 | ||
271 | 275 | ||
272 | 276 | func getUserToClaimEntry (userAddress,toClaim,toUnlock) = { | |
273 | 277 | let valueString = makeString(["%d%d%d%d", toString(currentPeriodHeight), toString(toClaim), toString(nextPeriodHeight), toString(toUnlock)], SEP) | |
274 | 278 | StringEntry(keyUserToClaim(userAddress), valueString) | |
275 | 279 | } | |
276 | 280 | ||
277 | 281 | ||
278 | 282 | func getUserToClaimBalance (userAddress) = { | |
279 | 283 | let userToClaimDataStringRaw = getString(this, keyUserToClaim(userAddress)) | |
280 | 284 | match userToClaimDataStringRaw { | |
281 | 285 | case ds: String => | |
282 | 286 | let dataList = split(ds, SEP) | |
283 | 287 | let currentPeriod = parseIntValue(dataList[1]) | |
284 | 288 | let toClaim = parseIntValue(dataList[2]) | |
285 | 289 | let nextPeriod = parseIntValue(dataList[3]) | |
286 | 290 | let toUnlock = parseIntValue(dataList[4]) | |
287 | 291 | if (if ((nextPeriod > height)) | |
288 | 292 | then true | |
289 | 293 | else (currentPeriodId == 0)) | |
290 | 294 | then $Tuple2(toClaim, toUnlock) | |
291 | 295 | else $Tuple2((toClaim + toUnlock), 0) | |
292 | 296 | case _ => | |
293 | 297 | $Tuple2(0, 0) | |
294 | 298 | } | |
295 | 299 | } | |
296 | 300 | ||
297 | 301 | ||
298 | 302 | func getUserTotalLockedEntry (userAddress,userTotalLocked) = IntegerEntry(keyUserTotalLocked(userAddress), userTotalLocked) | |
299 | 303 | ||
300 | 304 | ||
301 | 305 | func getUserTotalLocked (userAddress) = valueOrElse(getInteger(this, keyUserTotalLocked(userAddress)), 0) | |
302 | 306 | ||
303 | 307 | ||
304 | 308 | func getUnstakeActions (nodeAddress,userAddress,unstakeAmount) = { | |
305 | - | let $ | |
306 | - | let nodeCurrentLeased = $ | |
307 | - | let nodeNextLeased = $ | |
308 | - | let $ | |
309 | - | let userCurrentLeased = $ | |
310 | - | let userNextLeased = $ | |
309 | + | let $t089919064 = getLeasingNodeData(nodeAddress) | |
310 | + | let nodeCurrentLeased = $t089919064._1 | |
311 | + | let nodeNextLeased = $t089919064._2 | |
312 | + | let $t090699155 = getUserLeasingData(nodeAddress, userAddress) | |
313 | + | let userCurrentLeased = $t090699155._1 | |
314 | + | let userNextLeased = $t090699155._2 | |
311 | 315 | let checks = [if (!(isForceStop)) | |
312 | 316 | then true | |
313 | - | else throwErr("contract is temporary stopped"), if ((unstakeAmount > 0)) | |
317 | + | else throwErr("contract is temporary stopped"), if (!(isForceOutStop)) | |
318 | + | then true | |
319 | + | else throwErr("unstake is temporary disabled"), if ((unstakeAmount > 0)) | |
314 | 320 | then true | |
315 | 321 | else throwErr("unstake amount should be greater than 0"), if ((userNextLeased >= unstakeAmount)) | |
316 | 322 | then true | |
317 | 323 | else throwErr("unstake amount should be less or equal user staked amount"), if ((nodeNextLeased >= unstakeAmount)) | |
318 | 324 | then true | |
319 | 325 | else throwErr("unstake amount should be less or equal node staked amount"), if (isValidAddress(nodeAddress)) | |
320 | 326 | then true | |
321 | 327 | else throwErr(makeString(["node address is not valid:", nodeAddress], " ")), if (isValidAddress(userAddress)) | |
322 | 328 | then true | |
323 | 329 | else throwErr(makeString(["user address is not valid:", userAddress], " "))] | |
324 | 330 | if ((checks == checks)) | |
325 | 331 | then { | |
326 | 332 | let newNodeNextLease = (nodeNextLeased - unstakeAmount) | |
327 | 333 | let newUserNextLeased = (userNextLeased - unstakeAmount) | |
328 | - | let $ | |
329 | - | let toClaim = $ | |
330 | - | let toUnlock = $ | |
334 | + | let $t01003910099 = getUserToClaimBalance(userAddress) | |
335 | + | let toClaim = $t01003910099._1 | |
336 | + | let toUnlock = $t01003910099._2 | |
331 | 337 | let newToUnlock = (toUnlock + unstakeAmount) | |
332 | 338 | let userTotalLocked = getUserTotalLocked(userAddress) | |
333 | 339 | let newUserTotalLocked = (userTotalLocked - unstakeAmount) | |
334 | 340 | [getLeasingNodeEntry(nodeAddress, nodeCurrentLeased, newNodeNextLease), getUserLeasingEntry(nodeAddress, userAddress, userCurrentLeased, newUserNextLeased), getUserToClaimEntry(userAddress, toClaim, newToUnlock), getUserTotalLockedEntry(userAddress, newUserTotalLocked), IntegerEntry(keyNodeLeasingByHeight(nodeAddress), newNodeNextLease), IntegerEntry(keyUserLeasingByHeight(nodeAddress, userAddress), newUserNextLeased)] | |
335 | 341 | } | |
336 | 342 | else throw("Strict value is not equal to itself.") | |
337 | 343 | } | |
338 | 344 | ||
339 | 345 | ||
340 | 346 | func getClaimUnlockedActions (userAddress,claimAmount) = { | |
341 | - | let $ | |
342 | - | let toClaim = $ | |
343 | - | let toUnlock = $ | |
347 | + | let $t01082810888 = getUserToClaimBalance(userAddress) | |
348 | + | let toClaim = $t01082810888._1 | |
349 | + | let toUnlock = $t01082810888._2 | |
344 | 350 | let checks = [if (!(isForceStop)) | |
345 | 351 | then true | |
346 | - | else throwErr("contract is temporary stopped"), if ((claimAmount > 0)) | |
352 | + | else throwErr("contract is temporary stopped"), if (!(isForceOutStop)) | |
353 | + | then true | |
354 | + | else throwErr("claim is temporary disabled"), if ((claimAmount > 0)) | |
347 | 355 | then true | |
348 | 356 | else throwErr("claim amount should be greater than 0"), if ((toClaim >= claimAmount)) | |
349 | 357 | then true | |
350 | 358 | else throwErr("claim amount should be less or equal unlocked amount"), if (isValidAddress(userAddress)) | |
351 | 359 | then true | |
352 | 360 | else throwErr(makeString(["user address is not valid:", userAddress], " "))] | |
353 | 361 | if ((checks == checks)) | |
354 | 362 | then { | |
355 | 363 | let newToClaim = (toClaim - claimAmount) | |
356 | 364 | [getUserToClaimEntry(userAddress, newToClaim, toUnlock), ScriptTransfer(addressFromStringValue(userAddress), claimAmount, assetIdBytes)] | |
357 | 365 | } | |
358 | 366 | else throw("Strict value is not equal to itself.") | |
359 | 367 | } | |
360 | 368 | ||
361 | 369 | ||
362 | 370 | func getStakeActions (nodeAddress,userAddress,userLeasingAmount,i) = { | |
363 | - | let $ | |
364 | - | let toClaim = $ | |
365 | - | let toUnlock = $ | |
371 | + | let $t01171811778 = getUserToClaimBalance(userAddress) | |
372 | + | let toClaim = $t01171811778._1 | |
373 | + | let toUnlock = $t01171811778._2 | |
366 | 374 | let paymentAmount = if ((size(i.payments) == 0)) | |
367 | 375 | then 0 | |
368 | 376 | else i.payments[0].amount | |
369 | 377 | let available = ((toUnlock + toClaim) + paymentAmount) | |
370 | 378 | let checks = [if (!(isForceStop)) | |
371 | 379 | then true | |
372 | 380 | else throwErr("contract is temporary stopped"), if ((1 >= size(i.payments))) | |
373 | 381 | then true | |
374 | 382 | else throwErr("maximum 1 payment"), if (if ((size(i.payments) == 0)) | |
375 | 383 | then true | |
376 | 384 | else (i.payments[0].assetId == assetIdBytes)) | |
377 | 385 | then true | |
378 | 386 | else throwErr(makeString(["payment assetId should be:", assetIdString], " ")), if ((userLeasingAmount > 0)) | |
379 | 387 | then true | |
380 | 388 | else throwErr("amount should be greater than 0"), if ((available >= userLeasingAmount)) | |
381 | 389 | then true | |
382 | 390 | else throwErr("amount should be less or equal (payment + available) amount"), if ((userLeasingAmount >= paymentAmount)) | |
383 | 391 | then true | |
384 | 392 | else throw("amount should be greater or equal payment amount"), if (isValidAddress(nodeAddress)) | |
385 | 393 | then true | |
386 | 394 | else throwErr(makeString(["node address is not valid:", nodeAddress], " ")), if (isValidAddress(userAddress)) | |
387 | 395 | then true | |
388 | 396 | else throwErr(makeString(["user address is not valid:", userAddress], " "))] | |
389 | 397 | if ((checks == checks)) | |
390 | 398 | then { | |
391 | - | let $ | |
392 | - | let nodeCurrentLeased = $ | |
393 | - | let nodeNextLeased = $ | |
399 | + | let $t01284912922 = getLeasingNodeData(nodeAddress) | |
400 | + | let nodeCurrentLeased = $t01284912922._1 | |
401 | + | let nodeNextLeased = $t01284912922._2 | |
394 | 402 | let newNodeNextLease = (nodeNextLeased + userLeasingAmount) | |
395 | - | let $ | |
396 | - | let userCurrentLeased = $ | |
397 | - | let userNextLeased = $ | |
403 | + | let $t01299013076 = getUserLeasingData(nodeAddress, userAddress) | |
404 | + | let userCurrentLeased = $t01299013076._1 | |
405 | + | let userNextLeased = $t01299013076._2 | |
398 | 406 | let newUserNextLeased = (userNextLeased + userLeasingAmount) | |
399 | 407 | let fromUnlockedAmount = (userLeasingAmount - paymentAmount) | |
400 | 408 | let newToUnlock = max([0, (toUnlock - fromUnlockedAmount)]) | |
401 | 409 | let newToClaim = min([toClaim, (toClaim + (toUnlock - fromUnlockedAmount))]) | |
402 | 410 | let userTotalLocked = getUserTotalLocked(userAddress) | |
403 | 411 | let newUserTotalLocked = (userTotalLocked + userLeasingAmount) | |
404 | 412 | [getLeasingNodeEntry(nodeAddress, nodeCurrentLeased, newNodeNextLease), getUserLeasingEntry(nodeAddress, userAddress, userCurrentLeased, newUserNextLeased), getUserToClaimEntry(userAddress, newToClaim, newToUnlock), getUserTotalLockedEntry(userAddress, newUserTotalLocked), IntegerEntry(keyNodeLeasingByHeight(nodeAddress), newNodeNextLease), IntegerEntry(keyUserLeasingByHeight(nodeAddress, userAddress), newUserNextLeased)] | |
405 | 413 | } | |
406 | 414 | else throw("Strict value is not equal to itself.") | |
407 | 415 | } | |
408 | 416 | ||
409 | 417 | ||
410 | 418 | func getStakeFromPaymentActions (nodeAddress,userAddress,i) = { | |
411 | 419 | let checks = [if ((size(i.payments) == 1)) | |
412 | 420 | then true | |
413 | 421 | else throwErr("payment size should be exactly 1")] | |
414 | 422 | if ((checks == checks)) | |
415 | 423 | then getStakeActions(nodeAddress, userAddress, i.payments[0].amount, i) | |
416 | 424 | else throw("Strict value is not equal to itself.") | |
417 | 425 | } | |
418 | 426 | ||
419 | 427 | ||
420 | 428 | func getSetNewPeriodLengthActions (newPeriodLength) = { | |
421 | 429 | let check = [if ((newPeriodLength > 0)) | |
422 | 430 | then true | |
423 | 431 | else throwErr("period length should be greater than 0")] | |
424 | 432 | if ((check == check)) | |
425 | 433 | then if ((periodOffsetHeight == -1)) | |
426 | 434 | then [IntegerEntry(keyPeriodLength, newPeriodLength), IntegerEntry(keyPeriodOffsetHeight, height)] | |
427 | 435 | else [IntegerEntry(keyPeriodOffsetId, (currentPeriodId + 1)), IntegerEntry(keyPeriodOffsetHeight, nextPeriodHeight), IntegerEntry(keyPeriodLength, newPeriodLength)] | |
428 | 436 | else throw("Strict value is not equal to itself.") | |
429 | 437 | } | |
430 | 438 | ||
431 | 439 | ||
432 | 440 | @Callable(i) | |
433 | 441 | func setNewPeriodLength (newPeriodLength) = { | |
434 | 442 | let checks = [if (isInAdminList(toString(i.caller))) | |
435 | 443 | then true | |
436 | 444 | else throwErr("caller is not in adminList")] | |
437 | 445 | if ((checks == checks)) | |
438 | 446 | then getSetNewPeriodLengthActions(newPeriodLength) | |
439 | 447 | else throw("Strict value is not equal to itself.") | |
440 | 448 | } | |
441 | 449 | ||
442 | 450 | ||
443 | 451 | ||
444 | 452 | @Callable(i) | |
445 | 453 | func setForceStopFlag (stop) = { | |
446 | 454 | let check = [if (isInAdminList(toString(i.caller))) | |
447 | 455 | then true | |
448 | 456 | else throwErr("caller is not in adminList")] | |
449 | 457 | if ((check == check)) | |
450 | 458 | then [BooleanEntry(keyForceStop, stop)] | |
451 | 459 | else throw("Strict value is not equal to itself.") | |
452 | 460 | } | |
453 | 461 | ||
454 | 462 | ||
455 | 463 | ||
456 | 464 | @Callable(i) | |
465 | + | func setForceOutStopFlag (stop) = { | |
466 | + | let check = [if (isInAdminList(toString(i.caller))) | |
467 | + | then true | |
468 | + | else throwErr("caller is not in adminList")] | |
469 | + | if ((check == check)) | |
470 | + | then [BooleanEntry(keyForceOutStop, stop)] | |
471 | + | else throw("Strict value is not equal to itself.") | |
472 | + | } | |
473 | + | ||
474 | + | ||
475 | + | ||
476 | + | @Callable(i) | |
457 | 477 | func getNodeDataREADONLY (nodeAddress) = { | |
458 | - | let $ | |
459 | - | let currentLease = $ | |
460 | - | let nextLeased = $ | |
478 | + | let $t01574915813 = getLeasingNodeData(nodeAddress) | |
479 | + | let currentLease = $t01574915813._1 | |
480 | + | let nextLeased = $t01574915813._2 | |
461 | 481 | $Tuple2(nil, $Tuple5(currentPeriodHeight, currentLease, nextPeriodHeight, nextLeased, height)) | |
462 | 482 | } | |
463 | 483 | ||
464 | 484 | ||
465 | 485 | ||
466 | 486 | @Callable(i) | |
467 | 487 | func getUserLeasingDataREADONLY (nodeAddress,userAddress) = { | |
468 | - | let $ | |
469 | - | let currentLease = $ | |
470 | - | let nextLeased = $ | |
488 | + | let $t01618316260 = getUserLeasingData(nodeAddress, userAddress) | |
489 | + | let currentLease = $t01618316260._1 | |
490 | + | let nextLeased = $t01618316260._2 | |
471 | 491 | $Tuple2(nil, $Tuple5(currentPeriodHeight, currentLease, nextPeriodHeight, nextLeased, height)) | |
472 | 492 | } | |
473 | 493 | ||
474 | 494 | ||
475 | 495 | ||
476 | 496 | @Callable(i) | |
477 | 497 | func getUserDataREADONLY (userAddress) = { | |
478 | - | let $ | |
479 | - | let toClaim = $ | |
480 | - | let toUnlock = $ | |
498 | + | let $t01662316683 = getUserToClaimBalance(userAddress) | |
499 | + | let toClaim = $t01662316683._1 | |
500 | + | let toUnlock = $t01662316683._2 | |
481 | 501 | let userTotalLocked = getUserTotalLocked(userAddress) | |
482 | 502 | $Tuple2(nil, $Tuple6(currentPeriodHeight, toClaim, nextPeriodHeight, toUnlock, userTotalLocked, height)) | |
483 | 503 | } | |
484 | 504 | ||
485 | 505 | ||
486 | 506 | ||
487 | 507 | @Callable(i) | |
488 | 508 | func leaseByAddress (nodeAddress,userAddress) = getStakeFromPaymentActions(nodeAddress, userAddress, i) | |
489 | 509 | ||
490 | 510 | ||
491 | 511 | ||
492 | 512 | @Callable(i) | |
493 | 513 | func lease (nodeAddress) = { | |
494 | 514 | let userAddress = toString(i.caller) | |
495 | 515 | getStakeFromPaymentActions(nodeAddress, userAddress, i) | |
496 | 516 | } | |
497 | 517 | ||
498 | 518 | ||
499 | 519 | ||
500 | 520 | @Callable(i) | |
501 | 521 | func leaseFromLocked (nodeAddress,amount) = { | |
502 | 522 | let userAddress = toString(i.caller) | |
503 | 523 | getStakeActions(nodeAddress, userAddress, amount, i) | |
504 | 524 | } | |
505 | 525 | ||
506 | 526 | ||
507 | 527 | ||
508 | 528 | @Callable(i) | |
509 | 529 | func cancelLease (nodeAddress,amount) = { | |
510 | 530 | let userAddress = toString(i.caller) | |
511 | 531 | getUnstakeActions(nodeAddress, userAddress, amount) | |
512 | 532 | } | |
513 | 533 | ||
514 | 534 | ||
515 | 535 | ||
516 | 536 | @Callable(i) | |
517 | 537 | func claim (amount) = { | |
518 | 538 | let userAddress = toString(i.caller) | |
519 | 539 | getClaimUnlockedActions(userAddress, amount) | |
520 | 540 | } | |
521 | 541 | ||
522 | 542 | ||
523 | 543 | ||
524 | 544 | @Callable(i) | |
525 | 545 | func claimAll () = { | |
526 | 546 | let userAddress = toString(i.caller) | |
527 | - | let $ | |
528 | - | let toClaim = $ | |
529 | - | let toUnlock = $ | |
547 | + | let $t01769717757 = getUserToClaimBalance(userAddress) | |
548 | + | let toClaim = $t01769717757._1 | |
549 | + | let toUnlock = $t01769717757._2 | |
530 | 550 | let checks = [if ((toClaim > 0)) | |
531 | 551 | then true | |
532 | 552 | else throwErr("nothing to claim")] | |
533 | 553 | if ((checks == checks)) | |
534 | 554 | then getClaimUnlockedActions(userAddress, toClaim) | |
535 | 555 | else throw("Strict value is not equal to itself.") | |
536 | 556 | } | |
537 | 557 | ||
538 | 558 | ||
539 | 559 | ||
540 | 560 | @Callable(i) | |
541 | 561 | func voteForTxId (txId) = { | |
542 | 562 | let callerAddressString = toBase58String(i.caller.bytes) | |
543 | 563 | let keyPrefix = keyAllowedTxIdVotePrefix(txId) | |
544 | 564 | let result = [StringEntry(keyAllowedTxId(), txId)] | |
545 | 565 | let allowedTxIdOption = getString(this, keyAllowedTxId()) | |
546 | 566 | let err = [if ((size(fromBase58String(txId)) == TXID_BYTES_LENGTH)) | |
547 | 567 | then true | |
548 | 568 | else throwErr((txId + " is not valid txId")), if (if ((allowedTxIdOption == unit)) | |
549 | 569 | then true | |
550 | 570 | else (value(allowedTxIdOption) != txId)) | |
551 | 571 | then true | |
552 | 572 | else throwErr((txId + " is already allowed"))] | |
553 | 573 | if ((err == err)) | |
554 | 574 | then voteINTERNAL(callerAddressString, keyPrefix, QUORUM, result) | |
555 | 575 | else throw("Strict value is not equal to itself.") | |
556 | 576 | } | |
557 | 577 | ||
558 | 578 | ||
559 | 579 | @Verifier(tx) | |
560 | 580 | func verify () = { | |
561 | 581 | let byAdmins = (tx.id == fromBase58String(valueOrElse(getString(this, keyAllowedTxId()), ""))) | |
562 | 582 | let byOwner = if ((size(getAdminsList()) >= QUORUM)) | |
563 | 583 | then false | |
564 | 584 | else sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
565 | 585 | if (byAdmins) | |
566 | 586 | then true | |
567 | 587 | else byOwner | |
568 | 588 | } | |
569 | 589 |
github/deemru/w8io/026f985 69.60 ms ◑