tx · 6JuEiPzZyootpYM9dga1vmVKR1RJH9rJi1NMdBW4E5Qv 3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv: -0.01400000 Waves 2024.09.15 14:55 [3284744] smart account 3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv > SELF 0.00000000 Waves
{ "type": 13, "id": "6JuEiPzZyootpYM9dga1vmVKR1RJH9rJi1NMdBW4E5Qv", "fee": 1400000, "feeAssetId": null, "timestamp": 1726401362493, "version": 2, "chainId": 84, "sender": "3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv", "senderPublicKey": "2fNSk5gmWbXBDTkSYSKd66xSgVvAYzrJnP9YSAFNvTwC", "proofs": [ "2gaw5ok7PnR3wbjbuhtjARAUUBgFnE8E8cfFjZpFPYQFWFucpxduVhnwGrz8MULPyMRh1o8qLWgiGn7qeMi7Vgxt" ], "script": "base64:BgIWCAISAwoBGBIDCgEIEgMKAQgSAwoBCFsAA1NFUAICX18ABWNoYWluCQDJAQIJAMoBAggFBHRoaXMFYnl0ZXMAAQABAAt1c2R0QXNzZXRJZAQHJG1hdGNoMAUFY2hhaW4DCQAAAgEBVwUHJG1hdGNoMAEghNp6sggDP07Ru8qO7ouTvMmC3Qtd+geWqNQj+agP/7kDCQAAAgEBVAUHJG1hdGNoMAEgVbHYn3KHgu/l41uNrAWrZd6aQ6EvFrsF8xq3h6XxxRgJAAIBAg1Vbmtub3duIGNoYWluABZkZWZhdWx0UmVzdDJBZGRyZXNzU3RyBAckbWF0Y2gwBQVjaGFpbgMJAAACAQFXBQckbWF0Y2gwAiMzUEZ3WXRhOGJpRXozMXpwZUZlNURKSzh3RTV0clNwUVZGOAMJAAACAQFUBQckbWF0Y2gwAiMzTjdVdVlhcjYyNjRQNThGQmhWV0tQUUFoNFl1YTJoZ25ndgkAAgECDVVua25vd24gY2hhaW4AFW9sZFN0YWtpbmdDb250cmFjdFN0cgQHJG1hdGNoMAUFY2hhaW4DCQAAAgEBVwUHJG1hdGNoMAIjM1BMbm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dmFpbE5vd19fCQCkAwEJAJEDAgUIY3VyU3RhdHMFE2l4V2xnVXNlckFtQXZhaWxOb3cJAMwIAgkArAICAhYlcyVkX193bGdFZmZVc2VyVGltZV9fCQCkAwEJAJEDAgUIY3VyU3RhdHMFEGl4V2xnRWZmVXNlclRpbWUFA25pbAC+o804", "height": 3284744, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5yfJPe1SVAMULjBiDZ6KKRPD7y9mPtBwiS3ek75EYT5M Next: 4YH7Usrv4JmkBtnLpJktSu8zAedkzc3oyohNk7iUegtT Diff:
Old | New | Differences | |
---|---|---|---|
177 | 177 | func al (B) = ("acresStakedAmountByUser_" + B) | |
178 | 178 | ||
179 | 179 | ||
180 | - | let am = " | |
180 | + | let am = "totalFarmingPower" | |
181 | 181 | ||
182 | 182 | let an = 0 | |
183 | 183 | ||
218 | 218 | func aG (au) = ((au * 20) * (at(au) + 4)) | |
219 | 219 | ||
220 | 220 | ||
221 | - | func aH (aI,aJ) = { | |
222 | - | let aK = valueOrElse(getInteger(aJ, am), 0) | |
221 | + | func aH (aI,v) = { | |
222 | + | let aJ = valueOrElse(getInteger(v, am), 0) | |
223 | + | let aK = valueOrElse(getInteger(v, al(aI)), 0) | |
223 | 224 | let aL = aG(aK) | |
224 | - | let aM = valueOrElse(getInteger(aJ, al(aI)), 0) | |
225 | - | let aN = aG(aM) | |
226 | - | [aL, aN] | |
225 | + | [aJ, aL] | |
227 | 226 | } | |
228 | 227 | ||
228 | + | ||
229 | + | let aM = 0 | |
230 | + | ||
231 | + | let aN = 1 | |
229 | 232 | ||
230 | 233 | let aO = 0 | |
231 | 234 | ||
232 | 235 | let aP = 1 | |
233 | 236 | ||
234 | - | let aQ = | |
237 | + | let aQ = 2 | |
235 | 238 | ||
236 | - | let aR = | |
239 | + | let aR = 3 | |
237 | 240 | ||
238 | - | let aS = | |
241 | + | let aS = 4 | |
239 | 242 | ||
240 | - | let aT = | |
243 | + | let aT = 5 | |
241 | 244 | ||
242 | - | let aU = | |
245 | + | let aU = 6 | |
243 | 246 | ||
244 | - | let aV = | |
247 | + | let aV = 7 | |
245 | 248 | ||
246 | - | let aW = | |
249 | + | let aW = 8 | |
247 | 250 | ||
248 | - | let aX = | |
251 | + | let aX = 9 | |
249 | 252 | ||
250 | - | let aY = | |
253 | + | let aY = 10 | |
251 | 254 | ||
252 | - | let aZ = | |
255 | + | let aZ = 11 | |
253 | 256 | ||
254 | - | let ba = | |
257 | + | let ba = 12 | |
255 | 258 | ||
256 | - | let bb = | |
259 | + | let bb = 13 | |
257 | 260 | ||
258 | - | let bc = | |
261 | + | let bc = 14 | |
259 | 262 | ||
260 | - | let bd = | |
263 | + | let bd = 15 | |
261 | 264 | ||
262 | - | let be = | |
265 | + | let be = 16 | |
263 | 266 | ||
264 | - | let bf = | |
267 | + | let bf = 17 | |
265 | 268 | ||
266 | - | let bg = | |
269 | + | let bg = 18 | |
267 | 270 | ||
268 | - | let bh = | |
271 | + | let bh = 19 | |
269 | 272 | ||
270 | - | let bi = | |
273 | + | let bi = 20 | |
271 | 274 | ||
272 | - | let bj = | |
275 | + | let bj = 21 | |
273 | 276 | ||
274 | - | let bk = | |
277 | + | let bk = 22 | |
275 | 278 | ||
276 | - | let bl = 21 | |
277 | - | ||
278 | - | let bm = 22 | |
279 | - | ||
280 | - | func bn (bo,bp,bq,br) = { | |
281 | - | let bs = valueOrErrorMessage(getInteger(bp[ap], aj), "WLGOLD is not issued yet") | |
282 | - | let bt = assetBalance(bp[an], bq) | |
283 | - | let bu = (assetBalance(bp[ap], bq) - br) | |
284 | - | let bv = assetBalance(bp[aq], bq) | |
285 | - | let bw = bp[ar] | |
286 | - | let bx = (assetBalance(bw, bq) + valueOrElse(getInteger(bw, ak), 0)) | |
287 | - | let by = (bu + bx) | |
288 | - | let bz = valueOrErrorMessage(getBinary(bp[ap], "wlg_assetId"), "Not initialized yet") | |
289 | - | let bA = lastBlock.timestamp | |
290 | - | let bB = valueOrErrorMessage(getInteger(bp[ap], ai), "Not initialized") | |
291 | - | let bC = fraction(S, T, Q) | |
292 | - | let bD = valueOrElse(getInteger(bp[ap], ab), bC) | |
293 | - | let bE = valueOrElse(getInteger(bp[ap], aa), bB) | |
294 | - | let bF = addressFromStringValue(value(getString(bp[ap], Z))) | |
295 | - | let bG = min([fraction(bC, (bA - bE), (3 * W)), bD]) | |
296 | - | let bH = assetBalance(bF, bz) | |
297 | - | let bI = fraction(S, U, Q) | |
298 | - | let bJ = valueOrElse(getInteger(bp[ap], ad), bI) | |
299 | - | let bK = valueOrElse(getInteger(bp[ap], ac), bB) | |
300 | - | let bL = min([fraction(bI, (bA - bK), (3 * W)), bJ]) | |
301 | - | let bM = assetBalance(bp[an], bz) | |
302 | - | let bN = valueOrElse(getInteger(bp[ap], af(bo)), bB) | |
303 | - | let bO = ((bN - bB) / W) | |
304 | - | let bP = min([bA, (bB + (3 * W))]) | |
305 | - | let bQ = min([((bA - bB) / W), 2]) | |
306 | - | let bR = aH(bo, bp[ao]) | |
307 | - | let bS = ag(bQ) | |
308 | - | let bT = if ((bO == bQ)) | |
279 | + | func bl (bm,bn,bo,bp) = { | |
280 | + | let bq = valueOrErrorMessage(getInteger(bn[ap], aj), "WLGOLD is not issued yet") | |
281 | + | let br = assetBalance(bn[an], bo) | |
282 | + | let bs = (assetBalance(bn[ap], bo) - bp) | |
283 | + | let bt = assetBalance(bn[aq], bo) | |
284 | + | let bu = bn[ar] | |
285 | + | let bv = (assetBalance(bu, bo) + valueOrElse(getInteger(bu, ak), 0)) | |
286 | + | let bw = (bs + bv) | |
287 | + | let bx = valueOrErrorMessage(getBinary(bn[ap], "wlg_assetId"), "Not initialized yet") | |
288 | + | let by = lastBlock.timestamp | |
289 | + | let bz = valueOrErrorMessage(getInteger(bn[ap], ai), "Not initialized") | |
290 | + | let bA = fraction(S, T, Q) | |
291 | + | let bB = valueOrElse(getInteger(bn[ap], ab), bA) | |
292 | + | let bC = valueOrElse(getInteger(bn[ap], aa), bz) | |
293 | + | let bD = addressFromStringValue(value(getString(bn[ap], Z))) | |
294 | + | let bE = min([fraction(bA, (by - bC), (3 * W)), bB]) | |
295 | + | let bF = assetBalance(bD, bx) | |
296 | + | let bG = fraction(S, U, Q) | |
297 | + | let bH = valueOrElse(getInteger(bn[ap], ad), bG) | |
298 | + | let bI = valueOrElse(getInteger(bn[ap], ac), bz) | |
299 | + | let bJ = min([fraction(bG, (by - bI), (3 * W)), bH]) | |
300 | + | let bK = assetBalance(bn[an], bx) | |
301 | + | let bL = valueOrElse(getInteger(bn[ap], af(bm)), bz) | |
302 | + | let bM = ((bL - bz) / W) | |
303 | + | let bN = min([by, (bz + (3 * W))]) | |
304 | + | let bO = min([((by - bz) / W), 2]) | |
305 | + | let bP = aH(bm, bn[ao]) | |
306 | + | let bQ = ag(bO) | |
307 | + | let bR = if ((bM == bO)) | |
309 | 308 | then { | |
310 | - | let | |
311 | - | let | |
312 | - | $Tuple2( | |
309 | + | let bS = fraction(bQ, (bN - bL), W) | |
310 | + | let bT = bN | |
311 | + | $Tuple2(bS, bT) | |
313 | 312 | } | |
314 | - | else if (( | |
313 | + | else if ((bM == (bO - 1))) | |
315 | 314 | then { | |
316 | - | let | |
317 | - | let | |
318 | - | let | |
319 | - | let | |
320 | - | then ( | |
321 | - | else (( | |
322 | - | $Tuple2( | |
315 | + | let bU = fraction(ag((bO - 1)), ((bz + (W * bO)) - bL), W) | |
316 | + | let bS = fraction(bQ, (bN - (bz + (W * bO))), W) | |
317 | + | let bV = (bU + bS) | |
318 | + | let bT = if ((bU >= bV)) | |
319 | + | then (bL + fraction(W, bV, ag((bO - 1)))) | |
320 | + | else ((bz + (W * bO)) + fraction(W, (bV - bU), bQ)) | |
321 | + | $Tuple2(bV, bT) | |
323 | 322 | } | |
324 | 323 | else { | |
325 | - | let | |
326 | - | let | |
327 | - | let | |
328 | - | let | |
329 | - | let | |
330 | - | then ( | |
331 | - | else if ((( | |
332 | - | then (( | |
333 | - | else (( | |
334 | - | $Tuple2( | |
324 | + | let bW = fraction(ag((bO - 2)), ((bz + (W * (bO - 1))) - bL), W) | |
325 | + | let bU = ag((bO - 1)) | |
326 | + | let bS = fraction(bQ, (bN - (bz + (W * bO))), W) | |
327 | + | let bV = ((bW + bU) + bS) | |
328 | + | let bT = if ((bW >= bV)) | |
329 | + | then (bL + fraction(W, bV, ag((bO - 2)))) | |
330 | + | else if (((bW + bU) >= bV)) | |
331 | + | then ((bz + (W * (bO - 1))) + fraction(W, (bV - bW), ag((bO - 1)))) | |
332 | + | else ((bz + (W * bO)) + fraction(W, ((bV - bW) - bU), bQ)) | |
333 | + | $Tuple2(bV, bT) | |
335 | 334 | } | |
336 | - | let | |
337 | - | let | |
338 | - | let | |
339 | - | let | |
340 | - | then fraction( | |
335 | + | let bX = bR._1 | |
336 | + | let bY = bR._2 | |
337 | + | let bZ = valueOrElse(getInteger(bn[ap], ae), 0) | |
338 | + | let ca = if ((bP[aM] != 0)) | |
339 | + | then fraction(bX, bP[aN], bP[aM]) | |
341 | 340 | else 0 | |
342 | - | [ | |
341 | + | [bq, fraction((bw - Y), R, bq), bw, br, bs, bt, bz, bC, bA, bB, bE, bF, bG, bH, bJ, bK, bO, bZ, bQ, bL, bv, ca, bY] | |
343 | 342 | } | |
344 | 343 | ||
345 | 344 | ||
346 | - | func | |
347 | - | let B = addressFromString( | |
348 | - | let | |
345 | + | func cb (cc) = { | |
346 | + | let B = addressFromString(cc) | |
347 | + | let cd = if (isDefined(B)) | |
349 | 348 | then wavesBalance(value(B)) | |
350 | 349 | else BalanceDetails(0, 0, 0, 0) | |
351 | - | let | |
350 | + | let ce = if (isDefined(B)) | |
352 | 351 | then assetBalance(value(B), D) | |
353 | 352 | else 0 | |
354 | - | let | |
355 | - | let | |
356 | - | let | |
357 | - | let | |
358 | - | let | |
359 | - | let | |
353 | + | let cf = valueOrElse(getString(v, I(cc)), cc) | |
354 | + | let cg = J(cc) | |
355 | + | let ch = getString(v, cg) | |
356 | + | let ci = valueOrElse(getString(v, K(cc)), "") | |
357 | + | let cj = valueOrElse(getString(v, A(cc)), "") | |
358 | + | let ck = if (isDefined(B)) | |
360 | 359 | then assetBalance(value(B), F) | |
361 | 360 | else 0 | |
362 | - | let cn = valueOrElse(getInteger(v, al(ce)), 0) | |
363 | - | let co = at(cm) | |
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))] | |
361 | + | let cl = valueOrElse(getInteger(v, al(cc)), 0) | |
362 | + | let cm = at(ck) | |
363 | + | let cn = aH(cc, v) | |
364 | + | [("%s%s__customName__" + cf), ("%s%s__referredBy__" + valueOrElse(ch, "")), ("%s%s__referrals__" + ci), ("%s%s__lastTxId__" + cj), ("%s%d__wavesBalance__" + toString(cd.available)), ("%s%d__wlgoldBalance__" + toString(ce)), ("%s%d__acresBalance__" + toString(ck)), ("%s%d__stakedAcres__" + toString(cl)), ("%s%d__currentLvl__" + toString(cm)), ("%s%d__userFarmingPower__" + toString(cn[aN])), ("%s%d__totalFarmingPower__" + toString(cn[aM]))] | |
365 | 365 | } | |
366 | 366 | ||
367 | 367 | ||
368 | - | @Callable( | |
369 | - | func constructorV1 ( | |
368 | + | @Callable(co) | |
369 | + | func constructorV1 (bn) = if ((co.caller != this)) | |
370 | 370 | then throw("permissions denied") | |
371 | 371 | else { | |
372 | - | func | |
372 | + | func cp (ax,cq) = (ax + "%s") | |
373 | 373 | ||
374 | - | let | |
375 | - | let az = | |
374 | + | let cr = { | |
375 | + | let az = bn | |
376 | 376 | let aA = size(az) | |
377 | 377 | let aB = "" | |
378 | 378 | func aC (aD,aE) = if ((aE >= aA)) | |
379 | 379 | then aD | |
380 | - | else | |
380 | + | else cp(aD, az[aE]) | |
381 | 381 | ||
382 | 382 | func aF (aD,aE) = if ((aE >= aA)) | |
383 | 383 | then aD | |
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 | - | [StringEntry(n(), makeString( | |
388 | + | [StringEntry(n(), makeString(cr :: bn, a)), StringEntry(o(), toString(this))] | |
389 | 389 | } | |
390 | 390 | ||
391 | 391 | ||
392 | 392 | ||
393 | - | @Callable( | |
394 | - | func walletInfoREADONLY ( | |
393 | + | @Callable(co) | |
394 | + | func walletInfoREADONLY (cc) = $Tuple2(nil, cb(cc)) | |
395 | 395 | ||
396 | 396 | ||
397 | 397 | ||
398 | - | @Callable( | |
399 | - | func conversionInfoREADONLY ( | |
400 | - | let | |
401 | - | let | |
402 | - | let | |
403 | - | let | |
404 | - | let | |
405 | - | let | |
406 | - | let | |
407 | - | let | |
408 | - | let | |
409 | - | let | |
410 | - | let | |
411 | - | let | |
412 | - | then O(invoke( | |
398 | + | @Callable(co) | |
399 | + | func conversionInfoREADONLY (cc) = { | |
400 | + | let cs = addressFromStringValue(getStringValue(v, z)) | |
401 | + | let ct = P(invoke(cs, "unstakeAllAcresREADONLY", [cc], nil)) | |
402 | + | let cu = ct._1 | |
403 | + | let cv = ct._2 | |
404 | + | let cw = L(invoke(v, "unstakeLandsREADONLY", [cc], nil)) | |
405 | + | let cx = cw._1 | |
406 | + | let cy = cw._2 | |
407 | + | let cz = cw._3 | |
408 | + | let cA = cw._4 | |
409 | + | let cB = addressFromStringValue(f) | |
410 | + | let cC = valueOrElse(getString(cB, G(cc)), "") | |
411 | + | let cD = if ((cC != "")) | |
412 | + | then O(invoke(cB, "unstakeDuckREADONLY", [cC, cc], nil)) | |
413 | 413 | else $Tuple3(0, 0, 0) | |
414 | - | let | |
415 | - | let | |
416 | - | let | |
417 | - | $Tuple2(nil, [("%s%d__unstakedAcres__" + toString( | |
414 | + | let cE = cD._1 | |
415 | + | let cF = cD._2 | |
416 | + | let cG = cD._3 | |
417 | + | $Tuple2(nil, [("%s%d__unstakedAcres__" + toString(cu)), ("%s%d__claimedAcres__" + toString(cv)), ("%s%d__acresFromPieces__" + toString(cx)), ("%s%d__acresFromRes__" + toString(cy)), ("%s%d__acresFromMat__" + toString(cz)), ("%s%d__acresFromProd__" + toString(cA)), ("%s%d__acresFromDuckRes__" + toString(cE)), ("%s%d__acresFromDuckMat__" + toString(cF)), ("%s%d__acresFromDuckProd__" + toString(cG))]) | |
418 | 418 | } | |
419 | 419 | ||
420 | 420 | ||
421 | 421 | ||
422 | - | @Callable( | |
423 | - | func wlgStatsREADONLY ( | |
424 | - | let | |
425 | - | $Tuple2(nil, [("%s%d__wlgAmount__" + toString( | |
422 | + | @Callable(co) | |
423 | + | func wlgStatsREADONLY (bm) = { | |
424 | + | let cH = bl(bm, [u, v, w, x, y], c, 0) | |
425 | + | $Tuple2(nil, [("%s%d__wlgAmount__" + toString(cH[aO])), ("%s%d__wlgPrice__" + toString(cH[aP])), ("%s%d__usdtFunds__" + toString(cH[aQ])), ("%s%d__usdtActivity__" + toString(cH[aR])), ("%s%d__usdtArbitrage__" + toString(cH[aS])), ("%s%d__usdtPool__" + toString(cH[aT])), ("%s%d__wlgIssueTime__" + toString(cH[aU])), ("%s%d__wlgLastMarketingTeamActTime__" + toString(cH[aV])), ("%s%d__wlgTeamTotal__" + toString(cH[aW])), ("%s%d__wlgTeamAmLeft__" + toString(cH[aX])), ("%s%d__wlgTeamAmAvailNow__" + toString(cH[aY])), ("%s%d__wlgTeamWlgold__" + toString(cH[aZ])), ("%s%d__wlgActTotal__" + toString(cH[ba])), ("%s%d__wlgActAmLeft__" + toString(cH[bb])), ("%s%d__wlgActAmAvailNow__" + toString(cH[bc])), ("%s%d__wlgActWlgold__" + toString(cH[bd])), ("%s%d__wlgCurPeriod__" + toString(cH[be])), ("%s%d__wlgAmLeftTotal__" + toString(cH[bf])), ("%s%d__wlgCurPeriodDistribution__" + toString(cH[bg])), ("%s%d__wlgLastUserTime__" + toString(cH[bh])), ("%s%d__wlgInvestFundTotal__" + toString(cH[bi])), ("%s%d__wlgUserAmAvailNow__" + toString(cH[bj])), ("%s%d__wlgEffUserTime__" + toString(cH[bk]))]) | |
426 | 426 | } | |
427 | 427 | ||
428 | 428 |
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 | - | let am = " | |
180 | + | let am = "totalFarmingPower" | |
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 | - | func aH (aI,aJ) = { | |
222 | - | let aK = valueOrElse(getInteger(aJ, am), 0) | |
221 | + | func aH (aI,v) = { | |
222 | + | let aJ = valueOrElse(getInteger(v, am), 0) | |
223 | + | let aK = valueOrElse(getInteger(v, al(aI)), 0) | |
223 | 224 | let aL = aG(aK) | |
224 | - | let aM = valueOrElse(getInteger(aJ, al(aI)), 0) | |
225 | - | let aN = aG(aM) | |
226 | - | [aL, aN] | |
225 | + | [aJ, aL] | |
227 | 226 | } | |
228 | 227 | ||
228 | + | ||
229 | + | let aM = 0 | |
230 | + | ||
231 | + | let aN = 1 | |
229 | 232 | ||
230 | 233 | let aO = 0 | |
231 | 234 | ||
232 | 235 | let aP = 1 | |
233 | 236 | ||
234 | - | let aQ = | |
237 | + | let aQ = 2 | |
235 | 238 | ||
236 | - | let aR = | |
239 | + | let aR = 3 | |
237 | 240 | ||
238 | - | let aS = | |
241 | + | let aS = 4 | |
239 | 242 | ||
240 | - | let aT = | |
243 | + | let aT = 5 | |
241 | 244 | ||
242 | - | let aU = | |
245 | + | let aU = 6 | |
243 | 246 | ||
244 | - | let aV = | |
247 | + | let aV = 7 | |
245 | 248 | ||
246 | - | let aW = | |
249 | + | let aW = 8 | |
247 | 250 | ||
248 | - | let aX = | |
251 | + | let aX = 9 | |
249 | 252 | ||
250 | - | let aY = | |
253 | + | let aY = 10 | |
251 | 254 | ||
252 | - | let aZ = | |
255 | + | let aZ = 11 | |
253 | 256 | ||
254 | - | let ba = | |
257 | + | let ba = 12 | |
255 | 258 | ||
256 | - | let bb = | |
259 | + | let bb = 13 | |
257 | 260 | ||
258 | - | let bc = | |
261 | + | let bc = 14 | |
259 | 262 | ||
260 | - | let bd = | |
263 | + | let bd = 15 | |
261 | 264 | ||
262 | - | let be = | |
265 | + | let be = 16 | |
263 | 266 | ||
264 | - | let bf = | |
267 | + | let bf = 17 | |
265 | 268 | ||
266 | - | let bg = | |
269 | + | let bg = 18 | |
267 | 270 | ||
268 | - | let bh = | |
271 | + | let bh = 19 | |
269 | 272 | ||
270 | - | let bi = | |
273 | + | let bi = 20 | |
271 | 274 | ||
272 | - | let bj = | |
275 | + | let bj = 21 | |
273 | 276 | ||
274 | - | let bk = | |
277 | + | let bk = 22 | |
275 | 278 | ||
276 | - | let bl = 21 | |
277 | - | ||
278 | - | let bm = 22 | |
279 | - | ||
280 | - | func bn (bo,bp,bq,br) = { | |
281 | - | let bs = valueOrErrorMessage(getInteger(bp[ap], aj), "WLGOLD is not issued yet") | |
282 | - | let bt = assetBalance(bp[an], bq) | |
283 | - | let bu = (assetBalance(bp[ap], bq) - br) | |
284 | - | let bv = assetBalance(bp[aq], bq) | |
285 | - | let bw = bp[ar] | |
286 | - | let bx = (assetBalance(bw, bq) + valueOrElse(getInteger(bw, ak), 0)) | |
287 | - | let by = (bu + bx) | |
288 | - | let bz = valueOrErrorMessage(getBinary(bp[ap], "wlg_assetId"), "Not initialized yet") | |
289 | - | let bA = lastBlock.timestamp | |
290 | - | let bB = valueOrErrorMessage(getInteger(bp[ap], ai), "Not initialized") | |
291 | - | let bC = fraction(S, T, Q) | |
292 | - | let bD = valueOrElse(getInteger(bp[ap], ab), bC) | |
293 | - | let bE = valueOrElse(getInteger(bp[ap], aa), bB) | |
294 | - | let bF = addressFromStringValue(value(getString(bp[ap], Z))) | |
295 | - | let bG = min([fraction(bC, (bA - bE), (3 * W)), bD]) | |
296 | - | let bH = assetBalance(bF, bz) | |
297 | - | let bI = fraction(S, U, Q) | |
298 | - | let bJ = valueOrElse(getInteger(bp[ap], ad), bI) | |
299 | - | let bK = valueOrElse(getInteger(bp[ap], ac), bB) | |
300 | - | let bL = min([fraction(bI, (bA - bK), (3 * W)), bJ]) | |
301 | - | let bM = assetBalance(bp[an], bz) | |
302 | - | let bN = valueOrElse(getInteger(bp[ap], af(bo)), bB) | |
303 | - | let bO = ((bN - bB) / W) | |
304 | - | let bP = min([bA, (bB + (3 * W))]) | |
305 | - | let bQ = min([((bA - bB) / W), 2]) | |
306 | - | let bR = aH(bo, bp[ao]) | |
307 | - | let bS = ag(bQ) | |
308 | - | let bT = if ((bO == bQ)) | |
279 | + | func bl (bm,bn,bo,bp) = { | |
280 | + | let bq = valueOrErrorMessage(getInteger(bn[ap], aj), "WLGOLD is not issued yet") | |
281 | + | let br = assetBalance(bn[an], bo) | |
282 | + | let bs = (assetBalance(bn[ap], bo) - bp) | |
283 | + | let bt = assetBalance(bn[aq], bo) | |
284 | + | let bu = bn[ar] | |
285 | + | let bv = (assetBalance(bu, bo) + valueOrElse(getInteger(bu, ak), 0)) | |
286 | + | let bw = (bs + bv) | |
287 | + | let bx = valueOrErrorMessage(getBinary(bn[ap], "wlg_assetId"), "Not initialized yet") | |
288 | + | let by = lastBlock.timestamp | |
289 | + | let bz = valueOrErrorMessage(getInteger(bn[ap], ai), "Not initialized") | |
290 | + | let bA = fraction(S, T, Q) | |
291 | + | let bB = valueOrElse(getInteger(bn[ap], ab), bA) | |
292 | + | let bC = valueOrElse(getInteger(bn[ap], aa), bz) | |
293 | + | let bD = addressFromStringValue(value(getString(bn[ap], Z))) | |
294 | + | let bE = min([fraction(bA, (by - bC), (3 * W)), bB]) | |
295 | + | let bF = assetBalance(bD, bx) | |
296 | + | let bG = fraction(S, U, Q) | |
297 | + | let bH = valueOrElse(getInteger(bn[ap], ad), bG) | |
298 | + | let bI = valueOrElse(getInteger(bn[ap], ac), bz) | |
299 | + | let bJ = min([fraction(bG, (by - bI), (3 * W)), bH]) | |
300 | + | let bK = assetBalance(bn[an], bx) | |
301 | + | let bL = valueOrElse(getInteger(bn[ap], af(bm)), bz) | |
302 | + | let bM = ((bL - bz) / W) | |
303 | + | let bN = min([by, (bz + (3 * W))]) | |
304 | + | let bO = min([((by - bz) / W), 2]) | |
305 | + | let bP = aH(bm, bn[ao]) | |
306 | + | let bQ = ag(bO) | |
307 | + | let bR = if ((bM == bO)) | |
309 | 308 | then { | |
310 | - | let | |
311 | - | let | |
312 | - | $Tuple2( | |
309 | + | let bS = fraction(bQ, (bN - bL), W) | |
310 | + | let bT = bN | |
311 | + | $Tuple2(bS, bT) | |
313 | 312 | } | |
314 | - | else if (( | |
313 | + | else if ((bM == (bO - 1))) | |
315 | 314 | then { | |
316 | - | let | |
317 | - | let | |
318 | - | let | |
319 | - | let | |
320 | - | then ( | |
321 | - | else (( | |
322 | - | $Tuple2( | |
315 | + | let bU = fraction(ag((bO - 1)), ((bz + (W * bO)) - bL), W) | |
316 | + | let bS = fraction(bQ, (bN - (bz + (W * bO))), W) | |
317 | + | let bV = (bU + bS) | |
318 | + | let bT = if ((bU >= bV)) | |
319 | + | then (bL + fraction(W, bV, ag((bO - 1)))) | |
320 | + | else ((bz + (W * bO)) + fraction(W, (bV - bU), bQ)) | |
321 | + | $Tuple2(bV, bT) | |
323 | 322 | } | |
324 | 323 | else { | |
325 | - | let | |
326 | - | let | |
327 | - | let | |
328 | - | let | |
329 | - | let | |
330 | - | then ( | |
331 | - | else if ((( | |
332 | - | then (( | |
333 | - | else (( | |
334 | - | $Tuple2( | |
324 | + | let bW = fraction(ag((bO - 2)), ((bz + (W * (bO - 1))) - bL), W) | |
325 | + | let bU = ag((bO - 1)) | |
326 | + | let bS = fraction(bQ, (bN - (bz + (W * bO))), W) | |
327 | + | let bV = ((bW + bU) + bS) | |
328 | + | let bT = if ((bW >= bV)) | |
329 | + | then (bL + fraction(W, bV, ag((bO - 2)))) | |
330 | + | else if (((bW + bU) >= bV)) | |
331 | + | then ((bz + (W * (bO - 1))) + fraction(W, (bV - bW), ag((bO - 1)))) | |
332 | + | else ((bz + (W * bO)) + fraction(W, ((bV - bW) - bU), bQ)) | |
333 | + | $Tuple2(bV, bT) | |
335 | 334 | } | |
336 | - | let | |
337 | - | let | |
338 | - | let | |
339 | - | let | |
340 | - | then fraction( | |
335 | + | let bX = bR._1 | |
336 | + | let bY = bR._2 | |
337 | + | let bZ = valueOrElse(getInteger(bn[ap], ae), 0) | |
338 | + | let ca = if ((bP[aM] != 0)) | |
339 | + | then fraction(bX, bP[aN], bP[aM]) | |
341 | 340 | else 0 | |
342 | - | [ | |
341 | + | [bq, fraction((bw - Y), R, bq), bw, br, bs, bt, bz, bC, bA, bB, bE, bF, bG, bH, bJ, bK, bO, bZ, bQ, bL, bv, ca, bY] | |
343 | 342 | } | |
344 | 343 | ||
345 | 344 | ||
346 | - | func | |
347 | - | let B = addressFromString( | |
348 | - | let | |
345 | + | func cb (cc) = { | |
346 | + | let B = addressFromString(cc) | |
347 | + | let cd = if (isDefined(B)) | |
349 | 348 | then wavesBalance(value(B)) | |
350 | 349 | else BalanceDetails(0, 0, 0, 0) | |
351 | - | let | |
350 | + | let ce = if (isDefined(B)) | |
352 | 351 | then assetBalance(value(B), D) | |
353 | 352 | else 0 | |
354 | - | let | |
355 | - | let | |
356 | - | let | |
357 | - | let | |
358 | - | let | |
359 | - | let | |
353 | + | let cf = valueOrElse(getString(v, I(cc)), cc) | |
354 | + | let cg = J(cc) | |
355 | + | let ch = getString(v, cg) | |
356 | + | let ci = valueOrElse(getString(v, K(cc)), "") | |
357 | + | let cj = valueOrElse(getString(v, A(cc)), "") | |
358 | + | let ck = if (isDefined(B)) | |
360 | 359 | then assetBalance(value(B), F) | |
361 | 360 | else 0 | |
362 | - | let cn = valueOrElse(getInteger(v, al(ce)), 0) | |
363 | - | let co = at(cm) | |
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))] | |
361 | + | let cl = valueOrElse(getInteger(v, al(cc)), 0) | |
362 | + | let cm = at(ck) | |
363 | + | let cn = aH(cc, v) | |
364 | + | [("%s%s__customName__" + cf), ("%s%s__referredBy__" + valueOrElse(ch, "")), ("%s%s__referrals__" + ci), ("%s%s__lastTxId__" + cj), ("%s%d__wavesBalance__" + toString(cd.available)), ("%s%d__wlgoldBalance__" + toString(ce)), ("%s%d__acresBalance__" + toString(ck)), ("%s%d__stakedAcres__" + toString(cl)), ("%s%d__currentLvl__" + toString(cm)), ("%s%d__userFarmingPower__" + toString(cn[aN])), ("%s%d__totalFarmingPower__" + toString(cn[aM]))] | |
365 | 365 | } | |
366 | 366 | ||
367 | 367 | ||
368 | - | @Callable( | |
369 | - | func constructorV1 ( | |
368 | + | @Callable(co) | |
369 | + | func constructorV1 (bn) = if ((co.caller != this)) | |
370 | 370 | then throw("permissions denied") | |
371 | 371 | else { | |
372 | - | func | |
372 | + | func cp (ax,cq) = (ax + "%s") | |
373 | 373 | ||
374 | - | let | |
375 | - | let az = | |
374 | + | let cr = { | |
375 | + | let az = bn | |
376 | 376 | let aA = size(az) | |
377 | 377 | let aB = "" | |
378 | 378 | func aC (aD,aE) = if ((aE >= aA)) | |
379 | 379 | then aD | |
380 | - | else | |
380 | + | else cp(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 | - | [StringEntry(n(), makeString( | |
388 | + | [StringEntry(n(), makeString(cr :: bn, a)), StringEntry(o(), toString(this))] | |
389 | 389 | } | |
390 | 390 | ||
391 | 391 | ||
392 | 392 | ||
393 | - | @Callable( | |
394 | - | func walletInfoREADONLY ( | |
393 | + | @Callable(co) | |
394 | + | func walletInfoREADONLY (cc) = $Tuple2(nil, cb(cc)) | |
395 | 395 | ||
396 | 396 | ||
397 | 397 | ||
398 | - | @Callable( | |
399 | - | func conversionInfoREADONLY ( | |
400 | - | let | |
401 | - | let | |
402 | - | let | |
403 | - | let | |
404 | - | let | |
405 | - | let | |
406 | - | let | |
407 | - | let | |
408 | - | let | |
409 | - | let | |
410 | - | let | |
411 | - | let | |
412 | - | then O(invoke( | |
398 | + | @Callable(co) | |
399 | + | func conversionInfoREADONLY (cc) = { | |
400 | + | let cs = addressFromStringValue(getStringValue(v, z)) | |
401 | + | let ct = P(invoke(cs, "unstakeAllAcresREADONLY", [cc], nil)) | |
402 | + | let cu = ct._1 | |
403 | + | let cv = ct._2 | |
404 | + | let cw = L(invoke(v, "unstakeLandsREADONLY", [cc], nil)) | |
405 | + | let cx = cw._1 | |
406 | + | let cy = cw._2 | |
407 | + | let cz = cw._3 | |
408 | + | let cA = cw._4 | |
409 | + | let cB = addressFromStringValue(f) | |
410 | + | let cC = valueOrElse(getString(cB, G(cc)), "") | |
411 | + | let cD = if ((cC != "")) | |
412 | + | then O(invoke(cB, "unstakeDuckREADONLY", [cC, cc], nil)) | |
413 | 413 | else $Tuple3(0, 0, 0) | |
414 | - | let | |
415 | - | let | |
416 | - | let | |
417 | - | $Tuple2(nil, [("%s%d__unstakedAcres__" + toString( | |
414 | + | let cE = cD._1 | |
415 | + | let cF = cD._2 | |
416 | + | let cG = cD._3 | |
417 | + | $Tuple2(nil, [("%s%d__unstakedAcres__" + toString(cu)), ("%s%d__claimedAcres__" + toString(cv)), ("%s%d__acresFromPieces__" + toString(cx)), ("%s%d__acresFromRes__" + toString(cy)), ("%s%d__acresFromMat__" + toString(cz)), ("%s%d__acresFromProd__" + toString(cA)), ("%s%d__acresFromDuckRes__" + toString(cE)), ("%s%d__acresFromDuckMat__" + toString(cF)), ("%s%d__acresFromDuckProd__" + toString(cG))]) | |
418 | 418 | } | |
419 | 419 | ||
420 | 420 | ||
421 | 421 | ||
422 | - | @Callable( | |
423 | - | func wlgStatsREADONLY ( | |
424 | - | let | |
425 | - | $Tuple2(nil, [("%s%d__wlgAmount__" + toString( | |
422 | + | @Callable(co) | |
423 | + | func wlgStatsREADONLY (bm) = { | |
424 | + | let cH = bl(bm, [u, v, w, x, y], c, 0) | |
425 | + | $Tuple2(nil, [("%s%d__wlgAmount__" + toString(cH[aO])), ("%s%d__wlgPrice__" + toString(cH[aP])), ("%s%d__usdtFunds__" + toString(cH[aQ])), ("%s%d__usdtActivity__" + toString(cH[aR])), ("%s%d__usdtArbitrage__" + toString(cH[aS])), ("%s%d__usdtPool__" + toString(cH[aT])), ("%s%d__wlgIssueTime__" + toString(cH[aU])), ("%s%d__wlgLastMarketingTeamActTime__" + toString(cH[aV])), ("%s%d__wlgTeamTotal__" + toString(cH[aW])), ("%s%d__wlgTeamAmLeft__" + toString(cH[aX])), ("%s%d__wlgTeamAmAvailNow__" + toString(cH[aY])), ("%s%d__wlgTeamWlgold__" + toString(cH[aZ])), ("%s%d__wlgActTotal__" + toString(cH[ba])), ("%s%d__wlgActAmLeft__" + toString(cH[bb])), ("%s%d__wlgActAmAvailNow__" + toString(cH[bc])), ("%s%d__wlgActWlgold__" + toString(cH[bd])), ("%s%d__wlgCurPeriod__" + toString(cH[be])), ("%s%d__wlgAmLeftTotal__" + toString(cH[bf])), ("%s%d__wlgCurPeriodDistribution__" + toString(cH[bg])), ("%s%d__wlgLastUserTime__" + toString(cH[bh])), ("%s%d__wlgInvestFundTotal__" + toString(cH[bi])), ("%s%d__wlgUserAmAvailNow__" + toString(cH[bj])), ("%s%d__wlgEffUserTime__" + toString(cH[bk]))]) | |
426 | 426 | } | |
427 | 427 | ||
428 | 428 |
github/deemru/w8io/169f3d6 158.86 ms ◑