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:BgIqCAISAwoBARIDCgEIEgQKAggIEgMKAQgSBAoCCAESBAoCCAESAwoBARIAJAAMY29udHJhY3RGaWxlAhFsMm1wX2xlYXNpbmcucmlkZQADU0VQAgJfXwAGc2NhbGU4AIDC1y8BCHRocm93RXJyAQNtc2cJAAIBCQCsAgIJAKwCAgUMY29udHJhY3RGaWxlAgI6IAUDbXNnAAprZXlBc3NldElkCQC5CQIJAMwIAgICJXMJAMwIAgIHYXNzZXRJZAUDbmlsBQNTRVAAEWtleVBlcmlvZE9mZnNldElkCQC5CQIJAMwIAgICJXMJAMwIAgIIb2Zmc2V0SWQFA25pbAUDU0VQABVrZXlQZXJpb2RPZmZzZXRIZWlnaHQJALkJAgkAzAgCAgIlcwkAzAgCAgxvZmZzZXRIZWlnaHQFA25pbAUDU0VQAA9rZXlQZXJpb2RMZW5ndGgJALkJAgkAzAgCAgIlcwkAzAgCAgxwZXJpb2RMZW5ndGgFA25pbAUDU0VQAA5wZXJpb2RPZmZzZXRJZAkBC3ZhbHVlT3JFbHNlAgkAmggCBQR0aGlzBRFrZXlQZXJpb2RPZmZzZX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aQZjYWxsZXIJARFnZXRVbnN0YWtlQWN0aW9ucwMFC25vZGVBZGRyZXNzBQt1c2VyQWRkcmVzcwUGYW1vdW50AWkBBWNsYWltAQZhbW91bnQEC3VzZXJBZGRyZXNzCQClCAEIBQFpBmNhbGxlcgkBF2dldENsYWltVW5sb2NrZWRBY3Rpb25zAgULdXNlckFkZHJlc3MFBmFtb3VudAFpAQhjbGFpbUFsbAAEC3VzZXJBZGRyZXNzCQClCAEIBQFpBmNhbGxlcgQNJHQwMTM5NjcxNDA1NAkBFWdldFVzZXJUb0NsYWltQmFsYW5jZQEFC3VzZXJBZGRyZXNzBA1jdXJyZW50UGVyaW9kCAUNJHQwMTM5NjcxNDA1NAJfMQQHdG9DbGFpbQgFDSR0MDEzOTY3MTQwNTQCXzIECm5leHRQZXJpb2QIBQ0kdDAxMzk2NzE0MDU0Al8zBAh0b1VubG9jawgFDSR0MDEzOTY3MTQwNTQCXzQJARdnZXRDbGFpbVVubG9ja2VkQWN0aW9ucwIFC3VzZXJBZGRyZXNzBQd0b0NsYWltAHSl5cE=", "height": 2972957, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 42vGnGiVpH7pUFxoMExUo42xj52nfGRJQskBfYrVXMw1 Next: 4bqmQ7FBJubFQ1x7VGeeiTsrhHD8zohN3tShLrDLe9PJ Diff:
OldNewDifferences
337337 let E = aJ._3
338338 let X = aJ._4
339339 let ac = aa(s)
340- $Tuple2(nil, $Tuple5($Tuple2(m, k), W, X, (X + W), ac))
340+ $Tuple2(nil, $Tuple4(W, X, (X + W), ac))
341341 }
342342
343343
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "l2mp_leasing.ride"
55
66 let b = "__"
77
88 let c = 100000000
99
1010 func d (e) = throw(((a + ": ") + e))
1111
1212
1313 let f = makeString(["%s", "assetId"], b)
1414
1515 let g = makeString(["%s", "offsetId"], b)
1616
1717 let h = makeString(["%s", "offsetHeight"], b)
1818
1919 let i = makeString(["%s", "periodLength"], b)
2020
2121 let j = valueOrElse(getInteger(this, g), 0)
2222
2323 let k = valueOrElse(getInteger(this, i), 10000)
2424
2525 let l = valueOrElse(getInteger(this, h), -1)
2626
2727 let m = if (if ((height > l))
2828 then (l != -1)
2929 else false)
3030 then (((height - l) / k) + j)
3131 else max([0, (j - 1)])
3232
3333 let n = (l + ((m - j) * k))
3434
3535 let o = (n + k)
3636
3737 func p (q) = makeString(["%s", q], b)
3838
3939
4040 func r (s) = makeString(["%s%s", "userLeasingNodeList", s], b)
4141
4242
4343 func t (s,q) = makeString(["%s%s", q, s], b)
4444
4545
4646 func u (s) = makeString(["%s%s", "toClaim", s], b)
4747
4848
4949 let v = valueOrElse(getString(this, f), "WAVES")
5050
5151 let w = if ((v == "WAVES"))
5252 then unit
5353 else fromBase58String(v)
5454
5555 func x (y) = {
5656 let z = addressFromString(y)
5757 if ($isInstanceOf(z, "Address"))
5858 then {
5959 let A = z
6060 true
6161 }
6262 else false
6363 }
6464
6565
6666 func B (q,C,D,E,F) = {
6767 let G = makeString(["%d%d%d%d", toString(C), toString(D), toString(E), toString(F)], b)
6868 StringEntry(p(q), G)
6969 }
7070
7171
7272 func H (q) = {
7373 let I = getString(this, p(q))
7474 let z = I
7575 if ($isInstanceOf(z, "String"))
7676 then {
7777 let J = z
7878 let K = split(J, b)
7979 let L = parseIntValue(K[1])
8080 let M = parseIntValue(K[2])
8181 let N = parseIntValue(K[3])
8282 let O = parseIntValue(K[4])
8383 if ((N > height))
8484 then $Tuple4(L, M, N, O)
8585 else $Tuple4(n, O, o, O)
8686 }
8787 else $Tuple4(0, 0, 0, 0)
8888 }
8989
9090
9191 func P (q,s,Q,R,S,T) = {
9292 let G = makeString(["%d%d%d%d", toString(Q), toString(R), toString(S), toString(T)], b)
9393 StringEntry(t(s, q), G)
9494 }
9595
9696
9797 func U (q,s) = {
9898 let I = getString(this, t(s, q))
9999 let z = I
100100 if ($isInstanceOf(z, "String"))
101101 then {
102102 let J = z
103103 let K = split(J, b)
104104 let Q = parseIntValue(K[1])
105105 let R = parseIntValue(K[2])
106106 let S = parseIntValue(K[3])
107107 let T = parseIntValue(K[4])
108108 if ((S > height))
109109 then $Tuple4(Q, R, S, T)
110110 else $Tuple4(n, T, o, T)
111111 }
112112 else $Tuple4(0, 0, 0, 0)
113113 }
114114
115115
116116 func V (s,C,W,E,X) = {
117117 let G = makeString(["%d%d%d%d", toString(C), toString(W), toString(E), toString(X)], b)
118118 StringEntry(u(s), G)
119119 }
120120
121121
122122 func Y (s) = {
123123 let Z = getString(this, u(s))
124124 let z = Z
125125 if ($isInstanceOf(z, "String"))
126126 then {
127127 let J = z
128128 let K = split(J, b)
129129 let C = parseIntValue(K[1])
130130 let W = parseIntValue(K[2])
131131 let E = parseIntValue(K[3])
132132 let X = parseIntValue(K[4])
133133 if ((E > height))
134134 then $Tuple4(C, W, E, X)
135135 else $Tuple4(n, (W + X), o, 0)
136136 }
137137 else $Tuple4(0, 0, 0, 0)
138138 }
139139
140140
141141 func aa (s) = {
142142 let I = getString(this, r(s))
143143 let z = I
144144 if ($isInstanceOf(z, "String"))
145145 then {
146146 let J = z
147147 let K = split_51C(J, b)
148148 K
149149 }
150150 else nil
151151 }
152152
153153
154154 func ab (s,ac) = if ((size(ac) == 0))
155155 then DeleteEntry(r(s))
156156 else StringEntry(r(s), makeString_11C(ac, b))
157157
158158
159159 func ad (s,q) = {
160160 let ac = aa(s)
161161 if (containsElement(ac, q))
162162 then ac
163163 else (ac :+ q)
164164 }
165165
166166
167167 func ae (s,q) = {
168168 let ac = aa(s)
169169 let z = indexOf(ac, q)
170170 if ($isInstanceOf(z, "Int"))
171171 then {
172172 let af = z
173173 removeByIndex(ac, af)
174174 }
175175 else ac
176176 }
177177
178178
179179 func ag (q,s,ah) = {
180180 let ai = [if ((size(ah.payments) == 1))
181181 then true
182182 else d("payment size should be exactly 1"), if ((ah.payments[0].assetId == w))
183183 then true
184184 else d(makeString(["payment assetId should be:", v], " ")), if (x(q))
185185 then true
186186 else d(makeString(["node address is not valid:", q], " ")), if (x(s))
187187 then true
188188 else d(makeString(["user address is not valid:", s], " "))]
189189 if ((ai == ai))
190190 then {
191191 let aj = ah.payments[0].amount
192192 let ak = H(q)
193193 let L = ak._1
194194 let M = ak._2
195195 let N = ak._3
196196 let O = ak._4
197197 let al = (O + aj)
198198 let am = U(q, s)
199199 let Q = am._1
200200 let R = am._2
201201 let S = am._3
202202 let T = am._4
203203 let an = (T + aj)
204204 [B(q, L, M, N, al), P(q, s, Q, R, S, an), ab(s, ad(s, q))]
205205 }
206206 else throw("Strict value is not equal to itself.")
207207 }
208208
209209
210210 func ao (q,s,ap) = {
211211 let aq = H(q)
212212 let L = aq._1
213213 let M = aq._2
214214 let N = aq._3
215215 let O = aq._4
216216 let ar = U(q, s)
217217 let Q = ar._1
218218 let R = ar._2
219219 let S = ar._3
220220 let T = ar._4
221221 let ai = [if ((ap > 0))
222222 then true
223223 else d("unstake amount should be greater than 0"), if ((T >= ap))
224224 then true
225225 else d("unstake amount should be less or equal user staked amount"), if ((O >= ap))
226226 then true
227227 else d("unstake amount should be less or equal node staked amount"), if (x(q))
228228 then true
229229 else d(makeString(["node address is not valid:", q], " ")), if (x(s))
230230 then true
231231 else d(makeString(["user address is not valid:", s], " "))]
232232 if ((ai == ai))
233233 then {
234234 let al = (O - ap)
235235 let an = (T - ap)
236236 let as = Y(s)
237237 let C = as._1
238238 let W = as._2
239239 let E = as._3
240240 let X = as._4
241241 let at = (X + ap)
242242 let au = if ((an == 0))
243243 then [ab(s, ae(s, q))]
244244 else nil
245245 ([B(q, L, M, N, al), P(q, s, Q, R, S, an), V(s, C, W, E, at)] ++ au)
246246 }
247247 else throw("Strict value is not equal to itself.")
248248 }
249249
250250
251251 func av (s,aw) = {
252252 let ax = Y(s)
253253 let C = ax._1
254254 let W = ax._2
255255 let E = ax._3
256256 let X = ax._4
257257 let ai = [if ((aw > 0))
258258 then true
259259 else d("claim amount should be greater than 0"), if ((W >= aw))
260260 then true
261261 else d("claim amount should be less or equal unlocked amount"), if (x(s))
262262 then true
263263 else d(makeString(["user address is not valid:", s], " "))]
264264 if ((ai == ai))
265265 then {
266266 let ay = (W - aw)
267267 [V(s, C, ay, E, X), ScriptTransfer(addressFromStringValue(s), aw, w)]
268268 }
269269 else throw("Strict value is not equal to itself.")
270270 }
271271
272272
273273 func az (q,s,aj) = {
274274 let aA = Y(s)
275275 let C = aA._1
276276 let W = aA._2
277277 let E = aA._3
278278 let X = aA._4
279279 let aB = (X + W)
280280 let ai = [if ((aj > 0))
281281 then true
282282 else d("amount should be greater than 0"), if ((aB >= aj))
283283 then true
284284 else d("amount should be less or equal to available"), if (x(q))
285285 then true
286286 else d(makeString(["node address is not valid:", q], " ")), if (x(s))
287287 then true
288288 else d(makeString(["user address is not valid:", s], " "))]
289289 if ((ai == ai))
290290 then {
291291 let aC = H(q)
292292 let L = aC._1
293293 let M = aC._2
294294 let N = aC._3
295295 let O = aC._4
296296 let al = (O + aj)
297297 let aD = U(q, s)
298298 let Q = aD._1
299299 let R = aD._2
300300 let S = aD._3
301301 let T = aD._4
302302 let an = (T + aj)
303303 let at = max([0, (X - aj)])
304304 let ay = min([W, (W + (X - aj))])
305305 [B(q, L, M, N, O), P(q, s, Q, R, S, an), V(s, C, ay, E, at), ab(s, ad(s, q))]
306306 }
307307 else throw("Strict value is not equal to itself.")
308308 }
309309
310310
311311 func aE (aF) = {
312312 let aG = [if ((aF > 0))
313313 then true
314314 else d("period length should be greater than 0")]
315315 if ((aG == aG))
316316 then if ((l == -1))
317317 then [IntegerEntry(i, aF), IntegerEntry(h, height)]
318318 else {
319319 let aH = (m + 1)
320320 let aI = ((k * (aH - j)) + l)
321321 [IntegerEntry(g, aH), IntegerEntry(h, aI), IntegerEntry(i, aF)]
322322 }
323323 else throw("Strict value is not equal to itself.")
324324 }
325325
326326
327327 @Callable(ah)
328328 func setNewPeriodLength (aF) = aE(aF)
329329
330330
331331
332332 @Callable(ah)
333333 func getUserData (s) = {
334334 let aJ = Y(s)
335335 let C = aJ._1
336336 let W = aJ._2
337337 let E = aJ._3
338338 let X = aJ._4
339339 let ac = aa(s)
340- $Tuple2(nil, $Tuple5($Tuple2(m, k), W, X, (X + W), ac))
340+ $Tuple2(nil, $Tuple4(W, X, (X + W), ac))
341341 }
342342
343343
344344
345345 @Callable(ah)
346346 func stakeFor (q,s) = ag(q, s, ah)
347347
348348
349349
350350 @Callable(ah)
351351 func stake (q) = {
352352 let s = toString(ah.caller)
353353 ag(q, s, ah)
354354 }
355355
356356
357357
358358 @Callable(ah)
359359 func stakeFromUnlocked (q,aK) = {
360360 let s = toString(ah.caller)
361361 az(q, s, aK)
362362 }
363363
364364
365365
366366 @Callable(ah)
367367 func unstake (q,aK) = {
368368 let s = toString(ah.caller)
369369 ao(q, s, aK)
370370 }
371371
372372
373373
374374 @Callable(ah)
375375 func claim (aK) = {
376376 let s = toString(ah.caller)
377377 av(s, aK)
378378 }
379379
380380
381381
382382 @Callable(ah)
383383 func claimAll () = {
384384 let s = toString(ah.caller)
385385 let aL = Y(s)
386386 let C = aL._1
387387 let W = aL._2
388388 let E = aL._3
389389 let X = aL._4
390390 av(s, W)
391391 }
392392
393393

github/deemru/w8io/169f3d6 
48.60 ms