tx · D2h3bfs4LSU8wi2sD7YJX2wv2ckFxpJcq8eomdf1uG1e 3NCWFHDzdPHZC6636ZkMLNDup9mjpbTLs7h: -0.02700000 Waves 2024.10.21 18:47 [3336805] smart account 3NCWFHDzdPHZC6636ZkMLNDup9mjpbTLs7h > SELF 0.00000000 Waves
{ "type": 13, "id": "D2h3bfs4LSU8wi2sD7YJX2wv2ckFxpJcq8eomdf1uG1e", "fee": 2700000, "feeAssetId": null, "timestamp": 1729525709443, "version": 1, "sender": "3NCWFHDzdPHZC6636ZkMLNDup9mjpbTLs7h", "senderPublicKey": "3z8Q6Zu3KppVmn6fJJvrLc1Wo3krVHSvfaNcerm82md2", "proofs": [ "3Z81NF91fv7KWMuXWSadQceH35JkoH8ZieS2CDpBGB1PAKRz4DiVJWZHUCwqYrzz9JkCpjrajRsP6FDGApkEoitK" ], "script": "base64:BgJQCAISAwoBARIAEgMKAQQSAwoBBBIDCgEIEgQKAggIEgMKAQgSBAoCCAgSAwoBCBIECgIIARIECgIIARIDCgEBEgASAwoBCBIDCgEBEgMKAQhPAAxjb250cmFjdEZpbGUCEWwybXBfbGVhc2luZy5yaWRlAANTRVACAl9fABJCTE9DS1NfSU5fSU5URVJWQUwA6AcABnNjYWxlOACAwtcvAAdzY2FsZTE2CQBoAgUGc2NhbGU4BQZzY2FsZTgBCHRocm93RXJyAQNtc2cJAAIBCQCsAgIJAKwCAgUMY29udHJhY3RGaWxlAgI6IAUDbXNnAAxrZXlMMkFzc2V0SWQJALkJAgkAzAgCAgIlcwkAzAgCAgdhc3NldElkBQNuaWwFA1NFUAAMa2V5Rm9yY2VTdG9wCQC5CQIJAMwIAgICJXMJAMwIAgIJZm9yY2VTdG9wBQNuaWwFA1NFUAAPa2V5Rm9yY2VPdXRTdG9wCQC5CQIJAMwIAgICJXMJAMwIAgIMZm9yY2VPdXRTdG9wBQNuaWwFA1NFUAAPa2V5VW5pdHNBc3NldElkCQC5CQIJAMwIAgICJXMJAMwIAgIMdW5pdHNBc3N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zIGFscmVhZHkgYWxsb3dlZAUDbmlsAwkAAAIFA2VycgUDZXJyCQEMdm90ZUlOVEVSTkFMBAUTY2FsbGVyQWRkcmVzc1N0cmluZwUJa2V5UHJlZml4BQZRVU9SVU0FBnJlc3VsdAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgECdHgBBnZlcmlmeQAECGJ5QWRtaW5zCQAAAggFAnR4AmlkCQDZBAEJAQt2YWx1ZU9yRWxzZQIJAJ0IAgUEdGhpcwkBDmtleUFsbG93ZWRUeElkAAIABAdieU93bmVyAwkAZwIJAJADAQkBDWdldEFkbWluc0xpc3QABQZRVU9SVU0HCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5AwUIYnlBZG1pbnMGBQdieU93bmVyHULxmw==", "chainId": 84, "height": 3336805, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EDS2JzwHfQLX9WX6Se6unA3uHm3JRq83rz1KVeNngGg9 Next: 4sXod3A78sxQ8rhLLPDDQdPe2ds52rschzzU4MYvMENW Diff:
Old | New | Differences | |
---|---|---|---|
644 | 644 | ||
645 | 645 | @Callable(i) | |
646 | 646 | func getUserDataREADONLY (userAddress) = { | |
647 | - | let $ | |
648 | - | let toClaim = $ | |
649 | - | let toUnlock = $ | |
647 | + | let $t02225922319 = getUserToClaimBalance(userAddress) | |
648 | + | let toClaim = $t02225922319._1 | |
649 | + | let toUnlock = $t02225922319._2 | |
650 | 650 | let userTotalLocked = getUserTotalLocked(userAddress) | |
651 | - | let $ | |
652 | - | let unitsToSend = $ | |
653 | - | let totalUnitsClaimed = $ | |
654 | - | let l2ToBurn = $ | |
655 | - | let totalL2Burned = $ | |
656 | - | let claimedBlock = $ | |
651 | + | let $t02238222490 = getUnitsClaimData(userAddress) | |
652 | + | let unitsToSend = $t02238222490._1 | |
653 | + | let totalUnitsClaimed = $t02238222490._2 | |
654 | + | let l2ToBurn = $t02238222490._3 | |
655 | + | let totalL2Burned = $t02238222490._4 | |
656 | + | let claimedBlock = $t02238222490._5 | |
657 | 657 | let unitsPerBlockScale16 = valueOrElse(getInteger(this, keyUnitsPerBlockScale16), 0) | |
658 | - | $Tuple2(nil, $Tuple12(currentPeriodHeight, toClaim, nextPeriodHeight, toUnlock, userTotalLocked, height, unitsToSend, totalUnitsClaimed, l2ToBurn, totalL2Burned, claimedBlock, unitsPerBlockScale16)) | |
658 | + | let remainingblocks = max([0, ((unitsClaimStartHeight + unitsClaimInterval) - height)]) | |
659 | + | $Tuple2(nil, $Tuple13(currentPeriodHeight, toClaim, nextPeriodHeight, toUnlock, userTotalLocked, height, unitsToSend, totalUnitsClaimed, l2ToBurn, totalL2Burned, claimedBlock, unitsPerBlockScale16, remainingblocks)) | |
659 | 660 | } | |
660 | 661 | ||
661 | 662 | ||
700 | 701 | @Callable(i) | |
701 | 702 | func claimAll () = { | |
702 | 703 | let userAddress = toString(i.caller) | |
703 | - | let $ | |
704 | - | let toClaim = $ | |
705 | - | let toUnlock = $ | |
704 | + | let $t02392023980 = getUserToClaimBalance(userAddress) | |
705 | + | let toClaim = $t02392023980._1 | |
706 | + | let toUnlock = $t02392023980._2 | |
706 | 707 | let checks = [if ((toClaim > 0)) | |
707 | 708 | then true | |
708 | 709 | 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 | let BLOCKS_IN_INTERVAL = 1000 | |
9 | 9 | ||
10 | 10 | let scale8 = 100000000 | |
11 | 11 | ||
12 | 12 | let scale16 = (scale8 * scale8) | |
13 | 13 | ||
14 | 14 | func throwErr (msg) = throw(((contractFile + ": ") + msg)) | |
15 | 15 | ||
16 | 16 | ||
17 | 17 | let keyL2AssetId = makeString(["%s", "assetId"], SEP) | |
18 | 18 | ||
19 | 19 | let keyForceStop = makeString(["%s", "forceStop"], SEP) | |
20 | 20 | ||
21 | 21 | let keyForceOutStop = makeString(["%s", "forceOutStop"], SEP) | |
22 | 22 | ||
23 | 23 | let keyUnitsAssetId = makeString(["%s", "unitsAssetId"], SEP) | |
24 | 24 | ||
25 | 25 | let keyUnitsPerBlockScale16 = makeString(["%s", "unitsPerBlockScale16"], SEP) | |
26 | 26 | ||
27 | 27 | let keyPeriodOffsetId = makeString(["%s", "offsetId"], SEP) | |
28 | 28 | ||
29 | 29 | let keyPeriodOffsetHeight = makeString(["%s", "offsetHeight"], SEP) | |
30 | 30 | ||
31 | 31 | let keyPeriodLength = makeString(["%s", "periodLength"], SEP) | |
32 | 32 | ||
33 | 33 | let keyUnitsClaimStartHeight = makeString(["%s", "unitsClaimStartHeight"], SEP) | |
34 | 34 | ||
35 | 35 | let keyUnitsClaimInterval = makeString(["%s", "unitsClaimInterval"], SEP) | |
36 | 36 | ||
37 | 37 | let periodOffsetId = valueOrElse(getInteger(this, keyPeriodOffsetId), 0) | |
38 | 38 | ||
39 | 39 | let periodLength = valueOrElse(getInteger(this, keyPeriodLength), 10000) | |
40 | 40 | ||
41 | 41 | let periodOffsetHeight = valueOrElse(getInteger(this, keyPeriodOffsetHeight), -1) | |
42 | 42 | ||
43 | 43 | let currentPeriodId = if (if ((height > periodOffsetHeight)) | |
44 | 44 | then (periodOffsetHeight != -1) | |
45 | 45 | else false) | |
46 | 46 | then (((height - periodOffsetHeight) / periodLength) + periodOffsetId) | |
47 | 47 | else max([0, (periodOffsetId - 1)]) | |
48 | 48 | ||
49 | 49 | let currentPeriodHeight = if (if ((periodOffsetHeight == -1)) | |
50 | 50 | then true | |
51 | 51 | else if ((currentPeriodId == 0)) | |
52 | 52 | then (periodOffsetHeight > height) | |
53 | 53 | else false) | |
54 | 54 | then 0 | |
55 | 55 | else (periodOffsetHeight + ((currentPeriodId - periodOffsetId) * periodLength)) | |
56 | 56 | ||
57 | 57 | let nextPeriodHeight = if (if ((periodOffsetHeight == -1)) | |
58 | 58 | then true | |
59 | 59 | else if ((currentPeriodId == 0)) | |
60 | 60 | then (periodOffsetHeight > height) | |
61 | 61 | else false) | |
62 | 62 | then 0 | |
63 | 63 | else (currentPeriodHeight + periodLength) | |
64 | 64 | ||
65 | 65 | let unitsClaimStartHeight = valueOrElse(getInteger(this, keyUnitsClaimStartHeight), height) | |
66 | 66 | ||
67 | 67 | let unitsClaimInterval = valueOrElse(getInteger(this, keyUnitsClaimInterval), 0) | |
68 | 68 | ||
69 | 69 | func keyLeasingNodeData (nodeAddress) = makeString(["%s", nodeAddress], SEP) | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | func keyUserLeasingNodeData (userAddress,nodeAddress) = makeString(["%s%s", nodeAddress, userAddress], SEP) | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | func keyUserToClaim (userAddress) = makeString(["%s%s", "toClaim", userAddress], SEP) | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | func keyUserTotalLocked (userAddress) = makeString(["%s%s", "userTotalLocked", userAddress], SEP) | |
79 | 79 | ||
80 | 80 | ||
81 | 81 | func keyUnitsClaimedBlock (userAddress) = makeString(["%s%s", "unitsClaimedBlock", userAddress], SEP) | |
82 | 82 | ||
83 | 83 | ||
84 | 84 | func keyUnlockedUnits (userAddress) = makeString(["%s%s", "unlockedUnits", userAddress], SEP) | |
85 | 85 | ||
86 | 86 | ||
87 | 87 | func keyTotalUnitsClaimed (userAddress) = makeString(["%s%s", "totalUnitsClaimed", userAddress], SEP) | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | func keyL2ToBurn (userAddress) = makeString(["%s%s", "l2ToBurn", userAddress], SEP) | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | func keyL2BurnedTotal (userAddress) = makeString(["%s%s", "l2BurnedTotal", userAddress], SEP) | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func keyNodeLeasingByHeight (nodeAddress) = { | |
97 | 97 | let h = if ((periodOffsetHeight == -1)) | |
98 | 98 | then 0 | |
99 | 99 | else height | |
100 | 100 | makeString(["%s%d", nodeAddress, toString(h)], SEP) | |
101 | 101 | } | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | func keyUserLeasingByHeight (nodeAddress,userAddress) = { | |
105 | 105 | let h = if ((periodOffsetHeight == -1)) | |
106 | 106 | then 0 | |
107 | 107 | else height | |
108 | 108 | makeString(["%s%s%d", nodeAddress, userAddress, toString(h)], SEP) | |
109 | 109 | } | |
110 | 110 | ||
111 | 111 | ||
112 | 112 | func assetStringToBytes (assetIdString) = if ((assetIdString == "WAVES")) | |
113 | 113 | then unit | |
114 | 114 | else fromBase58String(assetIdString) | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | func assetBytesToString (assetId) = match assetId { | |
118 | 118 | case a: ByteVector => | |
119 | 119 | toBase58String(a) | |
120 | 120 | case _ => | |
121 | 121 | "WAVES" | |
122 | 122 | } | |
123 | 123 | ||
124 | 124 | ||
125 | 125 | let l2AssetIdString = valueOrElse(getString(this, keyL2AssetId), "WAVES") | |
126 | 126 | ||
127 | 127 | let unitsAssetIdString = valueOrElse(getString(this, keyUnitsAssetId), "WAVES") | |
128 | 128 | ||
129 | 129 | let l2AssetIdBytes = assetStringToBytes(l2AssetIdString) | |
130 | 130 | ||
131 | 131 | let unitsAssetIdBytes = assetStringToBytes(unitsAssetIdString) | |
132 | 132 | ||
133 | 133 | let isForceStop = valueOrElse(getBoolean(this, keyForceStop), false) | |
134 | 134 | ||
135 | 135 | let isForceOutStop = valueOrElse(getBoolean(this, keyForceOutStop), false) | |
136 | 136 | ||
137 | 137 | func isValidAddress (address) = match addressFromString(address) { | |
138 | 138 | case a: Address => | |
139 | 139 | true | |
140 | 140 | case _ => | |
141 | 141 | false | |
142 | 142 | } | |
143 | 143 | ||
144 | 144 | ||
145 | 145 | let ADMIN_LIST_SIZE = 5 | |
146 | 146 | ||
147 | 147 | let QUORUM = 3 | |
148 | 148 | ||
149 | 149 | let TXID_BYTES_LENGTH = 32 | |
150 | 150 | ||
151 | 151 | func keyAllowedTxIdVotePrefix (txId) = makeString(["%s%s%s", "allowTxId", txId], SEP) | |
152 | 152 | ||
153 | 153 | ||
154 | 154 | func keyFullAdminVote (prefix,adminAddress) = makeString([prefix, adminAddress], SEP) | |
155 | 155 | ||
156 | 156 | ||
157 | 157 | func keyAdminAddressList () = makeString(["%s", "adminAddressList"], SEP) | |
158 | 158 | ||
159 | 159 | ||
160 | 160 | func keyAllowedTxId () = makeString(["%s", "txId"], SEP) | |
161 | 161 | ||
162 | 162 | ||
163 | 163 | func getAdminVote (prefix,admin) = { | |
164 | 164 | let voteKey = keyFullAdminVote(prefix, admin) | |
165 | 165 | valueOrElse(getInteger(voteKey), 0) | |
166 | 166 | } | |
167 | 167 | ||
168 | 168 | ||
169 | 169 | func getAdminsList () = match getString(this, keyAdminAddressList()) { | |
170 | 170 | case s: String => | |
171 | 171 | split(s, SEP) | |
172 | 172 | case _ => | |
173 | 173 | nil | |
174 | 174 | } | |
175 | 175 | ||
176 | 176 | ||
177 | 177 | func isInAdminList (address) = containsElement(getAdminsList(), address) | |
178 | 178 | ||
179 | 179 | ||
180 | 180 | func genVotesKeysHelper (a,adminAddress) = { | |
181 | 181 | let $t051855209 = a | |
182 | 182 | let result = $t051855209._1 | |
183 | 183 | let prefix = $t051855209._2 | |
184 | 184 | $Tuple2((result :+ keyFullAdminVote(prefix, adminAddress)), prefix) | |
185 | 185 | } | |
186 | 186 | ||
187 | 187 | ||
188 | 188 | func genVotesKeys (keyPrefix) = { | |
189 | 189 | let adminList = keyAdminAddressList() | |
190 | 190 | let $t053565440 = { | |
191 | 191 | let $l = getAdminsList() | |
192 | 192 | let $s = size($l) | |
193 | 193 | let $acc0 = $Tuple2(nil, keyPrefix) | |
194 | 194 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
195 | 195 | then $a | |
196 | 196 | else genVotesKeysHelper($a, $l[$i]) | |
197 | 197 | ||
198 | 198 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
199 | 199 | then $a | |
200 | 200 | else throw("List size exceeds 5") | |
201 | 201 | ||
202 | 202 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5) | |
203 | 203 | } | |
204 | 204 | let result = $t053565440._1 | |
205 | 205 | let prefix = $t053565440._2 | |
206 | 206 | result | |
207 | 207 | } | |
208 | 208 | ||
209 | 209 | ||
210 | 210 | func countVotesHelper (result,voteKey) = (result + valueOrElse(getInteger(voteKey), 0)) | |
211 | 211 | ||
212 | 212 | ||
213 | 213 | func countVotes (prefix) = { | |
214 | 214 | let votes = genVotesKeys(prefix) | |
215 | 215 | let $l = votes | |
216 | 216 | let $s = size($l) | |
217 | 217 | let $acc0 = 0 | |
218 | 218 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
219 | 219 | then $a | |
220 | 220 | else countVotesHelper($a, $l[$i]) | |
221 | 221 | ||
222 | 222 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
223 | 223 | then $a | |
224 | 224 | else throw("List size exceeds 5") | |
225 | 225 | ||
226 | 226 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5) | |
227 | 227 | } | |
228 | 228 | ||
229 | 229 | ||
230 | 230 | func clearVotesHelper (result,key) = (result :+ DeleteEntry(key)) | |
231 | 231 | ||
232 | 232 | ||
233 | 233 | func getClearVoteEntries (prefix) = { | |
234 | 234 | let votes = genVotesKeys(prefix) | |
235 | 235 | let $l = votes | |
236 | 236 | let $s = size($l) | |
237 | 237 | let $acc0 = nil | |
238 | 238 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
239 | 239 | then $a | |
240 | 240 | else clearVotesHelper($a, $l[$i]) | |
241 | 241 | ||
242 | 242 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
243 | 243 | then $a | |
244 | 244 | else throw("List size exceeds 5") | |
245 | 245 | ||
246 | 246 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5) | |
247 | 247 | } | |
248 | 248 | ||
249 | 249 | ||
250 | 250 | func voteINTERNAL (callerAddressString,keyPrefix,minVotes,voteResult) = { | |
251 | 251 | let voteKey = keyFullAdminVote(keyPrefix, callerAddressString) | |
252 | 252 | let adminCurrentVote = getAdminVote(keyPrefix, callerAddressString) | |
253 | 253 | let err = if (!(isInAdminList(callerAddressString))) | |
254 | 254 | then throwErr((("Address: " + callerAddressString) + " not in Admin list")) | |
255 | 255 | else if ((adminCurrentVote == 1)) | |
256 | 256 | then throwErr((voteKey + " you already voted")) | |
257 | 257 | else unit | |
258 | 258 | if ((err == err)) | |
259 | 259 | then { | |
260 | 260 | let votes = countVotes(keyPrefix) | |
261 | 261 | if (((votes + 1) >= minVotes)) | |
262 | 262 | then { | |
263 | 263 | let clearVoteEntries = getClearVoteEntries(keyPrefix) | |
264 | 264 | (clearVoteEntries ++ voteResult) | |
265 | 265 | } | |
266 | 266 | else [IntegerEntry(voteKey, 1)] | |
267 | 267 | } | |
268 | 268 | else throw("Strict value is not equal to itself.") | |
269 | 269 | } | |
270 | 270 | ||
271 | 271 | ||
272 | 272 | func getLeasingNodeEntry (nodeAddress,currentLeased,nextLeased) = { | |
273 | 273 | let valueString = makeString(["%d%d%d%d", toString(currentPeriodHeight), toString(currentLeased), toString(nextPeriodHeight), toString(nextLeased)], SEP) | |
274 | 274 | StringEntry(keyLeasingNodeData(nodeAddress), valueString) | |
275 | 275 | } | |
276 | 276 | ||
277 | 277 | ||
278 | 278 | func getLeasingNodeData (nodeAddress) = { | |
279 | 279 | let leasingNodeDataStringRaw = getString(this, keyLeasingNodeData(nodeAddress)) | |
280 | 280 | match leasingNodeDataStringRaw { | |
281 | 281 | case ds: String => | |
282 | 282 | let dataList = split(ds, SEP) | |
283 | 283 | let nodeCurrentPeriod = parseIntValue(dataList[1]) | |
284 | 284 | let nodeCurrentLeased = parseIntValue(dataList[2]) | |
285 | 285 | let nodeNextPeriod = parseIntValue(dataList[3]) | |
286 | 286 | let nodeNextLeased = parseIntValue(dataList[4]) | |
287 | 287 | if (if ((nodeNextPeriod > height)) | |
288 | 288 | then true | |
289 | 289 | else (periodOffsetHeight == -1)) | |
290 | 290 | then $Tuple2(nodeCurrentLeased, nodeNextLeased) | |
291 | 291 | else $Tuple2(nodeNextLeased, nodeNextLeased) | |
292 | 292 | case _ => | |
293 | 293 | $Tuple2(0, 0) | |
294 | 294 | } | |
295 | 295 | } | |
296 | 296 | ||
297 | 297 | ||
298 | 298 | func getUserLeasingEntry (nodeAddress,userAddress,userCurrentLeased,userNextLeased) = { | |
299 | 299 | let valueString = makeString(["%d%d%d%d", toString(currentPeriodHeight), toString(userCurrentLeased), toString(nextPeriodHeight), toString(userNextLeased)], SEP) | |
300 | 300 | StringEntry(keyUserLeasingNodeData(userAddress, nodeAddress), valueString) | |
301 | 301 | } | |
302 | 302 | ||
303 | 303 | ||
304 | 304 | func getUserLeasingData (nodeAddress,userAddress) = { | |
305 | 305 | let leasingUserDataStringRaw = getString(this, keyUserLeasingNodeData(userAddress, nodeAddress)) | |
306 | 306 | match leasingUserDataStringRaw { | |
307 | 307 | case ds: String => | |
308 | 308 | let dataList = split(ds, SEP) | |
309 | 309 | let userCurrentPeriod = parseIntValue(dataList[1]) | |
310 | 310 | let userCurrentLeased = parseIntValue(dataList[2]) | |
311 | 311 | let userNextPeriod = parseIntValue(dataList[3]) | |
312 | 312 | let userNextLeased = parseIntValue(dataList[4]) | |
313 | 313 | if (if ((userNextPeriod > height)) | |
314 | 314 | then true | |
315 | 315 | else (periodOffsetHeight == -1)) | |
316 | 316 | then $Tuple2(userCurrentLeased, userNextLeased) | |
317 | 317 | else $Tuple2(userNextLeased, userNextLeased) | |
318 | 318 | case _ => | |
319 | 319 | $Tuple2(0, 0) | |
320 | 320 | } | |
321 | 321 | } | |
322 | 322 | ||
323 | 323 | ||
324 | 324 | func getUserToClaimEntry (userAddress,toClaim,toUnlock) = { | |
325 | 325 | let valueString = makeString(["%d%d%d%d", toString(currentPeriodHeight), toString(toClaim), toString(nextPeriodHeight), toString(toUnlock)], SEP) | |
326 | 326 | StringEntry(keyUserToClaim(userAddress), valueString) | |
327 | 327 | } | |
328 | 328 | ||
329 | 329 | ||
330 | 330 | func getUserToClaimBalance (userAddress) = { | |
331 | 331 | let userToClaimDataStringRaw = getString(this, keyUserToClaim(userAddress)) | |
332 | 332 | match userToClaimDataStringRaw { | |
333 | 333 | case ds: String => | |
334 | 334 | let dataList = split(ds, SEP) | |
335 | 335 | let currentPeriod = parseIntValue(dataList[1]) | |
336 | 336 | let toClaim = parseIntValue(dataList[2]) | |
337 | 337 | let nextPeriod = parseIntValue(dataList[3]) | |
338 | 338 | let toUnlock = parseIntValue(dataList[4]) | |
339 | 339 | if (if ((nextPeriod > height)) | |
340 | 340 | then true | |
341 | 341 | else (currentPeriodId == 0)) | |
342 | 342 | then $Tuple2(toClaim, toUnlock) | |
343 | 343 | else $Tuple2((toClaim + toUnlock), 0) | |
344 | 344 | case _ => | |
345 | 345 | $Tuple2(0, 0) | |
346 | 346 | } | |
347 | 347 | } | |
348 | 348 | ||
349 | 349 | ||
350 | 350 | func getUserTotalLockedEntry (userAddress,userTotalLocked) = IntegerEntry(keyUserTotalLocked(userAddress), userTotalLocked) | |
351 | 351 | ||
352 | 352 | ||
353 | 353 | func getUserTotalLocked (userAddress) = valueOrElse(getInteger(this, keyUserTotalLocked(userAddress)), 0) | |
354 | 354 | ||
355 | 355 | ||
356 | 356 | func calculateUnitsToClaim (userAddress) = { | |
357 | 357 | let claimedBlockKey = keyUnitsClaimedBlock(userAddress) | |
358 | 358 | let claimedBlock = valueOrElse(getInteger(this, claimedBlockKey), unitsClaimStartHeight) | |
359 | 359 | let unitsPerBlockScale16 = valueOrElse(getInteger(this, keyUnitsPerBlockScale16), 0) | |
360 | 360 | let currentBlock = min([(unitsClaimStartHeight + unitsClaimInterval), height]) | |
361 | 361 | let blocksPassed = (currentBlock - claimedBlock) | |
362 | 362 | let amountStaked = getUserTotalLocked(userAddress) | |
363 | 363 | let l2ToBurn = fraction(amountStaked, blocksPassed, unitsClaimInterval) | |
364 | 364 | let unitsToClaimNow = fraction(l2ToBurn, unitsPerBlockScale16, scale16) | |
365 | 365 | $Tuple3(unitsToClaimNow, l2ToBurn, currentBlock) | |
366 | 366 | } | |
367 | 367 | ||
368 | 368 | ||
369 | 369 | func getUnlockUnitsAction (userAddress) = { | |
370 | 370 | let kUnlockedUnits = keyUnlockedUnits(userAddress) | |
371 | 371 | let unlockedUnits = valueOrElse(getInteger(this, kUnlockedUnits), 0) | |
372 | 372 | let kL2ToBurn = keyL2ToBurn(userAddress) | |
373 | 373 | let l2ToBurn = valueOrElse(getInteger(this, kL2ToBurn), 0) | |
374 | 374 | let $t01136411449 = calculateUnitsToClaim(userAddress) | |
375 | 375 | let unitsToClaimNow = $t01136411449._1 | |
376 | 376 | let l2ToBurnNow = $t01136411449._2 | |
377 | 377 | let currentBlock = $t01136411449._3 | |
378 | 378 | if ((0 >= unitsToClaimNow)) | |
379 | 379 | then nil | |
380 | 380 | else [IntegerEntry(keyUnitsClaimedBlock(userAddress), currentBlock), IntegerEntry(kL2ToBurn, (l2ToBurn + l2ToBurnNow)), IntegerEntry(kUnlockedUnits, (unlockedUnits + unitsToClaimNow))] | |
381 | 381 | } | |
382 | 382 | ||
383 | 383 | ||
384 | 384 | func getUnstakeActions (nodeAddress,userAddress,unstakeAmount) = { | |
385 | 385 | let $t01184411917 = getLeasingNodeData(nodeAddress) | |
386 | 386 | let nodeCurrentLeased = $t01184411917._1 | |
387 | 387 | let nodeNextLeased = $t01184411917._2 | |
388 | 388 | let $t01192212008 = getUserLeasingData(nodeAddress, userAddress) | |
389 | 389 | let userCurrentLeased = $t01192212008._1 | |
390 | 390 | let userNextLeased = $t01192212008._2 | |
391 | 391 | let checks = [if (!(isForceStop)) | |
392 | 392 | then true | |
393 | 393 | else throwErr("contract is temporary stopped"), if (!(isForceOutStop)) | |
394 | 394 | then true | |
395 | 395 | else throwErr("unstake is temporary disabled"), if ((unstakeAmount > 0)) | |
396 | 396 | then true | |
397 | 397 | else throwErr("unstake amount should be greater than 0"), if ((userNextLeased >= unstakeAmount)) | |
398 | 398 | then true | |
399 | 399 | else throwErr("unstake amount should be less or equal user staked amount"), if ((nodeNextLeased >= unstakeAmount)) | |
400 | 400 | then true | |
401 | 401 | else throwErr("unstake amount should be less or equal node staked amount"), if (isValidAddress(nodeAddress)) | |
402 | 402 | then true | |
403 | 403 | else throwErr(makeString(["node address is not valid:", nodeAddress], " ")), if (isValidAddress(userAddress)) | |
404 | 404 | then true | |
405 | 405 | else throwErr(makeString(["user address is not valid:", userAddress], " "))] | |
406 | 406 | if ((checks == checks)) | |
407 | 407 | then { | |
408 | 408 | let newNodeNextLease = (nodeNextLeased - unstakeAmount) | |
409 | 409 | let newUserNextLeased = (userNextLeased - unstakeAmount) | |
410 | 410 | let $t01289212952 = getUserToClaimBalance(userAddress) | |
411 | 411 | let toClaim = $t01289212952._1 | |
412 | 412 | let toUnlock = $t01289212952._2 | |
413 | 413 | let newToUnlock = (toUnlock + unstakeAmount) | |
414 | 414 | let userTotalLocked = getUserTotalLocked(userAddress) | |
415 | 415 | let newUserTotalLocked = (userTotalLocked - unstakeAmount) | |
416 | 416 | let unitsUnlockedActions = getUnlockUnitsAction(userAddress) | |
417 | 417 | ([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)] ++ unitsUnlockedActions) | |
418 | 418 | } | |
419 | 419 | else throw("Strict value is not equal to itself.") | |
420 | 420 | } | |
421 | 421 | ||
422 | 422 | ||
423 | 423 | func getClaimUnlockedActions (userAddress,claimAmount) = { | |
424 | 424 | let $t01377113831 = getUserToClaimBalance(userAddress) | |
425 | 425 | let toClaim = $t01377113831._1 | |
426 | 426 | let toUnlock = $t01377113831._2 | |
427 | 427 | let checks = [if (!(isForceStop)) | |
428 | 428 | then true | |
429 | 429 | else throwErr("contract is temporary stopped"), if (!(isForceOutStop)) | |
430 | 430 | then true | |
431 | 431 | else throwErr("claim is temporary disabled"), if ((claimAmount > 0)) | |
432 | 432 | then true | |
433 | 433 | else throwErr("claim amount should be greater than 0"), if ((toClaim >= claimAmount)) | |
434 | 434 | then true | |
435 | 435 | else throwErr("claim amount should be less or equal unlocked amount"), if (isValidAddress(userAddress)) | |
436 | 436 | then true | |
437 | 437 | else throwErr(makeString(["user address is not valid:", userAddress], " "))] | |
438 | 438 | if ((checks == checks)) | |
439 | 439 | then { | |
440 | 440 | let newToClaim = (toClaim - claimAmount) | |
441 | 441 | [getUserToClaimEntry(userAddress, newToClaim, toUnlock), ScriptTransfer(addressFromStringValue(userAddress), claimAmount, l2AssetIdBytes)] | |
442 | 442 | } | |
443 | 443 | else throw("Strict value is not equal to itself.") | |
444 | 444 | } | |
445 | 445 | ||
446 | 446 | ||
447 | 447 | func getStakeForActions (userAddress,i) = { | |
448 | 448 | let $t01459714657 = getUserToClaimBalance(userAddress) | |
449 | 449 | let toClaim = $t01459714657._1 | |
450 | 450 | let toUnlock = $t01459714657._2 | |
451 | 451 | let checks = [if (!(isForceStop)) | |
452 | 452 | then true | |
453 | 453 | else throwErr("contract is temporary stopped"), if ((1 >= size(i.payments))) | |
454 | 454 | then true | |
455 | 455 | else throwErr("maximum 1 payment"), if (if ((size(i.payments) == 0)) | |
456 | 456 | then true | |
457 | 457 | else (i.payments[0].assetId == l2AssetIdBytes)) | |
458 | 458 | then true | |
459 | 459 | else throwErr(makeString(["payment assetId should be:", l2AssetIdString], " ")), if (isValidAddress(userAddress)) | |
460 | 460 | then true | |
461 | 461 | else throwErr(makeString(["user address is not valid:", userAddress], " "))] | |
462 | 462 | if ((checks == checks)) | |
463 | 463 | then { | |
464 | 464 | let newToClaim = (toClaim + i.payments[0].amount) | |
465 | 465 | [getUserToClaimEntry(userAddress, newToClaim, toUnlock)] | |
466 | 466 | } | |
467 | 467 | else throw("Strict value is not equal to itself.") | |
468 | 468 | } | |
469 | 469 | ||
470 | 470 | ||
471 | 471 | func getStakeActions (nodeAddress,userAddress,userLeasingAmount,i) = { | |
472 | 472 | let $t01538915449 = getUserToClaimBalance(userAddress) | |
473 | 473 | let toClaim = $t01538915449._1 | |
474 | 474 | let toUnlock = $t01538915449._2 | |
475 | 475 | let paymentAmount = if ((size(i.payments) == 0)) | |
476 | 476 | then 0 | |
477 | 477 | else i.payments[0].amount | |
478 | 478 | let available = ((toUnlock + toClaim) + paymentAmount) | |
479 | 479 | let checks = [if (!(isForceStop)) | |
480 | 480 | then true | |
481 | 481 | else throwErr("contract is temporary stopped"), if ((1 >= size(i.payments))) | |
482 | 482 | then true | |
483 | 483 | else throwErr("maximum 1 payment"), if (if ((size(i.payments) == 0)) | |
484 | 484 | then true | |
485 | 485 | else (i.payments[0].assetId == l2AssetIdBytes)) | |
486 | 486 | then true | |
487 | 487 | else throwErr(makeString(["payment assetId should be:", l2AssetIdString], " ")), if ((userLeasingAmount > 0)) | |
488 | 488 | then true | |
489 | 489 | else throwErr("amount should be greater than 0"), if ((available >= userLeasingAmount)) | |
490 | 490 | then true | |
491 | 491 | else throwErr("amount should be less or equal (payment + available) amount"), if ((userLeasingAmount >= paymentAmount)) | |
492 | 492 | then true | |
493 | 493 | else throw("amount should be greater or equal payment amount"), if (isValidAddress(nodeAddress)) | |
494 | 494 | then true | |
495 | 495 | else throwErr(makeString(["node address is not valid:", nodeAddress], " ")), if (isValidAddress(userAddress)) | |
496 | 496 | then true | |
497 | 497 | else throwErr(makeString(["user address is not valid:", userAddress], " "))] | |
498 | 498 | if ((checks == checks)) | |
499 | 499 | then { | |
500 | 500 | let $t01652416597 = getLeasingNodeData(nodeAddress) | |
501 | 501 | let nodeCurrentLeased = $t01652416597._1 | |
502 | 502 | let nodeNextLeased = $t01652416597._2 | |
503 | 503 | let newNodeNextLease = (nodeNextLeased + userLeasingAmount) | |
504 | 504 | let $t01666516751 = getUserLeasingData(nodeAddress, userAddress) | |
505 | 505 | let userCurrentLeased = $t01666516751._1 | |
506 | 506 | let userNextLeased = $t01666516751._2 | |
507 | 507 | let newUserNextLeased = (userNextLeased + userLeasingAmount) | |
508 | 508 | let fromUnlockedAmount = (userLeasingAmount - paymentAmount) | |
509 | 509 | let newToUnlock = max([0, (toUnlock - fromUnlockedAmount)]) | |
510 | 510 | let newToClaim = min([toClaim, (toClaim + (toUnlock - fromUnlockedAmount))]) | |
511 | 511 | let userTotalLocked = getUserTotalLocked(userAddress) | |
512 | 512 | let newUserTotalLocked = (userTotalLocked + userLeasingAmount) | |
513 | 513 | let unitsUnlockedActions = getUnlockUnitsAction(userAddress) | |
514 | 514 | ([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)] ++ unitsUnlockedActions) | |
515 | 515 | } | |
516 | 516 | else throw("Strict value is not equal to itself.") | |
517 | 517 | } | |
518 | 518 | ||
519 | 519 | ||
520 | 520 | func getStakeFromPaymentActions (nodeAddress,userAddress,i) = { | |
521 | 521 | let checks = [if ((size(i.payments) == 1)) | |
522 | 522 | then true | |
523 | 523 | else throwErr("payment size should be exactly 1")] | |
524 | 524 | if ((checks == checks)) | |
525 | 525 | then getStakeActions(nodeAddress, userAddress, i.payments[0].amount, i) | |
526 | 526 | else throw("Strict value is not equal to itself.") | |
527 | 527 | } | |
528 | 528 | ||
529 | 529 | ||
530 | 530 | func getSetNewPeriodLengthActions (newPeriodLength) = { | |
531 | 531 | let check = [if ((newPeriodLength > 0)) | |
532 | 532 | then true | |
533 | 533 | else throwErr("period length should be greater than 0")] | |
534 | 534 | if ((check == check)) | |
535 | 535 | then if ((periodOffsetHeight == -1)) | |
536 | 536 | then [IntegerEntry(keyPeriodLength, newPeriodLength), IntegerEntry(keyPeriodOffsetHeight, height)] | |
537 | 537 | else [IntegerEntry(keyPeriodOffsetId, (currentPeriodId + 1)), IntegerEntry(keyPeriodOffsetHeight, nextPeriodHeight), IntegerEntry(keyPeriodLength, newPeriodLength)] | |
538 | 538 | else throw("Strict value is not equal to itself.") | |
539 | 539 | } | |
540 | 540 | ||
541 | 541 | ||
542 | 542 | func getUnitsClaimData (userAddress) = { | |
543 | 543 | let $t01863618721 = calculateUnitsToClaim(userAddress) | |
544 | 544 | let unlockedUnitNow = $t01863618721._1 | |
545 | 545 | let l2ToBurnNow = $t01863618721._2 | |
546 | 546 | let currentBlock = $t01863618721._3 | |
547 | 547 | let unlockedUnitsPrev = valueOrElse(getInteger(this, keyUnlockedUnits(userAddress)), 0) | |
548 | 548 | let unitsToSend = (unlockedUnitNow + unlockedUnitsPrev) | |
549 | 549 | let l2ToBurnPrev = valueOrElse(getInteger(this, keyL2ToBurn(userAddress)), 0) | |
550 | 550 | let l2ToBurn = (l2ToBurnPrev + l2ToBurnNow) | |
551 | 551 | let totalUnitsClaimed = valueOrElse(getInteger(this, keyTotalUnitsClaimed(userAddress)), 0) | |
552 | 552 | let totalL2Burned = valueOrElse(getInteger(this, keyL2BurnedTotal(userAddress)), 0) | |
553 | 553 | $Tuple5(unitsToSend, totalUnitsClaimed, l2ToBurn, totalL2Burned, currentBlock) | |
554 | 554 | } | |
555 | 555 | ||
556 | 556 | ||
557 | 557 | func getClaimUnitsActions (userAddress) = { | |
558 | 558 | let $t01931319421 = getUnitsClaimData(userAddress) | |
559 | 559 | let unitsToSend = $t01931319421._1 | |
560 | 560 | let totalUnitsClaimed = $t01931319421._2 | |
561 | 561 | let l2ToBurn = $t01931319421._3 | |
562 | 562 | let totalL2Burned = $t01931319421._4 | |
563 | 563 | let claimedBlock = $t01931319421._5 | |
564 | 564 | let check = [if ((unitsToSend > 0)) | |
565 | 565 | then true | |
566 | 566 | else throwErr("nothing to claim")] | |
567 | 567 | if ((check == check)) | |
568 | 568 | then { | |
569 | 569 | let burnAction = match l2AssetIdBytes { | |
570 | 570 | case id: ByteVector => | |
571 | 571 | [Burn(id, l2ToBurn)] | |
572 | 572 | case _ => | |
573 | 573 | nil | |
574 | 574 | } | |
575 | 575 | ([IntegerEntry(keyUnitsClaimedBlock(userAddress), claimedBlock), IntegerEntry(keyTotalUnitsClaimed(userAddress), (totalUnitsClaimed + unitsToSend)), IntegerEntry(keyL2BurnedTotal(userAddress), (totalL2Burned + l2ToBurn)), IntegerEntry(keyUnlockedUnits(userAddress), 0), IntegerEntry(keyL2ToBurn(userAddress), 0), ScriptTransfer(addressFromStringValue(userAddress), unitsToSend, unitsAssetIdBytes)] ++ burnAction) | |
576 | 576 | } | |
577 | 577 | else throw("Strict value is not equal to itself.") | |
578 | 578 | } | |
579 | 579 | ||
580 | 580 | ||
581 | 581 | @Callable(i) | |
582 | 582 | func setNewPeriodLength (newPeriodLength) = { | |
583 | 583 | let checks = [if (isInAdminList(toString(i.caller))) | |
584 | 584 | then true | |
585 | 585 | else throwErr("caller is not in adminList")] | |
586 | 586 | if ((checks == checks)) | |
587 | 587 | then getSetNewPeriodLengthActions(newPeriodLength) | |
588 | 588 | else throw("Strict value is not equal to itself.") | |
589 | 589 | } | |
590 | 590 | ||
591 | 591 | ||
592 | 592 | ||
593 | 593 | @Callable(i) | |
594 | 594 | func claimUnits () = { | |
595 | 595 | let userAddress = toString(i.caller) | |
596 | 596 | getClaimUnitsActions(userAddress) | |
597 | 597 | } | |
598 | 598 | ||
599 | 599 | ||
600 | 600 | ||
601 | 601 | @Callable(i) | |
602 | 602 | func setForceStopFlag (stop) = { | |
603 | 603 | let check = [if (isInAdminList(toString(i.caller))) | |
604 | 604 | then true | |
605 | 605 | else throwErr("caller is not in adminList")] | |
606 | 606 | if ((check == check)) | |
607 | 607 | then [BooleanEntry(keyForceStop, stop)] | |
608 | 608 | else throw("Strict value is not equal to itself.") | |
609 | 609 | } | |
610 | 610 | ||
611 | 611 | ||
612 | 612 | ||
613 | 613 | @Callable(i) | |
614 | 614 | func setForceOutStopFlag (stop) = { | |
615 | 615 | let check = [if (isInAdminList(toString(i.caller))) | |
616 | 616 | then true | |
617 | 617 | else throwErr("caller is not in adminList")] | |
618 | 618 | if ((check == check)) | |
619 | 619 | then [BooleanEntry(keyForceOutStop, stop)] | |
620 | 620 | else throw("Strict value is not equal to itself.") | |
621 | 621 | } | |
622 | 622 | ||
623 | 623 | ||
624 | 624 | ||
625 | 625 | @Callable(i) | |
626 | 626 | func getNodeDataREADONLY (nodeAddress) = { | |
627 | 627 | let $t02115321217 = getLeasingNodeData(nodeAddress) | |
628 | 628 | let currentLease = $t02115321217._1 | |
629 | 629 | let nextLeased = $t02115321217._2 | |
630 | 630 | $Tuple2(nil, $Tuple5(currentPeriodHeight, currentLease, nextPeriodHeight, nextLeased, height)) | |
631 | 631 | } | |
632 | 632 | ||
633 | 633 | ||
634 | 634 | ||
635 | 635 | @Callable(i) | |
636 | 636 | func getUserLeasingDataREADONLY (nodeAddress,userAddress) = { | |
637 | 637 | let $t02158721664 = getUserLeasingData(nodeAddress, userAddress) | |
638 | 638 | let currentLease = $t02158721664._1 | |
639 | 639 | let nextLeased = $t02158721664._2 | |
640 | 640 | $Tuple2(nil, $Tuple5(currentPeriodHeight, currentLease, nextPeriodHeight, nextLeased, height)) | |
641 | 641 | } | |
642 | 642 | ||
643 | 643 | ||
644 | 644 | ||
645 | 645 | @Callable(i) | |
646 | 646 | func getUserDataREADONLY (userAddress) = { | |
647 | - | let $ | |
648 | - | let toClaim = $ | |
649 | - | let toUnlock = $ | |
647 | + | let $t02225922319 = getUserToClaimBalance(userAddress) | |
648 | + | let toClaim = $t02225922319._1 | |
649 | + | let toUnlock = $t02225922319._2 | |
650 | 650 | let userTotalLocked = getUserTotalLocked(userAddress) | |
651 | - | let $ | |
652 | - | let unitsToSend = $ | |
653 | - | let totalUnitsClaimed = $ | |
654 | - | let l2ToBurn = $ | |
655 | - | let totalL2Burned = $ | |
656 | - | let claimedBlock = $ | |
651 | + | let $t02238222490 = getUnitsClaimData(userAddress) | |
652 | + | let unitsToSend = $t02238222490._1 | |
653 | + | let totalUnitsClaimed = $t02238222490._2 | |
654 | + | let l2ToBurn = $t02238222490._3 | |
655 | + | let totalL2Burned = $t02238222490._4 | |
656 | + | let claimedBlock = $t02238222490._5 | |
657 | 657 | let unitsPerBlockScale16 = valueOrElse(getInteger(this, keyUnitsPerBlockScale16), 0) | |
658 | - | $Tuple2(nil, $Tuple12(currentPeriodHeight, toClaim, nextPeriodHeight, toUnlock, userTotalLocked, height, unitsToSend, totalUnitsClaimed, l2ToBurn, totalL2Burned, claimedBlock, unitsPerBlockScale16)) | |
658 | + | let remainingblocks = max([0, ((unitsClaimStartHeight + unitsClaimInterval) - height)]) | |
659 | + | $Tuple2(nil, $Tuple13(currentPeriodHeight, toClaim, nextPeriodHeight, toUnlock, userTotalLocked, height, unitsToSend, totalUnitsClaimed, l2ToBurn, totalL2Burned, claimedBlock, unitsPerBlockScale16, remainingblocks)) | |
659 | 660 | } | |
660 | 661 | ||
661 | 662 | ||
662 | 663 | ||
663 | 664 | @Callable(i) | |
664 | 665 | func leaseByAddress (nodeAddress,userAddress) = getStakeFromPaymentActions(nodeAddress, userAddress, i) | |
665 | 666 | ||
666 | 667 | ||
667 | 668 | ||
668 | 669 | @Callable(i) | |
669 | 670 | func lease (nodeAddress) = { | |
670 | 671 | let userAddress = toString(i.caller) | |
671 | 672 | getStakeFromPaymentActions(nodeAddress, userAddress, i) | |
672 | 673 | } | |
673 | 674 | ||
674 | 675 | ||
675 | 676 | ||
676 | 677 | @Callable(i) | |
677 | 678 | func leaseFromLocked (nodeAddress,amount) = { | |
678 | 679 | let userAddress = toString(i.caller) | |
679 | 680 | getStakeActions(nodeAddress, userAddress, amount, i) | |
680 | 681 | } | |
681 | 682 | ||
682 | 683 | ||
683 | 684 | ||
684 | 685 | @Callable(i) | |
685 | 686 | func cancelLease (nodeAddress,amount) = { | |
686 | 687 | let userAddress = toString(i.caller) | |
687 | 688 | getUnstakeActions(nodeAddress, userAddress, amount) | |
688 | 689 | } | |
689 | 690 | ||
690 | 691 | ||
691 | 692 | ||
692 | 693 | @Callable(i) | |
693 | 694 | func claim (amount) = { | |
694 | 695 | let userAddress = toString(i.caller) | |
695 | 696 | getClaimUnlockedActions(userAddress, amount) | |
696 | 697 | } | |
697 | 698 | ||
698 | 699 | ||
699 | 700 | ||
700 | 701 | @Callable(i) | |
701 | 702 | func claimAll () = { | |
702 | 703 | let userAddress = toString(i.caller) | |
703 | - | let $ | |
704 | - | let toClaim = $ | |
705 | - | let toUnlock = $ | |
704 | + | let $t02392023980 = getUserToClaimBalance(userAddress) | |
705 | + | let toClaim = $t02392023980._1 | |
706 | + | let toUnlock = $t02392023980._2 | |
706 | 707 | let checks = [if ((toClaim > 0)) | |
707 | 708 | then true | |
708 | 709 | else throwErr("nothing to claim")] | |
709 | 710 | if ((checks == checks)) | |
710 | 711 | then getClaimUnlockedActions(userAddress, toClaim) | |
711 | 712 | else throw("Strict value is not equal to itself.") | |
712 | 713 | } | |
713 | 714 | ||
714 | 715 | ||
715 | 716 | ||
716 | 717 | @Callable(i) | |
717 | 718 | func stakeFor (userAddress) = getStakeForActions(userAddress, i) | |
718 | 719 | ||
719 | 720 | ||
720 | 721 | ||
721 | 722 | @Callable(i) | |
722 | 723 | func startUnitsVesting (unitsClaimInterval) = { | |
723 | 724 | let totalL2 = 100000000000000000 | |
724 | 725 | let totalUnits = i.payments[0].amount | |
725 | 726 | let unitsPerBlockScale16 = (fraction(totalUnits, scale16, totalL2) / unitsClaimInterval) | |
726 | 727 | let check = [if (isInAdminList(toString(i.caller))) | |
727 | 728 | then true | |
728 | 729 | else throwErr("caller is not in adminList"), if ((size(i.payments) == 1)) | |
729 | 730 | then true | |
730 | 731 | else throwErr("should be 1 payment"), if ((unitsPerBlockScale16 > 0)) | |
731 | 732 | then true | |
732 | 733 | else throwErr("units per block should be greated than 0")] | |
733 | 734 | if ((check == check)) | |
734 | 735 | then [IntegerEntry(keyUnitsPerBlockScale16, unitsPerBlockScale16), IntegerEntry(keyUnitsClaimStartHeight, height), IntegerEntry(keyUnitsClaimInterval, unitsClaimInterval), StringEntry(keyUnitsAssetId, assetBytesToString(i.payments[0].assetId))] | |
735 | 736 | else throw("Strict value is not equal to itself.") | |
736 | 737 | } | |
737 | 738 | ||
738 | 739 | ||
739 | 740 | ||
740 | 741 | @Callable(i) | |
741 | 742 | func voteForTxId (txId) = { | |
742 | 743 | let callerAddressString = toBase58String(i.caller.bytes) | |
743 | 744 | let keyPrefix = keyAllowedTxIdVotePrefix(txId) | |
744 | 745 | let result = [StringEntry(keyAllowedTxId(), txId)] | |
745 | 746 | let allowedTxIdOption = getString(this, keyAllowedTxId()) | |
746 | 747 | let err = [if ((size(fromBase58String(txId)) == TXID_BYTES_LENGTH)) | |
747 | 748 | then true | |
748 | 749 | else throwErr((txId + " is not valid txId")), if (if ((allowedTxIdOption == unit)) | |
749 | 750 | then true | |
750 | 751 | else (value(allowedTxIdOption) != txId)) | |
751 | 752 | then true | |
752 | 753 | else throwErr((txId + " is already allowed"))] | |
753 | 754 | if ((err == err)) | |
754 | 755 | then voteINTERNAL(callerAddressString, keyPrefix, QUORUM, result) | |
755 | 756 | else throw("Strict value is not equal to itself.") | |
756 | 757 | } | |
757 | 758 | ||
758 | 759 | ||
759 | 760 | @Verifier(tx) | |
760 | 761 | func verify () = { | |
761 | 762 | let byAdmins = (tx.id == fromBase58String(valueOrElse(getString(this, keyAllowedTxId()), ""))) | |
762 | 763 | let byOwner = if ((size(getAdminsList()) >= QUORUM)) | |
763 | 764 | then false | |
764 | 765 | else sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
765 | 766 | if (byAdmins) | |
766 | 767 | then true | |
767 | 768 | else byOwner | |
768 | 769 | } | |
769 | 770 |
github/deemru/w8io/026f985 90.35 ms ◑