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