tx · Gv5pwEeNUkw6zeKWsaARomE3pyg33KJrpz8KhQNBdVcp 3MwyBKGZcdChEK9Z55HwLn3A2EgwEJJpqC1: -0.01000000 Waves 2024.01.09 14:57 [2923902] smart account 3MwyBKGZcdChEK9Z55HwLn3A2EgwEJJpqC1 > SELF 0.00000000 Waves
{ "type": 13, "id": "Gv5pwEeNUkw6zeKWsaARomE3pyg33KJrpz8KhQNBdVcp", "fee": 1000000, "feeAssetId": null, "timestamp": 1704801461273, "version": 2, "chainId": 84, "sender": "3MwyBKGZcdChEK9Z55HwLn3A2EgwEJJpqC1", "senderPublicKey": "7c3qLtcJ7EaPS2JDjXv8MBbd4kpyc6R27wcn5GgvZhur", "proofs": [ "49vfg6gL37WdYN9khwtJXcbKxtS1NKqRhqt7Vyu94VimH4E8X95H5Socu33EQWDyAC2iobszZeHRHUhUQrdDKGev" ], "script": "base64:BgIRCAISBgoECAEBARIAEgMKAQgZAAxjb250cmFjdEZpbGUCEHZlc3RpbmdfbmVvLnJpZGUAA1NFUAICX18ACElEU19MSVNUCQDMCAIAAAkAzAgCAAEJAMwIAgACCQDMCAIAAwkAzAgCAAQJAMwIAgAFCQDMCAIABgkAzAgCAAcJAMwIAgAICQDMCAIACQkAzAgCAAoJAMwIAgALCQDMCAIADAkAzAgCAA0JAMwIAgAOCQDMCAIADwkAzAgCABAJAMwIAgARCQDMCAIAEgkAzAgCABMJAMwIAgAUCQDMCAIAFQkAzAgCABYJAMwIAgAXCQDMCAIAGAkAzAgCABkJAMwIAgAaCQDMCAIAGwkAzAgCABwJAMwIAgAdBQNuaWwAEU1BWF9WRVNUSU5HX0NPVU5UCQCQAwEFCElEU19MSVNUAQh0aHJvd0VycgEDbXNnCQACAQkArAICCQCsAgIFDGNvbnRyYWN0RmlsZQICOiAFA21zZwAKa2V5QXNzZXRJZAkAuQkCCQDMCAICAiVzCQDMCAICB2Fzc2V0SWQFA25pbAUDU0VQAA1hc3NldElkU3RyaW5nCQELdmFsdWVPckVsc2UCCQC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kcmVzcwDIpLcf", "height": 2923902, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Ber9vaDCWa8ar6yvgyDuEwc45ShDrSbTysEn4bj4xXnM Next: 78yVhGW5aKxchThjtZbpmTxryV6qrDYcy1CRvm3cQYqr Diff:
Old | New | Differences | |
---|---|---|---|
203 | 203 | let an = ap._1 | |
204 | 204 | let aq = ap._2 | |
205 | 205 | let ar = valueOrElse(getInteger(this, u(r)), 0) | |
206 | - | let as = [IntegerEntry(u(r), (ar + aq))] | |
206 | + | let as = if ((aq != 0)) | |
207 | + | then [IntegerEntry(u(r), (ar + aq))] | |
208 | + | else nil | |
207 | 209 | $Tuple2((an ++ as), aq) | |
208 | 210 | } | |
209 | 211 | ||
210 | 212 | ||
211 | 213 | func at (r) = { | |
212 | - | func au (av,s) = { | |
213 | - | let aw = z(r, s) | |
214 | - | let w = aw._1 | |
215 | - | let x = aw._2 | |
216 | - | let y = aw._3 | |
214 | + | let ar = valueOrElse(getInteger(this, u(r)), 0) | |
215 | + | if ((ar != 0)) | |
216 | + | then $Tuple2([ScriptTransfer(addressFromStringValue(r), ar, i), DeleteEntry(u(r))], ar) | |
217 | + | else $Tuple2(nil, 0) | |
218 | + | } | |
219 | + | ||
220 | + | ||
221 | + | func au (r) = { | |
222 | + | func av (aw,s) = { | |
223 | + | let ax = z(r, s) | |
224 | + | let w = ax._1 | |
225 | + | let x = ax._2 | |
226 | + | let y = ax._3 | |
217 | 227 | if ((w > 0)) | |
218 | - | then | |
219 | - | else if (( | |
228 | + | then aw | |
229 | + | else if ((aw == -1)) | |
220 | 230 | then s | |
221 | - | else min([ | |
231 | + | else min([aw, s]) | |
222 | 232 | } | |
223 | 233 | ||
224 | - | let | |
234 | + | let aw = { | |
225 | 235 | let ae = c | |
226 | 236 | let af = size(ae) | |
227 | 237 | let ag = -1 | |
228 | 238 | func ah (ai,aj) = if ((aj >= af)) | |
229 | 239 | then ai | |
230 | - | else | |
240 | + | else av(ai, ae[aj]) | |
231 | 241 | ||
232 | 242 | func ak (ai,aj) = if ((aj >= af)) | |
233 | 243 | then ai | |
235 | 245 | ||
236 | 246 | ak(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ag, 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) | |
237 | 247 | } | |
238 | - | if (( | |
248 | + | if ((aw == -1)) | |
239 | 249 | then e(makeString(["user exceeded max active vesting count: ", r], " ")) | |
240 | - | else | |
250 | + | else aw | |
241 | 251 | } | |
242 | 252 | ||
243 | 253 | ||
244 | - | func | |
254 | + | func ay (r,s,w,x,y) = [StringEntry(q(r, s), v(w, x, y))] | |
245 | 255 | ||
246 | 256 | ||
247 | - | @Callable( | |
257 | + | @Callable(az) | |
248 | 258 | func vestingForUser (r,w,x,y) = { | |
249 | - | let | |
259 | + | let aA = [if ((size(az.payments) == 1)) | |
250 | 260 | then true | |
251 | - | else e("should be with exactly 1 payment"), if (( | |
261 | + | else e("should be with exactly 1 payment"), if ((az.payments[0].assetId == i)) | |
252 | 262 | then true | |
253 | - | else e(makeString(["payment assetId should be: ", h], " ")), if (( | |
263 | + | else e(makeString(["payment assetId should be: ", h], " ")), if ((az.payments[0].amount == w)) | |
254 | 264 | then true | |
255 | 265 | else e("payment amount should be equal to vestingAmount"), if (if ((k == nil)) | |
256 | 266 | then true | |
257 | - | else containsElement(k, toString( | |
267 | + | else containsElement(k, toString(az.caller))) | |
258 | 268 | then true | |
259 | 269 | else e("you must be admin")] | |
260 | - | if (( | |
270 | + | if ((aA == aA)) | |
261 | 271 | then { | |
262 | - | let s = | |
263 | - | let | |
264 | - | ( | |
272 | + | let s = au(r) | |
273 | + | let aB = [IntegerEntry(C("vested", r, toBase58String(az.transactionId)), w)] | |
274 | + | (ay(r, s, w, x, y) ++ aB) | |
265 | 275 | } | |
266 | 276 | else throw("Strict value is not equal to itself.") | |
267 | 277 | } | |
268 | 278 | ||
269 | 279 | ||
270 | 280 | ||
271 | - | @Callable( | |
281 | + | @Callable(az) | |
272 | 282 | func claimAll () = { | |
273 | - | let r = toString(ay.caller) | |
274 | - | let aB = V(r) | |
275 | - | let aC = aB._1 | |
276 | - | let aD = aB._2 | |
277 | - | let aA = [IntegerEntry(C("claimed", r, toBase58String(ay.transactionId)), aD)] | |
278 | - | if ((aD > 0)) | |
279 | - | then (aC ++ aA) | |
283 | + | let r = toString(az.caller) | |
284 | + | let aC = V(r) | |
285 | + | let aD = aC._1 | |
286 | + | let I = aC._2 | |
287 | + | let aE = at(r) | |
288 | + | let aF = aE._1 | |
289 | + | let aG = aE._2 | |
290 | + | let aH = (I + aG) | |
291 | + | let aB = [IntegerEntry(C("claimed", r, toBase58String(az.transactionId)), aH)] | |
292 | + | if ((aH > 0)) | |
293 | + | then ((aD ++ aF) ++ aB) | |
280 | 294 | else e("nothing to claim") | |
281 | 295 | } | |
296 | + | ||
297 | + | ||
298 | + | ||
299 | + | @Callable(az) | |
300 | + | func foo (r) = al(r) | |
282 | 301 | ||
283 | 302 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "vesting_neo.ride" | |
5 | 5 | ||
6 | 6 | let b = "__" | |
7 | 7 | ||
8 | 8 | 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] | |
9 | 9 | ||
10 | 10 | let d = size(c) | |
11 | 11 | ||
12 | 12 | func e (f) = throw(((a + ": ") + f)) | |
13 | 13 | ||
14 | 14 | ||
15 | 15 | let g = makeString(["%s", "assetId"], b) | |
16 | 16 | ||
17 | 17 | let h = valueOrElse(getString(this, g), "WAVES") | |
18 | 18 | ||
19 | 19 | let i = if ((h == "WAVES")) | |
20 | 20 | then unit | |
21 | 21 | else fromBase58String(h) | |
22 | 22 | ||
23 | 23 | let j = makeString(["%s", "adminList"], b) | |
24 | 24 | ||
25 | 25 | let k = { | |
26 | 26 | let l = getString(this, j) | |
27 | 27 | if ($isInstanceOf(l, "String")) | |
28 | 28 | then { | |
29 | 29 | let m = l | |
30 | 30 | split(m, b) | |
31 | 31 | } | |
32 | 32 | else nil | |
33 | 33 | } | |
34 | 34 | ||
35 | 35 | func n (o) = { | |
36 | 36 | let l = addressFromString(o) | |
37 | 37 | if ($isInstanceOf(l, "Address")) | |
38 | 38 | then { | |
39 | 39 | let p = l | |
40 | 40 | true | |
41 | 41 | } | |
42 | 42 | else false | |
43 | 43 | } | |
44 | 44 | ||
45 | 45 | ||
46 | 46 | func q (r,s) = { | |
47 | 47 | let t = [if (n(r)) | |
48 | 48 | then true | |
49 | 49 | else e(makeString(["address is not valid:", r], " ")), if (if ((s >= 0)) | |
50 | 50 | then (d > s) | |
51 | 51 | else false) | |
52 | 52 | then true | |
53 | 53 | else e(makeString(["id should be less than", toString(d), "got:", toString(s)], " "))] | |
54 | 54 | if ((t == t)) | |
55 | 55 | then makeString(["%s%s%d", "vesting", r, toString(s)], b) | |
56 | 56 | else throw("Strict value is not equal to itself.") | |
57 | 57 | } | |
58 | 58 | ||
59 | 59 | ||
60 | 60 | func u (r) = { | |
61 | 61 | let t = [if (n(r)) | |
62 | 62 | then true | |
63 | 63 | else e(makeString(["address is not valid:", r], " "))] | |
64 | 64 | if ((t == t)) | |
65 | 65 | then makeString(["%s%s", "accumulated", r], b) | |
66 | 66 | else throw("Strict value is not equal to itself.") | |
67 | 67 | } | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | func v (w,x,y) = { | |
71 | 71 | let t = [if ((w >= 0)) | |
72 | 72 | then true | |
73 | 73 | else e("vesting amount cannot be negative"), if ((x >= 0)) | |
74 | 74 | then true | |
75 | 75 | else e("start block cannot be negative"), if ((y >= 0)) | |
76 | 76 | then true | |
77 | 77 | else e("lock length cannot be negative")] | |
78 | 78 | if ((t == t)) | |
79 | 79 | then makeString(["%d%d%d%d%d", toString(w), toString(x), toString(y)], b) | |
80 | 80 | else throw("Strict value is not equal to itself.") | |
81 | 81 | } | |
82 | 82 | ||
83 | 83 | ||
84 | 84 | func z (r,s) = { | |
85 | 85 | let l = getString(this, q(r, s)) | |
86 | 86 | if ($isInstanceOf(l, "String")) | |
87 | 87 | then { | |
88 | 88 | let A = l | |
89 | 89 | let B = split(A, b) | |
90 | 90 | let w = parseIntValue(B[1]) | |
91 | 91 | let x = parseIntValue(B[2]) | |
92 | 92 | let y = parseIntValue(B[3]) | |
93 | 93 | $Tuple3(w, x, y) | |
94 | 94 | } | |
95 | 95 | else $Tuple3(0, 0, 0) | |
96 | 96 | } | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func C (D,r,E) = makeString(["%s%s%s%s", "history", D, r, E], b) | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | func F (G,x,y) = { | |
103 | 103 | let H = (height - x) | |
104 | 104 | let I = if (if ((y != 0)) | |
105 | 105 | then (H > 0) | |
106 | 106 | else false) | |
107 | 107 | then min([fraction(G, H, y), G]) | |
108 | 108 | else 0 | |
109 | 109 | $Tuple2(I, (G - I)) | |
110 | 110 | } | |
111 | 111 | ||
112 | 112 | ||
113 | 113 | func J (r,s) = { | |
114 | 114 | let K = z(r, s) | |
115 | 115 | let w = K._1 | |
116 | 116 | let x = K._2 | |
117 | 117 | let y = K._3 | |
118 | 118 | let L = F(w, x, y) | |
119 | 119 | let I = L._1 | |
120 | 120 | let M = L._2 | |
121 | 121 | $Tuple2(I, M) | |
122 | 122 | } | |
123 | 123 | ||
124 | 124 | ||
125 | 125 | func N (r,s) = { | |
126 | 126 | let O = z(r, s) | |
127 | 127 | let w = O._1 | |
128 | 128 | let x = O._2 | |
129 | 129 | let y = O._3 | |
130 | 130 | let P = J(r, s) | |
131 | 131 | let I = P._1 | |
132 | 132 | let M = P._2 | |
133 | 133 | let Q = max([((x + y) - height), 0]) | |
134 | 134 | let R = if ((I != 0)) | |
135 | 135 | then [StringEntry(q(r, s), v(M, height, Q))] | |
136 | 136 | else nil | |
137 | 137 | $Tuple2(R, I) | |
138 | 138 | } | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | func S (r,s) = { | |
142 | 142 | let T = N(r, s) | |
143 | 143 | let R = T._1 | |
144 | 144 | let I = T._2 | |
145 | 145 | let U = if ((I != 0)) | |
146 | 146 | then [ScriptTransfer(addressFromStringValue(r), I, i)] | |
147 | 147 | else nil | |
148 | 148 | $Tuple2((R ++ U), I) | |
149 | 149 | } | |
150 | 150 | ||
151 | 151 | ||
152 | 152 | func V (r) = { | |
153 | 153 | func W (X,p) = { | |
154 | 154 | let Y = X | |
155 | 155 | let Z = Y._1 | |
156 | 156 | let aa = Y._2 | |
157 | 157 | let ab = S(r, p) | |
158 | 158 | let ac = ab._1 | |
159 | 159 | let ad = ab._2 | |
160 | 160 | $Tuple2((Z ++ ac), (aa + ad)) | |
161 | 161 | } | |
162 | 162 | ||
163 | 163 | let ae = c | |
164 | 164 | let af = size(ae) | |
165 | 165 | let ag = $Tuple2(nil, 0) | |
166 | 166 | func ah (ai,aj) = if ((aj >= af)) | |
167 | 167 | then ai | |
168 | 168 | else W(ai, ae[aj]) | |
169 | 169 | ||
170 | 170 | func ak (ai,aj) = if ((aj >= af)) | |
171 | 171 | then ai | |
172 | 172 | else throw("List size exceeds 30") | |
173 | 173 | ||
174 | 174 | ak(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ag, 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) | |
175 | 175 | } | |
176 | 176 | ||
177 | 177 | ||
178 | 178 | func al (r) = { | |
179 | 179 | func W (X,p) = { | |
180 | 180 | let am = X | |
181 | 181 | let an = am._1 | |
182 | 182 | let aa = am._2 | |
183 | 183 | let ao = N(r, p) | |
184 | 184 | let R = ao._1 | |
185 | 185 | let I = ao._2 | |
186 | 186 | $Tuple2((an ++ R), (aa + I)) | |
187 | 187 | } | |
188 | 188 | ||
189 | 189 | let ap = { | |
190 | 190 | let ae = c | |
191 | 191 | let af = size(ae) | |
192 | 192 | let ag = $Tuple2(nil, 0) | |
193 | 193 | func ah (ai,aj) = if ((aj >= af)) | |
194 | 194 | then ai | |
195 | 195 | else W(ai, ae[aj]) | |
196 | 196 | ||
197 | 197 | func ak (ai,aj) = if ((aj >= af)) | |
198 | 198 | then ai | |
199 | 199 | else throw("List size exceeds 30") | |
200 | 200 | ||
201 | 201 | ak(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ag, 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) | |
202 | 202 | } | |
203 | 203 | let an = ap._1 | |
204 | 204 | let aq = ap._2 | |
205 | 205 | let ar = valueOrElse(getInteger(this, u(r)), 0) | |
206 | - | let as = [IntegerEntry(u(r), (ar + aq))] | |
206 | + | let as = if ((aq != 0)) | |
207 | + | then [IntegerEntry(u(r), (ar + aq))] | |
208 | + | else nil | |
207 | 209 | $Tuple2((an ++ as), aq) | |
208 | 210 | } | |
209 | 211 | ||
210 | 212 | ||
211 | 213 | func at (r) = { | |
212 | - | func au (av,s) = { | |
213 | - | let aw = z(r, s) | |
214 | - | let w = aw._1 | |
215 | - | let x = aw._2 | |
216 | - | let y = aw._3 | |
214 | + | let ar = valueOrElse(getInteger(this, u(r)), 0) | |
215 | + | if ((ar != 0)) | |
216 | + | then $Tuple2([ScriptTransfer(addressFromStringValue(r), ar, i), DeleteEntry(u(r))], ar) | |
217 | + | else $Tuple2(nil, 0) | |
218 | + | } | |
219 | + | ||
220 | + | ||
221 | + | func au (r) = { | |
222 | + | func av (aw,s) = { | |
223 | + | let ax = z(r, s) | |
224 | + | let w = ax._1 | |
225 | + | let x = ax._2 | |
226 | + | let y = ax._3 | |
217 | 227 | if ((w > 0)) | |
218 | - | then | |
219 | - | else if (( | |
228 | + | then aw | |
229 | + | else if ((aw == -1)) | |
220 | 230 | then s | |
221 | - | else min([ | |
231 | + | else min([aw, s]) | |
222 | 232 | } | |
223 | 233 | ||
224 | - | let | |
234 | + | let aw = { | |
225 | 235 | let ae = c | |
226 | 236 | let af = size(ae) | |
227 | 237 | let ag = -1 | |
228 | 238 | func ah (ai,aj) = if ((aj >= af)) | |
229 | 239 | then ai | |
230 | - | else | |
240 | + | else av(ai, ae[aj]) | |
231 | 241 | ||
232 | 242 | func ak (ai,aj) = if ((aj >= af)) | |
233 | 243 | then ai | |
234 | 244 | else throw("List size exceeds 30") | |
235 | 245 | ||
236 | 246 | ak(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ag, 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) | |
237 | 247 | } | |
238 | - | if (( | |
248 | + | if ((aw == -1)) | |
239 | 249 | then e(makeString(["user exceeded max active vesting count: ", r], " ")) | |
240 | - | else | |
250 | + | else aw | |
241 | 251 | } | |
242 | 252 | ||
243 | 253 | ||
244 | - | func | |
254 | + | func ay (r,s,w,x,y) = [StringEntry(q(r, s), v(w, x, y))] | |
245 | 255 | ||
246 | 256 | ||
247 | - | @Callable( | |
257 | + | @Callable(az) | |
248 | 258 | func vestingForUser (r,w,x,y) = { | |
249 | - | let | |
259 | + | let aA = [if ((size(az.payments) == 1)) | |
250 | 260 | then true | |
251 | - | else e("should be with exactly 1 payment"), if (( | |
261 | + | else e("should be with exactly 1 payment"), if ((az.payments[0].assetId == i)) | |
252 | 262 | then true | |
253 | - | else e(makeString(["payment assetId should be: ", h], " ")), if (( | |
263 | + | else e(makeString(["payment assetId should be: ", h], " ")), if ((az.payments[0].amount == w)) | |
254 | 264 | then true | |
255 | 265 | else e("payment amount should be equal to vestingAmount"), if (if ((k == nil)) | |
256 | 266 | then true | |
257 | - | else containsElement(k, toString( | |
267 | + | else containsElement(k, toString(az.caller))) | |
258 | 268 | then true | |
259 | 269 | else e("you must be admin")] | |
260 | - | if (( | |
270 | + | if ((aA == aA)) | |
261 | 271 | then { | |
262 | - | let s = | |
263 | - | let | |
264 | - | ( | |
272 | + | let s = au(r) | |
273 | + | let aB = [IntegerEntry(C("vested", r, toBase58String(az.transactionId)), w)] | |
274 | + | (ay(r, s, w, x, y) ++ aB) | |
265 | 275 | } | |
266 | 276 | else throw("Strict value is not equal to itself.") | |
267 | 277 | } | |
268 | 278 | ||
269 | 279 | ||
270 | 280 | ||
271 | - | @Callable( | |
281 | + | @Callable(az) | |
272 | 282 | func claimAll () = { | |
273 | - | let r = toString(ay.caller) | |
274 | - | let aB = V(r) | |
275 | - | let aC = aB._1 | |
276 | - | let aD = aB._2 | |
277 | - | let aA = [IntegerEntry(C("claimed", r, toBase58String(ay.transactionId)), aD)] | |
278 | - | if ((aD > 0)) | |
279 | - | then (aC ++ aA) | |
283 | + | let r = toString(az.caller) | |
284 | + | let aC = V(r) | |
285 | + | let aD = aC._1 | |
286 | + | let I = aC._2 | |
287 | + | let aE = at(r) | |
288 | + | let aF = aE._1 | |
289 | + | let aG = aE._2 | |
290 | + | let aH = (I + aG) | |
291 | + | let aB = [IntegerEntry(C("claimed", r, toBase58String(az.transactionId)), aH)] | |
292 | + | if ((aH > 0)) | |
293 | + | then ((aD ++ aF) ++ aB) | |
280 | 294 | else e("nothing to claim") | |
281 | 295 | } | |
296 | + | ||
297 | + | ||
298 | + | ||
299 | + | @Callable(az) | |
300 | + | func foo (r) = al(r) | |
282 | 301 | ||
283 | 302 |
github/deemru/w8io/169f3d6 55.32 ms ◑