tx · CHN1X3y47uEBa9hXivL1KLRRac73pdrC68HiFXmp9G9m 3N9eLqWNqb7jeF383m9qsXEBqpp8qfQmfbx: -0.10000000 Waves 2022.06.04 02:25 [2080823] smart account 3N9eLqWNqb7jeF383m9qsXEBqpp8qfQmfbx > SELF 0.00000000 Waves
{ "type": 13, "id": "CHN1X3y47uEBa9hXivL1KLRRac73pdrC68HiFXmp9G9m", "fee": 10000000, "feeAssetId": null, "timestamp": 1654298817827, "version": 2, "chainId": 84, "sender": "3N9eLqWNqb7jeF383m9qsXEBqpp8qfQmfbx", "senderPublicKey": "5cWdpE4X7mfNkLmxJ389ws6qGZof4fwydqMcqPexhJ7w", "proofs": [ "P8X15mTkDePHzFVkE4Dfmmid6ooVvDkTtChsVU9cEnDqASKsdDyCbPepmYssovMQrAKiTxvKtwQinHKCvJECxwd" ], "script": "base64:AAIFAAAAAAAAAEoIAhIHCgUICAgBARIDCgEIEgMKAQgSAwoBCBIDCgEIEgMKAQgSAwoBCBIDCgEIEgMKAQgSBAoCCAkSAwoBCBIFCgMBCAESAwoBCAAAACMAAAAADGxvY2tpbmdTdG9yZQUAAAAEdGhpcwAAAAAMc3Rha2luZ1N0b3JlAgAAAAhfUmVzZXJ2ZQAAAAARbWluaW11bUxvY2tBbW91bnQCAAAADl9NaW5Mb2NrQW1vdW50AAAAABFtYXhpbXVtTG9ja0Ftb3VudAIAAAAOX01heExvY2tBbW91bnQAAAAACWFzc2V0TGlzdAUAAAADbmlsAAAAABF1bmxvY2tFbGlnaWJpbGl0eQIAAAAcX0VsaWdpYmxlX3RvX3VubG9ja19hdF9ibG9jawAAAAAMbG9ja2VkQW1vdW50AgAAAA5fQW1vdW50X2xvY2tlZAAAAAALbG9ja2VkQXNzZXQCAAAADV9Bc3NldF9sb2NrZWQAAAAABHVzZXICAAAABV9Vc2VyAAAAAApBUFlfQW1vdW50AgAAAAtfQVBZX2Ftb3VudAAAAAARdG90YWxMb2NrZWRBTW91bnQCAAAAFF9Ub3RhbF9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lnaHQAAAAAAAAAAAAJAABlAAAAAgUAAAAGcGVyaW9kBQAAAAZoZWlnaHQEAAAACGRheXNMZWZ0CQEAAAAMYmxvY2tzVG9EYXlzAAAAAQUAAAAKYmxvY2tzTGVmdAQAAAAGY2hlY2sxCQEAAAAHdGhyb3dJZgAAAAIJAABmAAAAAgUAAAAGcGVyaW9kBQAAAAZoZWlnaHQJAAEsAAAAAgkAAaQAAAABBQAAAAhkYXlzTGVmdAIAAAAYLzEwMDAgZGF5cyBsZWZ0IHRvIGNsYWltAwkAAAAAAAACBQAAAAZjaGVjazEFAAAABmNoZWNrMQQAAAARdHJhbnNmZXJBUFlBbW91bnQJAAP8AAAABAUAAAAOc3Rha2luZ1Jlc2VydmUCAAAAEHRyYW5zZmVySW50ZXJlc3QJAARMAAAAAgUAAAAGdXNlcklkCQAETAAAAAIFAAAACUFQWUFNb3VudAkABEwAAAACCQABmwAAAAEFAAAABnVBc3NldAUAAAADbmlsBQAAAANuaWwDCQAAAAAAAAIFAAAAEXRyYW5zZmVyQVBZQW1vdW50BQAAABF0cmFuc2ZlckFQWUFtb3VudAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCQEAAAARQGV4dHJOYXRpdmUoMTA2MikAAAABBQAAAAZ1c2VySWQFAAAADXVMb2NrZWRBbW91bnQJAAGbAAAAAQUAAAAGdUFzc2V0CQAETAAAAAIJAQAAAAxCb29sZWFuRW50cnkAAAACBQAAABJ1QWxyZWFkeUNsYWltZWRLZXkGBQAAAANuaWwJAAACAAAAAQIAAAAkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4AAAAACso6/A==", "height": 2080823, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2DkezzTDzH2P9UL8sPnEbQTyoHqFuhRXKNe1j34WqXM6 Next: ATY5EkrWutknbRSqoq1rbneebPJ6p1mZRMLDHJde9jPT Diff:
Old | New | Differences | |
---|---|---|---|
119 | 119 | func Q (R) = { | |
120 | 120 | let S = toString(R.caller) | |
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 | } | |
167 | 167 | ||
168 | 168 | ||
169 | 169 | @Callable(R) | |
170 | + | func deleteAsset (Y) = { | |
171 | + | let ad = Q(R) | |
172 | + | if ((ad == ad)) | |
173 | + | then { | |
174 | + | let ah = E(v(Y), (("asset with ticker " + Y) + "not found")) | |
175 | + | if ((ah == ah)) | |
176 | + | then [DeleteEntry(Y), DeleteEntry((Y + c)), DeleteEntry((Y + d)), DeleteEntry((Y + b))] | |
177 | + | else throw("Strict value is not equal to itself.") | |
178 | + | } | |
179 | + | else throw("Strict value is not equal to itself.") | |
180 | + | } | |
181 | + | ||
182 | + | ||
183 | + | ||
184 | + | @Callable(R) | |
170 | 185 | func getAssetIdByTicker (Y) = { | |
171 | 186 | let ad = Q(R) | |
172 | 187 | if ((ad == ad)) | |
173 | 188 | then { | |
174 | - | let | |
175 | - | $Tuple2(nil, | |
189 | + | let ai = E(v(Y), "asset not found") | |
190 | + | $Tuple2(nil, ai) | |
176 | 191 | } | |
177 | 192 | else throw("Strict value is not equal to itself.") | |
178 | 193 | } | |
181 | 196 | ||
182 | 197 | @Callable(R) | |
183 | 198 | func init (S) = { | |
184 | - | let ai = valueOrErrorMessage(addressFromString(S), "invalid address") | |
185 | - | [O(o, toString(ai))] | |
199 | + | let aj = valueOrErrorMessage(addressFromString(S), "invalid address") | |
200 | + | [O(o, toString(aj))] | |
201 | + | } | |
202 | + | ||
203 | + | ||
204 | + | ||
205 | + | @Callable(R) | |
206 | + | func _deleteEntry (u) = { | |
207 | + | let ad = Q(R) | |
208 | + | if ((ad == ad)) | |
209 | + | then [DeleteEntry(u)] | |
210 | + | else throw("Strict value is not equal to itself.") | |
186 | 211 | } | |
187 | 212 | ||
188 | 213 | ||
192 | 217 | let ad = Q(R) | |
193 | 218 | if ((ad == ad)) | |
194 | 219 | then { | |
195 | - | let | |
196 | - | let | |
197 | - | [O( | |
220 | + | let aj = valueOrErrorMessage(addressFromString(S), "invalid address") | |
221 | + | let ak = (o + toString(aj)) | |
222 | + | [O(ak, S)] | |
198 | 223 | } | |
199 | 224 | else throw("Strict value is not equal to itself.") | |
200 | 225 | } | |
202 | 227 | ||
203 | 228 | ||
204 | 229 | @Callable(R) | |
205 | - | func changeMainAdmin ( | |
206 | - | let | |
207 | - | if (( | |
230 | + | func changeMainAdmin (al) = { | |
231 | + | let am = Q(R) | |
232 | + | if ((am == am)) | |
208 | 233 | then { | |
209 | - | let | |
210 | - | let | |
211 | - | if (( | |
212 | - | then [O(o, toString( | |
234 | + | let aj = valueOrErrorMessage(addressFromString(al), "invalid address") | |
235 | + | let an = DeleteEntry(o) | |
236 | + | if ((an == an)) | |
237 | + | then [O(o, toString(aj))] | |
213 | 238 | else throw("Strict value is not equal to itself.") | |
214 | 239 | } | |
215 | 240 | else throw("Strict value is not equal to itself.") | |
218 | 243 | ||
219 | 244 | ||
220 | 245 | @Callable(R) | |
221 | - | func updateOtherAdminAddress ( | |
222 | - | let | |
223 | - | if (( | |
246 | + | func updateOtherAdminAddress (al) = { | |
247 | + | let am = Q(R) | |
248 | + | if ((am == am)) | |
224 | 249 | then { | |
225 | - | let | |
226 | - | let | |
227 | - | let | |
228 | - | let | |
229 | - | if (( | |
250 | + | let aj = valueOrErrorMessage(addressFromString(al), "invalid address") | |
251 | + | let ao = toString(R.caller) | |
252 | + | let ap = (o + ao) | |
253 | + | let aq = E(v(ap), "no previous address found") | |
254 | + | if ((aq == aq)) | |
230 | 255 | then { | |
231 | - | let | |
232 | - | if (( | |
233 | - | then [O( | |
256 | + | let ar = DeleteEntry(ap) | |
257 | + | if ((ar == ar)) | |
258 | + | then [O(ap, toString(aj))] | |
234 | 259 | else throw("Strict value is not equal to itself.") | |
235 | 260 | } | |
236 | 261 | else throw("Strict value is not equal to itself.") | |
241 | 266 | ||
242 | 267 | ||
243 | 268 | @Callable(R) | |
244 | - | func removeOtherAdmin ( | |
245 | - | let | |
246 | - | if (( | |
269 | + | func removeOtherAdmin (as) = { | |
270 | + | let am = Q(R) | |
271 | + | if ((am == am)) | |
247 | 272 | then { | |
248 | - | let | |
249 | - | let | |
250 | - | let | |
251 | - | if (( | |
273 | + | let aj = valueOrErrorMessage(addressFromString(as), "invalid address") | |
274 | + | let at = (o + toString(aj)) | |
275 | + | let au = DeleteEntry(at) | |
276 | + | if ((au == au)) | |
252 | 277 | then nil | |
253 | 278 | else throw("Strict value is not equal to itself.") | |
254 | 279 | } | |
259 | 284 | ||
260 | 285 | @Callable(R) | |
261 | 286 | func updateConfigValue (u,V) = { | |
262 | - | let | |
263 | - | if (( | |
287 | + | let am = Q(R) | |
288 | + | if ((am == am)) | |
264 | 289 | then { | |
265 | - | let | |
266 | - | if (( | |
290 | + | let an = DeleteEntry(u) | |
291 | + | if ((an == an)) | |
267 | 292 | then [U(u, V)] | |
268 | 293 | else throw("Strict value is not equal to itself.") | |
269 | 294 | } | |
273 | 298 | ||
274 | 299 | ||
275 | 300 | @Callable(R) | |
276 | - | func getDaysLeftToClaim ( | |
277 | - | let | |
278 | - | if (( | |
301 | + | func getDaysLeftToClaim (av) = { | |
302 | + | let aw = Q(R) | |
303 | + | if ((aw == aw)) | |
279 | 304 | then { | |
280 | - | let | |
281 | - | if (( | |
305 | + | let ax = valueOrErrorMessage(addressFromString(av), "invalid address") | |
306 | + | if ((ax == ax)) | |
282 | 307 | then { | |
283 | - | let | |
284 | - | let | |
285 | - | let | |
286 | - | let | |
287 | - | $Tuple2(nil, | |
308 | + | let ay = ("_" + toString(B(t((av + m)), ("no entry found for " + av)))) | |
309 | + | let az = ((av + ay) + f) | |
310 | + | let aA = B(t(az), "internal error") | |
311 | + | let aB = I((height - aA)) | |
312 | + | $Tuple2(nil, aB) | |
288 | 313 | } | |
289 | 314 | else throw("Strict value is not equal to itself.") | |
290 | 315 | } | |
294 | 319 | ||
295 | 320 | ||
296 | 321 | @Callable(R) | |
297 | - | func Lock ( | |
298 | - | let | |
299 | - | if (( | |
322 | + | func Lock (aC,Y,aD) = { | |
323 | + | let ax = y((1 != size(R.payments)), "attach amount you want to lock") | |
324 | + | if ((ax == ax)) | |
300 | 325 | then { | |
301 | - | let | |
302 | - | let | |
303 | - | if (( | |
326 | + | let aE = toBase58String(value(R.payments[0].assetId)) | |
327 | + | let aF = y((v(Y) != aE), "asset not supported") | |
328 | + | if ((aF == aF)) | |
304 | 329 | then { | |
305 | - | let | |
306 | - | let | |
307 | - | let | |
308 | - | let | |
309 | - | let | |
310 | - | let | |
330 | + | let aG = aC | |
331 | + | let aH = toString(R.caller) | |
332 | + | let aI = R.payments[0].amount | |
333 | + | let aJ = B(t((Y + c)), "internal error: minimum stacking amount not specified") | |
334 | + | let aK = B(t((Y + d)), "internal error: maximum staking amount not specified") | |
335 | + | let aL = y(if ((aJ > aI)) | |
311 | 336 | then true | |
312 | - | else ( | |
313 | - | if (( | |
337 | + | else (aI > aK), "staking amount is out of range") | |
338 | + | if ((aL == aL)) | |
314 | 339 | then { | |
315 | - | let | |
316 | - | let | |
340 | + | let aM = (aH + k) | |
341 | + | let aN = if (!(isDefined(t(aM)))) | |
317 | 342 | then 0 | |
318 | - | else ( | |
319 | - | let | |
320 | - | if (( | |
343 | + | else (aI + value(t(aM))) | |
344 | + | let aO = y((aN > aK), "you have maxed out your quota") | |
345 | + | if ((aO == aO)) | |
321 | 346 | then { | |
322 | - | let | |
323 | - | let | |
324 | - | let | |
325 | - | let | |
326 | - | let | |
327 | - | let | |
328 | - | let | |
329 | - | let | |
330 | - | let | |
331 | - | let | |
332 | - | [P( | |
347 | + | let ay = ((aH + Y) + m) | |
348 | + | let aP = W(ay) | |
349 | + | let aQ = ((("_" + Y) + "_") + toString(aP)) | |
350 | + | let aR = ((aH + aQ) + i) | |
351 | + | let aS = ((aH + aQ) + h) | |
352 | + | let aT = ((aH + aQ) + l) | |
353 | + | let aU = ((aH + aQ) + g) | |
354 | + | let aV = ((aH + aQ) + j) | |
355 | + | let az = ((aH + aQ) + f) | |
356 | + | let aW = ((aH + aQ) + n) | |
357 | + | [P(ay, aP), O(aR, aH), O(aS, aE), P(aT, aG), P(aU, R.payments[0].amount), P(aM, aN), P(az, I(aC)), P(aV, aD), BooleanEntry(aW, false)] | |
333 | 358 | } | |
334 | 359 | else throw("Strict value is not equal to itself.") | |
335 | 360 | } | |
344 | 369 | ||
345 | 370 | @Callable(R) | |
346 | 371 | func Claim (Y) = { | |
347 | - | let | |
348 | - | let | |
349 | - | let | |
350 | - | let | |
351 | - | if (( | |
372 | + | let aH = toString(R.caller) | |
373 | + | let ay = ((("_" + Y) + "_") + toString(B(t(((aH + Y) + m)), "no entry found for user"))) | |
374 | + | let aX = ((aH + ay) + n) | |
375 | + | let aw = y((valueOrErrorMessage(getBoolean(aX), "cannot ascertain claimability") == true), (("user + " + aH) + " already claimed")) | |
376 | + | if ((aw == aw)) | |
352 | 377 | then { | |
353 | - | let | |
354 | - | let | |
355 | - | let | |
356 | - | let | |
357 | - | let | |
358 | - | let L = if ((0 >= ( | |
378 | + | let aS = x(((aH + ay) + h)) | |
379 | + | let aU = w(((aH + ay) + g)) | |
380 | + | let aY = addressFromStringValue(E(v((Y + b)), "internal error: no reserve found")) | |
381 | + | let aZ = w(((aH + ay) + j)) | |
382 | + | let ba = w(((aH + ay) + f)) | |
383 | + | let L = if ((0 >= (ba - height))) | |
359 | 384 | then 0 | |
360 | - | else ( | |
361 | - | let | |
362 | - | let | |
363 | - | if (( | |
385 | + | else (ba - height) | |
386 | + | let bb = K(L) | |
387 | + | let ax = y((ba > height), (toString(bb) + "/1000 days left to claim")) | |
388 | + | if ((ax == ax)) | |
364 | 389 | then { | |
365 | - | let | |
366 | - | if (( | |
367 | - | then [ScriptTransfer(addressFromStringValue( | |
390 | + | let bc = invoke(aY, "transferInterest", [aH, aZ, toBytes(aS)], nil) | |
391 | + | if ((bc == bc)) | |
392 | + | then [ScriptTransfer(addressFromStringValue(aH), aU, toBytes(aS)), BooleanEntry(aX, true)] | |
368 | 393 | else throw("Strict value is not equal to itself.") | |
369 | 394 | } | |
370 | 395 | else throw("Strict value is not equal to itself.") |
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 | 120 | let S = toString(R.caller) | |
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 | [O(Y, Z), O(ae, aa), P(af, ab), P(ag, ac)] | |
163 | 163 | } | |
164 | 164 | else throw("Strict value is not equal to itself.") | |
165 | 165 | } | |
166 | 166 | ||
167 | 167 | ||
168 | 168 | ||
169 | 169 | @Callable(R) | |
170 | + | func deleteAsset (Y) = { | |
171 | + | let ad = Q(R) | |
172 | + | if ((ad == ad)) | |
173 | + | then { | |
174 | + | let ah = E(v(Y), (("asset with ticker " + Y) + "not found")) | |
175 | + | if ((ah == ah)) | |
176 | + | then [DeleteEntry(Y), DeleteEntry((Y + c)), DeleteEntry((Y + d)), DeleteEntry((Y + b))] | |
177 | + | else throw("Strict value is not equal to itself.") | |
178 | + | } | |
179 | + | else throw("Strict value is not equal to itself.") | |
180 | + | } | |
181 | + | ||
182 | + | ||
183 | + | ||
184 | + | @Callable(R) | |
170 | 185 | func getAssetIdByTicker (Y) = { | |
171 | 186 | let ad = Q(R) | |
172 | 187 | if ((ad == ad)) | |
173 | 188 | then { | |
174 | - | let | |
175 | - | $Tuple2(nil, | |
189 | + | let ai = E(v(Y), "asset not found") | |
190 | + | $Tuple2(nil, ai) | |
176 | 191 | } | |
177 | 192 | else throw("Strict value is not equal to itself.") | |
178 | 193 | } | |
179 | 194 | ||
180 | 195 | ||
181 | 196 | ||
182 | 197 | @Callable(R) | |
183 | 198 | func init (S) = { | |
184 | - | let ai = valueOrErrorMessage(addressFromString(S), "invalid address") | |
185 | - | [O(o, toString(ai))] | |
199 | + | let aj = valueOrErrorMessage(addressFromString(S), "invalid address") | |
200 | + | [O(o, toString(aj))] | |
201 | + | } | |
202 | + | ||
203 | + | ||
204 | + | ||
205 | + | @Callable(R) | |
206 | + | func _deleteEntry (u) = { | |
207 | + | let ad = Q(R) | |
208 | + | if ((ad == ad)) | |
209 | + | then [DeleteEntry(u)] | |
210 | + | else throw("Strict value is not equal to itself.") | |
186 | 211 | } | |
187 | 212 | ||
188 | 213 | ||
189 | 214 | ||
190 | 215 | @Callable(R) | |
191 | 216 | func addAdmin (S) = { | |
192 | 217 | let ad = Q(R) | |
193 | 218 | if ((ad == ad)) | |
194 | 219 | then { | |
195 | - | let | |
196 | - | let | |
197 | - | [O( | |
220 | + | let aj = valueOrErrorMessage(addressFromString(S), "invalid address") | |
221 | + | let ak = (o + toString(aj)) | |
222 | + | [O(ak, S)] | |
198 | 223 | } | |
199 | 224 | else throw("Strict value is not equal to itself.") | |
200 | 225 | } | |
201 | 226 | ||
202 | 227 | ||
203 | 228 | ||
204 | 229 | @Callable(R) | |
205 | - | func changeMainAdmin ( | |
206 | - | let | |
207 | - | if (( | |
230 | + | func changeMainAdmin (al) = { | |
231 | + | let am = Q(R) | |
232 | + | if ((am == am)) | |
208 | 233 | then { | |
209 | - | let | |
210 | - | let | |
211 | - | if (( | |
212 | - | then [O(o, toString( | |
234 | + | let aj = valueOrErrorMessage(addressFromString(al), "invalid address") | |
235 | + | let an = DeleteEntry(o) | |
236 | + | if ((an == an)) | |
237 | + | then [O(o, toString(aj))] | |
213 | 238 | else throw("Strict value is not equal to itself.") | |
214 | 239 | } | |
215 | 240 | else throw("Strict value is not equal to itself.") | |
216 | 241 | } | |
217 | 242 | ||
218 | 243 | ||
219 | 244 | ||
220 | 245 | @Callable(R) | |
221 | - | func updateOtherAdminAddress ( | |
222 | - | let | |
223 | - | if (( | |
246 | + | func updateOtherAdminAddress (al) = { | |
247 | + | let am = Q(R) | |
248 | + | if ((am == am)) | |
224 | 249 | then { | |
225 | - | let | |
226 | - | let | |
227 | - | let | |
228 | - | let | |
229 | - | if (( | |
250 | + | let aj = valueOrErrorMessage(addressFromString(al), "invalid address") | |
251 | + | let ao = toString(R.caller) | |
252 | + | let ap = (o + ao) | |
253 | + | let aq = E(v(ap), "no previous address found") | |
254 | + | if ((aq == aq)) | |
230 | 255 | then { | |
231 | - | let | |
232 | - | if (( | |
233 | - | then [O( | |
256 | + | let ar = DeleteEntry(ap) | |
257 | + | if ((ar == ar)) | |
258 | + | then [O(ap, toString(aj))] | |
234 | 259 | else throw("Strict value is not equal to itself.") | |
235 | 260 | } | |
236 | 261 | else throw("Strict value is not equal to itself.") | |
237 | 262 | } | |
238 | 263 | else throw("Strict value is not equal to itself.") | |
239 | 264 | } | |
240 | 265 | ||
241 | 266 | ||
242 | 267 | ||
243 | 268 | @Callable(R) | |
244 | - | func removeOtherAdmin ( | |
245 | - | let | |
246 | - | if (( | |
269 | + | func removeOtherAdmin (as) = { | |
270 | + | let am = Q(R) | |
271 | + | if ((am == am)) | |
247 | 272 | then { | |
248 | - | let | |
249 | - | let | |
250 | - | let | |
251 | - | if (( | |
273 | + | let aj = valueOrErrorMessage(addressFromString(as), "invalid address") | |
274 | + | let at = (o + toString(aj)) | |
275 | + | let au = DeleteEntry(at) | |
276 | + | if ((au == au)) | |
252 | 277 | then nil | |
253 | 278 | else throw("Strict value is not equal to itself.") | |
254 | 279 | } | |
255 | 280 | else throw("Strict value is not equal to itself.") | |
256 | 281 | } | |
257 | 282 | ||
258 | 283 | ||
259 | 284 | ||
260 | 285 | @Callable(R) | |
261 | 286 | func updateConfigValue (u,V) = { | |
262 | - | let | |
263 | - | if (( | |
287 | + | let am = Q(R) | |
288 | + | if ((am == am)) | |
264 | 289 | then { | |
265 | - | let | |
266 | - | if (( | |
290 | + | let an = DeleteEntry(u) | |
291 | + | if ((an == an)) | |
267 | 292 | then [U(u, V)] | |
268 | 293 | else throw("Strict value is not equal to itself.") | |
269 | 294 | } | |
270 | 295 | else throw("Strict value is not equal to itself.") | |
271 | 296 | } | |
272 | 297 | ||
273 | 298 | ||
274 | 299 | ||
275 | 300 | @Callable(R) | |
276 | - | func getDaysLeftToClaim ( | |
277 | - | let | |
278 | - | if (( | |
301 | + | func getDaysLeftToClaim (av) = { | |
302 | + | let aw = Q(R) | |
303 | + | if ((aw == aw)) | |
279 | 304 | then { | |
280 | - | let | |
281 | - | if (( | |
305 | + | let ax = valueOrErrorMessage(addressFromString(av), "invalid address") | |
306 | + | if ((ax == ax)) | |
282 | 307 | then { | |
283 | - | let | |
284 | - | let | |
285 | - | let | |
286 | - | let | |
287 | - | $Tuple2(nil, | |
308 | + | let ay = ("_" + toString(B(t((av + m)), ("no entry found for " + av)))) | |
309 | + | let az = ((av + ay) + f) | |
310 | + | let aA = B(t(az), "internal error") | |
311 | + | let aB = I((height - aA)) | |
312 | + | $Tuple2(nil, aB) | |
288 | 313 | } | |
289 | 314 | else throw("Strict value is not equal to itself.") | |
290 | 315 | } | |
291 | 316 | else throw("Strict value is not equal to itself.") | |
292 | 317 | } | |
293 | 318 | ||
294 | 319 | ||
295 | 320 | ||
296 | 321 | @Callable(R) | |
297 | - | func Lock ( | |
298 | - | let | |
299 | - | if (( | |
322 | + | func Lock (aC,Y,aD) = { | |
323 | + | let ax = y((1 != size(R.payments)), "attach amount you want to lock") | |
324 | + | if ((ax == ax)) | |
300 | 325 | then { | |
301 | - | let | |
302 | - | let | |
303 | - | if (( | |
326 | + | let aE = toBase58String(value(R.payments[0].assetId)) | |
327 | + | let aF = y((v(Y) != aE), "asset not supported") | |
328 | + | if ((aF == aF)) | |
304 | 329 | then { | |
305 | - | let | |
306 | - | let | |
307 | - | let | |
308 | - | let | |
309 | - | let | |
310 | - | let | |
330 | + | let aG = aC | |
331 | + | let aH = toString(R.caller) | |
332 | + | let aI = R.payments[0].amount | |
333 | + | let aJ = B(t((Y + c)), "internal error: minimum stacking amount not specified") | |
334 | + | let aK = B(t((Y + d)), "internal error: maximum staking amount not specified") | |
335 | + | let aL = y(if ((aJ > aI)) | |
311 | 336 | then true | |
312 | - | else ( | |
313 | - | if (( | |
337 | + | else (aI > aK), "staking amount is out of range") | |
338 | + | if ((aL == aL)) | |
314 | 339 | then { | |
315 | - | let | |
316 | - | let | |
340 | + | let aM = (aH + k) | |
341 | + | let aN = if (!(isDefined(t(aM)))) | |
317 | 342 | then 0 | |
318 | - | else ( | |
319 | - | let | |
320 | - | if (( | |
343 | + | else (aI + value(t(aM))) | |
344 | + | let aO = y((aN > aK), "you have maxed out your quota") | |
345 | + | if ((aO == aO)) | |
321 | 346 | then { | |
322 | - | let | |
323 | - | let | |
324 | - | let | |
325 | - | let | |
326 | - | let | |
327 | - | let | |
328 | - | let | |
329 | - | let | |
330 | - | let | |
331 | - | let | |
332 | - | [P( | |
347 | + | let ay = ((aH + Y) + m) | |
348 | + | let aP = W(ay) | |
349 | + | let aQ = ((("_" + Y) + "_") + toString(aP)) | |
350 | + | let aR = ((aH + aQ) + i) | |
351 | + | let aS = ((aH + aQ) + h) | |
352 | + | let aT = ((aH + aQ) + l) | |
353 | + | let aU = ((aH + aQ) + g) | |
354 | + | let aV = ((aH + aQ) + j) | |
355 | + | let az = ((aH + aQ) + f) | |
356 | + | let aW = ((aH + aQ) + n) | |
357 | + | [P(ay, aP), O(aR, aH), O(aS, aE), P(aT, aG), P(aU, R.payments[0].amount), P(aM, aN), P(az, I(aC)), P(aV, aD), BooleanEntry(aW, false)] | |
333 | 358 | } | |
334 | 359 | else throw("Strict value is not equal to itself.") | |
335 | 360 | } | |
336 | 361 | else throw("Strict value is not equal to itself.") | |
337 | 362 | } | |
338 | 363 | else throw("Strict value is not equal to itself.") | |
339 | 364 | } | |
340 | 365 | else throw("Strict value is not equal to itself.") | |
341 | 366 | } | |
342 | 367 | ||
343 | 368 | ||
344 | 369 | ||
345 | 370 | @Callable(R) | |
346 | 371 | func Claim (Y) = { | |
347 | - | let | |
348 | - | let | |
349 | - | let | |
350 | - | let | |
351 | - | if (( | |
372 | + | let aH = toString(R.caller) | |
373 | + | let ay = ((("_" + Y) + "_") + toString(B(t(((aH + Y) + m)), "no entry found for user"))) | |
374 | + | let aX = ((aH + ay) + n) | |
375 | + | let aw = y((valueOrErrorMessage(getBoolean(aX), "cannot ascertain claimability") == true), (("user + " + aH) + " already claimed")) | |
376 | + | if ((aw == aw)) | |
352 | 377 | then { | |
353 | - | let | |
354 | - | let | |
355 | - | let | |
356 | - | let | |
357 | - | let | |
358 | - | let L = if ((0 >= ( | |
378 | + | let aS = x(((aH + ay) + h)) | |
379 | + | let aU = w(((aH + ay) + g)) | |
380 | + | let aY = addressFromStringValue(E(v((Y + b)), "internal error: no reserve found")) | |
381 | + | let aZ = w(((aH + ay) + j)) | |
382 | + | let ba = w(((aH + ay) + f)) | |
383 | + | let L = if ((0 >= (ba - height))) | |
359 | 384 | then 0 | |
360 | - | else ( | |
361 | - | let | |
362 | - | let | |
363 | - | if (( | |
385 | + | else (ba - height) | |
386 | + | let bb = K(L) | |
387 | + | let ax = y((ba > height), (toString(bb) + "/1000 days left to claim")) | |
388 | + | if ((ax == ax)) | |
364 | 389 | then { | |
365 | - | let | |
366 | - | if (( | |
367 | - | then [ScriptTransfer(addressFromStringValue( | |
390 | + | let bc = invoke(aY, "transferInterest", [aH, aZ, toBytes(aS)], nil) | |
391 | + | if ((bc == bc)) | |
392 | + | then [ScriptTransfer(addressFromStringValue(aH), aU, toBytes(aS)), BooleanEntry(aX, true)] | |
368 | 393 | else throw("Strict value is not equal to itself.") | |
369 | 394 | } | |
370 | 395 | else throw("Strict value is not equal to itself.") | |
371 | 396 | } | |
372 | 397 | else throw("Strict value is not equal to itself.") | |
373 | 398 | } | |
374 | 399 | ||
375 | 400 |
github/deemru/w8io/169f3d6 90.14 ms ◑