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