tx · 74V1XRAQxoTomMbSbwJsNBBA6tNL3ghGWf2GutHSi9fa

3NCWFHDzdPHZC6636ZkMLNDup9mjpbTLs7h:  -0.01000000 Waves

2024.02.05 13:43 [2962865] smart account 3NCWFHDzdPHZC6636ZkMLNDup9mjpbTLs7h > SELF 0.00000000 Waves

{ "type": 13, "id": "74V1XRAQxoTomMbSbwJsNBBA6tNL3ghGWf2GutHSi9fa", "fee": 1000000, "feeAssetId": null, "timestamp": 1707129840161, "version": 2, "chainId": 84, "sender": "3NCWFHDzdPHZC6636ZkMLNDup9mjpbTLs7h", "senderPublicKey": "3z8Q6Zu3KppVmn6fJJvrLc1Wo3krVHSvfaNcerm82md2", "proofs": [ "54KhJ8wKxnTJhiEY8bPFfwJ2RpEQRPw4ZRbb8VTmkmPJcogNKQY6Dj3kwioMKFs572EogUJjyvjfnwTeCmZ7iXEQ" ], "script": "base64:BgIiCAISAwoBARIDCgEIEgQKAggIEgMKAQgSBAoCCAESAwoBASEADGNvbnRyYWN0RmlsZQIRbDJtcF9sZWFzaW5nLnJpZGUAA1NFUAICX18ABnNjYWxlOACAwtcvAQh0aHJvd0VycgEDbXNnCQACAQkArAICCQCsAgIFDGNvbnRyYWN0RmlsZQICOiAFA21zZwAKa2V5QXNzZXRJZAkAuQkCCQDMCAICAiVzCQDMCAICB2Fzc2V0SWQFA25pbAUDU0VQABFrZXlQZXJpb2RPZmZzZXRJZAkAuQkCCQDMCAICAiVzCQDMCAICCG9mZnNldElkBQNuaWwFA1NFUAAVa2V5UGVyaW9kT2Zmc2V0SGVpZ2h0CQC5CQIJAMwIAgICJXMJAMwIAgIMb2Zmc2V0SGVpZ2h0BQNuaWwFA1NFUAAPa2V5UGVyaW9kTGVuZ3RoCQC5CQIJAMwIAgICJXMJAMwIAgIMcGVyaW9kTGVuZ3RoBQNuaWwFA1NFUAAOcGVyaW9kT2Zmc2V0SWQJAQt2YWx1ZU9yRWxzZQIJAJoIAgUEdGhpcwURa2V5UGVyaW9kT2Zmc2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N0AQULdXNlckFkZHJlc3MJAJQKAgUDbmlsCQCXCgUFD2N1cnJlbnRQZXJpb2RJZAUGbGVhc2VkBQh0b1VubG9jawUHdG9DbGFpbQUIbm9kZUxpc3QBaQEIc3Rha2VGb3ICC25vZGVBZGRyZXNzC3VzZXJBZGRyZXNzCQEPZ2V0U3Rha2VBY3Rpb25zAwULbm9kZUFkZHJlc3MFC3VzZXJBZGRyZXNzBQFpAWkBBXN0YWtlAQtub2RlQWRkcmVzcwQLdXNlckFkZHJlc3MJAKUIAQgFAWkGY2FsbGVyCQEPZ2V0U3Rha2VBY3Rpb25zAwULbm9kZUFkZHJlc3MFC3VzZXJBZGRyZXNzBQFpAWkBB3Vuc3Rha2UCC25vZGVBZGRyZXNzBmFtb3VudAQLdXNlckFkZHJlc3MJAKUIAQgFAWkGY2FsbGVyCQERZ2V0VW5zdGFrZUFjdGlvbnMDBQtub2RlQWRkcmVzcwULdXNlckFkZHJlc3MFBmFtb3VudAFpAQVjbGFpbQEGYW1vdW50BAt1c2VyQWRkcmVzcwkApQgBCAUBaQZjYWxsZXIJARdnZXRDbGFpbVVubG9ja2VkQWN0aW9ucwIFC3VzZXJBZGRyZXNzBQZhbW91bnQAZptpSw==", "height": 2962865, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 78ZRJE5SEf8VWZnkdFEczDQBQYeuQZeDpWDhh6cQ7dG1 Next: 5ayAmJsFWojGf9ZqkKKanjQuT7gw8rUR7qBnUvUoVXFf Diff:
OldNewDifferences
2828 then (l != -1)
2929 else false)
3030 then (((height - l) / k) + j)
31- else j
31+ else max([0, (j - 1)])
3232
3333 func n (o) = makeString(["%s", "leasingNode", o], b)
3434
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)
31- else j
31+ else max([0, (j - 1)])
3232
3333 func n (o) = makeString(["%s", "leasingNode", o], b)
3434
3535
3636 func p (q) = makeString(["%s%s", "userLeasingNodeList", q], b)
3737
3838
3939 func r (q,o) = makeString(["%s%s", "userLeasingNodeData", q, o], b)
4040
4141
4242 func s (q) = makeString(["%s%s", "userBalances", q], b)
4343
4444
4545 let t = valueOrElse(getString(this, f), "WAVES")
4646
4747 let u = if ((t == "WAVES"))
4848 then unit
4949 else fromBase58String(t)
5050
5151 func v (w) = {
5252 let x = addressFromString(w)
5353 if ($isInstanceOf(x, "Address"))
5454 then {
5555 let y = x
5656 true
5757 }
5858 else false
5959 }
6060
6161
6262 func z (o,A) = {
6363 let B = makeString(["%d", toString(A)], b)
6464 StringEntry(n(o), B)
6565 }
6666
6767
6868 func C (o) = {
6969 let D = getString(this, n(o))
7070 let x = D
7171 if ($isInstanceOf(x, "String"))
7272 then {
7373 let E = x
7474 let F = split(E, b)
7575 let A = parseIntValue(F[1])
7676 A
7777 }
7878 else 0
7979 }
8080
8181
8282 func G (o,q,H) = {
8383 let B = makeString(["%d", toString(H)], b)
8484 StringEntry(r(q, o), B)
8585 }
8686
8787
8888 func I (o,q) = {
8989 let D = getString(this, r(q, o))
9090 let x = D
9191 if ($isInstanceOf(x, "String"))
9292 then {
9393 let E = x
9494 let F = split(E, b)
9595 let A = parseIntValue(F[1])
9696 A
9797 }
9898 else 0
9999 }
100100
101101
102102 func J (q,K,L,M,N) = {
103103 let B = makeString(["%d%d%d%d", toString(K), toString(L), toString(M), toString(N)], b)
104104 StringEntry(s(q), B)
105105 }
106106
107107
108108 func O (q) = {
109109 let D = getString(this, s(q))
110110 let x = D
111111 if ($isInstanceOf(x, "String"))
112112 then {
113113 let E = x
114114 let F = split(E, b)
115115 let K = parseIntValue(F[1])
116116 let L = parseIntValue(F[2])
117117 let M = parseIntValue(F[3])
118118 let N = parseIntValue(F[4])
119119 if (((m - K) > 0))
120120 then $Tuple4(K, L, 0, (N + M))
121121 else $Tuple4(K, L, M, N)
122122 }
123123 else $Tuple4(0, 0, 0, 0)
124124 }
125125
126126
127127 func P (q) = {
128128 let D = getString(this, p(q))
129129 let x = D
130130 if ($isInstanceOf(x, "String"))
131131 then {
132132 let E = x
133133 let F = split_51C(E, b)
134134 F
135135 }
136136 else nil
137137 }
138138
139139
140140 func Q (q,R) = if ((size(R) == 0))
141141 then DeleteEntry(p(q))
142142 else StringEntry(p(q), makeString_11C(R, b))
143143
144144
145145 func S (q,o) = {
146146 let R = P(q)
147147 if (containsElement(R, o))
148148 then R
149149 else (R :+ o)
150150 }
151151
152152
153153 func T (q,o) = {
154154 let R = P(q)
155155 let x = indexOf(R, o)
156156 if ($isInstanceOf(x, "Int"))
157157 then {
158158 let U = x
159159 removeByIndex(R, U)
160160 }
161161 else R
162162 }
163163
164164
165165 func V (o,q,W) = {
166166 let X = [if ((size(W.payments) == 1))
167167 then true
168168 else d("payment size should be exactly 1"), if ((W.payments[0].assetId == u))
169169 then true
170170 else d(makeString(["payment assetId should be:", t], " ")), if (v(o))
171171 then true
172172 else d(makeString(["node address is not valid:", o], " ")), if (v(q))
173173 then true
174174 else d(makeString(["user address is not valid:", q], " "))]
175175 if ((X == X))
176176 then {
177177 let Y = W.payments[0].amount
178178 let Z = C(o)
179179 let aa = (Z + Y)
180180 let ab = I(o, q)
181181 let ac = (ab + Y)
182182 let ad = O(q)
183183 let K = ad._1
184184 let L = ad._2
185185 let M = ad._3
186186 let N = ad._4
187187 let ae = (L + Y)
188188 [z(o, aa), G(o, q, ac), J(q, m, ae, M, N), Q(q, S(q, o))]
189189 }
190190 else throw("Strict value is not equal to itself.")
191191 }
192192
193193
194194 func af (o,q,ag) = {
195195 let Z = C(o)
196196 let ab = I(o, q)
197197 let X = [if ((ag > 0))
198198 then true
199199 else d("unstake amount should be greater than 0"), if ((ab >= ag))
200200 then true
201201 else d("unstake amount should be less or equal user staked amount"), if ((Z >= ag))
202202 then true
203203 else d("unstake amount should be less or equal node staked amount"), if (v(o))
204204 then true
205205 else d(makeString(["node address is not valid:", o], " ")), if (v(q))
206206 then true
207207 else d(makeString(["user address is not valid:", q], " "))]
208208 if ((X == X))
209209 then {
210210 let aa = (Z - ag)
211211 let ac = (ab - ag)
212212 let ah = O(q)
213213 let K = ah._1
214214 let L = ah._2
215215 let M = ah._3
216216 let N = ah._4
217217 let ae = (L - ag)
218218 let ai = (M + ag)
219219 let aj = if ((ac == 0))
220220 then [Q(q, T(q, o))]
221221 else nil
222222 ([z(o, aa), G(o, q, ac), J(q, m, ae, ai, N)] ++ aj)
223223 }
224224 else throw("Strict value is not equal to itself.")
225225 }
226226
227227
228228 func ak (q,al) = {
229229 let am = O(q)
230230 let K = am._1
231231 let L = am._2
232232 let M = am._3
233233 let N = am._4
234234 let X = [if ((al > 0))
235235 then true
236236 else d("claim amount should be greater than 0"), if ((N >= al))
237237 then true
238238 else d("claim amount should be less or equal unlocked amount"), if (v(q))
239239 then true
240240 else d(makeString(["user address is not valid:", q], " "))]
241241 if ((X == X))
242242 then {
243243 let an = (N - al)
244244 [J(q, m, L, M, an)]
245245 }
246246 else throw("Strict value is not equal to itself.")
247247 }
248248
249249
250250 func ao (ap) = {
251251 let aq = [if ((ap > 0))
252252 then true
253253 else d("period length should be greater than 0")]
254254 if ((aq == aq))
255255 then if ((l == -1))
256256 then [IntegerEntry(i, ap), IntegerEntry(h, height)]
257257 else {
258258 let ar = (m + 1)
259259 let as = ((k * (ar - j)) + l)
260260 [IntegerEntry(g, ar), IntegerEntry(h, as), IntegerEntry(i, ap)]
261261 }
262262 else throw("Strict value is not equal to itself.")
263263 }
264264
265265
266266 @Callable(W)
267267 func setNewPeriodLength (ap) = ao(ap)
268268
269269
270270
271271 @Callable(W)
272272 func getUserData (q) = {
273273 let at = O(q)
274274 let K = at._1
275275 let L = at._2
276276 let M = at._3
277277 let N = at._4
278278 let R = P(q)
279279 $Tuple2(nil, $Tuple5(m, L, M, N, R))
280280 }
281281
282282
283283
284284 @Callable(W)
285285 func stakeFor (o,q) = V(o, q, W)
286286
287287
288288
289289 @Callable(W)
290290 func stake (o) = {
291291 let q = toString(W.caller)
292292 V(o, q, W)
293293 }
294294
295295
296296
297297 @Callable(W)
298298 func unstake (o,au) = {
299299 let q = toString(W.caller)
300300 af(o, q, au)
301301 }
302302
303303
304304
305305 @Callable(W)
306306 func claim (au) = {
307307 let q = toString(W.caller)
308308 ak(q, au)
309309 }
310310
311311

github/deemru/w8io/026f985 
39.64 ms