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