tx · 3WWDMfPow81FkoH7UPPg55BWBydrAQnEpmwjBAKnMMs2 3N9eLqWNqb7jeF383m9qsXEBqpp8qfQmfbx: -0.10000000 Waves 2022.06.04 08:17 [2081177] smart account 3N9eLqWNqb7jeF383m9qsXEBqpp8qfQmfbx > SELF 0.00000000 Waves
{ "type": 13, "id": "3WWDMfPow81FkoH7UPPg55BWBydrAQnEpmwjBAKnMMs2", "fee": 10000000, "feeAssetId": null, "timestamp": 1654319875940, "version": 2, "chainId": 84, "sender": "3N9eLqWNqb7jeF383m9qsXEBqpp8qfQmfbx", "senderPublicKey": "5cWdpE4X7mfNkLmxJ389ws6qGZof4fwydqMcqPexhJ7w", "proofs": [ "2GPPxik9Yv7RKUdRSASUJfNxsLzQiFQVcDBrAEmnrgSZeep4YXgVfKLvpHDyywK6EZuQdt2AUoQ5LpxUgVwFQxCR" ], "script": "base64:AAIFAAAAAAAAAEoIAhIHCgUICAgBARIDCgEIEgMKAQgSAwoBCBIDCgEIEgMKAQgSAwoBCBIDCgEIEgMKAQgSBAoCCAkSAwoBCBIFCgMBCAESAwoBCAAAACMAAAAADGxvY2tpbmdTdG9yZQUAAAAEdGhpcwAAAAAMc3Rha2luZ1N0b3JlAgAAAAhfUmVzZXJ2ZQAAAAARbWluaW11bUxvY2tBbW91bnQCAAAADl9NaW5Mb2NrQW1vdW50AAAAABFtYXhpbXVtTG9ja0Ftb3VudAIAAAAOX01heExvY2tBbW91bnQAAAAACWFzc2V0TGlzdAUAAAADbmlsAAAAABF1bmxvY2tFbGlnaWJpbGl0eQIAAAAcX0VsaWdpYmxlX3RvX3VubG9ja19hdF9ibG9jawAAAAAMbG9ja2VkQW1vdW50AgAAAA5fQW1vdW50X2xvY2tlZAAAAAALbG9ja2VkQXNzZXQCAAAADV9Bc3NldF9sb2NrZWQAAAAABHVzZXICAAAABV9Vc2VyAAAAAApBUFlfQW1vdW50AgAAAAtfQVBZX2Ftb3VudAAAAAARdG90YWxMb2NrZWRBTW91bnQCAAAAFF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ck5hdGl2ZSgxMDYyKQAAAAEFAAAABnVzZXJJZAUAAAANdUxvY2tlZEFtb3VudAkAAZsAAAABBQAAAAZ1QXNzZXQJAARMAAAAAgkBAAAADEJvb2xlYW5FbnRyeQAAAAIFAAAAEnVBbHJlYWR5Q2xhaW1lZEtleQYFAAAAA25pbAkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAACAAAAAQIAAAAkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgAAAAApm7rI", "height": 2081177, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3deVgrG3KMRJogWR3AzhGSgfayWS75pvBwBooXshataT Next: 6kiaSBn4H2gSoA9wMLfRiR8NQzx68UrgKSv6YvJcge2G Diff:
Old | New | Differences | |
---|---|---|---|
117 | 117 | ||
118 | 118 | ||
119 | 119 | func Q (R) = { | |
120 | - | let S = | |
120 | + | let S = toBase58String(R.caller.bytes) | |
121 | 121 | let T = (o + toString(R.caller)) | |
122 | - | if (if ((S != | |
122 | + | if (if ((S != valueOrErrorMessage(v(o), "not an admin"))) | |
123 | 123 | then true | |
124 | - | else (S != | |
124 | + | else (S != valueOrErrorMessage(v(T), "not an admin"))) | |
125 | 125 | then throw("unauthorized") | |
126 | 126 | else true | |
127 | 127 | } | |
331 | 331 | if ((aG == aG)) | |
332 | 332 | then { | |
333 | 333 | let aH = aD | |
334 | - | let aI = | |
334 | + | let aI = toBase58String(R.caller.bytes) | |
335 | 335 | let aJ = R.payments[0].amount | |
336 | 336 | let aK = B(t((Y + c)), "internal error: minimum stacking amount not specified") | |
337 | 337 | let aL = B(t((Y + d)), "internal error: maximum staking amount not specified") |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = this | |
5 | 5 | ||
6 | 6 | let b = "_Reserve" | |
7 | 7 | ||
8 | 8 | let c = "_MinLockAmount" | |
9 | 9 | ||
10 | 10 | let d = "_MaxLockAmount" | |
11 | 11 | ||
12 | 12 | let e = nil | |
13 | 13 | ||
14 | 14 | let f = "_Eligible_to_unlock_at_block" | |
15 | 15 | ||
16 | 16 | let g = "_Amount_locked" | |
17 | 17 | ||
18 | 18 | let h = "_Asset_locked" | |
19 | 19 | ||
20 | 20 | let i = "_User" | |
21 | 21 | ||
22 | 22 | let j = "_APY_amount" | |
23 | 23 | ||
24 | 24 | let k = "_Total_Locked_Amount" | |
25 | 25 | ||
26 | 26 | let l = "_Days_locked" | |
27 | 27 | ||
28 | 28 | let m = "_Entry_Index" | |
29 | 29 | ||
30 | 30 | let n = "_Already_Claimed" | |
31 | 31 | ||
32 | 32 | let o = "admin_" | |
33 | 33 | ||
34 | 34 | let p = 1440 | |
35 | 35 | ||
36 | 36 | let q = 30 | |
37 | 37 | ||
38 | 38 | let r = 60 | |
39 | 39 | ||
40 | 40 | let s = 90 | |
41 | 41 | ||
42 | 42 | func t (u) = getInteger(this, u) | |
43 | 43 | ||
44 | 44 | ||
45 | 45 | func v (u) = getString(this, u) | |
46 | 46 | ||
47 | 47 | ||
48 | 48 | func w (u) = value(getInteger(this, u)) | |
49 | 49 | ||
50 | 50 | ||
51 | 51 | func x (u) = value(getString(this, u)) | |
52 | 52 | ||
53 | 53 | ||
54 | 54 | func y (z,A) = if (z) | |
55 | 55 | then throw(A) | |
56 | 56 | else true | |
57 | 57 | ||
58 | 58 | ||
59 | 59 | func B (C,A) = { | |
60 | 60 | let D = C | |
61 | 61 | if ($isInstanceOf(D, "Int")) | |
62 | 62 | then { | |
63 | 63 | let C = D | |
64 | 64 | C | |
65 | 65 | } | |
66 | 66 | else throw(A) | |
67 | 67 | } | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | func E (C,A) = { | |
71 | 71 | let D = C | |
72 | 72 | if ($isInstanceOf(D, "String")) | |
73 | 73 | then { | |
74 | 74 | let C = D | |
75 | 75 | C | |
76 | 76 | } | |
77 | 77 | else throw(A) | |
78 | 78 | } | |
79 | 79 | ||
80 | 80 | ||
81 | 81 | func F (u,G) = if ((0 > G)) | |
82 | 82 | then throw(((("writing negative value " + toString(G)) + " for key ") + u)) | |
83 | 83 | else IntegerEntry(u, G) | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func H (u,G) = if ((" " == G)) | |
87 | 87 | then throw(("writing an empty string " + G)) | |
88 | 88 | else StringEntry(u, G) | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | func I (J) = if (if (if ((J != q)) | |
92 | 92 | then true | |
93 | 93 | else (J != r)) | |
94 | 94 | then true | |
95 | 95 | else (J != s)) | |
96 | 96 | then throw("invalid Lock Period") | |
97 | 97 | else (((J + 1) * p) + height) | |
98 | 98 | ||
99 | 99 | ||
100 | 100 | func K (L) = if ((0 >= L)) | |
101 | 101 | then 0 | |
102 | 102 | else { | |
103 | 103 | let M = pow(10, 0, 3, 0, 0, CEILING) | |
104 | 104 | let N = fraction(L, M, p) | |
105 | 105 | N | |
106 | 106 | } | |
107 | 107 | ||
108 | 108 | ||
109 | 109 | func O (u,G) = if (!(isDefined(v(u)))) | |
110 | 110 | then H(u, G) | |
111 | 111 | else throw(("already initialized: " + u)) | |
112 | 112 | ||
113 | 113 | ||
114 | 114 | func P (u,G) = if (!(isDefined(v(u)))) | |
115 | 115 | then F(u, G) | |
116 | 116 | else throw(("already initialized: " + u)) | |
117 | 117 | ||
118 | 118 | ||
119 | 119 | func Q (R) = { | |
120 | - | let S = | |
120 | + | let S = toBase58String(R.caller.bytes) | |
121 | 121 | let T = (o + toString(R.caller)) | |
122 | - | if (if ((S != | |
122 | + | if (if ((S != valueOrErrorMessage(v(o), "not an admin"))) | |
123 | 123 | then true | |
124 | - | else (S != | |
124 | + | else (S != valueOrErrorMessage(v(T), "not an admin"))) | |
125 | 125 | then throw("unauthorized") | |
126 | 126 | else true | |
127 | 127 | } | |
128 | 128 | ||
129 | 129 | ||
130 | 130 | func U (u,V) = { | |
131 | 131 | let D = V | |
132 | 132 | if ($isInstanceOf(D, "String")) | |
133 | 133 | then { | |
134 | 134 | let V = D | |
135 | 135 | O(u, V) | |
136 | 136 | } | |
137 | 137 | else if ($isInstanceOf(D, "Int")) | |
138 | 138 | then { | |
139 | 139 | let V = D | |
140 | 140 | P(u, V) | |
141 | 141 | } | |
142 | 142 | else throw("unsupported config type") | |
143 | 143 | } | |
144 | 144 | ||
145 | 145 | ||
146 | 146 | func W (u) = { | |
147 | 147 | let X = t(u) | |
148 | 148 | if (isDefined(X)) | |
149 | 149 | then (value(X) + 1) | |
150 | 150 | else 0 | |
151 | 151 | } | |
152 | 152 | ||
153 | 153 | ||
154 | 154 | @Callable(R) | |
155 | 155 | func addAsset (Y,Z,aa,ab,ac) = { | |
156 | 156 | let ad = Q(R) | |
157 | 157 | if ((ad == ad)) | |
158 | 158 | then { | |
159 | 159 | let ae = (Y + b) | |
160 | 160 | let af = (Y + c) | |
161 | 161 | let ag = (Y + d) | |
162 | 162 | let ah = if ((ac > ab)) | |
163 | 163 | then [P(af, ab), P(ag, ac)] | |
164 | 164 | else [P(af, ac), P(ag, ab)] | |
165 | 165 | ([O(Y, Z), O(ae, aa)] ++ ah) | |
166 | 166 | } | |
167 | 167 | else throw("Strict value is not equal to itself.") | |
168 | 168 | } | |
169 | 169 | ||
170 | 170 | ||
171 | 171 | ||
172 | 172 | @Callable(R) | |
173 | 173 | func deleteAsset (Y) = { | |
174 | 174 | let ad = Q(R) | |
175 | 175 | if ((ad == ad)) | |
176 | 176 | then { | |
177 | 177 | let ai = E(v(Y), (("asset with ticker " + Y) + "not found")) | |
178 | 178 | if ((ai == ai)) | |
179 | 179 | then [DeleteEntry(Y), DeleteEntry((Y + c)), DeleteEntry((Y + d)), DeleteEntry((Y + b))] | |
180 | 180 | else throw("Strict value is not equal to itself.") | |
181 | 181 | } | |
182 | 182 | else throw("Strict value is not equal to itself.") | |
183 | 183 | } | |
184 | 184 | ||
185 | 185 | ||
186 | 186 | ||
187 | 187 | @Callable(R) | |
188 | 188 | func getAssetIdByTicker (Y) = { | |
189 | 189 | let ad = Q(R) | |
190 | 190 | if ((ad == ad)) | |
191 | 191 | then { | |
192 | 192 | let aj = E(v(Y), "asset not found") | |
193 | 193 | $Tuple2(nil, aj) | |
194 | 194 | } | |
195 | 195 | else throw("Strict value is not equal to itself.") | |
196 | 196 | } | |
197 | 197 | ||
198 | 198 | ||
199 | 199 | ||
200 | 200 | @Callable(R) | |
201 | 201 | func init (S) = { | |
202 | 202 | let ak = valueOrErrorMessage(addressFromString(S), "invalid address") | |
203 | 203 | [O(o, toString(ak))] | |
204 | 204 | } | |
205 | 205 | ||
206 | 206 | ||
207 | 207 | ||
208 | 208 | @Callable(R) | |
209 | 209 | func _deleteEntry (u) = { | |
210 | 210 | let ad = Q(R) | |
211 | 211 | if ((ad == ad)) | |
212 | 212 | then [DeleteEntry(u)] | |
213 | 213 | else throw("Strict value is not equal to itself.") | |
214 | 214 | } | |
215 | 215 | ||
216 | 216 | ||
217 | 217 | ||
218 | 218 | @Callable(R) | |
219 | 219 | func addAdmin (S) = { | |
220 | 220 | let ad = Q(R) | |
221 | 221 | if ((ad == ad)) | |
222 | 222 | then { | |
223 | 223 | let ak = valueOrErrorMessage(addressFromString(S), "invalid address") | |
224 | 224 | let al = (o + toString(ak)) | |
225 | 225 | [O(al, S)] | |
226 | 226 | } | |
227 | 227 | else throw("Strict value is not equal to itself.") | |
228 | 228 | } | |
229 | 229 | ||
230 | 230 | ||
231 | 231 | ||
232 | 232 | @Callable(R) | |
233 | 233 | func changeMainAdmin (am) = { | |
234 | 234 | let an = Q(R) | |
235 | 235 | if ((an == an)) | |
236 | 236 | then { | |
237 | 237 | let ak = valueOrErrorMessage(addressFromString(am), "invalid address") | |
238 | 238 | let ao = DeleteEntry(o) | |
239 | 239 | if ((ao == ao)) | |
240 | 240 | then [O(o, toString(ak))] | |
241 | 241 | else throw("Strict value is not equal to itself.") | |
242 | 242 | } | |
243 | 243 | else throw("Strict value is not equal to itself.") | |
244 | 244 | } | |
245 | 245 | ||
246 | 246 | ||
247 | 247 | ||
248 | 248 | @Callable(R) | |
249 | 249 | func updateOtherAdminAddress (am) = { | |
250 | 250 | let an = Q(R) | |
251 | 251 | if ((an == an)) | |
252 | 252 | then { | |
253 | 253 | let ak = valueOrErrorMessage(addressFromString(am), "invalid address") | |
254 | 254 | let ap = toString(R.caller) | |
255 | 255 | let aq = (o + ap) | |
256 | 256 | let ar = E(v(aq), "no previous address found") | |
257 | 257 | if ((ar == ar)) | |
258 | 258 | then { | |
259 | 259 | let as = DeleteEntry(aq) | |
260 | 260 | if ((as == as)) | |
261 | 261 | then [O(aq, toString(ak))] | |
262 | 262 | else throw("Strict value is not equal to itself.") | |
263 | 263 | } | |
264 | 264 | else throw("Strict value is not equal to itself.") | |
265 | 265 | } | |
266 | 266 | else throw("Strict value is not equal to itself.") | |
267 | 267 | } | |
268 | 268 | ||
269 | 269 | ||
270 | 270 | ||
271 | 271 | @Callable(R) | |
272 | 272 | func removeOtherAdmin (at) = { | |
273 | 273 | let an = Q(R) | |
274 | 274 | if ((an == an)) | |
275 | 275 | then { | |
276 | 276 | let ak = valueOrErrorMessage(addressFromString(at), "invalid address") | |
277 | 277 | let au = (o + toString(ak)) | |
278 | 278 | let av = DeleteEntry(au) | |
279 | 279 | if ((av == av)) | |
280 | 280 | then nil | |
281 | 281 | else throw("Strict value is not equal to itself.") | |
282 | 282 | } | |
283 | 283 | else throw("Strict value is not equal to itself.") | |
284 | 284 | } | |
285 | 285 | ||
286 | 286 | ||
287 | 287 | ||
288 | 288 | @Callable(R) | |
289 | 289 | func updateConfigValue (u,V) = { | |
290 | 290 | let an = Q(R) | |
291 | 291 | if ((an == an)) | |
292 | 292 | then { | |
293 | 293 | let ao = DeleteEntry(u) | |
294 | 294 | if ((ao == ao)) | |
295 | 295 | then [U(u, V)] | |
296 | 296 | else throw("Strict value is not equal to itself.") | |
297 | 297 | } | |
298 | 298 | else throw("Strict value is not equal to itself.") | |
299 | 299 | } | |
300 | 300 | ||
301 | 301 | ||
302 | 302 | ||
303 | 303 | @Callable(R) | |
304 | 304 | func getDaysLeftToClaim (aw) = { | |
305 | 305 | let ax = Q(R) | |
306 | 306 | if ((ax == ax)) | |
307 | 307 | then { | |
308 | 308 | let ay = valueOrErrorMessage(addressFromString(aw), "invalid address") | |
309 | 309 | if ((ay == ay)) | |
310 | 310 | then { | |
311 | 311 | let az = ("_" + toString(B(t((aw + m)), ("no entry found for " + aw)))) | |
312 | 312 | let aA = ((aw + az) + f) | |
313 | 313 | let aB = B(t(aA), "internal error") | |
314 | 314 | let aC = I((height - aB)) | |
315 | 315 | $Tuple2(nil, aC) | |
316 | 316 | } | |
317 | 317 | else throw("Strict value is not equal to itself.") | |
318 | 318 | } | |
319 | 319 | else throw("Strict value is not equal to itself.") | |
320 | 320 | } | |
321 | 321 | ||
322 | 322 | ||
323 | 323 | ||
324 | 324 | @Callable(R) | |
325 | 325 | func Lock (aD,Y,aE) = { | |
326 | 326 | let ay = y((1 != size(R.payments)), "attach amount you want to lock") | |
327 | 327 | if ((ay == ay)) | |
328 | 328 | then { | |
329 | 329 | let aF = toBase58String(value(R.payments[0].assetId)) | |
330 | 330 | let aG = y((v(Y) != aF), "asset not supported") | |
331 | 331 | if ((aG == aG)) | |
332 | 332 | then { | |
333 | 333 | let aH = aD | |
334 | - | let aI = | |
334 | + | let aI = toBase58String(R.caller.bytes) | |
335 | 335 | let aJ = R.payments[0].amount | |
336 | 336 | let aK = B(t((Y + c)), "internal error: minimum stacking amount not specified") | |
337 | 337 | let aL = B(t((Y + d)), "internal error: maximum staking amount not specified") | |
338 | 338 | let aM = y(if ((aK > aJ)) | |
339 | 339 | then true | |
340 | 340 | else (aJ > aL), "staking amount is out of range") | |
341 | 341 | if ((aM == aM)) | |
342 | 342 | then { | |
343 | 343 | let aN = (aI + k) | |
344 | 344 | let aO = if (!(isDefined(t(aN)))) | |
345 | 345 | then 0 | |
346 | 346 | else (aJ + value(t(aN))) | |
347 | 347 | let aP = y((aO > aL), "you have maxed out your quota") | |
348 | 348 | if ((aP == aP)) | |
349 | 349 | then { | |
350 | 350 | let az = ((aI + Y) + m) | |
351 | 351 | let aQ = W(az) | |
352 | 352 | let aR = ((("_" + Y) + "_") + toString(aQ)) | |
353 | 353 | let aS = ((aI + aR) + i) | |
354 | 354 | let aT = ((aI + aR) + h) | |
355 | 355 | let aU = ((aI + aR) + l) | |
356 | 356 | let aV = ((aI + aR) + g) | |
357 | 357 | let aW = ((aI + aR) + j) | |
358 | 358 | let aA = ((aI + aR) + f) | |
359 | 359 | let aX = ((aI + aR) + n) | |
360 | 360 | [P(az, aQ), O(aS, aI), O(aT, aF), P(aU, aH), P(aV, R.payments[0].amount), P(aN, aO), P(aA, I(aD)), P(aW, aE), BooleanEntry(aX, false)] | |
361 | 361 | } | |
362 | 362 | else throw("Strict value is not equal to itself.") | |
363 | 363 | } | |
364 | 364 | else throw("Strict value is not equal to itself.") | |
365 | 365 | } | |
366 | 366 | else throw("Strict value is not equal to itself.") | |
367 | 367 | } | |
368 | 368 | else throw("Strict value is not equal to itself.") | |
369 | 369 | } | |
370 | 370 | ||
371 | 371 | ||
372 | 372 | ||
373 | 373 | @Callable(R) | |
374 | 374 | func Claim (Y) = { | |
375 | 375 | let aI = toString(R.caller) | |
376 | 376 | let az = ((("_" + Y) + "_") + toString(B(t(((aI + Y) + m)), "no entry found for user"))) | |
377 | 377 | let aY = ((aI + az) + n) | |
378 | 378 | let ax = y((valueOrErrorMessage(getBoolean(aY), "cannot ascertain claimability") == true), (("user + " + aI) + " already claimed")) | |
379 | 379 | if ((ax == ax)) | |
380 | 380 | then { | |
381 | 381 | let aT = x(((aI + az) + h)) | |
382 | 382 | let aV = w(((aI + az) + g)) | |
383 | 383 | let aZ = addressFromStringValue(E(v((Y + b)), "internal error: no reserve found")) | |
384 | 384 | let ba = w(((aI + az) + j)) | |
385 | 385 | let bb = w(((aI + az) + f)) | |
386 | 386 | let L = if ((0 >= (bb - height))) | |
387 | 387 | then 0 | |
388 | 388 | else (bb - height) | |
389 | 389 | let bc = K(L) | |
390 | 390 | let ay = y((bb > height), (toString(bc) + "/1000 days left to claim")) | |
391 | 391 | if ((ay == ay)) | |
392 | 392 | then { | |
393 | 393 | let bd = invoke(aZ, "transferInterest", [aI, ba, toBytes(aT)], nil) | |
394 | 394 | if ((bd == bd)) | |
395 | 395 | then [ScriptTransfer(addressFromStringValue(aI), aV, toBytes(aT)), BooleanEntry(aY, true)] | |
396 | 396 | else throw("Strict value is not equal to itself.") | |
397 | 397 | } | |
398 | 398 | else throw("Strict value is not equal to itself.") | |
399 | 399 | } | |
400 | 400 | else throw("Strict value is not equal to itself.") | |
401 | 401 | } | |
402 | 402 | ||
403 | 403 |
github/deemru/w8io/026f985 50.49 ms ◑