tx · FZs5VPGcTnyv84LpHrPYQaKe9kY136SgpvE4rAZqP7xZ

3MwyBKGZcdChEK9Z55HwLn3A2EgwEJJpqC1:  -0.01700000 Waves

2024.01.31 12:25 [2955583] smart account 3MwyBKGZcdChEK9Z55HwLn3A2EgwEJJpqC1 > SELF 0.00000000 Waves

{ "type": 13, "id": "FZs5VPGcTnyv84LpHrPYQaKe9kY136SgpvE4rAZqP7xZ", "fee": 1700000, "feeAssetId": null, "timestamp": 1706693100388, "version": 1, "sender": "3MwyBKGZcdChEK9Z55HwLn3A2EgwEJJpqC1", "senderPublicKey": "7c3qLtcJ7EaPS2JDjXv8MBbd4kpyc6R27wcn5GgvZhur", "proofs": [ "5mFMej3pd3kX5DybTj2eFRktW4JuzDVtduTzF5n31RNjw6DEYawxKQK63Xg1quoXqsfkFSEWDa1kTj8PfZDsbj3x" ], "script": "base64:BgIbCAISBgoECAEBARIDCgEIEgMKAQgSABIDCgEIIQAMY29udHJhY3RGaWxlAhB2ZXN0aW5nX25lby5yaWRlAANTRVACAl9fAAhJRFNfTElTVAkAzAgCAAAJAMwIAgABCQDMCAIAAgkAzAgCAAMJAMwIAgAECQDMCAIABQkAzAgCAAYJAMwIAgAHCQDMCAIACAkAzAgCAAkJAMwIAgAKCQDMCAIACwkAzAgCAAwJAMwIAgANCQDMCAIADgkAzAgCAA8JAMwIAgAQCQDMCAIAEQkAzAgCABIJAMwIAgATCQDMCAIAFAkAzAgCABUJAMwIAgAWCQDMCAIAFwkAzAgCABgJAMwIAgAZCQDMCAIAGgkAzAgCABsJAMwIAgAcCQDMCAIAHQUDbmlsABFNQVhfVkVTVElOR19DT1VOVAkAkAMBBQhJRFNfTElTVAEIdGhyb3dFcnIBA21zZwkAAgEJAKwCAgkArAICBQxjb250cmFjdEZpbGUCAjogBQNtc2cBE2tleU1hbmFnZXJQdWJsaWNLZXkAAhQlc19fbWFuYWdlclB1YmxpY0tleQEWa2V5TWFuYWdlclZhdWx0QWRkcmVzcwACFyVzX19tYW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AwkAAQIFByRtYXRjaDACCkJ5dGVWZWN0b3IEAnBrBQckbWF0Y2gwBQJwawMJAAECBQckbWF0Y2gwAgRVbml0CAUCdHgPc2VuZGVyUHVibGljS2V5CQACAQILTWF0Y2ggZXJyb3IJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAFD3RhcmdldFB1YmxpY0tleZQggMQ=", "chainId": 84, "height": 2955583, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6ufmP5RMMxW3rVNkZsrigp22Mnx2QtAE6Mzr6XPNJWkU Next: 4m7Y4Bh8V7RPdeN2bnQfjioA2RMSkGeVtSyvEAEXRAso Diff:
OldNewDifferences
107107 }
108108
109109
110-func D (E,F,G) = {
110+func D (E,F,G,H) = {
111111 let B = [if ((E >= 0))
112112 then true
113113 else e("vesting amount cannot be negative"), if ((F >= 0))
114114 then true
115115 else e("start block cannot be negative"), if ((G >= 0))
116116 then true
117- else e("lock length cannot be negative")]
117+ else e("lock length cannot be negative"), if ((H >= 0))
118+ then true
119+ else e("total claimed cannot be negative")]
118120 if ((B == B))
119- then makeString(["%d%d%d", toString(E), toString(F), toString(G)], b)
121+ then makeString(["%d%d%d%d", toString(E), toString(F), toString(G), toString(H)], b)
120122 else throw("Strict value is not equal to itself.")
121123 }
122124
123125
124-func H (z,A) = {
126+func I (z,A) = {
125127 let j = getString(this, y(z, A))
126128 if ($isInstanceOf(j, "String"))
127129 then {
128- let I = j
129- let J = split(I, b)
130- let E = parseIntValue(J[1])
131- let F = parseIntValue(J[2])
132- let G = parseIntValue(J[3])
133- $Tuple3(E, F, G)
130+ let J = j
131+ let K = split(J, b)
132+ let E = parseIntValue(K[1])
133+ let F = parseIntValue(K[2])
134+ let G = parseIntValue(K[3])
135+ let H = if ((5 > size(K)))
136+ then 0
137+ else parseIntValue(K[4])
138+ $Tuple4(E, F, G, H)
134139 }
135- else $Tuple3(0, 0, 0)
140+ else $Tuple4(0, 0, 0, 0)
136141 }
137142
138143
139-func K (L,z,M) = makeString(["%s%s%s%s", "history", z, L, M], b)
144+func L (M,z,N) = makeString(["%s%s%s%s", "history", z, M, N], b)
140145
141146
142-func N (O,F,G) = {
143- let P = (height - F)
144- let Q = if (if ((G != 0))
145- then (P > 0)
147+func O (P,F,G) = {
148+ let Q = (height - F)
149+ let R = if (if ((G != 0))
150+ then (Q > 0)
146151 else false)
147- then min([fraction(O, P, G), O])
152+ then min([fraction(P, Q, G), P])
148153 else 0
149- $Tuple2(Q, (O - Q))
154+ $Tuple2(R, (P - R))
150155 }
151156
152157
153-func R (z,A) = {
154- let S = H(z, A)
155- let E = S._1
156- let F = S._2
157- let G = S._3
158- let T = N(E, F, G)
159- let Q = T._1
160- let U = T._2
161- $Tuple2(Q, U)
158+func S (z,A) = {
159+ let T = I(z, A)
160+ let E = T._1
161+ let F = T._2
162+ let G = T._3
163+ let H = T._4
164+ let U = O(E, F, G)
165+ let R = U._1
166+ let V = U._2
167+ $Tuple2(R, V)
162168 }
163169
164170
165-func V (z,A) = {
166- let W = H(z, A)
167- let E = W._1
168- let F = W._2
169- let G = W._3
170- let X = R(z, A)
171- let Q = X._1
172- let U = X._2
173- let Y = max([((F + G) - height), 0])
174- let Z = if ((Q != 0))
175- then if ((Y != 0))
176- then [StringEntry(y(z, A), D(U, height, Y))]
171+func W (z,A) = {
172+ let X = I(z, A)
173+ let E = X._1
174+ let F = X._2
175+ let G = X._3
176+ let H = X._4
177+ let Y = S(z, A)
178+ let R = Y._1
179+ let V = Y._2
180+ let Z = max([((F + G) - height), 0])
181+ let aa = (H + R)
182+ let ab = if ((R != 0))
183+ then if ((Z != 0))
184+ then [StringEntry(y(z, A), D(V, height, Z, aa))]
177185 else [DeleteEntry(y(z, A))]
178186 else nil
179- $Tuple2(Z, Q)
187+ $Tuple2(ab, R)
180188 }
181189
182190
183-func aa (z,A) = {
184- let ab = V(z, A)
185- let Z = ab._1
186- let Q = ab._2
187- let ac = if ((Q != 0))
188- then [ScriptTransfer(addressFromStringValue(z), Q, p)]
191+func ac (z,A) = {
192+ let ad = W(z, A)
193+ let ab = ad._1
194+ let R = ad._2
195+ let ae = if ((R != 0))
196+ then [ScriptTransfer(addressFromStringValue(z), R, p)]
189197 else nil
190- $Tuple2((Z ++ ac), Q)
198+ $Tuple2((ab ++ ae), R)
191199 }
192200
193201
194-func ad (z) = {
195- func ae (af,A) = {
196- let ag = af
197- let ah = ag._1
198- let ai = ag._2
199- let aj = aa(z, A)
200- let ak = aj._1
201- let al = aj._2
202- $Tuple2((ah ++ ak), (ai + al))
202+func af (z) = {
203+ func ag (ah,A) = {
204+ let ai = ah
205+ let aj = ai._1
206+ let ak = ai._2
207+ let al = ac(z, A)
208+ let am = al._1
209+ let an = al._2
210+ $Tuple2((aj ++ am), (ak + an))
203211 }
204212
205- let am = c
206- let an = size(am)
207- let ao = $Tuple2(nil, 0)
208- func ap (aq,ar) = if ((ar >= an))
209- then aq
210- else ae(aq, am[ar])
213+ let ao = c
214+ let ap = size(ao)
215+ let aq = $Tuple2(nil, 0)
216+ func ar (as,at) = if ((at >= ap))
217+ then as
218+ else ag(as, ao[at])
211219
212- func as (aq,ar) = if ((ar >= an))
213- then aq
220+ func au (as,at) = if ((at >= ap))
221+ then as
214222 else throw("List size exceeds 30")
215223
216- as(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ao, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30)
224+ au(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(aq, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30)
217225 }
218226
219227
220-func at (z) = {
221- func ae (af,A) = {
222- let au = af
223- let av = au._1
224- let ai = au._2
225- let aw = V(z, A)
226- let Z = aw._1
227- let Q = aw._2
228- $Tuple2((av ++ Z), (ai + Q))
228+func av (z) = {
229+ func ag (ah,A) = {
230+ let aw = ah
231+ let ax = aw._1
232+ let ak = aw._2
233+ let ay = W(z, A)
234+ let ab = ay._1
235+ let R = ay._2
236+ $Tuple2((ax ++ ab), (ak + R))
229237 }
230238
231- let ax = {
232- let am = c
233- let an = size(am)
234- let ao = $Tuple2(nil, 0)
235- func ap (aq,ar) = if ((ar >= an))
236- then aq
237- else ae(aq, am[ar])
239+ let az = {
240+ let ao = c
241+ let ap = size(ao)
242+ let aq = $Tuple2(nil, 0)
243+ func ar (as,at) = if ((at >= ap))
244+ then as
245+ else ag(as, ao[at])
238246
239- func as (aq,ar) = if ((ar >= an))
240- then aq
247+ func au (as,at) = if ((at >= ap))
248+ then as
241249 else throw("List size exceeds 30")
242250
243- as(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ao, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30)
251+ au(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(aq, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30)
244252 }
245- let av = ax._1
246- let ay = ax._2
247- let az = valueOrElse(getInteger(this, C(z)), 0)
248- let aA = if ((ay != 0))
249- then [IntegerEntry(C(z), (az + ay))]
253+ let ax = az._1
254+ let aA = az._2
255+ let aB = valueOrElse(getInteger(this, C(z)), 0)
256+ let aC = if ((aA != 0))
257+ then [IntegerEntry(C(z), (aB + aA))]
250258 else nil
251- $Tuple2((av ++ aA), ay)
259+ $Tuple2((ax ++ aC), aA)
252260 }
253261
254262
255-func aB (z) = {
256- let az = valueOrElse(getInteger(this, C(z)), 0)
257- if ((az != 0))
258- then $Tuple2([ScriptTransfer(addressFromStringValue(z), az, p), DeleteEntry(C(z))], az)
263+func aD (z) = {
264+ let aB = valueOrElse(getInteger(this, C(z)), 0)
265+ if ((aB != 0))
266+ then $Tuple2([ScriptTransfer(addressFromStringValue(z), aB, p), DeleteEntry(C(z))], aB)
259267 else $Tuple2(nil, 0)
260268 }
261269
262270
263-func aC (z) = {
264- let aD = if (!(containsElement(t, z)))
265- then ad(z)
271+func aE (z) = {
272+ let aF = if (!(containsElement(t, z)))
273+ then af(z)
266274 else $Tuple2(nil, 0)
267- let aE = aD._1
268- let Q = aD._2
269- let aF = aB(z)
270275 let aG = aF._1
271- let aH = aF._2
272- let aI = (Q + aH)
273- $Tuple2((aE ++ aG), aI)
276+ let R = aF._2
277+ let aH = aD(z)
278+ let aI = aH._1
279+ let aJ = aH._2
280+ let aK = (R + aJ)
281+ $Tuple2((aG ++ aI), aK)
274282 }
275283
276284
277-func aJ (z) = {
278- func aK (af,A) = {
279- let aL = H(z, A)
280- let E = aL._1
281- let F = aL._2
282- let G = aL._3
283- let aM = R(z, A)
284- let Q = aM._1
285- let U = aM._2
285+func aL (z) = {
286+ func aM (ah,A) = {
287+ let aN = I(z, A)
288+ let E = aN._1
289+ let F = aN._2
290+ let G = aN._3
291+ let H = aN._4
292+ let aO = S(z, A)
293+ let R = aO._1
294+ let V = aO._2
286295 if (if ((E == 0))
287296 then true
288297 else containsElement(t, z))
289- then af
290- else (af :+ [E, (F + G), Q, U])
298+ then ah
299+ else (ah :+ [E, (F + G), R, V, H])
291300 }
292301
293- let am = c
294- let an = size(am)
295- let ao = nil
296- func ap (aq,ar) = if ((ar >= an))
297- then aq
298- else aK(aq, am[ar])
302+ let ao = c
303+ let ap = size(ao)
304+ let aq = nil
305+ func ar (as,at) = if ((at >= ap))
306+ then as
307+ else aM(as, ao[at])
299308
300- func as (aq,ar) = if ((ar >= an))
301- then aq
309+ func au (as,at) = if ((at >= ap))
310+ then as
302311 else throw("List size exceeds 30")
303312
304- as(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ao, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30)
313+ au(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(aq, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30)
305314 }
306315
307316
308-func aN (z) = {
309- func aK (aO,A) = {
310- let aP = H(z, A)
311- let E = aP._1
312- let F = aP._2
313- let G = aP._3
317+func aP (z) = {
318+ func aM (aQ,A) = {
319+ let aR = I(z, A)
320+ let E = aR._1
321+ let F = aR._2
322+ let G = aR._3
323+ let H = aR._4
314324 if ((E > 0))
315- then aO
316- else if ((aO == -1))
325+ then aQ
326+ else if ((aQ == -1))
317327 then A
318- else min([aO, A])
328+ else min([aQ, A])
319329 }
320330
321- let aO = {
322- let am = c
323- let an = size(am)
324- let ao = -1
325- func ap (aq,ar) = if ((ar >= an))
326- then aq
327- else aK(aq, am[ar])
331+ let aQ = {
332+ let ao = c
333+ let ap = size(ao)
334+ let aq = -1
335+ func ar (as,at) = if ((at >= ap))
336+ then as
337+ else aM(as, ao[at])
328338
329- func as (aq,ar) = if ((ar >= an))
330- then aq
339+ func au (as,at) = if ((at >= ap))
340+ then as
331341 else throw("List size exceeds 30")
332342
333- as(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ao, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30)
343+ au(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(aq, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30)
334344 }
335- if ((aO == -1))
345+ if ((aQ == -1))
336346 then e(makeString(["user exceeded max active vesting count: ", z], " "))
337- else aO
347+ else aQ
338348 }
339349
340350
341-func aQ (z,A,E,F,G) = [StringEntry(y(z, A), D(E, F, G))]
351+func aS (z,A,E,F,G) = [StringEntry(y(z, A), D(E, F, G, 0))]
342352
343353
344-@Callable(aR)
354+@Callable(aT)
345355 func vestingForUser (z,E,F,G) = {
346- let aS = [if ((size(aR.payments) == 1))
356+ let aU = [if ((size(aT.payments) == 1))
347357 then true
348- else e("should be with exactly 1 payment"), if ((aR.payments[0].assetId == p))
358+ else e("should be with exactly 1 payment"), if ((aT.payments[0].assetId == p))
349359 then true
350- else e(makeString(["payment assetId should be: ", o], " ")), if ((aR.payments[0].amount == E))
360+ else e(makeString(["payment assetId should be: ", o], " ")), if ((aT.payments[0].amount == E))
351361 then true
352362 else e("payment amount should be equal to vestingAmount"), if (if ((s == nil))
353363 then true
354- else containsElement(s, toString(aR.caller)))
364+ else containsElement(s, toString(aT.caller)))
355365 then true
356366 else e("you must be admin")]
357- if ((aS == aS))
367+ if ((aU == aU))
358368 then {
359- let A = aN(z)
360- let aT = [StringEntry(K("vested", z, toBase58String(aR.transactionId)), makeString([toString(E), toString(F), toString(G)], b))]
361- (aQ(z, A, E, F, G) ++ aT)
369+ let A = aP(z)
370+ let aV = [StringEntry(L("vested", z, toBase58String(aT.transactionId)), makeString([toString(E), toString(F), toString(G)], b))]
371+ (aS(z, A, E, F, G) ++ aV)
362372 }
363373 else throw("Strict value is not equal to itself.")
364374 }
365375
366376
367377
368-@Callable(aR)
378+@Callable(aT)
369379 func ban (z) = {
370380 let B = [if (if ((s == nil))
371381 then true
372- else containsElement(s, toString(aR.caller)))
382+ else containsElement(s, toString(aT.caller)))
373383 then true
374384 else e("you must be admin"), if (!(containsElement(t, z)))
375385 then true
376386 else e(makeString(["user already in a ban list:", z], " "))]
377387 if ((B == B))
378388 then {
379- let aU = at(z)
380- let aV = aU._1
381- let aW = aU._2
382- let aX = [StringEntry(r, makeString_11C((t :+ z), "__"))]
383- (aV ++ aX)
389+ let aW = av(z)
390+ let aX = aW._1
391+ let aY = aW._2
392+ let aZ = [StringEntry(r, makeString_11C((t :+ z), "__"))]
393+ (aX ++ aZ)
384394 }
385395 else throw("Strict value is not equal to itself.")
386396 }
387397
388398
389399
390-@Callable(aR)
400+@Callable(aT)
391401 func unban (z) = {
392402 let B = [if (if ((s == nil))
393403 then true
394- else containsElement(s, toString(aR.caller)))
404+ else containsElement(s, toString(aT.caller)))
395405 then true
396406 else e("you must be admin"), if (containsElement(t, z))
397407 then true
398408 else e(makeString(["user not in a ban list:", z], " "))]
399409 if ((B == B))
400410 then {
401- let aY = {
411+ let ba = {
402412 let j = indexOf(t, z)
403413 if ($isInstanceOf(j, "Int"))
404414 then {
405- let aZ = j
406- removeByIndex(t, aZ)
415+ let bb = j
416+ removeByIndex(t, bb)
407417 }
408418 else e("user address index in ban list is not found")
409419 }
410- if ((aY == nil))
420+ if ((ba == nil))
411421 then [DeleteEntry(r)]
412- else [StringEntry(r, makeString_11C(aY, "__"))]
422+ else [StringEntry(r, makeString_11C(ba, "__"))]
413423 }
414424 else throw("Strict value is not equal to itself.")
415425 }
416426
417427
418428
419-@Callable(aR)
429+@Callable(aT)
420430 func claimAll () = {
421- let z = toString(aR.caller)
422- let ba = aC(z)
423- let aE = ba._1
424- let aI = ba._2
425- let aT = [StringEntry(K("claimed", z, toBase58String(aR.transactionId)), toString(aI))]
426- if ((aI > 0))
427- then (aE ++ aT)
431+ let z = toString(aT.caller)
432+ let bc = aE(z)
433+ let aG = bc._1
434+ let aK = bc._2
435+ let aV = [StringEntry(L("claimed", z, toBase58String(aT.transactionId)), toString(aK))]
436+ if ((aK > 0))
437+ then (aG ++ aV)
428438 else e("nothing to claim")
429439 }
430440
431441
432442
433-@Callable(aR)
443+@Callable(aT)
434444 func userInfoREADONLY (z) = {
435- let bb = aC(z)
436- let aW = bb._1
437- let aI = bb._2
438- let aH = valueOrElse(getInteger(this, C(z)), 0)
439- $Tuple2(nil, $Tuple3(aI, aH, aJ(z)))
445+ let bd = aE(z)
446+ let aY = bd._1
447+ let aK = bd._2
448+ let aJ = valueOrElse(getInteger(this, C(z)), 0)
449+ $Tuple2(nil, $Tuple3(aK, aJ, aL(z)))
440450 }
441451
442452
443-
444-@Callable(aR)
445-func foo () = {
446- let bc = throw("err")
447- if ((bc == bc))
448- then nil
449- else throw("Strict value is not equal to itself.")
450- }
451-
452-
453-@Verifier(bd)
454-func be () = {
455- let bf = {
453+@Verifier(be)
454+func bf () = {
455+ let bg = {
456456 let j = l()
457457 if ($isInstanceOf(j, "ByteVector"))
458458 then {
459- let bg = j
460- bg
459+ let bh = j
460+ bh
461461 }
462462 else if ($isInstanceOf(j, "Unit"))
463- then bd.senderPublicKey
463+ then be.senderPublicKey
464464 else throw("Match error")
465465 }
466- sigVerify(bd.bodyBytes, bd.proofs[0], bf)
466+ sigVerify(be.bodyBytes, be.proofs[0], bg)
467467 }
468468
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "vesting_neo.ride"
55
66 let b = "__"
77
88 let c = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29]
99
1010 let d = size(c)
1111
1212 func e (f) = throw(((a + ": ") + f))
1313
1414
1515 func g () = "%s__managerPublicKey"
1616
1717
1818 func h () = "%s__managerVaultAddress"
1919
2020
2121 func i () = {
2222 let j = getString(h())
2323 if ($isInstanceOf(j, "String"))
2424 then {
2525 let k = j
2626 addressFromStringValue(k)
2727 }
2828 else this
2929 }
3030
3131
3232 func l () = {
3333 let m = i()
3434 let j = getString(m, g())
3535 if ($isInstanceOf(j, "String"))
3636 then {
3737 let k = j
3838 fromBase58String(k)
3939 }
4040 else if ($isInstanceOf(j, "Unit"))
4141 then unit
4242 else throw("Match error")
4343 }
4444
4545
4646 let n = makeString(["%s", "assetId"], b)
4747
4848 let o = valueOrElse(getString(this, n), "WAVES")
4949
5050 let p = if ((o == "WAVES"))
5151 then unit
5252 else fromBase58String(o)
5353
5454 let q = makeString(["%s", "adminAddressList"], b)
5555
5656 let r = makeString(["%s", "banList"], b)
5757
5858 let s = {
5959 let j = getString(this, q)
6060 if ($isInstanceOf(j, "String"))
6161 then {
6262 let k = j
6363 split(k, b)
6464 }
6565 else nil
6666 }
6767
6868 let t = {
6969 let u = valueOrElse(getString(this, r), "")
7070 if ((u == ""))
7171 then nil
7272 else split_51C(u, b)
7373 }
7474
7575 func v (w) = {
7676 let j = addressFromString(w)
7777 if ($isInstanceOf(j, "Address"))
7878 then {
7979 let x = j
8080 true
8181 }
8282 else false
8383 }
8484
8585
8686 func y (z,A) = {
8787 let B = [if (v(z))
8888 then true
8989 else e(makeString(["address is not valid:", z], " ")), if (if ((A >= 0))
9090 then (d > A)
9191 else false)
9292 then true
9393 else e(makeString(["id should be less than", toString(d), "got:", toString(A)], " "))]
9494 if ((B == B))
9595 then makeString(["%s%s%d", "vesting", z, toString(A)], b)
9696 else throw("Strict value is not equal to itself.")
9797 }
9898
9999
100100 func C (z) = {
101101 let B = [if (v(z))
102102 then true
103103 else e(makeString(["address is not valid:", z], " "))]
104104 if ((B == B))
105105 then makeString(["%s%s", "accumulated", z], b)
106106 else throw("Strict value is not equal to itself.")
107107 }
108108
109109
110-func D (E,F,G) = {
110+func D (E,F,G,H) = {
111111 let B = [if ((E >= 0))
112112 then true
113113 else e("vesting amount cannot be negative"), if ((F >= 0))
114114 then true
115115 else e("start block cannot be negative"), if ((G >= 0))
116116 then true
117- else e("lock length cannot be negative")]
117+ else e("lock length cannot be negative"), if ((H >= 0))
118+ then true
119+ else e("total claimed cannot be negative")]
118120 if ((B == B))
119- then makeString(["%d%d%d", toString(E), toString(F), toString(G)], b)
121+ then makeString(["%d%d%d%d", toString(E), toString(F), toString(G), toString(H)], b)
120122 else throw("Strict value is not equal to itself.")
121123 }
122124
123125
124-func H (z,A) = {
126+func I (z,A) = {
125127 let j = getString(this, y(z, A))
126128 if ($isInstanceOf(j, "String"))
127129 then {
128- let I = j
129- let J = split(I, b)
130- let E = parseIntValue(J[1])
131- let F = parseIntValue(J[2])
132- let G = parseIntValue(J[3])
133- $Tuple3(E, F, G)
130+ let J = j
131+ let K = split(J, b)
132+ let E = parseIntValue(K[1])
133+ let F = parseIntValue(K[2])
134+ let G = parseIntValue(K[3])
135+ let H = if ((5 > size(K)))
136+ then 0
137+ else parseIntValue(K[4])
138+ $Tuple4(E, F, G, H)
134139 }
135- else $Tuple3(0, 0, 0)
140+ else $Tuple4(0, 0, 0, 0)
136141 }
137142
138143
139-func K (L,z,M) = makeString(["%s%s%s%s", "history", z, L, M], b)
144+func L (M,z,N) = makeString(["%s%s%s%s", "history", z, M, N], b)
140145
141146
142-func N (O,F,G) = {
143- let P = (height - F)
144- let Q = if (if ((G != 0))
145- then (P > 0)
147+func O (P,F,G) = {
148+ let Q = (height - F)
149+ let R = if (if ((G != 0))
150+ then (Q > 0)
146151 else false)
147- then min([fraction(O, P, G), O])
152+ then min([fraction(P, Q, G), P])
148153 else 0
149- $Tuple2(Q, (O - Q))
154+ $Tuple2(R, (P - R))
150155 }
151156
152157
153-func R (z,A) = {
154- let S = H(z, A)
155- let E = S._1
156- let F = S._2
157- let G = S._3
158- let T = N(E, F, G)
159- let Q = T._1
160- let U = T._2
161- $Tuple2(Q, U)
158+func S (z,A) = {
159+ let T = I(z, A)
160+ let E = T._1
161+ let F = T._2
162+ let G = T._3
163+ let H = T._4
164+ let U = O(E, F, G)
165+ let R = U._1
166+ let V = U._2
167+ $Tuple2(R, V)
162168 }
163169
164170
165-func V (z,A) = {
166- let W = H(z, A)
167- let E = W._1
168- let F = W._2
169- let G = W._3
170- let X = R(z, A)
171- let Q = X._1
172- let U = X._2
173- let Y = max([((F + G) - height), 0])
174- let Z = if ((Q != 0))
175- then if ((Y != 0))
176- then [StringEntry(y(z, A), D(U, height, Y))]
171+func W (z,A) = {
172+ let X = I(z, A)
173+ let E = X._1
174+ let F = X._2
175+ let G = X._3
176+ let H = X._4
177+ let Y = S(z, A)
178+ let R = Y._1
179+ let V = Y._2
180+ let Z = max([((F + G) - height), 0])
181+ let aa = (H + R)
182+ let ab = if ((R != 0))
183+ then if ((Z != 0))
184+ then [StringEntry(y(z, A), D(V, height, Z, aa))]
177185 else [DeleteEntry(y(z, A))]
178186 else nil
179- $Tuple2(Z, Q)
187+ $Tuple2(ab, R)
180188 }
181189
182190
183-func aa (z,A) = {
184- let ab = V(z, A)
185- let Z = ab._1
186- let Q = ab._2
187- let ac = if ((Q != 0))
188- then [ScriptTransfer(addressFromStringValue(z), Q, p)]
191+func ac (z,A) = {
192+ let ad = W(z, A)
193+ let ab = ad._1
194+ let R = ad._2
195+ let ae = if ((R != 0))
196+ then [ScriptTransfer(addressFromStringValue(z), R, p)]
189197 else nil
190- $Tuple2((Z ++ ac), Q)
198+ $Tuple2((ab ++ ae), R)
191199 }
192200
193201
194-func ad (z) = {
195- func ae (af,A) = {
196- let ag = af
197- let ah = ag._1
198- let ai = ag._2
199- let aj = aa(z, A)
200- let ak = aj._1
201- let al = aj._2
202- $Tuple2((ah ++ ak), (ai + al))
202+func af (z) = {
203+ func ag (ah,A) = {
204+ let ai = ah
205+ let aj = ai._1
206+ let ak = ai._2
207+ let al = ac(z, A)
208+ let am = al._1
209+ let an = al._2
210+ $Tuple2((aj ++ am), (ak + an))
203211 }
204212
205- let am = c
206- let an = size(am)
207- let ao = $Tuple2(nil, 0)
208- func ap (aq,ar) = if ((ar >= an))
209- then aq
210- else ae(aq, am[ar])
213+ let ao = c
214+ let ap = size(ao)
215+ let aq = $Tuple2(nil, 0)
216+ func ar (as,at) = if ((at >= ap))
217+ then as
218+ else ag(as, ao[at])
211219
212- func as (aq,ar) = if ((ar >= an))
213- then aq
220+ func au (as,at) = if ((at >= ap))
221+ then as
214222 else throw("List size exceeds 30")
215223
216- as(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ao, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30)
224+ au(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(aq, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30)
217225 }
218226
219227
220-func at (z) = {
221- func ae (af,A) = {
222- let au = af
223- let av = au._1
224- let ai = au._2
225- let aw = V(z, A)
226- let Z = aw._1
227- let Q = aw._2
228- $Tuple2((av ++ Z), (ai + Q))
228+func av (z) = {
229+ func ag (ah,A) = {
230+ let aw = ah
231+ let ax = aw._1
232+ let ak = aw._2
233+ let ay = W(z, A)
234+ let ab = ay._1
235+ let R = ay._2
236+ $Tuple2((ax ++ ab), (ak + R))
229237 }
230238
231- let ax = {
232- let am = c
233- let an = size(am)
234- let ao = $Tuple2(nil, 0)
235- func ap (aq,ar) = if ((ar >= an))
236- then aq
237- else ae(aq, am[ar])
239+ let az = {
240+ let ao = c
241+ let ap = size(ao)
242+ let aq = $Tuple2(nil, 0)
243+ func ar (as,at) = if ((at >= ap))
244+ then as
245+ else ag(as, ao[at])
238246
239- func as (aq,ar) = if ((ar >= an))
240- then aq
247+ func au (as,at) = if ((at >= ap))
248+ then as
241249 else throw("List size exceeds 30")
242250
243- as(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ao, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30)
251+ au(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(aq, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30)
244252 }
245- let av = ax._1
246- let ay = ax._2
247- let az = valueOrElse(getInteger(this, C(z)), 0)
248- let aA = if ((ay != 0))
249- then [IntegerEntry(C(z), (az + ay))]
253+ let ax = az._1
254+ let aA = az._2
255+ let aB = valueOrElse(getInteger(this, C(z)), 0)
256+ let aC = if ((aA != 0))
257+ then [IntegerEntry(C(z), (aB + aA))]
250258 else nil
251- $Tuple2((av ++ aA), ay)
259+ $Tuple2((ax ++ aC), aA)
252260 }
253261
254262
255-func aB (z) = {
256- let az = valueOrElse(getInteger(this, C(z)), 0)
257- if ((az != 0))
258- then $Tuple2([ScriptTransfer(addressFromStringValue(z), az, p), DeleteEntry(C(z))], az)
263+func aD (z) = {
264+ let aB = valueOrElse(getInteger(this, C(z)), 0)
265+ if ((aB != 0))
266+ then $Tuple2([ScriptTransfer(addressFromStringValue(z), aB, p), DeleteEntry(C(z))], aB)
259267 else $Tuple2(nil, 0)
260268 }
261269
262270
263-func aC (z) = {
264- let aD = if (!(containsElement(t, z)))
265- then ad(z)
271+func aE (z) = {
272+ let aF = if (!(containsElement(t, z)))
273+ then af(z)
266274 else $Tuple2(nil, 0)
267- let aE = aD._1
268- let Q = aD._2
269- let aF = aB(z)
270275 let aG = aF._1
271- let aH = aF._2
272- let aI = (Q + aH)
273- $Tuple2((aE ++ aG), aI)
276+ let R = aF._2
277+ let aH = aD(z)
278+ let aI = aH._1
279+ let aJ = aH._2
280+ let aK = (R + aJ)
281+ $Tuple2((aG ++ aI), aK)
274282 }
275283
276284
277-func aJ (z) = {
278- func aK (af,A) = {
279- let aL = H(z, A)
280- let E = aL._1
281- let F = aL._2
282- let G = aL._3
283- let aM = R(z, A)
284- let Q = aM._1
285- let U = aM._2
285+func aL (z) = {
286+ func aM (ah,A) = {
287+ let aN = I(z, A)
288+ let E = aN._1
289+ let F = aN._2
290+ let G = aN._3
291+ let H = aN._4
292+ let aO = S(z, A)
293+ let R = aO._1
294+ let V = aO._2
286295 if (if ((E == 0))
287296 then true
288297 else containsElement(t, z))
289- then af
290- else (af :+ [E, (F + G), Q, U])
298+ then ah
299+ else (ah :+ [E, (F + G), R, V, H])
291300 }
292301
293- let am = c
294- let an = size(am)
295- let ao = nil
296- func ap (aq,ar) = if ((ar >= an))
297- then aq
298- else aK(aq, am[ar])
302+ let ao = c
303+ let ap = size(ao)
304+ let aq = nil
305+ func ar (as,at) = if ((at >= ap))
306+ then as
307+ else aM(as, ao[at])
299308
300- func as (aq,ar) = if ((ar >= an))
301- then aq
309+ func au (as,at) = if ((at >= ap))
310+ then as
302311 else throw("List size exceeds 30")
303312
304- as(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ao, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30)
313+ au(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(aq, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30)
305314 }
306315
307316
308-func aN (z) = {
309- func aK (aO,A) = {
310- let aP = H(z, A)
311- let E = aP._1
312- let F = aP._2
313- let G = aP._3
317+func aP (z) = {
318+ func aM (aQ,A) = {
319+ let aR = I(z, A)
320+ let E = aR._1
321+ let F = aR._2
322+ let G = aR._3
323+ let H = aR._4
314324 if ((E > 0))
315- then aO
316- else if ((aO == -1))
325+ then aQ
326+ else if ((aQ == -1))
317327 then A
318- else min([aO, A])
328+ else min([aQ, A])
319329 }
320330
321- let aO = {
322- let am = c
323- let an = size(am)
324- let ao = -1
325- func ap (aq,ar) = if ((ar >= an))
326- then aq
327- else aK(aq, am[ar])
331+ let aQ = {
332+ let ao = c
333+ let ap = size(ao)
334+ let aq = -1
335+ func ar (as,at) = if ((at >= ap))
336+ then as
337+ else aM(as, ao[at])
328338
329- func as (aq,ar) = if ((ar >= an))
330- then aq
339+ func au (as,at) = if ((at >= ap))
340+ then as
331341 else throw("List size exceeds 30")
332342
333- as(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ao, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30)
343+ au(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(aq, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30)
334344 }
335- if ((aO == -1))
345+ if ((aQ == -1))
336346 then e(makeString(["user exceeded max active vesting count: ", z], " "))
337- else aO
347+ else aQ
338348 }
339349
340350
341-func aQ (z,A,E,F,G) = [StringEntry(y(z, A), D(E, F, G))]
351+func aS (z,A,E,F,G) = [StringEntry(y(z, A), D(E, F, G, 0))]
342352
343353
344-@Callable(aR)
354+@Callable(aT)
345355 func vestingForUser (z,E,F,G) = {
346- let aS = [if ((size(aR.payments) == 1))
356+ let aU = [if ((size(aT.payments) == 1))
347357 then true
348- else e("should be with exactly 1 payment"), if ((aR.payments[0].assetId == p))
358+ else e("should be with exactly 1 payment"), if ((aT.payments[0].assetId == p))
349359 then true
350- else e(makeString(["payment assetId should be: ", o], " ")), if ((aR.payments[0].amount == E))
360+ else e(makeString(["payment assetId should be: ", o], " ")), if ((aT.payments[0].amount == E))
351361 then true
352362 else e("payment amount should be equal to vestingAmount"), if (if ((s == nil))
353363 then true
354- else containsElement(s, toString(aR.caller)))
364+ else containsElement(s, toString(aT.caller)))
355365 then true
356366 else e("you must be admin")]
357- if ((aS == aS))
367+ if ((aU == aU))
358368 then {
359- let A = aN(z)
360- let aT = [StringEntry(K("vested", z, toBase58String(aR.transactionId)), makeString([toString(E), toString(F), toString(G)], b))]
361- (aQ(z, A, E, F, G) ++ aT)
369+ let A = aP(z)
370+ let aV = [StringEntry(L("vested", z, toBase58String(aT.transactionId)), makeString([toString(E), toString(F), toString(G)], b))]
371+ (aS(z, A, E, F, G) ++ aV)
362372 }
363373 else throw("Strict value is not equal to itself.")
364374 }
365375
366376
367377
368-@Callable(aR)
378+@Callable(aT)
369379 func ban (z) = {
370380 let B = [if (if ((s == nil))
371381 then true
372- else containsElement(s, toString(aR.caller)))
382+ else containsElement(s, toString(aT.caller)))
373383 then true
374384 else e("you must be admin"), if (!(containsElement(t, z)))
375385 then true
376386 else e(makeString(["user already in a ban list:", z], " "))]
377387 if ((B == B))
378388 then {
379- let aU = at(z)
380- let aV = aU._1
381- let aW = aU._2
382- let aX = [StringEntry(r, makeString_11C((t :+ z), "__"))]
383- (aV ++ aX)
389+ let aW = av(z)
390+ let aX = aW._1
391+ let aY = aW._2
392+ let aZ = [StringEntry(r, makeString_11C((t :+ z), "__"))]
393+ (aX ++ aZ)
384394 }
385395 else throw("Strict value is not equal to itself.")
386396 }
387397
388398
389399
390-@Callable(aR)
400+@Callable(aT)
391401 func unban (z) = {
392402 let B = [if (if ((s == nil))
393403 then true
394- else containsElement(s, toString(aR.caller)))
404+ else containsElement(s, toString(aT.caller)))
395405 then true
396406 else e("you must be admin"), if (containsElement(t, z))
397407 then true
398408 else e(makeString(["user not in a ban list:", z], " "))]
399409 if ((B == B))
400410 then {
401- let aY = {
411+ let ba = {
402412 let j = indexOf(t, z)
403413 if ($isInstanceOf(j, "Int"))
404414 then {
405- let aZ = j
406- removeByIndex(t, aZ)
415+ let bb = j
416+ removeByIndex(t, bb)
407417 }
408418 else e("user address index in ban list is not found")
409419 }
410- if ((aY == nil))
420+ if ((ba == nil))
411421 then [DeleteEntry(r)]
412- else [StringEntry(r, makeString_11C(aY, "__"))]
422+ else [StringEntry(r, makeString_11C(ba, "__"))]
413423 }
414424 else throw("Strict value is not equal to itself.")
415425 }
416426
417427
418428
419-@Callable(aR)
429+@Callable(aT)
420430 func claimAll () = {
421- let z = toString(aR.caller)
422- let ba = aC(z)
423- let aE = ba._1
424- let aI = ba._2
425- let aT = [StringEntry(K("claimed", z, toBase58String(aR.transactionId)), toString(aI))]
426- if ((aI > 0))
427- then (aE ++ aT)
431+ let z = toString(aT.caller)
432+ let bc = aE(z)
433+ let aG = bc._1
434+ let aK = bc._2
435+ let aV = [StringEntry(L("claimed", z, toBase58String(aT.transactionId)), toString(aK))]
436+ if ((aK > 0))
437+ then (aG ++ aV)
428438 else e("nothing to claim")
429439 }
430440
431441
432442
433-@Callable(aR)
443+@Callable(aT)
434444 func userInfoREADONLY (z) = {
435- let bb = aC(z)
436- let aW = bb._1
437- let aI = bb._2
438- let aH = valueOrElse(getInteger(this, C(z)), 0)
439- $Tuple2(nil, $Tuple3(aI, aH, aJ(z)))
445+ let bd = aE(z)
446+ let aY = bd._1
447+ let aK = bd._2
448+ let aJ = valueOrElse(getInteger(this, C(z)), 0)
449+ $Tuple2(nil, $Tuple3(aK, aJ, aL(z)))
440450 }
441451
442452
443-
444-@Callable(aR)
445-func foo () = {
446- let bc = throw("err")
447- if ((bc == bc))
448- then nil
449- else throw("Strict value is not equal to itself.")
450- }
451-
452-
453-@Verifier(bd)
454-func be () = {
455- let bf = {
453+@Verifier(be)
454+func bf () = {
455+ let bg = {
456456 let j = l()
457457 if ($isInstanceOf(j, "ByteVector"))
458458 then {
459- let bg = j
460- bg
459+ let bh = j
460+ bh
461461 }
462462 else if ($isInstanceOf(j, "Unit"))
463- then bd.senderPublicKey
463+ then be.senderPublicKey
464464 else throw("Match error")
465465 }
466- sigVerify(bd.bodyBytes, bd.proofs[0], bf)
466+ sigVerify(be.bodyBytes, be.proofs[0], bg)
467467 }
468468

github/deemru/w8io/169f3d6 
204.65 ms