tx · 5yfJPe1SVAMULjBiDZ6KKRPD7y9mPtBwiS3ek75EYT5M 3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv: -0.01400000 Waves 2024.09.13 05:39 [3281265] smart account 3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv > SELF 0.00000000 Waves
{ "type": 13, "id": "5yfJPe1SVAMULjBiDZ6KKRPD7y9mPtBwiS3ek75EYT5M", "fee": 1400000, "feeAssetId": null, "timestamp": 1726195169996, "version": 2, "chainId": 84, "sender": "3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv", "senderPublicKey": "2fNSk5gmWbXBDTkSYSKd66xSgVvAYzrJnP9YSAFNvTwC", "proofs": [ "3BiGh9MujKYxG7sfmxbuHZQ9576bk1HiXxV3Nnt3r2AwAk4MWoQfiFFythT2KpRWZDAWfes5w3mrgeo4i8FEVdfd" ], "script": "base64:BgIWCAISAwoBGBIDCgEIEgMKAQgSAwoBCFsAA1NFUAICX18ABWNoYWluCQDJAQIJAMoBAggFBHRoaXMFYnl0ZXMAAQABAAt1c2R0QXNzZXRJZAQHJG1hdGNoMAUFY2hhaW4DCQAAAgEBVwUHJG1hdGNoMAEghNp6sggDP07Ru8qO7ouTvMmC3Qtd+geWqNQj+agP/7kDCQAAAgEBVAUHJG1hdGNoMAEgVbHYn3KHgu/l41uNrAWrZd6aQ6EvFrsF8xq3h6XxxRgJAAIBAg1Vbmtub3duIGNoYWluABZkZWZhdWx0UmVzdDJBZGRyZXNzU3RyBAckbWF0Y2gwBQVjaGFpbgMJAAACAQFXBQckbWF0Y2gwAiMzUEZ3WXRhOGJpRXozMXpwZUZlNURKSzh3RTV0clNwUVZGOAMJAAACAQFUBQckbWF0Y2gwAiMzTjdVdVlhcjYyNjRQNThGQmhWV0tQUUFoNFl1YTJoZ25ndgkAAgECDVVua25vd24gY2hhaW4AFW9sZFN0YWtpbmdDb250cmFjdFN0cgQHJG1hdGNoMAUFY2hhaW4DCQAAAgEBVwUHJG1hdGNoMAIjM1BMb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265, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: G2mdREjNEm7rvRZHwiL82oYnhVh3Eu1rkoBAopBkocoS Next: 6JuEiPzZyootpYM9dga1vmVKR1RJH9rJi1NMdBW4E5Qv Diff:
Old | New | Differences | |
---|---|---|---|
308 | 308 | let bT = if ((bO == bQ)) | |
309 | 309 | then { | |
310 | 310 | let bU = fraction(bS, (bP - bN), W) | |
311 | - | let bV = | |
311 | + | let bV = bP | |
312 | 312 | $Tuple2(bU, bV) | |
313 | 313 | } | |
314 | 314 | else if ((bO == (bQ - 1))) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "__" | |
5 | 5 | ||
6 | 6 | let b = take(drop(this.bytes, 1), 1) | |
7 | 7 | ||
8 | 8 | let c = { | |
9 | 9 | let d = b | |
10 | 10 | if ((base58'2W' == d)) | |
11 | 11 | then base58'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi' | |
12 | 12 | else if ((base58'2T' == d)) | |
13 | 13 | then base58'6mWwf9mZBjVgkC54idpyaZLQfAosD914wT8fGf2iiY63' | |
14 | 14 | else throw("Unknown chain") | |
15 | 15 | } | |
16 | 16 | ||
17 | 17 | let e = { | |
18 | 18 | let d = b | |
19 | 19 | if ((base58'2W' == d)) | |
20 | 20 | then "3PFwYta8biEz31zpeFe5DJK8wE5trSpQVF8" | |
21 | 21 | else if ((base58'2T' == d)) | |
22 | 22 | then "3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv" | |
23 | 23 | else throw("Unknown chain") | |
24 | 24 | } | |
25 | 25 | ||
26 | 26 | let f = { | |
27 | 27 | let d = b | |
28 | 28 | if ((base58'2W' == d)) | |
29 | 29 | then "3PLncXtS1U83D6cQbFD3H8rBHPLgzxSFKZ1" | |
30 | 30 | else if ((base58'2T' == d)) | |
31 | 31 | then "3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm" | |
32 | 32 | else throw("Unknown chain") | |
33 | 33 | } | |
34 | 34 | ||
35 | 35 | func g (h,i) = valueOrErrorMessage(getString(h, i), makeString(["mandatory ", toString(h), ".", i, " is not defined"], "")) | |
36 | 36 | ||
37 | 37 | ||
38 | 38 | let j = 1 | |
39 | 39 | ||
40 | 40 | let k = 2 | |
41 | 41 | ||
42 | 42 | let l = 4 | |
43 | 43 | ||
44 | 44 | let m = 5 | |
45 | 45 | ||
46 | 46 | func n () = "%s__restConfig" | |
47 | 47 | ||
48 | 48 | ||
49 | 49 | func o () = "%s__rest2Addr" | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | func p (q) = split_4C(g(q, n()), a) | |
53 | 53 | ||
54 | 54 | ||
55 | 55 | func r (s,t) = valueOrErrorMessage(addressFromString(s[t]), ("Rest cfg doesn't contain address at index " + toString(t))) | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | let u = addressFromStringValue(valueOrElse(getString(this, o()), e)) | |
59 | 59 | ||
60 | 60 | let s = p(u) | |
61 | 61 | ||
62 | 62 | let v = r(s, j) | |
63 | 63 | ||
64 | 64 | let w = r(s, k) | |
65 | 65 | ||
66 | 66 | let x = r(s, l) | |
67 | 67 | ||
68 | 68 | let y = r(s, m) | |
69 | 69 | ||
70 | 70 | let z = "oldAcresContract" | |
71 | 71 | ||
72 | 72 | func A (B) = ("lastTxIdByUser_" + B) | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | let C = "wlg_assetId" | |
76 | 76 | ||
77 | 77 | let D = valueOrErrorMessage(getBinary(w, C), "WLGOLD is not issued yet") | |
78 | 78 | ||
79 | 79 | let E = "acresAssetId" | |
80 | 80 | ||
81 | 81 | let F = valueOrErrorMessage(getBinary(v, E), "ACRES is not issued yet") | |
82 | 82 | ||
83 | 83 | func G (H) = ("stakedDuckByOwner_" + H) | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func I (B) = ("accountCustomNameByAddr_" + B) | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func J (B) = ("accRefBy_" + B) | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | func K (B) = ("accReferrals_" + B) | |
93 | 93 | ||
94 | 94 | ||
95 | 95 | func L (M) = { | |
96 | 96 | let d = M | |
97 | 97 | if ($isInstanceOf(d, "(Int, Int, Int, Int)")) | |
98 | 98 | then { | |
99 | 99 | let N = d | |
100 | 100 | N | |
101 | 101 | } | |
102 | 102 | else throw("fail to cast into (Int, Int, Int, Int)") | |
103 | 103 | } | |
104 | 104 | ||
105 | 105 | ||
106 | 106 | func O (M) = { | |
107 | 107 | let d = M | |
108 | 108 | if ($isInstanceOf(d, "(Int, Int, Int)")) | |
109 | 109 | then { | |
110 | 110 | let N = d | |
111 | 111 | N | |
112 | 112 | } | |
113 | 113 | else throw("fail to cast into (Int, Int, Int)") | |
114 | 114 | } | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | func P (M) = { | |
118 | 118 | let d = M | |
119 | 119 | if ($isInstanceOf(d, "(Int, Int)")) | |
120 | 120 | then { | |
121 | 121 | let N = d | |
122 | 122 | N | |
123 | 123 | } | |
124 | 124 | else throw("fail to cast into (Int, Int)") | |
125 | 125 | } | |
126 | 126 | ||
127 | 127 | ||
128 | 128 | let Q = 1000000 | |
129 | 129 | ||
130 | 130 | let R = 100000000 | |
131 | 131 | ||
132 | 132 | let S = 100000000000000 | |
133 | 133 | ||
134 | 134 | let T = 200000 | |
135 | 135 | ||
136 | 136 | let U = 100000 | |
137 | 137 | ||
138 | 138 | let V = 400000 | |
139 | 139 | ||
140 | 140 | let W = 31557600000 | |
141 | 141 | ||
142 | 142 | let X = take(drop(this.bytes, 1), 1) | |
143 | 143 | ||
144 | 144 | let Y = { | |
145 | 145 | let d = X | |
146 | 146 | if ((base58'2W' == d)) | |
147 | 147 | then 1208630000 | |
148 | 148 | else if ((base58'2T' == d)) | |
149 | 149 | then 0 | |
150 | 150 | else throw("Unknown chain") | |
151 | 151 | } | |
152 | 152 | ||
153 | 153 | let Z = "teamAddr" | |
154 | 154 | ||
155 | 155 | let aa = "lastClaimedTime_team" | |
156 | 156 | ||
157 | 157 | let ab = "teamAmountLeft" | |
158 | 158 | ||
159 | 159 | let ac = "lastClaimedTime_activities" | |
160 | 160 | ||
161 | 161 | let ad = "activitiesAmountLeft" | |
162 | 162 | ||
163 | 163 | let ae = "stakersAmountLeft" | |
164 | 164 | ||
165 | 165 | func af (B) = ("lastClaimedTimeUser_" + B) | |
166 | 166 | ||
167 | 167 | ||
168 | 168 | func ag (ah) = fraction(S, (V * (ah + 1)), (6 * Q)) | |
169 | 169 | ||
170 | 170 | ||
171 | 171 | let ai = "wlg_issueTime" | |
172 | 172 | ||
173 | 173 | let aj = "wlg_issuedAmount" | |
174 | 174 | ||
175 | 175 | let ak = "zbill_issuedAmount" | |
176 | 176 | ||
177 | 177 | func al (B) = ("acresStakedAmountByUser_" + B) | |
178 | 178 | ||
179 | 179 | ||
180 | 180 | let am = "acresStakedAmountTotal" | |
181 | 181 | ||
182 | 182 | let an = 0 | |
183 | 183 | ||
184 | 184 | let ao = 1 | |
185 | 185 | ||
186 | 186 | let ap = 2 | |
187 | 187 | ||
188 | 188 | let aq = 3 | |
189 | 189 | ||
190 | 190 | let ar = 4 | |
191 | 191 | ||
192 | 192 | let as = [10, 20, 40, 80, 150, 250, 400, 700, 1000] | |
193 | 193 | ||
194 | 194 | func at (au) = { | |
195 | 195 | let av = (au / R) | |
196 | 196 | func aw (ax,ay) = if ((ay > av)) | |
197 | 197 | then ax | |
198 | 198 | else (ax + 1) | |
199 | 199 | ||
200 | 200 | let t = { | |
201 | 201 | let az = as | |
202 | 202 | let aA = size(az) | |
203 | 203 | let aB = 0 | |
204 | 204 | func aC (aD,aE) = if ((aE >= aA)) | |
205 | 205 | then aD | |
206 | 206 | else aw(aD, az[aE]) | |
207 | 207 | ||
208 | 208 | func aF (aD,aE) = if ((aE >= aA)) | |
209 | 209 | then aD | |
210 | 210 | else throw("List size exceeds 10") | |
211 | 211 | ||
212 | 212 | aF(aC(aC(aC(aC(aC(aC(aC(aC(aC(aC(aB, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
213 | 213 | } | |
214 | 214 | (t + 1) | |
215 | 215 | } | |
216 | 216 | ||
217 | 217 | ||
218 | 218 | func aG (au) = ((au * 20) * (at(au) + 4)) | |
219 | 219 | ||
220 | 220 | ||
221 | 221 | func aH (aI,aJ) = { | |
222 | 222 | let aK = valueOrElse(getInteger(aJ, am), 0) | |
223 | 223 | let aL = aG(aK) | |
224 | 224 | let aM = valueOrElse(getInteger(aJ, al(aI)), 0) | |
225 | 225 | let aN = aG(aM) | |
226 | 226 | [aL, aN] | |
227 | 227 | } | |
228 | 228 | ||
229 | 229 | ||
230 | 230 | let aO = 0 | |
231 | 231 | ||
232 | 232 | let aP = 1 | |
233 | 233 | ||
234 | 234 | let aQ = 0 | |
235 | 235 | ||
236 | 236 | let aR = 1 | |
237 | 237 | ||
238 | 238 | let aS = 2 | |
239 | 239 | ||
240 | 240 | let aT = 3 | |
241 | 241 | ||
242 | 242 | let aU = 4 | |
243 | 243 | ||
244 | 244 | let aV = 5 | |
245 | 245 | ||
246 | 246 | let aW = 6 | |
247 | 247 | ||
248 | 248 | let aX = 7 | |
249 | 249 | ||
250 | 250 | let aY = 8 | |
251 | 251 | ||
252 | 252 | let aZ = 9 | |
253 | 253 | ||
254 | 254 | let ba = 10 | |
255 | 255 | ||
256 | 256 | let bb = 11 | |
257 | 257 | ||
258 | 258 | let bc = 12 | |
259 | 259 | ||
260 | 260 | let bd = 13 | |
261 | 261 | ||
262 | 262 | let be = 14 | |
263 | 263 | ||
264 | 264 | let bf = 15 | |
265 | 265 | ||
266 | 266 | let bg = 16 | |
267 | 267 | ||
268 | 268 | let bh = 17 | |
269 | 269 | ||
270 | 270 | let bi = 18 | |
271 | 271 | ||
272 | 272 | let bj = 19 | |
273 | 273 | ||
274 | 274 | let bk = 20 | |
275 | 275 | ||
276 | 276 | let bl = 21 | |
277 | 277 | ||
278 | 278 | let bm = 22 | |
279 | 279 | ||
280 | 280 | func bn (bo,bp,bq,br) = { | |
281 | 281 | let bs = valueOrErrorMessage(getInteger(bp[ap], aj), "WLGOLD is not issued yet") | |
282 | 282 | let bt = assetBalance(bp[an], bq) | |
283 | 283 | let bu = (assetBalance(bp[ap], bq) - br) | |
284 | 284 | let bv = assetBalance(bp[aq], bq) | |
285 | 285 | let bw = bp[ar] | |
286 | 286 | let bx = (assetBalance(bw, bq) + valueOrElse(getInteger(bw, ak), 0)) | |
287 | 287 | let by = (bu + bx) | |
288 | 288 | let bz = valueOrErrorMessage(getBinary(bp[ap], "wlg_assetId"), "Not initialized yet") | |
289 | 289 | let bA = lastBlock.timestamp | |
290 | 290 | let bB = valueOrErrorMessage(getInteger(bp[ap], ai), "Not initialized") | |
291 | 291 | let bC = fraction(S, T, Q) | |
292 | 292 | let bD = valueOrElse(getInteger(bp[ap], ab), bC) | |
293 | 293 | let bE = valueOrElse(getInteger(bp[ap], aa), bB) | |
294 | 294 | let bF = addressFromStringValue(value(getString(bp[ap], Z))) | |
295 | 295 | let bG = min([fraction(bC, (bA - bE), (3 * W)), bD]) | |
296 | 296 | let bH = assetBalance(bF, bz) | |
297 | 297 | let bI = fraction(S, U, Q) | |
298 | 298 | let bJ = valueOrElse(getInteger(bp[ap], ad), bI) | |
299 | 299 | let bK = valueOrElse(getInteger(bp[ap], ac), bB) | |
300 | 300 | let bL = min([fraction(bI, (bA - bK), (3 * W)), bJ]) | |
301 | 301 | let bM = assetBalance(bp[an], bz) | |
302 | 302 | let bN = valueOrElse(getInteger(bp[ap], af(bo)), bB) | |
303 | 303 | let bO = ((bN - bB) / W) | |
304 | 304 | let bP = min([bA, (bB + (3 * W))]) | |
305 | 305 | let bQ = min([((bA - bB) / W), 2]) | |
306 | 306 | let bR = aH(bo, bp[ao]) | |
307 | 307 | let bS = ag(bQ) | |
308 | 308 | let bT = if ((bO == bQ)) | |
309 | 309 | then { | |
310 | 310 | let bU = fraction(bS, (bP - bN), W) | |
311 | - | let bV = | |
311 | + | let bV = bP | |
312 | 312 | $Tuple2(bU, bV) | |
313 | 313 | } | |
314 | 314 | else if ((bO == (bQ - 1))) | |
315 | 315 | then { | |
316 | 316 | let bW = fraction(ag((bQ - 1)), ((bB + (W * bQ)) - bN), W) | |
317 | 317 | let bU = fraction(bS, (bP - (bB + (W * bQ))), W) | |
318 | 318 | let bX = (bW + bU) | |
319 | 319 | let bV = if ((bW >= bX)) | |
320 | 320 | then (bN + fraction(W, bX, ag((bQ - 1)))) | |
321 | 321 | else ((bB + (W * bQ)) + fraction(W, (bX - bW), bS)) | |
322 | 322 | $Tuple2(bX, bV) | |
323 | 323 | } | |
324 | 324 | else { | |
325 | 325 | let bY = fraction(ag((bQ - 2)), ((bB + (W * (bQ - 1))) - bN), W) | |
326 | 326 | let bW = ag((bQ - 1)) | |
327 | 327 | let bU = fraction(bS, (bP - (bB + (W * bQ))), W) | |
328 | 328 | let bX = ((bY + bW) + bU) | |
329 | 329 | let bV = if ((bY >= bX)) | |
330 | 330 | then (bN + fraction(W, bX, ag((bQ - 2)))) | |
331 | 331 | else if (((bY + bW) >= bX)) | |
332 | 332 | then ((bB + (W * (bQ - 1))) + fraction(W, (bX - bY), ag((bQ - 1)))) | |
333 | 333 | else ((bB + (W * bQ)) + fraction(W, ((bX - bY) - bW), bS)) | |
334 | 334 | $Tuple2(bX, bV) | |
335 | 335 | } | |
336 | 336 | let bZ = bT._1 | |
337 | 337 | let ca = bT._2 | |
338 | 338 | let cb = valueOrElse(getInteger(bp[ap], ae), 0) | |
339 | 339 | let cc = if ((bR[aO] != 0)) | |
340 | 340 | then fraction(bZ, bR[aP], bR[aO]) | |
341 | 341 | else 0 | |
342 | 342 | [bs, fraction((by - Y), R, bs), by, bt, bu, bv, bB, bE, bC, bD, bG, bH, bI, bJ, bL, bM, bQ, cb, bS, bN, bx, cc, ca] | |
343 | 343 | } | |
344 | 344 | ||
345 | 345 | ||
346 | 346 | func cd (ce) = { | |
347 | 347 | let B = addressFromString(ce) | |
348 | 348 | let cf = if (isDefined(B)) | |
349 | 349 | then wavesBalance(value(B)) | |
350 | 350 | else BalanceDetails(0, 0, 0, 0) | |
351 | 351 | let cg = if (isDefined(B)) | |
352 | 352 | then assetBalance(value(B), D) | |
353 | 353 | else 0 | |
354 | 354 | let ch = valueOrElse(getString(v, I(ce)), ce) | |
355 | 355 | let ci = J(ce) | |
356 | 356 | let cj = getString(v, ci) | |
357 | 357 | let ck = valueOrElse(getString(v, K(ce)), "") | |
358 | 358 | let cl = valueOrElse(getString(v, A(ce)), "") | |
359 | 359 | let cm = if (isDefined(B)) | |
360 | 360 | then assetBalance(value(B), F) | |
361 | 361 | else 0 | |
362 | 362 | let cn = valueOrElse(getInteger(v, al(ce)), 0) | |
363 | 363 | let co = at(cm) | |
364 | 364 | [("%s%s__customName__" + ch), ("%s%s__referredBy__" + valueOrElse(cj, "")), ("%s%s__referrals__" + ck), ("%s%s__lastTxId__" + cl), ("%s%d__wavesBalance__" + toString(cf.available)), ("%s%d__wlgoldBalance__" + toString(cg)), ("%s%d__acresBalance__" + toString(cm)), ("%s%d__stakedAcres__" + toString(cn)), ("%s%d__currentLvl__" + toString(co))] | |
365 | 365 | } | |
366 | 366 | ||
367 | 367 | ||
368 | 368 | @Callable(cp) | |
369 | 369 | func constructorV1 (bp) = if ((cp.caller != this)) | |
370 | 370 | then throw("permissions denied") | |
371 | 371 | else { | |
372 | 372 | func cq (ax,cr) = (ax + "%s") | |
373 | 373 | ||
374 | 374 | let cs = { | |
375 | 375 | let az = bp | |
376 | 376 | let aA = size(az) | |
377 | 377 | let aB = "" | |
378 | 378 | func aC (aD,aE) = if ((aE >= aA)) | |
379 | 379 | then aD | |
380 | 380 | else cq(aD, az[aE]) | |
381 | 381 | ||
382 | 382 | func aF (aD,aE) = if ((aE >= aA)) | |
383 | 383 | then aD | |
384 | 384 | else throw("List size exceeds 10") | |
385 | 385 | ||
386 | 386 | aF(aC(aC(aC(aC(aC(aC(aC(aC(aC(aC(aB, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
387 | 387 | } | |
388 | 388 | [StringEntry(n(), makeString(cs :: bp, a)), StringEntry(o(), toString(this))] | |
389 | 389 | } | |
390 | 390 | ||
391 | 391 | ||
392 | 392 | ||
393 | 393 | @Callable(cp) | |
394 | 394 | func walletInfoREADONLY (ce) = $Tuple2(nil, cd(ce)) | |
395 | 395 | ||
396 | 396 | ||
397 | 397 | ||
398 | 398 | @Callable(cp) | |
399 | 399 | func conversionInfoREADONLY (ce) = { | |
400 | 400 | let ct = addressFromStringValue(getStringValue(v, z)) | |
401 | 401 | let cu = P(invoke(ct, "unstakeAllAcresREADONLY", [ce], nil)) | |
402 | 402 | let cv = cu._1 | |
403 | 403 | let cw = cu._2 | |
404 | 404 | let cx = L(invoke(v, "unstakeLandsREADONLY", [ce], nil)) | |
405 | 405 | let cy = cx._1 | |
406 | 406 | let cz = cx._2 | |
407 | 407 | let cA = cx._3 | |
408 | 408 | let cB = cx._4 | |
409 | 409 | let cC = addressFromStringValue(f) | |
410 | 410 | let cD = valueOrElse(getString(cC, G(ce)), "") | |
411 | 411 | let cE = if ((cD != "")) | |
412 | 412 | then O(invoke(cC, "unstakeDuckREADONLY", [cD, ce], nil)) | |
413 | 413 | else $Tuple3(0, 0, 0) | |
414 | 414 | let cF = cE._1 | |
415 | 415 | let cG = cE._2 | |
416 | 416 | let cH = cE._3 | |
417 | 417 | $Tuple2(nil, [("%s%d__unstakedAcres__" + toString(cv)), ("%s%d__claimedAcres__" + toString(cw)), ("%s%d__acresFromPieces__" + toString(cy)), ("%s%d__acresFromRes__" + toString(cz)), ("%s%d__acresFromMat__" + toString(cA)), ("%s%d__acresFromProd__" + toString(cB)), ("%s%d__acresFromDuckRes__" + toString(cF)), ("%s%d__acresFromDuckMat__" + toString(cG)), ("%s%d__acresFromDuckProd__" + toString(cH))]) | |
418 | 418 | } | |
419 | 419 | ||
420 | 420 | ||
421 | 421 | ||
422 | 422 | @Callable(cp) | |
423 | 423 | func wlgStatsREADONLY (bo) = { | |
424 | 424 | let cI = bn(bo, [u, v, w, x, y], c, 0) | |
425 | 425 | $Tuple2(nil, [("%s%d__wlgAmount__" + toString(cI[aQ])), ("%s%d__wlgPrice__" + toString(cI[aR])), ("%s%d__usdtFunds__" + toString(cI[aS])), ("%s%d__usdtActivity__" + toString(cI[aT])), ("%s%d__usdtArbitrage__" + toString(cI[aU])), ("%s%d__usdtPool__" + toString(cI[aV])), ("%s%d__wlgIssueTime__" + toString(cI[aW])), ("%s%d__wlgLastMarketingTeamActTime__" + toString(cI[aX])), ("%s%d__wlgTeamTotal__" + toString(cI[aY])), ("%s%d__wlgTeamAmLeft__" + toString(cI[aZ])), ("%s%d__wlgTeamAmAvailNow__" + toString(cI[ba])), ("%s%d__wlgTeamWlgold__" + toString(cI[bb])), ("%s%d__wlgActTotal__" + toString(cI[bc])), ("%s%d__wlgActAmLeft__" + toString(cI[bd])), ("%s%d__wlgActAmAvailNow__" + toString(cI[be])), ("%s%d__wlgActWlgold__" + toString(cI[bf])), ("%s%d__wlgCurPeriod__" + toString(cI[bg])), ("%s%d__wlgAmLeftTotal__" + toString(cI[bh])), ("%s%d__wlgCurPeriodDistribution__" + toString(cI[bi])), ("%s%d__wlgLastUserTime__" + toString(cI[bj])), ("%s%d__wlgInvestFundTotal__" + toString(cI[bk])), ("%s%d__wlgUserAmAvailNow__" + toString(cI[bl])), ("%s%d__wlgEffUserTime__" + toString(cI[bm]))]) | |
426 | 426 | } | |
427 | 427 | ||
428 | 428 |
github/deemru/w8io/169f3d6 52.51 ms ◑