tx · 2b4k2v9V4QPpAYj1UMVF52Kofuvb55uFBkjiwHpBSxHw 3NCWFHDzdPHZC6636ZkMLNDup9mjpbTLs7h: -0.01300000 Waves 2024.02.12 14:08 [2972957] smart account 3NCWFHDzdPHZC6636ZkMLNDup9mjpbTLs7h > SELF 0.00000000 Waves
{ "type": 13, "id": "2b4k2v9V4QPpAYj1UMVF52Kofuvb55uFBkjiwHpBSxHw", "fee": 1300000, "feeAssetId": null, "timestamp": 1707736105628, "version": 2, "chainId": 84, "sender": "3NCWFHDzdPHZC6636ZkMLNDup9mjpbTLs7h", "senderPublicKey": "3z8Q6Zu3KppVmn6fJJvrLc1Wo3krVHSvfaNcerm82md2", "proofs": [ "3M5fRvXuRDzwTdYfZBfqRyEDTRmjmxZfxWX5aiX7B6JqASSwK5amCV16PKaVRLjnsVrL9EpqPRJpJ8PiEegd6GnM" ], "script": "base64:BgIqCAISAwoBARIDCgEIEgQKAggIEgMKAQgSBAoCCAESBAoCCAESAwoBARIAJAAMY29udHJhY3RGaWxlAhFsMm1wX2xlYXNpbmcucmlkZQADU0VQAgJfXwAGc2NhbGU4AIDC1y8BCHRocm93RXJyAQNtc2cJAAIBCQCsAgIJAKwCAgUMY29udHJhY3RGaWxlAgI6IAUDbXNnAAprZXlBc3NldElkCQC5CQIJAMwIAgICJXMJAMwIAgIHYXNzZXRJZAUDbmlsBQNTRVAAEWtleVBlcmlvZE9mZnNldElkCQC5CQIJAMwIAgICJXMJAMwIAgIIb2Zmc2V0SWQFA25pbAUDU0VQABVrZXlQZXJpb2RPZmZzZXRIZWlnaHQJALkJAgkAzAgCAgIlcwkAzAgCAgxvZmZzZXRIZWlnaHQFA25pbAUDU0VQAA9rZXlQZXJpb2RMZW5ndGgJALkJAgkAzAgCAgIlcwkAzAgCAgxwZXJpb2RMZW5ndGgFA25pbAUDU0VQAA5wZXJpb2RPZmZzZXRJZAkBC3ZhbHVlT3JFbHNlAgkAmggCBQR0aGlzBRFrZXlQZXJpb2RPZmZzZXR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QZjYWxsZXIJARFnZXRVbnN0YWtlQWN0aW9ucwMFC25vZGVBZGRyZXNzBQt1c2VyQWRkcmVzcwUGYW1vdW50AWkBBWNsYWltAQZhbW91bnQEC3VzZXJBZGRyZXNzCQClCAEIBQFpBmNhbGxlcgkBF2dldENsYWltVW5sb2NrZWRBY3Rpb25zAgULdXNlckFkZHJlc3MFBmFtb3VudAFpAQhjbGFpbUFsbAAEC3VzZXJBZGRyZXNzCQClCAEIBQFpBmNhbGxlcgQNJHQwMTM5NjcxNDA1NAkBFWdldFVzZXJUb0NsYWltQmFsYW5jZQEFC3VzZXJBZGRyZXNzBA1jdXJyZW50UGVyaW9kCAUNJHQwMTM5NjcxNDA1NAJfMQQHdG9DbGFpbQgFDSR0MDEzOTY3MTQwNTQCXzIECm5leHRQZXJpb2QIBQ0kdDAxMzk2NzE0MDU0Al8zBAh0b1VubG9jawgFDSR0MDEzOTY3MTQwNTQCXzQJARdnZXRDbGFpbVVubG9ja2VkQWN0aW9ucwIFC3VzZXJBZGRyZXNzBQd0b0NsYWltAHSl5cE=", "height": 2972957, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 42vGnGiVpH7pUFxoMExUo42xj52nfGRJQskBfYrVXMw1 Next: 4bqmQ7FBJubFQ1x7VGeeiTsrhHD8zohN3tShLrDLe9PJ Diff:
Old | New | Differences | |
---|---|---|---|
337 | 337 | let E = aJ._3 | |
338 | 338 | let X = aJ._4 | |
339 | 339 | let ac = aa(s) | |
340 | - | $Tuple2(nil, $ | |
340 | + | $Tuple2(nil, $Tuple4(W, X, (X + W), ac)) | |
341 | 341 | } | |
342 | 342 | ||
343 | 343 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "l2mp_leasing.ride" | |
5 | 5 | ||
6 | 6 | let b = "__" | |
7 | 7 | ||
8 | 8 | let c = 100000000 | |
9 | 9 | ||
10 | 10 | func d (e) = throw(((a + ": ") + e)) | |
11 | 11 | ||
12 | 12 | ||
13 | 13 | let f = makeString(["%s", "assetId"], b) | |
14 | 14 | ||
15 | 15 | let g = makeString(["%s", "offsetId"], b) | |
16 | 16 | ||
17 | 17 | let h = makeString(["%s", "offsetHeight"], b) | |
18 | 18 | ||
19 | 19 | let i = makeString(["%s", "periodLength"], b) | |
20 | 20 | ||
21 | 21 | let j = valueOrElse(getInteger(this, g), 0) | |
22 | 22 | ||
23 | 23 | let k = valueOrElse(getInteger(this, i), 10000) | |
24 | 24 | ||
25 | 25 | let l = valueOrElse(getInteger(this, h), -1) | |
26 | 26 | ||
27 | 27 | let m = if (if ((height > l)) | |
28 | 28 | then (l != -1) | |
29 | 29 | else false) | |
30 | 30 | then (((height - l) / k) + j) | |
31 | 31 | else max([0, (j - 1)]) | |
32 | 32 | ||
33 | 33 | let n = (l + ((m - j) * k)) | |
34 | 34 | ||
35 | 35 | let o = (n + k) | |
36 | 36 | ||
37 | 37 | func p (q) = makeString(["%s", q], b) | |
38 | 38 | ||
39 | 39 | ||
40 | 40 | func r (s) = makeString(["%s%s", "userLeasingNodeList", s], b) | |
41 | 41 | ||
42 | 42 | ||
43 | 43 | func t (s,q) = makeString(["%s%s", q, s], b) | |
44 | 44 | ||
45 | 45 | ||
46 | 46 | func u (s) = makeString(["%s%s", "toClaim", s], b) | |
47 | 47 | ||
48 | 48 | ||
49 | 49 | let v = valueOrElse(getString(this, f), "WAVES") | |
50 | 50 | ||
51 | 51 | let w = if ((v == "WAVES")) | |
52 | 52 | then unit | |
53 | 53 | else fromBase58String(v) | |
54 | 54 | ||
55 | 55 | func x (y) = { | |
56 | 56 | let z = addressFromString(y) | |
57 | 57 | if ($isInstanceOf(z, "Address")) | |
58 | 58 | then { | |
59 | 59 | let A = z | |
60 | 60 | true | |
61 | 61 | } | |
62 | 62 | else false | |
63 | 63 | } | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | func B (q,C,D,E,F) = { | |
67 | 67 | let G = makeString(["%d%d%d%d", toString(C), toString(D), toString(E), toString(F)], b) | |
68 | 68 | StringEntry(p(q), G) | |
69 | 69 | } | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | func H (q) = { | |
73 | 73 | let I = getString(this, p(q)) | |
74 | 74 | let z = I | |
75 | 75 | if ($isInstanceOf(z, "String")) | |
76 | 76 | then { | |
77 | 77 | let J = z | |
78 | 78 | let K = split(J, b) | |
79 | 79 | let L = parseIntValue(K[1]) | |
80 | 80 | let M = parseIntValue(K[2]) | |
81 | 81 | let N = parseIntValue(K[3]) | |
82 | 82 | let O = parseIntValue(K[4]) | |
83 | 83 | if ((N > height)) | |
84 | 84 | then $Tuple4(L, M, N, O) | |
85 | 85 | else $Tuple4(n, O, o, O) | |
86 | 86 | } | |
87 | 87 | else $Tuple4(0, 0, 0, 0) | |
88 | 88 | } | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | func P (q,s,Q,R,S,T) = { | |
92 | 92 | let G = makeString(["%d%d%d%d", toString(Q), toString(R), toString(S), toString(T)], b) | |
93 | 93 | StringEntry(t(s, q), G) | |
94 | 94 | } | |
95 | 95 | ||
96 | 96 | ||
97 | 97 | func U (q,s) = { | |
98 | 98 | let I = getString(this, t(s, q)) | |
99 | 99 | let z = I | |
100 | 100 | if ($isInstanceOf(z, "String")) | |
101 | 101 | then { | |
102 | 102 | let J = z | |
103 | 103 | let K = split(J, b) | |
104 | 104 | let Q = parseIntValue(K[1]) | |
105 | 105 | let R = parseIntValue(K[2]) | |
106 | 106 | let S = parseIntValue(K[3]) | |
107 | 107 | let T = parseIntValue(K[4]) | |
108 | 108 | if ((S > height)) | |
109 | 109 | then $Tuple4(Q, R, S, T) | |
110 | 110 | else $Tuple4(n, T, o, T) | |
111 | 111 | } | |
112 | 112 | else $Tuple4(0, 0, 0, 0) | |
113 | 113 | } | |
114 | 114 | ||
115 | 115 | ||
116 | 116 | func V (s,C,W,E,X) = { | |
117 | 117 | let G = makeString(["%d%d%d%d", toString(C), toString(W), toString(E), toString(X)], b) | |
118 | 118 | StringEntry(u(s), G) | |
119 | 119 | } | |
120 | 120 | ||
121 | 121 | ||
122 | 122 | func Y (s) = { | |
123 | 123 | let Z = getString(this, u(s)) | |
124 | 124 | let z = Z | |
125 | 125 | if ($isInstanceOf(z, "String")) | |
126 | 126 | then { | |
127 | 127 | let J = z | |
128 | 128 | let K = split(J, b) | |
129 | 129 | let C = parseIntValue(K[1]) | |
130 | 130 | let W = parseIntValue(K[2]) | |
131 | 131 | let E = parseIntValue(K[3]) | |
132 | 132 | let X = parseIntValue(K[4]) | |
133 | 133 | if ((E > height)) | |
134 | 134 | then $Tuple4(C, W, E, X) | |
135 | 135 | else $Tuple4(n, (W + X), o, 0) | |
136 | 136 | } | |
137 | 137 | else $Tuple4(0, 0, 0, 0) | |
138 | 138 | } | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | func aa (s) = { | |
142 | 142 | let I = getString(this, r(s)) | |
143 | 143 | let z = I | |
144 | 144 | if ($isInstanceOf(z, "String")) | |
145 | 145 | then { | |
146 | 146 | let J = z | |
147 | 147 | let K = split_51C(J, b) | |
148 | 148 | K | |
149 | 149 | } | |
150 | 150 | else nil | |
151 | 151 | } | |
152 | 152 | ||
153 | 153 | ||
154 | 154 | func ab (s,ac) = if ((size(ac) == 0)) | |
155 | 155 | then DeleteEntry(r(s)) | |
156 | 156 | else StringEntry(r(s), makeString_11C(ac, b)) | |
157 | 157 | ||
158 | 158 | ||
159 | 159 | func ad (s,q) = { | |
160 | 160 | let ac = aa(s) | |
161 | 161 | if (containsElement(ac, q)) | |
162 | 162 | then ac | |
163 | 163 | else (ac :+ q) | |
164 | 164 | } | |
165 | 165 | ||
166 | 166 | ||
167 | 167 | func ae (s,q) = { | |
168 | 168 | let ac = aa(s) | |
169 | 169 | let z = indexOf(ac, q) | |
170 | 170 | if ($isInstanceOf(z, "Int")) | |
171 | 171 | then { | |
172 | 172 | let af = z | |
173 | 173 | removeByIndex(ac, af) | |
174 | 174 | } | |
175 | 175 | else ac | |
176 | 176 | } | |
177 | 177 | ||
178 | 178 | ||
179 | 179 | func ag (q,s,ah) = { | |
180 | 180 | let ai = [if ((size(ah.payments) == 1)) | |
181 | 181 | then true | |
182 | 182 | else d("payment size should be exactly 1"), if ((ah.payments[0].assetId == w)) | |
183 | 183 | then true | |
184 | 184 | else d(makeString(["payment assetId should be:", v], " ")), if (x(q)) | |
185 | 185 | then true | |
186 | 186 | else d(makeString(["node address is not valid:", q], " ")), if (x(s)) | |
187 | 187 | then true | |
188 | 188 | else d(makeString(["user address is not valid:", s], " "))] | |
189 | 189 | if ((ai == ai)) | |
190 | 190 | then { | |
191 | 191 | let aj = ah.payments[0].amount | |
192 | 192 | let ak = H(q) | |
193 | 193 | let L = ak._1 | |
194 | 194 | let M = ak._2 | |
195 | 195 | let N = ak._3 | |
196 | 196 | let O = ak._4 | |
197 | 197 | let al = (O + aj) | |
198 | 198 | let am = U(q, s) | |
199 | 199 | let Q = am._1 | |
200 | 200 | let R = am._2 | |
201 | 201 | let S = am._3 | |
202 | 202 | let T = am._4 | |
203 | 203 | let an = (T + aj) | |
204 | 204 | [B(q, L, M, N, al), P(q, s, Q, R, S, an), ab(s, ad(s, q))] | |
205 | 205 | } | |
206 | 206 | else throw("Strict value is not equal to itself.") | |
207 | 207 | } | |
208 | 208 | ||
209 | 209 | ||
210 | 210 | func ao (q,s,ap) = { | |
211 | 211 | let aq = H(q) | |
212 | 212 | let L = aq._1 | |
213 | 213 | let M = aq._2 | |
214 | 214 | let N = aq._3 | |
215 | 215 | let O = aq._4 | |
216 | 216 | let ar = U(q, s) | |
217 | 217 | let Q = ar._1 | |
218 | 218 | let R = ar._2 | |
219 | 219 | let S = ar._3 | |
220 | 220 | let T = ar._4 | |
221 | 221 | let ai = [if ((ap > 0)) | |
222 | 222 | then true | |
223 | 223 | else d("unstake amount should be greater than 0"), if ((T >= ap)) | |
224 | 224 | then true | |
225 | 225 | else d("unstake amount should be less or equal user staked amount"), if ((O >= ap)) | |
226 | 226 | then true | |
227 | 227 | else d("unstake amount should be less or equal node staked amount"), if (x(q)) | |
228 | 228 | then true | |
229 | 229 | else d(makeString(["node address is not valid:", q], " ")), if (x(s)) | |
230 | 230 | then true | |
231 | 231 | else d(makeString(["user address is not valid:", s], " "))] | |
232 | 232 | if ((ai == ai)) | |
233 | 233 | then { | |
234 | 234 | let al = (O - ap) | |
235 | 235 | let an = (T - ap) | |
236 | 236 | let as = Y(s) | |
237 | 237 | let C = as._1 | |
238 | 238 | let W = as._2 | |
239 | 239 | let E = as._3 | |
240 | 240 | let X = as._4 | |
241 | 241 | let at = (X + ap) | |
242 | 242 | let au = if ((an == 0)) | |
243 | 243 | then [ab(s, ae(s, q))] | |
244 | 244 | else nil | |
245 | 245 | ([B(q, L, M, N, al), P(q, s, Q, R, S, an), V(s, C, W, E, at)] ++ au) | |
246 | 246 | } | |
247 | 247 | else throw("Strict value is not equal to itself.") | |
248 | 248 | } | |
249 | 249 | ||
250 | 250 | ||
251 | 251 | func av (s,aw) = { | |
252 | 252 | let ax = Y(s) | |
253 | 253 | let C = ax._1 | |
254 | 254 | let W = ax._2 | |
255 | 255 | let E = ax._3 | |
256 | 256 | let X = ax._4 | |
257 | 257 | let ai = [if ((aw > 0)) | |
258 | 258 | then true | |
259 | 259 | else d("claim amount should be greater than 0"), if ((W >= aw)) | |
260 | 260 | then true | |
261 | 261 | else d("claim amount should be less or equal unlocked amount"), if (x(s)) | |
262 | 262 | then true | |
263 | 263 | else d(makeString(["user address is not valid:", s], " "))] | |
264 | 264 | if ((ai == ai)) | |
265 | 265 | then { | |
266 | 266 | let ay = (W - aw) | |
267 | 267 | [V(s, C, ay, E, X), ScriptTransfer(addressFromStringValue(s), aw, w)] | |
268 | 268 | } | |
269 | 269 | else throw("Strict value is not equal to itself.") | |
270 | 270 | } | |
271 | 271 | ||
272 | 272 | ||
273 | 273 | func az (q,s,aj) = { | |
274 | 274 | let aA = Y(s) | |
275 | 275 | let C = aA._1 | |
276 | 276 | let W = aA._2 | |
277 | 277 | let E = aA._3 | |
278 | 278 | let X = aA._4 | |
279 | 279 | let aB = (X + W) | |
280 | 280 | let ai = [if ((aj > 0)) | |
281 | 281 | then true | |
282 | 282 | else d("amount should be greater than 0"), if ((aB >= aj)) | |
283 | 283 | then true | |
284 | 284 | else d("amount should be less or equal to available"), if (x(q)) | |
285 | 285 | then true | |
286 | 286 | else d(makeString(["node address is not valid:", q], " ")), if (x(s)) | |
287 | 287 | then true | |
288 | 288 | else d(makeString(["user address is not valid:", s], " "))] | |
289 | 289 | if ((ai == ai)) | |
290 | 290 | then { | |
291 | 291 | let aC = H(q) | |
292 | 292 | let L = aC._1 | |
293 | 293 | let M = aC._2 | |
294 | 294 | let N = aC._3 | |
295 | 295 | let O = aC._4 | |
296 | 296 | let al = (O + aj) | |
297 | 297 | let aD = U(q, s) | |
298 | 298 | let Q = aD._1 | |
299 | 299 | let R = aD._2 | |
300 | 300 | let S = aD._3 | |
301 | 301 | let T = aD._4 | |
302 | 302 | let an = (T + aj) | |
303 | 303 | let at = max([0, (X - aj)]) | |
304 | 304 | let ay = min([W, (W + (X - aj))]) | |
305 | 305 | [B(q, L, M, N, O), P(q, s, Q, R, S, an), V(s, C, ay, E, at), ab(s, ad(s, q))] | |
306 | 306 | } | |
307 | 307 | else throw("Strict value is not equal to itself.") | |
308 | 308 | } | |
309 | 309 | ||
310 | 310 | ||
311 | 311 | func aE (aF) = { | |
312 | 312 | let aG = [if ((aF > 0)) | |
313 | 313 | then true | |
314 | 314 | else d("period length should be greater than 0")] | |
315 | 315 | if ((aG == aG)) | |
316 | 316 | then if ((l == -1)) | |
317 | 317 | then [IntegerEntry(i, aF), IntegerEntry(h, height)] | |
318 | 318 | else { | |
319 | 319 | let aH = (m + 1) | |
320 | 320 | let aI = ((k * (aH - j)) + l) | |
321 | 321 | [IntegerEntry(g, aH), IntegerEntry(h, aI), IntegerEntry(i, aF)] | |
322 | 322 | } | |
323 | 323 | else throw("Strict value is not equal to itself.") | |
324 | 324 | } | |
325 | 325 | ||
326 | 326 | ||
327 | 327 | @Callable(ah) | |
328 | 328 | func setNewPeriodLength (aF) = aE(aF) | |
329 | 329 | ||
330 | 330 | ||
331 | 331 | ||
332 | 332 | @Callable(ah) | |
333 | 333 | func getUserData (s) = { | |
334 | 334 | let aJ = Y(s) | |
335 | 335 | let C = aJ._1 | |
336 | 336 | let W = aJ._2 | |
337 | 337 | let E = aJ._3 | |
338 | 338 | let X = aJ._4 | |
339 | 339 | let ac = aa(s) | |
340 | - | $Tuple2(nil, $ | |
340 | + | $Tuple2(nil, $Tuple4(W, X, (X + W), ac)) | |
341 | 341 | } | |
342 | 342 | ||
343 | 343 | ||
344 | 344 | ||
345 | 345 | @Callable(ah) | |
346 | 346 | func stakeFor (q,s) = ag(q, s, ah) | |
347 | 347 | ||
348 | 348 | ||
349 | 349 | ||
350 | 350 | @Callable(ah) | |
351 | 351 | func stake (q) = { | |
352 | 352 | let s = toString(ah.caller) | |
353 | 353 | ag(q, s, ah) | |
354 | 354 | } | |
355 | 355 | ||
356 | 356 | ||
357 | 357 | ||
358 | 358 | @Callable(ah) | |
359 | 359 | func stakeFromUnlocked (q,aK) = { | |
360 | 360 | let s = toString(ah.caller) | |
361 | 361 | az(q, s, aK) | |
362 | 362 | } | |
363 | 363 | ||
364 | 364 | ||
365 | 365 | ||
366 | 366 | @Callable(ah) | |
367 | 367 | func unstake (q,aK) = { | |
368 | 368 | let s = toString(ah.caller) | |
369 | 369 | ao(q, s, aK) | |
370 | 370 | } | |
371 | 371 | ||
372 | 372 | ||
373 | 373 | ||
374 | 374 | @Callable(ah) | |
375 | 375 | func claim (aK) = { | |
376 | 376 | let s = toString(ah.caller) | |
377 | 377 | av(s, aK) | |
378 | 378 | } | |
379 | 379 | ||
380 | 380 | ||
381 | 381 | ||
382 | 382 | @Callable(ah) | |
383 | 383 | func claimAll () = { | |
384 | 384 | let s = toString(ah.caller) | |
385 | 385 | let aL = Y(s) | |
386 | 386 | let C = aL._1 | |
387 | 387 | let W = aL._2 | |
388 | 388 | let E = aL._3 | |
389 | 389 | let X = aL._4 | |
390 | 390 | av(s, W) | |
391 | 391 | } | |
392 | 392 | ||
393 | 393 |
github/deemru/w8io/169f3d6 48.60 ms ◑