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:BgIiCAISAwoBARIDCgEIEgQKAggIEgMKAQgSBAoCCAESAwoBASEADGNvbnRyYWN0RmlsZQIRbDJtcF9sZWFzaW5nLnJpZGUAA1NFUAICX18ABnNjYWxlOACAwtcvAQh0aHJvd0VycgEDbXNnCQACAQkArAICCQCsAgIFDGNvbnRyYWN0RmlsZQICOiAFA21zZwAKa2V5QXNzZXRJZAkAuQkCCQDMCAICAiVzCQDMCAICB2Fzc2V0SWQFA25pbAUDU0VQABFrZXlQZXJpb2RPZmZzZXRJZAkAuQkCCQDMCAICAiVzCQDMCAICCG9mZnNldElkBQNuaWwFA1NFUAAVa2V5UGVyaW9kT2Zmc2V0SGVpZ2h0CQC5CQIJAMwIAgICJXMJAMwIAgIMb2Zmc2V0SGVpZ2h0BQNuaWwFA1NFUAAPa2V5UGVyaW9kTGVuZ3RoCQC5CQIJAMwIAgICJXMJAMwIAgIMcGVyaW9kTGVuZ3RoBQNuaWwFA1NFUAAOcGVyaW9kT2Zmc2V0SWQJAQt2YWx1ZU9yRWxzZQIJAJoIAgUEdGhpcwURa2V5UGVyaW9kT2Zmc2V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0AQULdXNlckFkZHJlc3MJAJQKAgUDbmlsCQCXCgUFD2N1cnJlbnRQZXJpb2RJZAUGbGVhc2VkBQh0b1VubG9jawUHdG9DbGFpbQUIbm9kZUxpc3QBaQEIc3Rha2VGb3ICC25vZGVBZGRyZXNzC3VzZXJBZGRyZXNzCQEPZ2V0U3Rha2VBY3Rpb25zAwULbm9kZUFkZHJlc3MFC3VzZXJBZGRyZXNzBQFpAWkBBXN0YWtlAQtub2RlQWRkcmVzcwQLdXNlckFkZHJlc3MJAKUIAQgFAWkGY2FsbGVyCQEPZ2V0U3Rha2VBY3Rpb25zAwULbm9kZUFkZHJlc3MFC3VzZXJBZGRyZXNzBQFpAWkBB3Vuc3Rha2UCC25vZGVBZGRyZXNzBmFtb3VudAQLdXNlckFkZHJlc3MJAKUIAQgFAWkGY2FsbGVyCQERZ2V0VW5zdGFrZUFjdGlvbnMDBQtub2RlQWRkcmVzcwULdXNlckFkZHJlc3MFBmFtb3VudAFpAQVjbGFpbQEGYW1vdW50BAt1c2VyQWRkcmVzcwkApQgBCAUBaQZjYWxsZXIJARdnZXRDbGFpbVVubG9ja2VkQWN0aW9ucwIFC3VzZXJBZGRyZXNzBQZhbW91bnQAZptpSw==", "height": 2962865, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 78ZRJE5SEf8VWZnkdFEczDQBQYeuQZeDpWDhh6cQ7dG1 Next: 5ayAmJsFWojGf9ZqkKKanjQuT7gw8rUR7qBnUvUoVXFf Diff:
Old | New | Differences | |
---|---|---|---|
28 | 28 | then (l != -1) | |
29 | 29 | else false) | |
30 | 30 | then (((height - l) / k) + j) | |
31 | - | else j | |
31 | + | else max([0, (j - 1)]) | |
32 | 32 | ||
33 | 33 | func n (o) = makeString(["%s", "leasingNode", o], b) | |
34 | 34 |
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 | - | else j | |
31 | + | else max([0, (j - 1)]) | |
32 | 32 | ||
33 | 33 | func n (o) = makeString(["%s", "leasingNode", o], b) | |
34 | 34 | ||
35 | 35 | ||
36 | 36 | func p (q) = makeString(["%s%s", "userLeasingNodeList", q], b) | |
37 | 37 | ||
38 | 38 | ||
39 | 39 | func r (q,o) = makeString(["%s%s", "userLeasingNodeData", q, o], b) | |
40 | 40 | ||
41 | 41 | ||
42 | 42 | func s (q) = makeString(["%s%s", "userBalances", q], b) | |
43 | 43 | ||
44 | 44 | ||
45 | 45 | let t = valueOrElse(getString(this, f), "WAVES") | |
46 | 46 | ||
47 | 47 | let u = if ((t == "WAVES")) | |
48 | 48 | then unit | |
49 | 49 | else fromBase58String(t) | |
50 | 50 | ||
51 | 51 | func v (w) = { | |
52 | 52 | let x = addressFromString(w) | |
53 | 53 | if ($isInstanceOf(x, "Address")) | |
54 | 54 | then { | |
55 | 55 | let y = x | |
56 | 56 | true | |
57 | 57 | } | |
58 | 58 | else false | |
59 | 59 | } | |
60 | 60 | ||
61 | 61 | ||
62 | 62 | func z (o,A) = { | |
63 | 63 | let B = makeString(["%d", toString(A)], b) | |
64 | 64 | StringEntry(n(o), B) | |
65 | 65 | } | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | func C (o) = { | |
69 | 69 | let D = getString(this, n(o)) | |
70 | 70 | let x = D | |
71 | 71 | if ($isInstanceOf(x, "String")) | |
72 | 72 | then { | |
73 | 73 | let E = x | |
74 | 74 | let F = split(E, b) | |
75 | 75 | let A = parseIntValue(F[1]) | |
76 | 76 | A | |
77 | 77 | } | |
78 | 78 | else 0 | |
79 | 79 | } | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | func G (o,q,H) = { | |
83 | 83 | let B = makeString(["%d", toString(H)], b) | |
84 | 84 | StringEntry(r(q, o), B) | |
85 | 85 | } | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | func I (o,q) = { | |
89 | 89 | let D = getString(this, r(q, o)) | |
90 | 90 | let x = D | |
91 | 91 | if ($isInstanceOf(x, "String")) | |
92 | 92 | then { | |
93 | 93 | let E = x | |
94 | 94 | let F = split(E, b) | |
95 | 95 | let A = parseIntValue(F[1]) | |
96 | 96 | A | |
97 | 97 | } | |
98 | 98 | else 0 | |
99 | 99 | } | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | func J (q,K,L,M,N) = { | |
103 | 103 | let B = makeString(["%d%d%d%d", toString(K), toString(L), toString(M), toString(N)], b) | |
104 | 104 | StringEntry(s(q), B) | |
105 | 105 | } | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | func O (q) = { | |
109 | 109 | let D = getString(this, s(q)) | |
110 | 110 | let x = D | |
111 | 111 | if ($isInstanceOf(x, "String")) | |
112 | 112 | then { | |
113 | 113 | let E = x | |
114 | 114 | let F = split(E, b) | |
115 | 115 | let K = parseIntValue(F[1]) | |
116 | 116 | let L = parseIntValue(F[2]) | |
117 | 117 | let M = parseIntValue(F[3]) | |
118 | 118 | let N = parseIntValue(F[4]) | |
119 | 119 | if (((m - K) > 0)) | |
120 | 120 | then $Tuple4(K, L, 0, (N + M)) | |
121 | 121 | else $Tuple4(K, L, M, N) | |
122 | 122 | } | |
123 | 123 | else $Tuple4(0, 0, 0, 0) | |
124 | 124 | } | |
125 | 125 | ||
126 | 126 | ||
127 | 127 | func P (q) = { | |
128 | 128 | let D = getString(this, p(q)) | |
129 | 129 | let x = D | |
130 | 130 | if ($isInstanceOf(x, "String")) | |
131 | 131 | then { | |
132 | 132 | let E = x | |
133 | 133 | let F = split_51C(E, b) | |
134 | 134 | F | |
135 | 135 | } | |
136 | 136 | else nil | |
137 | 137 | } | |
138 | 138 | ||
139 | 139 | ||
140 | 140 | func Q (q,R) = if ((size(R) == 0)) | |
141 | 141 | then DeleteEntry(p(q)) | |
142 | 142 | else StringEntry(p(q), makeString_11C(R, b)) | |
143 | 143 | ||
144 | 144 | ||
145 | 145 | func S (q,o) = { | |
146 | 146 | let R = P(q) | |
147 | 147 | if (containsElement(R, o)) | |
148 | 148 | then R | |
149 | 149 | else (R :+ o) | |
150 | 150 | } | |
151 | 151 | ||
152 | 152 | ||
153 | 153 | func T (q,o) = { | |
154 | 154 | let R = P(q) | |
155 | 155 | let x = indexOf(R, o) | |
156 | 156 | if ($isInstanceOf(x, "Int")) | |
157 | 157 | then { | |
158 | 158 | let U = x | |
159 | 159 | removeByIndex(R, U) | |
160 | 160 | } | |
161 | 161 | else R | |
162 | 162 | } | |
163 | 163 | ||
164 | 164 | ||
165 | 165 | func V (o,q,W) = { | |
166 | 166 | let X = [if ((size(W.payments) == 1)) | |
167 | 167 | then true | |
168 | 168 | else d("payment size should be exactly 1"), if ((W.payments[0].assetId == u)) | |
169 | 169 | then true | |
170 | 170 | else d(makeString(["payment assetId should be:", t], " ")), if (v(o)) | |
171 | 171 | then true | |
172 | 172 | else d(makeString(["node address is not valid:", o], " ")), if (v(q)) | |
173 | 173 | then true | |
174 | 174 | else d(makeString(["user address is not valid:", q], " "))] | |
175 | 175 | if ((X == X)) | |
176 | 176 | then { | |
177 | 177 | let Y = W.payments[0].amount | |
178 | 178 | let Z = C(o) | |
179 | 179 | let aa = (Z + Y) | |
180 | 180 | let ab = I(o, q) | |
181 | 181 | let ac = (ab + Y) | |
182 | 182 | let ad = O(q) | |
183 | 183 | let K = ad._1 | |
184 | 184 | let L = ad._2 | |
185 | 185 | let M = ad._3 | |
186 | 186 | let N = ad._4 | |
187 | 187 | let ae = (L + Y) | |
188 | 188 | [z(o, aa), G(o, q, ac), J(q, m, ae, M, N), Q(q, S(q, o))] | |
189 | 189 | } | |
190 | 190 | else throw("Strict value is not equal to itself.") | |
191 | 191 | } | |
192 | 192 | ||
193 | 193 | ||
194 | 194 | func af (o,q,ag) = { | |
195 | 195 | let Z = C(o) | |
196 | 196 | let ab = I(o, q) | |
197 | 197 | let X = [if ((ag > 0)) | |
198 | 198 | then true | |
199 | 199 | else d("unstake amount should be greater than 0"), if ((ab >= ag)) | |
200 | 200 | then true | |
201 | 201 | else d("unstake amount should be less or equal user staked amount"), if ((Z >= ag)) | |
202 | 202 | then true | |
203 | 203 | else d("unstake amount should be less or equal node staked amount"), if (v(o)) | |
204 | 204 | then true | |
205 | 205 | else d(makeString(["node address is not valid:", o], " ")), if (v(q)) | |
206 | 206 | then true | |
207 | 207 | else d(makeString(["user address is not valid:", q], " "))] | |
208 | 208 | if ((X == X)) | |
209 | 209 | then { | |
210 | 210 | let aa = (Z - ag) | |
211 | 211 | let ac = (ab - ag) | |
212 | 212 | let ah = O(q) | |
213 | 213 | let K = ah._1 | |
214 | 214 | let L = ah._2 | |
215 | 215 | let M = ah._3 | |
216 | 216 | let N = ah._4 | |
217 | 217 | let ae = (L - ag) | |
218 | 218 | let ai = (M + ag) | |
219 | 219 | let aj = if ((ac == 0)) | |
220 | 220 | then [Q(q, T(q, o))] | |
221 | 221 | else nil | |
222 | 222 | ([z(o, aa), G(o, q, ac), J(q, m, ae, ai, N)] ++ aj) | |
223 | 223 | } | |
224 | 224 | else throw("Strict value is not equal to itself.") | |
225 | 225 | } | |
226 | 226 | ||
227 | 227 | ||
228 | 228 | func ak (q,al) = { | |
229 | 229 | let am = O(q) | |
230 | 230 | let K = am._1 | |
231 | 231 | let L = am._2 | |
232 | 232 | let M = am._3 | |
233 | 233 | let N = am._4 | |
234 | 234 | let X = [if ((al > 0)) | |
235 | 235 | then true | |
236 | 236 | else d("claim amount should be greater than 0"), if ((N >= al)) | |
237 | 237 | then true | |
238 | 238 | else d("claim amount should be less or equal unlocked amount"), if (v(q)) | |
239 | 239 | then true | |
240 | 240 | else d(makeString(["user address is not valid:", q], " "))] | |
241 | 241 | if ((X == X)) | |
242 | 242 | then { | |
243 | 243 | let an = (N - al) | |
244 | 244 | [J(q, m, L, M, an)] | |
245 | 245 | } | |
246 | 246 | else throw("Strict value is not equal to itself.") | |
247 | 247 | } | |
248 | 248 | ||
249 | 249 | ||
250 | 250 | func ao (ap) = { | |
251 | 251 | let aq = [if ((ap > 0)) | |
252 | 252 | then true | |
253 | 253 | else d("period length should be greater than 0")] | |
254 | 254 | if ((aq == aq)) | |
255 | 255 | then if ((l == -1)) | |
256 | 256 | then [IntegerEntry(i, ap), IntegerEntry(h, height)] | |
257 | 257 | else { | |
258 | 258 | let ar = (m + 1) | |
259 | 259 | let as = ((k * (ar - j)) + l) | |
260 | 260 | [IntegerEntry(g, ar), IntegerEntry(h, as), IntegerEntry(i, ap)] | |
261 | 261 | } | |
262 | 262 | else throw("Strict value is not equal to itself.") | |
263 | 263 | } | |
264 | 264 | ||
265 | 265 | ||
266 | 266 | @Callable(W) | |
267 | 267 | func setNewPeriodLength (ap) = ao(ap) | |
268 | 268 | ||
269 | 269 | ||
270 | 270 | ||
271 | 271 | @Callable(W) | |
272 | 272 | func getUserData (q) = { | |
273 | 273 | let at = O(q) | |
274 | 274 | let K = at._1 | |
275 | 275 | let L = at._2 | |
276 | 276 | let M = at._3 | |
277 | 277 | let N = at._4 | |
278 | 278 | let R = P(q) | |
279 | 279 | $Tuple2(nil, $Tuple5(m, L, M, N, R)) | |
280 | 280 | } | |
281 | 281 | ||
282 | 282 | ||
283 | 283 | ||
284 | 284 | @Callable(W) | |
285 | 285 | func stakeFor (o,q) = V(o, q, W) | |
286 | 286 | ||
287 | 287 | ||
288 | 288 | ||
289 | 289 | @Callable(W) | |
290 | 290 | func stake (o) = { | |
291 | 291 | let q = toString(W.caller) | |
292 | 292 | V(o, q, W) | |
293 | 293 | } | |
294 | 294 | ||
295 | 295 | ||
296 | 296 | ||
297 | 297 | @Callable(W) | |
298 | 298 | func unstake (o,au) = { | |
299 | 299 | let q = toString(W.caller) | |
300 | 300 | af(o, q, au) | |
301 | 301 | } | |
302 | 302 | ||
303 | 303 | ||
304 | 304 | ||
305 | 305 | @Callable(W) | |
306 | 306 | func claim (au) = { | |
307 | 307 | let q = toString(W.caller) | |
308 | 308 | ak(q, au) | |
309 | 309 | } | |
310 | 310 | ||
311 | 311 |
github/deemru/w8io/026f985 39.64 ms ◑