tx · AMidN9DMzPGBuZnBsfkgFLxPYRQ1mycgQu1FMiAYcdTk 3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv: -0.02000000 Waves 2024.12.08 19:05 [3405869] smart account 3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv > SELF 0.00000000 Waves
{ "type": 13, "id": "AMidN9DMzPGBuZnBsfkgFLxPYRQ1mycgQu1FMiAYcdTk", "fee": 2000000, "feeAssetId": null, "timestamp": 1733673915330, "version": 2, "chainId": 84, "sender": "3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv", "senderPublicKey": "2fNSk5gmWbXBDTkSYSKd66xSgVvAYzrJnP9YSAFNvTwC", "proofs": [ "3mPgje8zEARSdqUqPDVo8pkBc2SWyGNceQ25mxAkSCvneg4FBcCDTVhKFpZRpaFcnxViiwhwLPnHSbEq7nGxjr7i" ], "script": "base64:BgIlCAISAwoBGBIDCgEIEgMKAQgSAwoBCBIDCgEIEgMKAQgSAwoBCIIBAANTRVACAl9fAAVjaGFpbgkAyQECCQDKAQIIBQR0aGlzBWJ5dGVzAAEAAQAKREFZX0JMT0NLUwQHJG1hdGNoMAUFY2hhaW4DCQAAAgEBVwUHJG1hdGNoMACgCwMJAAACAQFUBQckbWF0Y2gwADwJAAIBAg1Vbmtub3duIGNoYWluAAtXRUVLX0JMT0NLUwQHJG1hdGNoMAUFY2hhaW4DCQAAAgEBVwUHJG1hdGNoMADgTgMJAAACAQFUBQckbWF0Y2gwALQBCQACAQINVW5rbm93biBjaGFpbgAKVlJGX09GRlNFVAQHJG1hdGNoMAUFY2hhaW4DCQAAAgEBVwUHJG1hdGNoMAAAAwkAAAIBAVQFByRtYXRjaDAAkPlFCQACAQINVW5rbm93biBjaGFpbgALdXNkdEFzc2V0SWQEByRtYXRjaDAFBWNoYWluAwkAAAIBAVcFByRtYXRjaDABIITaerIIAz9O0bvKju6Lk7zJgt0LXfoHlqjUI/moD/+5AwkAAAIBAVQFByRtYXRjaDABIFWx2J9yh4Lv5eNb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XJBZGRyT3B0BAduZnRzS2V5CQETa2V5QXNzZXRJZHNCeVNlbGxlcgEFC3VzZXJBZGRyT3B0BAduZnRzU3RyCQELdmFsdWVPckVsc2UCCQCdCAIFDm1hcmtldENvbnRyYWN0BQduZnRzS2V5AgAJAJQKAgUDbmlsCQDMCAIJAKwCAgIUJXMlc19fdXNlclNhbGVOZnRzX18FB25mdHNTdHIFA25pbAFpARFvcmRlckluZm9SRUFET05MWQEKYXNzZXRJZE9wdAQFcHJpY2UJAQt2YWx1ZU9yRWxzZQIJAJoIAgUObWFya2V0Q29udHJhY3QJARFrZXlQcmljZUJ5QXNzZXRJZAEFCmFzc2V0SWRPcHQAAAQGc2VsbGVyCQELdmFsdWVPckVsc2UCCQCdCAIFDm1hcmtldENvbnRyYWN0CQESa2V5U2VsbGVyQnlBc3NldElkAQUKYXNzZXRJZE9wdAIACQCUCgIFA25pbAkAzAgCCQCsAgICFiVzJWRfX21hcmtldE5mdFByaWNlX18JAKQDAQUFcHJpY2UJAMwIAgkArAICAhclcyVzX19tYXJrZXROZnRTZWxsZXJfXwUGc2VsbGVyBQNuaWwAo/VdlQ==", "height": 3405869, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: F5d59R2TiRxKNPrNtvWPi9ku8jADqj96cPAzWV3cGE96 Next: 3rBv2z3y9iSRqhnrDMAapfFXkXdUZS2ov4Ptpgyzbtmz Diff:
Old | New | Differences | |
---|---|---|---|
70 | 70 | ||
71 | 71 | let p = 5 | |
72 | 72 | ||
73 | - | func q () = "%s__restConfig" | |
73 | + | let q = 6 | |
74 | + | ||
75 | + | func r () = "%s__restConfig" | |
74 | 76 | ||
75 | 77 | ||
76 | - | func | |
78 | + | func s () = "%s__rest2Addr" | |
77 | 79 | ||
78 | 80 | ||
79 | - | func | |
81 | + | func t (u) = split_4C(j(u, r()), a) | |
80 | 82 | ||
81 | 83 | ||
82 | - | func | |
84 | + | func v (w,x) = valueOrErrorMessage(addressFromString(w[x]), ("Rest cfg doesn't contain address at index " + toString(x))) | |
83 | 85 | ||
84 | 86 | ||
85 | - | let | |
87 | + | let y = addressFromStringValue(valueOrElse(getString(this, s()), h)) | |
86 | 88 | ||
87 | - | let | |
89 | + | let w = t(y) | |
88 | 90 | ||
89 | - | let | |
91 | + | let z = v(w, m) | |
90 | 92 | ||
91 | - | let | |
93 | + | let A = v(w, n) | |
92 | 94 | ||
93 | - | let | |
95 | + | let B = v(w, o) | |
94 | 96 | ||
95 | - | let | |
97 | + | let C = v(w, p) | |
96 | 98 | ||
97 | - | let | |
99 | + | let D = v(w, q) | |
98 | 100 | ||
99 | - | func D (E) = ("lastWeekTxIdByUser_" + E) | |
101 | + | let E = "oldAcresContract" | |
102 | + | ||
103 | + | func F (G) = ("lastWeekTxIdByUser_" + G) | |
100 | 104 | ||
101 | 105 | ||
102 | - | func | |
106 | + | func H (G) = ("curWeekTxIdByUser_" + G) | |
103 | 107 | ||
104 | 108 | ||
105 | - | let | |
109 | + | let I = "wlg_assetId" | |
106 | 110 | ||
107 | - | let | |
111 | + | let J = valueOrErrorMessage(getBinary(A, I), "WLGOLD is not issued yet") | |
108 | 112 | ||
109 | - | let | |
113 | + | let K = "acresAssetId" | |
110 | 114 | ||
111 | - | let | |
115 | + | let L = valueOrErrorMessage(getBinary(z, K), "ACRES is not issued yet") | |
112 | 116 | ||
113 | - | func | |
117 | + | func M (N) = ("stakedDuckByOwner_" + N) | |
114 | 118 | ||
115 | 119 | ||
116 | - | func | |
120 | + | func O (N) = ("stakedNFTsByOwner_" + N) | |
117 | 121 | ||
118 | 122 | ||
119 | - | func | |
123 | + | func P (G) = ("accountCustomNameByAddr_" + G) | |
120 | 124 | ||
121 | 125 | ||
122 | - | func | |
126 | + | func Q (G) = ("accRefBy_" + G) | |
123 | 127 | ||
124 | 128 | ||
125 | - | func | |
129 | + | func R (G) = ("accReferrals_" + G) | |
126 | 130 | ||
127 | 131 | ||
128 | - | func | |
132 | + | func S (G) = ("userBet_" + G) | |
129 | 133 | ||
130 | 134 | ||
131 | - | func | |
135 | + | func T (G,U) = ((("userWeekTickets_" + G) + "_") + toString(U)) | |
132 | 136 | ||
133 | 137 | ||
134 | - | func | |
138 | + | func V (U) = ("totalWeekTickets_" + toString(U)) | |
135 | 139 | ||
136 | 140 | ||
137 | - | func | |
138 | - | let | |
139 | - | let | |
140 | - | then | |
141 | - | else ( | |
142 | - | (toInt(value(value(blockInfoByHeight( | |
141 | + | func W (X) = { | |
142 | + | let Y = (X * c) | |
143 | + | let Z = if ((Y > f)) | |
144 | + | then Y | |
145 | + | else (Y + f) | |
146 | + | (toInt(value(value(blockInfoByHeight(Z)).vrf)) % 4) | |
143 | 147 | } | |
144 | 148 | ||
145 | 149 | ||
146 | - | func | |
150 | + | func aa (ab) = ("seller_" + ab) | |
147 | 151 | ||
148 | 152 | ||
149 | - | ||
153 | + | func ac (ab) = ("price_" + ab) | |
150 | 154 | ||
151 | - | let aa = 1 | |
152 | 155 | ||
153 | - | ||
156 | + | func ad (G) = ("assetIds_" + G) | |
154 | 157 | ||
155 | - | let ac = 3 | |
156 | 158 | ||
157 | - | let | |
159 | + | let ae = 0 | |
158 | 160 | ||
159 | - | let | |
161 | + | let af = 1 | |
160 | 162 | ||
161 | - | let | |
163 | + | let ag = 2 | |
162 | 164 | ||
163 | - | let | |
165 | + | let ah = 3 | |
164 | 166 | ||
165 | - | let | |
167 | + | let ai = 4 | |
166 | 168 | ||
167 | - | let | |
169 | + | let aj = 5 | |
168 | 170 | ||
169 | - | let | |
171 | + | let ak = 6 | |
170 | 172 | ||
171 | - | let | |
173 | + | let al = 7 | |
172 | 174 | ||
173 | - | let | |
175 | + | let am = 8 | |
174 | 176 | ||
175 | - | let | |
177 | + | let an = 9 | |
176 | 178 | ||
177 | - | let | |
179 | + | let ao = 10 | |
178 | 180 | ||
179 | - | let | |
181 | + | let ap = 11 | |
180 | 182 | ||
181 | - | let | |
183 | + | let aq = 12 | |
182 | 184 | ||
183 | - | let | |
185 | + | let ar = 13 | |
184 | 186 | ||
185 | - | let | |
187 | + | let as = 14 | |
186 | 188 | ||
187 | - | let | |
189 | + | let at = 15 | |
188 | 190 | ||
189 | - | let | |
191 | + | let au = 16 | |
190 | 192 | ||
191 | - | let | |
193 | + | let av = 17 | |
192 | 194 | ||
193 | - | let | |
195 | + | let aw = 18 | |
194 | 196 | ||
195 | - | let | |
197 | + | let ax = 19 | |
196 | 198 | ||
197 | - | let | |
199 | + | let ay = 20 | |
198 | 200 | ||
199 | - | let | |
201 | + | let az = 21 | |
200 | 202 | ||
201 | - | let | |
203 | + | let aA = 22 | |
202 | 204 | ||
203 | - | let | |
205 | + | let aB = 23 | |
204 | 206 | ||
205 | - | let | |
207 | + | let aC = 24 | |
206 | 208 | ||
207 | - | let | |
209 | + | let aD = 25 | |
208 | 210 | ||
209 | - | let | |
211 | + | let aE = 26 | |
210 | 212 | ||
211 | - | let | |
213 | + | let aF = 27 | |
212 | 214 | ||
213 | - | let | |
215 | + | let aG = 28 | |
214 | 216 | ||
215 | - | let | |
217 | + | let aH = 29 | |
216 | 218 | ||
217 | - | let | |
219 | + | let aI = 30 | |
218 | 220 | ||
219 | - | let | |
221 | + | let aJ = 31 | |
220 | 222 | ||
221 | - | func aJ (aK) = { | |
222 | - | let d = aK | |
223 | + | let aK = 32 | |
224 | + | ||
225 | + | let aL = 33 | |
226 | + | ||
227 | + | let aM = 34 | |
228 | + | ||
229 | + | let aN = 35 | |
230 | + | ||
231 | + | func aO (aP) = { | |
232 | + | let d = aP | |
223 | 233 | if ($isInstanceOf(d, "(Int, Int, Int, Int)")) | |
224 | 234 | then { | |
225 | - | let | |
226 | - | | |
235 | + | let aQ = d | |
236 | + | aQ | |
227 | 237 | } | |
228 | 238 | else throw("fail to cast into (Int, Int, Int, Int)") | |
229 | 239 | } | |
230 | 240 | ||
231 | 241 | ||
232 | - | func | |
233 | - | let d = | |
242 | + | func aR (aP) = { | |
243 | + | let d = aP | |
234 | 244 | if ($isInstanceOf(d, "(Int, Int, Int)")) | |
235 | 245 | then { | |
236 | - | let | |
237 | - | | |
246 | + | let aQ = d | |
247 | + | aQ | |
238 | 248 | } | |
239 | 249 | else throw("fail to cast into (Int, Int, Int)") | |
240 | 250 | } | |
241 | 251 | ||
242 | 252 | ||
243 | - | func | |
244 | - | let d = | |
253 | + | func aS (aP) = { | |
254 | + | let d = aP | |
245 | 255 | if ($isInstanceOf(d, "(Int, Int)")) | |
246 | 256 | then { | |
247 | - | let | |
248 | - | | |
257 | + | let aQ = d | |
258 | + | aQ | |
249 | 259 | } | |
250 | 260 | else throw("fail to cast into (Int, Int)") | |
251 | 261 | } | |
252 | 262 | ||
253 | 263 | ||
254 | - | let | |
264 | + | let aT = 1000000 | |
255 | 265 | ||
256 | - | let | |
266 | + | let aU = 100000000 | |
257 | 267 | ||
258 | - | let | |
268 | + | let aV = 200000 | |
259 | 269 | ||
260 | - | let | |
270 | + | let aW = 100000 | |
261 | 271 | ||
262 | - | let | |
272 | + | let aX = 400000 | |
263 | 273 | ||
264 | - | let | |
274 | + | let aY = 31557600000 | |
265 | 275 | ||
266 | - | let | |
276 | + | let aZ = 86400000 | |
267 | 277 | ||
268 | - | let | |
278 | + | let ba = 1000000000 | |
269 | 279 | ||
270 | - | let | |
280 | + | let bb = 800000 | |
271 | 281 | ||
272 | - | let | |
282 | + | let bc = 100000 | |
273 | 283 | ||
274 | - | let | |
284 | + | let bd = 100000 | |
275 | 285 | ||
276 | - | let | |
286 | + | let be = 1731279600000 | |
277 | 287 | ||
278 | - | let | |
288 | + | let bf = "teamAddr" | |
279 | 289 | ||
280 | - | let | |
290 | + | let bg = "lastClaimedTime_team" | |
281 | 291 | ||
282 | - | let | |
292 | + | let bh = "teamAmountLeft" | |
283 | 293 | ||
284 | - | let | |
294 | + | let bi = "lastClaimedTime_activities" | |
285 | 295 | ||
286 | - | let | |
296 | + | let bj = "activitiesAmountLeft" | |
287 | 297 | ||
288 | - | let | |
298 | + | let bk = "stakersAmountLeft" | |
289 | 299 | ||
290 | - | func | |
300 | + | func bl (G) = ("lastClaimedTimeUser_" + G) | |
291 | 301 | ||
292 | 302 | ||
293 | - | func | |
303 | + | func bm (bn,bo) = fraction(bn, (aX * (bo + 1)), (6 * aT)) | |
294 | 304 | ||
295 | 305 | ||
296 | - | let | |
306 | + | let bp = "wlg_issue10Time" | |
297 | 307 | ||
298 | - | let | |
308 | + | let bq = "wlg_issueTime" | |
299 | 309 | ||
300 | - | let | |
310 | + | let br = "wlg_issuedAmount" | |
301 | 311 | ||
302 | - | let | |
312 | + | let bs = "zbill_issuedAmount" | |
303 | 313 | ||
304 | - | func | |
314 | + | func bt (G) = ("acresStakedAmountByUser_" + G) | |
305 | 315 | ||
306 | 316 | ||
307 | - | let | |
317 | + | let bu = "acresStakedAmountTotal" | |
308 | 318 | ||
309 | - | let | |
319 | + | let bv = "totalFarmingPower" | |
310 | 320 | ||
311 | - | let | |
321 | + | let bw = 0 | |
312 | 322 | ||
313 | - | let | |
323 | + | let bx = 1 | |
314 | 324 | ||
315 | - | let | |
325 | + | let by = 2 | |
316 | 326 | ||
317 | - | let | |
327 | + | let bz = 3 | |
318 | 328 | ||
319 | - | let | |
329 | + | let bA = 4 | |
320 | 330 | ||
321 | - | let | |
331 | + | let bB = "nftTotalIssued" | |
322 | 332 | ||
323 | - | let | |
333 | + | let bC = "nftTotalBurned" | |
324 | 334 | ||
325 | - | let | |
335 | + | let bD = "WlNftTotalStaked" | |
326 | 336 | ||
327 | - | func | |
337 | + | func bE (G) = ("userWlNftNumber_" + G) | |
328 | 338 | ||
329 | 339 | ||
330 | - | func | |
340 | + | func bF (G) = ("userFullBonus_" + G) | |
331 | 341 | ||
332 | 342 | ||
333 | - | let | |
343 | + | let bG = [0, 10, 20, 40, 80, 150, 250, 400, 700, 1000] | |
334 | 344 | ||
335 | - | func | |
336 | - | let | |
337 | - | func | |
338 | - | then | |
339 | - | else ( | |
345 | + | func bH (bI) = { | |
346 | + | let bJ = ((bI + 99999999) / aU) | |
347 | + | func bK (bL,bM) = if ((bM >= bJ)) | |
348 | + | then bL | |
349 | + | else (bL + 1) | |
340 | 350 | ||
341 | - | let | |
342 | - | let | |
343 | - | let | |
344 | - | func | |
345 | - | then | |
346 | - | else | |
351 | + | let bN = bG | |
352 | + | let bO = size(bN) | |
353 | + | let bP = 0 | |
354 | + | func bQ (bR,bS) = if ((bS >= bO)) | |
355 | + | then bR | |
356 | + | else bK(bR, bN[bS]) | |
347 | 357 | ||
348 | - | func | |
349 | - | then | |
358 | + | func bT (bR,bS) = if ((bS >= bO)) | |
359 | + | then bR | |
350 | 360 | else throw("List size exceeds 10") | |
351 | 361 | ||
352 | - | | |
362 | + | bT(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bP, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
353 | 363 | } | |
354 | 364 | ||
355 | 365 | ||
356 | - | func | |
366 | + | func bU (bI) = ((bI * 20) * (bH(bI) + 4)) | |
357 | 367 | ||
358 | 368 | ||
359 | - | func | |
360 | - | let | |
361 | - | $Tuple2(fraction( | |
369 | + | func bV (bI,bW) = { | |
370 | + | let bX = bU(bI) | |
371 | + | $Tuple2(fraction(bX, (aT + bW), aT), bX) | |
362 | 372 | } | |
363 | 373 | ||
364 | 374 | ||
365 | - | func | |
366 | - | let | |
367 | - | let | |
368 | - | let | |
369 | - | let | |
370 | - | let | |
371 | - | let | |
372 | - | [ | |
375 | + | func bY (bZ,z) = { | |
376 | + | let ca = valueOrElse(getInteger(z, bv), 0) | |
377 | + | let cb = valueOrElse(getInteger(z, bt(bZ)), 0) | |
378 | + | let cc = valueOrElse(getInteger(z, bF(bZ)), 0) | |
379 | + | let cd = bV(cb, cc) | |
380 | + | let ce = cd._1 | |
381 | + | let cf = cd._2 | |
382 | + | [ca, ce, cf, cc] | |
373 | 383 | } | |
374 | 384 | ||
375 | 385 | ||
376 | - | let | |
386 | + | let cg = 0 | |
377 | 387 | ||
378 | - | let | |
388 | + | let ch = 1 | |
379 | 389 | ||
380 | - | let | |
390 | + | let ci = 2 | |
381 | 391 | ||
382 | - | func | |
383 | - | let | |
384 | - | let | |
385 | - | let | |
386 | - | let | |
387 | - | let | |
388 | - | let | |
389 | - | let | |
390 | - | let | |
391 | - | let | |
392 | - | let | |
393 | - | let | |
394 | - | let | |
395 | - | let | |
396 | - | let | |
397 | - | let | |
398 | - | let | |
399 | - | let | |
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 | - | let | |
413 | - | let | |
414 | - | let | |
415 | - | let | |
416 | - | then | |
417 | - | else if (( | |
392 | + | func cj (ck,cl,cm,cn) = { | |
393 | + | let bn = valueOrErrorMessage(getInteger(cl[by], br), "WLGOLD is not issued yet") | |
394 | + | let co = assetBalance(cl[bw], cm) | |
395 | + | let cp = (assetBalance(cl[by], cm) - cn) | |
396 | + | let cq = assetBalance(cl[bz], cm) | |
397 | + | let cr = assetBalance(cl[bx], cm) | |
398 | + | let cs = cl[bA] | |
399 | + | let ct = (assetBalance(cs, cm) + valueOrElse(getInteger(cs, bs), 0)) | |
400 | + | let cu = ((cr + cp) + ct) | |
401 | + | let cv = valueOrErrorMessage(getBinary(cl[by], "wlg_assetId"), "Not initialized yet") | |
402 | + | let cw = lastBlock.timestamp | |
403 | + | let cx = valueOrErrorMessage(getInteger(cl[by], bq), "Not initialized") | |
404 | + | let cy = assetBalance(cl[by], cv) | |
405 | + | let cz = fraction(bn, aV, aT) | |
406 | + | let cA = valueOrElse(getInteger(cl[by], bh), cz) | |
407 | + | let cB = valueOrElse(getInteger(cl[by], bg), cx) | |
408 | + | let cC = addressFromStringValue(value(getString(cl[by], bf))) | |
409 | + | let cD = min([fraction(cz, (cw - cB), (3 * aY)), cA]) | |
410 | + | let cE = assetBalance(cC, cv) | |
411 | + | let cF = fraction(bn, aW, aT) | |
412 | + | let cG = valueOrElse(getInteger(cl[by], bj), cF) | |
413 | + | let cH = valueOrElse(getInteger(cl[by], bi), cx) | |
414 | + | let cI = min([fraction(cF, (cw - cH), (3 * aY)), cG]) | |
415 | + | let cJ = assetBalance(cl[bw], cv) | |
416 | + | let cK = valueOrElse(getInteger(cl[by], bl(ck)), cx) | |
417 | + | let cL = ((cK - cx) / aY) | |
418 | + | let cM = min([cw, (cx + (3 * aY))]) | |
419 | + | let cN = min([((cw - cx) / aY), 2]) | |
420 | + | let cO = bY(ck, cl[bx]) | |
421 | + | let cP = bm(bn, cN) | |
422 | + | let cQ = (cx + (aY * cN)) | |
423 | + | let cR = (cx + (aY * (cN - 1))) | |
424 | + | let cS = fraction(cP, (cM - cK), aY) | |
425 | + | let cT = if ((cL == cN)) | |
426 | + | then cS | |
427 | + | else if ((cL == (cN - 1))) | |
418 | 428 | then { | |
419 | - | let | |
420 | - | ( | |
429 | + | let cU = fraction(bm(bn, (cN - 1)), (cQ - cK), aY) | |
430 | + | (cU + cS) | |
421 | 431 | } | |
422 | 432 | else { | |
423 | - | let | |
424 | - | let | |
425 | - | (( | |
433 | + | let cV = fraction(bm(bn, (cN - 2)), (cR - cK), aY) | |
434 | + | let cU = bm(bn, (cN - 1)) | |
435 | + | ((cV + cU) + cS) | |
426 | 436 | } | |
427 | - | let | |
428 | - | let | |
429 | - | then fraction( | |
437 | + | let cW = valueOrElse(getInteger(cl[by], bk), 0) | |
438 | + | let cX = if ((cO[cg] != 0)) | |
439 | + | then fraction(cT, cO[ch], cO[cg]) | |
430 | 440 | else 0 | |
431 | - | let | |
432 | - | let | |
433 | - | let | |
434 | - | let | |
435 | - | let | |
436 | - | let | |
437 | - | then fraction(fraction(fraction( | |
441 | + | let cY = valueOrElse(getInteger(cl[by], bp), be) | |
442 | + | let cZ = fraction(ba, max([(cw - cY), 0]), aZ) | |
443 | + | let da = fraction(cZ, bc, aT) | |
444 | + | let db = fraction(cZ, bd, aT) | |
445 | + | let dc = max([(cw - max([be, cK])), 0]) | |
446 | + | let dd = if ((cO[cg] != 0)) | |
447 | + | then fraction(fraction(fraction(ba, dc, aZ), cO[ch], cO[cg]), bb, aT) | |
438 | 448 | else 0 | |
439 | - | let | |
440 | - | let | |
441 | - | let | |
442 | - | let | |
443 | - | let | |
444 | - | let | |
445 | - | [ | |
449 | + | let de = max([be, cw]) | |
450 | + | let df = valueOrElse(getInteger(cl[bx], bu), 0) | |
451 | + | let dg = valueOrElse(getInteger(cl[bx], bB), 0) | |
452 | + | let dh = valueOrElse(getInteger(cl[bx], bC), 0) | |
453 | + | let di = valueOrElse(getInteger(cl[bx], bD), 0) | |
454 | + | let dj = valueOrElse(getInteger(cl[bx], bE(valueOrElse(ck, ""))), 0) | |
455 | + | [bn, cy, fraction(cu, aU, bn), cu, co, cr, cp, cq, cx, cB, cz, cA, cD, cE, cF, cG, cI, cJ, cN, cW, cP, cK, ct, cX, cM, cZ, da, db, dd, de, cO[cg], df, dg, dh, di, dj] | |
446 | 456 | } | |
447 | 457 | ||
448 | 458 | ||
449 | - | func | |
450 | - | let | |
451 | - | let | |
452 | - | then wavesBalance(value( | |
459 | + | func dk (dl) = { | |
460 | + | let G = addressFromString(dl) | |
461 | + | let dm = if (isDefined(G)) | |
462 | + | then wavesBalance(value(G)) | |
453 | 463 | else BalanceDetails(0, 0, 0, 0) | |
454 | - | let | |
455 | - | then assetBalance(value( | |
464 | + | let dn = if (isDefined(G)) | |
465 | + | then assetBalance(value(G), g) | |
456 | 466 | else 0 | |
457 | - | let | |
458 | - | then assetBalance(value( | |
467 | + | let do = if (isDefined(G)) | |
468 | + | then assetBalance(value(G), J) | |
459 | 469 | else 0 | |
460 | - | let | |
461 | - | let | |
462 | - | let | |
463 | - | let | |
464 | - | let | |
465 | - | let | |
466 | - | let | |
467 | - | then assetBalance(value( | |
470 | + | let dp = valueOrElse(getString(z, P(dl)), dl) | |
471 | + | let dq = Q(dl) | |
472 | + | let dr = getString(z, dq) | |
473 | + | let ds = valueOrElse(getString(z, R(dl)), "") | |
474 | + | let dt = valueOrElse(getString(z, F(dl)), "") | |
475 | + | let du = valueOrElse(getString(z, H(dl)), "") | |
476 | + | let dv = if (isDefined(G)) | |
477 | + | then assetBalance(value(G), L) | |
468 | 478 | else 0 | |
469 | - | let | |
470 | - | let | |
471 | - | let | |
472 | - | let | |
479 | + | let dw = valueOrElse(getInteger(z, bt(dl)), 0) | |
480 | + | let dx = bH(dw) | |
481 | + | let dy = bY(dl, z) | |
482 | + | let dz = if ((dx >= size(bG))) | |
473 | 483 | then 0 | |
474 | - | else ((( | |
475 | - | let | |
476 | - | let | |
477 | - | [("%s%s__customName__" + | |
484 | + | else (((bG[dx] * aU) + 1) - dw) | |
485 | + | let dA = valueOrElse(getString(z, O(dl)), "") | |
486 | + | let dB = valueOrElse(getInteger(z, bF(dl)), 0) | |
487 | + | [("%s%s__customName__" + dp), ("%s%s__referredBy__" + valueOrElse(dr, "")), ("%s%s__referrals__" + ds), ("%s%s__lastWeekTxId__" + dt), ("%s%s__curWeekTxId__" + dt), ("%s%d__wavesBalance__" + toString(dm.available)), ("%s%d__usdtBalance__" + toString(dn)), ("%s%d__wlgoldBalance__" + toString(do)), ("%s%d__acresBalance__" + toString(dv)), ("%s%d__stakedAcres__" + toString(dw)), ("%s%d__currentLvl__" + toString(dx)), ("%s%d__acresToNextLvl__" + toString(dz)), ("%s%s__userNFTs__" + dA), ("%s%d__userBonus__" + toString(dB)), ("%s%d__userBaseFarmingPower__" + toString(dy[ci])), ("%s%d__userFarmingPower__" + toString(dy[ch])), ("%s%d__totalFarmingPower__" + toString(dy[cg]))] | |
478 | 488 | } | |
479 | 489 | ||
480 | 490 | ||
481 | - | @Callable( | |
482 | - | func constructorV1 ( | |
491 | + | @Callable(dC) | |
492 | + | func constructorV1 (cl) = if ((dC.caller != this)) | |
483 | 493 | then throw("permissions denied") | |
484 | 494 | else { | |
485 | - | func | |
495 | + | func dD (bL,dE) = (bL + "%s") | |
486 | 496 | ||
487 | - | let | |
488 | - | let | |
489 | - | let | |
490 | - | let | |
491 | - | func | |
492 | - | then | |
493 | - | else | |
497 | + | let dF = { | |
498 | + | let bN = cl | |
499 | + | let bO = size(bN) | |
500 | + | let bP = "" | |
501 | + | func bQ (bR,bS) = if ((bS >= bO)) | |
502 | + | then bR | |
503 | + | else dD(bR, bN[bS]) | |
494 | 504 | ||
495 | - | func | |
496 | - | then | |
505 | + | func bT (bR,bS) = if ((bS >= bO)) | |
506 | + | then bR | |
497 | 507 | else throw("List size exceeds 10") | |
498 | 508 | ||
499 | - | | |
509 | + | bT(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bP, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
500 | 510 | } | |
501 | - | [StringEntry( | |
511 | + | [StringEntry(r(), makeString(dF :: cl, a)), StringEntry(s(), toString(this))] | |
502 | 512 | } | |
503 | 513 | ||
504 | 514 | ||
505 | 515 | ||
506 | - | @Callable( | |
507 | - | func walletInfoREADONLY ( | |
516 | + | @Callable(dC) | |
517 | + | func walletInfoREADONLY (dl) = $Tuple2(nil, dk(dl)) | |
508 | 518 | ||
509 | 519 | ||
510 | 520 | ||
511 | - | @Callable( | |
512 | - | func conversionInfoREADONLY ( | |
513 | - | let | |
514 | - | let | |
515 | - | let | |
516 | - | let | |
517 | - | let | |
518 | - | let | |
519 | - | let | |
520 | - | let | |
521 | - | let | |
522 | - | let | |
523 | - | let | |
524 | - | let | |
525 | - | then | |
521 | + | @Callable(dC) | |
522 | + | func conversionInfoREADONLY (dl) = { | |
523 | + | let dG = addressFromStringValue(getStringValue(z, E)) | |
524 | + | let dH = aS(invoke(dG, "unstakeAllAcresREADONLY", [dl], nil)) | |
525 | + | let dI = dH._1 | |
526 | + | let dJ = dH._2 | |
527 | + | let dK = aO(invoke(z, "unstakeLandsREADONLY", [dl], nil)) | |
528 | + | let dL = dK._1 | |
529 | + | let dM = dK._2 | |
530 | + | let dN = dK._3 | |
531 | + | let dO = dK._4 | |
532 | + | let dP = addressFromStringValue(i) | |
533 | + | let dQ = valueOrElse(getString(dP, M(dl)), "") | |
534 | + | let dR = if ((dQ != "")) | |
535 | + | then aR(invoke(dP, "unstakeDuckREADONLY", [dQ, dl], nil)) | |
526 | 536 | else $Tuple3(0, 0, 0) | |
527 | - | let | |
528 | - | let | |
529 | - | let | |
530 | - | $Tuple2(nil, [("%s%d__unstakedAcres__" + toString( | |
537 | + | let dS = dR._1 | |
538 | + | let dT = dR._2 | |
539 | + | let dU = dR._3 | |
540 | + | $Tuple2(nil, [("%s%d__unstakedAcres__" + toString(dI)), ("%s%d__claimedAcres__" + toString(dJ)), ("%s%d__acresFromPieces__" + toString(dL)), ("%s%d__acresFromRes__" + toString(dM)), ("%s%d__acresFromMat__" + toString(dN)), ("%s%d__acresFromProd__" + toString(dO)), ("%s%d__acresFromDuckRes__" + toString(dS)), ("%s%d__acresFromDuckMat__" + toString(dT)), ("%s%d__acresFromDuckProd__" + toString(dU))]) | |
531 | 541 | } | |
532 | 542 | ||
533 | 543 | ||
534 | 544 | ||
535 | - | @Callable( | |
536 | - | func wlgStatsREADONLY ( | |
537 | - | let | |
538 | - | $Tuple2(nil, [("%s%d__wlgAmount__" + toString( | |
545 | + | @Callable(dC) | |
546 | + | func wlgStatsREADONLY (ck) = { | |
547 | + | let dV = cj(ck, [y, z, A, B, C], g, 0) | |
548 | + | $Tuple2(nil, [("%s%d__wlgAmount__" + toString(dV[ae])), ("%s%d__wlgWlg__" + toString(dV[af])), ("%s%d__wlgPrice__" + toString(dV[ag])), ("%s%d__usdtFunds__" + toString(dV[ah])), ("%s%d__usdtActivity__" + toString(dV[ai])), ("%s%d__usdtStaking__" + toString(dV[aj])), ("%s%d__usdtArbitrage__" + toString(dV[ak])), ("%s%d__usdtPool__" + toString(dV[al])), ("%s%d__wlgIssueTime__" + toString(dV[am])), ("%s%d__wlgLastTeamActTime__" + toString(dV[an])), ("%s%d__wlgTeamTotal__" + toString(dV[ao])), ("%s%d__wlgTeamAmLeft__" + toString(dV[ap])), ("%s%d__wlgTeamAmAvailNow__" + toString(dV[aq])), ("%s%d__wlgTeamWlgold__" + toString(dV[ar])), ("%s%d__wlgActTotal__" + toString(dV[as])), ("%s%d__wlgActAmLeft__" + toString(dV[at])), ("%s%d__wlgActAmAvailNow__" + toString(dV[au])), ("%s%d__wlgActWlgold__" + toString(dV[av])), ("%s%d__wlgCurPeriod__" + toString(dV[aw])), ("%s%d__wlgAmLeftTotal__" + toString(dV[ax])), ("%s%d__wlgCurPeriodDistribution__" + toString(dV[ay])), ("%s%d__wlgLastUserTime__" + toString(dV[az])), ("%s%d__wlgInvestFundTotal__" + toString(dV[aA])), ("%s%d__wlgUserAmAvailNow__" + toString(dV[aB])), ("%s%d__wlgEffUserTime__" + toString(dV[aC])), ("%s%d__wlgIssue10AvailNow__" + toString(dV[aD])), ("%s%d__wlgMarketingIssue10AvailNow__" + toString(dV[aE])), ("%s%d__wlgTeamIssue10AvailNow__" + toString(dV[aF])), ("%s%d__wlgUserIssue10AvailNow__" + toString(dV[aG])), ("%s%d__wlgLastIssue10Time__" + toString(dV[aH])), ("%s%d__wlgTotalFarmingPower__" + toString(dV[aI])), ("%s%d__wlgAcresStakedTotal__" + toString(dV[aJ])), ("%s%d__nftTotalIssued__" + toString(dV[aK])), ("%s%d__nftTotalBurned__" + toString(dV[aL])), ("%s%d__wlNftTotalStaked__" + toString(dV[aM])), ("%s%d__wlNftUserStaked__" + toString(dV[aN]))]) | |
539 | 549 | } | |
540 | 550 | ||
541 | 551 | ||
542 | 552 | ||
543 | - | @Callable( | |
544 | - | func lotteryStatsREADONLY ( | |
545 | - | let | |
546 | - | let | |
547 | - | let | |
548 | - | let | |
549 | - | let | |
550 | - | let | |
551 | - | let | |
552 | - | let | |
553 | - | $Tuple2(nil, [((("%s%d%d__totalTickets__" + toString( | |
553 | + | @Callable(dC) | |
554 | + | func lotteryStatsREADONLY (ck) = { | |
555 | + | let dW = (height / c) | |
556 | + | let U = (height / e) | |
557 | + | let dX = (U - 1) | |
558 | + | let dY = valueOrElse(getInteger(A, T(ck, U)), 0) | |
559 | + | let dZ = valueOrElse(getInteger(A, T(ck, dX)), 0) | |
560 | + | let ea = valueOrElse(getInteger(A, V(U)), 0) | |
561 | + | let eb = valueOrElse(getInteger(A, V(dX)), 0) | |
562 | + | let ec = valueOrElse(getString(A, S(ck)), "") | |
563 | + | $Tuple2(nil, [((("%s%d%d__totalTickets__" + toString(eb)) + a) + toString(ea)), ((("%s%d%d__userTickets__" + toString(dZ)) + a) + toString(dY)), ("%s%d__blockchainWeek__" + toString(U)), ("%s%d__blockchainDay__" + toString(dW)), ("%s%d__blockchainMinute__" + toString((height % c))), ("%s%d__winningBetToday__" + toString(W(dW))), ("%s%s__usersBet__" + ec)]) | |
554 | 564 | } | |
555 | 565 | ||
556 | 566 | ||
557 | 567 | ||
558 | - | @Callable(dx) | |
559 | - | func userOrdersREADONLY (cf) = { | |
560 | - | let dY = Y(cf) | |
561 | - | let dZ = valueOrElse(getString(dY), "") | |
562 | - | $Tuple2(nil, [("%s%s__userSaleNfts__" + dZ)]) | |
568 | + | @Callable(dC) | |
569 | + | func userOrdersREADONLY (ck) = { | |
570 | + | let ed = ad(ck) | |
571 | + | let ee = valueOrElse(getString(D, ed), "") | |
572 | + | $Tuple2(nil, [("%s%s__userSaleNfts__" + ee)]) | |
573 | + | } | |
574 | + | ||
575 | + | ||
576 | + | ||
577 | + | @Callable(dC) | |
578 | + | func orderInfoREADONLY (ef) = { | |
579 | + | let eg = valueOrElse(getInteger(D, ac(ef)), 0) | |
580 | + | let eh = valueOrElse(getString(D, aa(ef)), "") | |
581 | + | $Tuple2(nil, [("%s%d__marketNftPrice__" + toString(eg)), ("%s%s__marketNftSeller__" + eh)]) | |
563 | 582 | } | |
564 | 583 | ||
565 | 584 |
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 1440 | |
12 | 12 | else if ((base58'2T' == d)) | |
13 | 13 | then 60 | |
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 10080 | |
21 | 21 | else if ((base58'2T' == d)) | |
22 | 22 | then 180 | |
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 0 | |
30 | 30 | else if ((base58'2T' == d)) | |
31 | 31 | then 1146000 | |
32 | 32 | else throw("Unknown chain") | |
33 | 33 | } | |
34 | 34 | ||
35 | 35 | let g = { | |
36 | 36 | let d = b | |
37 | 37 | if ((base58'2W' == d)) | |
38 | 38 | then base58'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi' | |
39 | 39 | else if ((base58'2T' == d)) | |
40 | 40 | then base58'6mWwf9mZBjVgkC54idpyaZLQfAosD914wT8fGf2iiY63' | |
41 | 41 | else throw("Unknown chain") | |
42 | 42 | } | |
43 | 43 | ||
44 | 44 | let h = { | |
45 | 45 | let d = b | |
46 | 46 | if ((base58'2W' == d)) | |
47 | 47 | then "3PFwYta8biEz31zpeFe5DJK8wE5trSpQVF8" | |
48 | 48 | else if ((base58'2T' == d)) | |
49 | 49 | then "3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv" | |
50 | 50 | else throw("Unknown chain") | |
51 | 51 | } | |
52 | 52 | ||
53 | 53 | let i = { | |
54 | 54 | let d = b | |
55 | 55 | if ((base58'2W' == d)) | |
56 | 56 | then "3PLncXtS1U83D6cQbFD3H8rBHPLgzxSFKZ1" | |
57 | 57 | else if ((base58'2T' == d)) | |
58 | 58 | then "3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm" | |
59 | 59 | else throw("Unknown chain") | |
60 | 60 | } | |
61 | 61 | ||
62 | 62 | func j (k,l) = valueOrErrorMessage(getString(k, l), makeString(["mandatory ", toString(k), ".", l, " is not defined"], "")) | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | let m = 1 | |
66 | 66 | ||
67 | 67 | let n = 2 | |
68 | 68 | ||
69 | 69 | let o = 4 | |
70 | 70 | ||
71 | 71 | let p = 5 | |
72 | 72 | ||
73 | - | func q () = "%s__restConfig" | |
73 | + | let q = 6 | |
74 | + | ||
75 | + | func r () = "%s__restConfig" | |
74 | 76 | ||
75 | 77 | ||
76 | - | func | |
78 | + | func s () = "%s__rest2Addr" | |
77 | 79 | ||
78 | 80 | ||
79 | - | func | |
81 | + | func t (u) = split_4C(j(u, r()), a) | |
80 | 82 | ||
81 | 83 | ||
82 | - | func | |
84 | + | func v (w,x) = valueOrErrorMessage(addressFromString(w[x]), ("Rest cfg doesn't contain address at index " + toString(x))) | |
83 | 85 | ||
84 | 86 | ||
85 | - | let | |
87 | + | let y = addressFromStringValue(valueOrElse(getString(this, s()), h)) | |
86 | 88 | ||
87 | - | let | |
89 | + | let w = t(y) | |
88 | 90 | ||
89 | - | let | |
91 | + | let z = v(w, m) | |
90 | 92 | ||
91 | - | let | |
93 | + | let A = v(w, n) | |
92 | 94 | ||
93 | - | let | |
95 | + | let B = v(w, o) | |
94 | 96 | ||
95 | - | let | |
97 | + | let C = v(w, p) | |
96 | 98 | ||
97 | - | let | |
99 | + | let D = v(w, q) | |
98 | 100 | ||
99 | - | func D (E) = ("lastWeekTxIdByUser_" + E) | |
101 | + | let E = "oldAcresContract" | |
102 | + | ||
103 | + | func F (G) = ("lastWeekTxIdByUser_" + G) | |
100 | 104 | ||
101 | 105 | ||
102 | - | func | |
106 | + | func H (G) = ("curWeekTxIdByUser_" + G) | |
103 | 107 | ||
104 | 108 | ||
105 | - | let | |
109 | + | let I = "wlg_assetId" | |
106 | 110 | ||
107 | - | let | |
111 | + | let J = valueOrErrorMessage(getBinary(A, I), "WLGOLD is not issued yet") | |
108 | 112 | ||
109 | - | let | |
113 | + | let K = "acresAssetId" | |
110 | 114 | ||
111 | - | let | |
115 | + | let L = valueOrErrorMessage(getBinary(z, K), "ACRES is not issued yet") | |
112 | 116 | ||
113 | - | func | |
117 | + | func M (N) = ("stakedDuckByOwner_" + N) | |
114 | 118 | ||
115 | 119 | ||
116 | - | func | |
120 | + | func O (N) = ("stakedNFTsByOwner_" + N) | |
117 | 121 | ||
118 | 122 | ||
119 | - | func | |
123 | + | func P (G) = ("accountCustomNameByAddr_" + G) | |
120 | 124 | ||
121 | 125 | ||
122 | - | func | |
126 | + | func Q (G) = ("accRefBy_" + G) | |
123 | 127 | ||
124 | 128 | ||
125 | - | func | |
129 | + | func R (G) = ("accReferrals_" + G) | |
126 | 130 | ||
127 | 131 | ||
128 | - | func | |
132 | + | func S (G) = ("userBet_" + G) | |
129 | 133 | ||
130 | 134 | ||
131 | - | func | |
135 | + | func T (G,U) = ((("userWeekTickets_" + G) + "_") + toString(U)) | |
132 | 136 | ||
133 | 137 | ||
134 | - | func | |
138 | + | func V (U) = ("totalWeekTickets_" + toString(U)) | |
135 | 139 | ||
136 | 140 | ||
137 | - | func | |
138 | - | let | |
139 | - | let | |
140 | - | then | |
141 | - | else ( | |
142 | - | (toInt(value(value(blockInfoByHeight( | |
141 | + | func W (X) = { | |
142 | + | let Y = (X * c) | |
143 | + | let Z = if ((Y > f)) | |
144 | + | then Y | |
145 | + | else (Y + f) | |
146 | + | (toInt(value(value(blockInfoByHeight(Z)).vrf)) % 4) | |
143 | 147 | } | |
144 | 148 | ||
145 | 149 | ||
146 | - | func | |
150 | + | func aa (ab) = ("seller_" + ab) | |
147 | 151 | ||
148 | 152 | ||
149 | - | ||
153 | + | func ac (ab) = ("price_" + ab) | |
150 | 154 | ||
151 | - | let aa = 1 | |
152 | 155 | ||
153 | - | ||
156 | + | func ad (G) = ("assetIds_" + G) | |
154 | 157 | ||
155 | - | let ac = 3 | |
156 | 158 | ||
157 | - | let | |
159 | + | let ae = 0 | |
158 | 160 | ||
159 | - | let | |
161 | + | let af = 1 | |
160 | 162 | ||
161 | - | let | |
163 | + | let ag = 2 | |
162 | 164 | ||
163 | - | let | |
165 | + | let ah = 3 | |
164 | 166 | ||
165 | - | let | |
167 | + | let ai = 4 | |
166 | 168 | ||
167 | - | let | |
169 | + | let aj = 5 | |
168 | 170 | ||
169 | - | let | |
171 | + | let ak = 6 | |
170 | 172 | ||
171 | - | let | |
173 | + | let al = 7 | |
172 | 174 | ||
173 | - | let | |
175 | + | let am = 8 | |
174 | 176 | ||
175 | - | let | |
177 | + | let an = 9 | |
176 | 178 | ||
177 | - | let | |
179 | + | let ao = 10 | |
178 | 180 | ||
179 | - | let | |
181 | + | let ap = 11 | |
180 | 182 | ||
181 | - | let | |
183 | + | let aq = 12 | |
182 | 184 | ||
183 | - | let | |
185 | + | let ar = 13 | |
184 | 186 | ||
185 | - | let | |
187 | + | let as = 14 | |
186 | 188 | ||
187 | - | let | |
189 | + | let at = 15 | |
188 | 190 | ||
189 | - | let | |
191 | + | let au = 16 | |
190 | 192 | ||
191 | - | let | |
193 | + | let av = 17 | |
192 | 194 | ||
193 | - | let | |
195 | + | let aw = 18 | |
194 | 196 | ||
195 | - | let | |
197 | + | let ax = 19 | |
196 | 198 | ||
197 | - | let | |
199 | + | let ay = 20 | |
198 | 200 | ||
199 | - | let | |
201 | + | let az = 21 | |
200 | 202 | ||
201 | - | let | |
203 | + | let aA = 22 | |
202 | 204 | ||
203 | - | let | |
205 | + | let aB = 23 | |
204 | 206 | ||
205 | - | let | |
207 | + | let aC = 24 | |
206 | 208 | ||
207 | - | let | |
209 | + | let aD = 25 | |
208 | 210 | ||
209 | - | let | |
211 | + | let aE = 26 | |
210 | 212 | ||
211 | - | let | |
213 | + | let aF = 27 | |
212 | 214 | ||
213 | - | let | |
215 | + | let aG = 28 | |
214 | 216 | ||
215 | - | let | |
217 | + | let aH = 29 | |
216 | 218 | ||
217 | - | let | |
219 | + | let aI = 30 | |
218 | 220 | ||
219 | - | let | |
221 | + | let aJ = 31 | |
220 | 222 | ||
221 | - | func aJ (aK) = { | |
222 | - | let d = aK | |
223 | + | let aK = 32 | |
224 | + | ||
225 | + | let aL = 33 | |
226 | + | ||
227 | + | let aM = 34 | |
228 | + | ||
229 | + | let aN = 35 | |
230 | + | ||
231 | + | func aO (aP) = { | |
232 | + | let d = aP | |
223 | 233 | if ($isInstanceOf(d, "(Int, Int, Int, Int)")) | |
224 | 234 | then { | |
225 | - | let | |
226 | - | | |
235 | + | let aQ = d | |
236 | + | aQ | |
227 | 237 | } | |
228 | 238 | else throw("fail to cast into (Int, Int, Int, Int)") | |
229 | 239 | } | |
230 | 240 | ||
231 | 241 | ||
232 | - | func | |
233 | - | let d = | |
242 | + | func aR (aP) = { | |
243 | + | let d = aP | |
234 | 244 | if ($isInstanceOf(d, "(Int, Int, Int)")) | |
235 | 245 | then { | |
236 | - | let | |
237 | - | | |
246 | + | let aQ = d | |
247 | + | aQ | |
238 | 248 | } | |
239 | 249 | else throw("fail to cast into (Int, Int, Int)") | |
240 | 250 | } | |
241 | 251 | ||
242 | 252 | ||
243 | - | func | |
244 | - | let d = | |
253 | + | func aS (aP) = { | |
254 | + | let d = aP | |
245 | 255 | if ($isInstanceOf(d, "(Int, Int)")) | |
246 | 256 | then { | |
247 | - | let | |
248 | - | | |
257 | + | let aQ = d | |
258 | + | aQ | |
249 | 259 | } | |
250 | 260 | else throw("fail to cast into (Int, Int)") | |
251 | 261 | } | |
252 | 262 | ||
253 | 263 | ||
254 | - | let | |
264 | + | let aT = 1000000 | |
255 | 265 | ||
256 | - | let | |
266 | + | let aU = 100000000 | |
257 | 267 | ||
258 | - | let | |
268 | + | let aV = 200000 | |
259 | 269 | ||
260 | - | let | |
270 | + | let aW = 100000 | |
261 | 271 | ||
262 | - | let | |
272 | + | let aX = 400000 | |
263 | 273 | ||
264 | - | let | |
274 | + | let aY = 31557600000 | |
265 | 275 | ||
266 | - | let | |
276 | + | let aZ = 86400000 | |
267 | 277 | ||
268 | - | let | |
278 | + | let ba = 1000000000 | |
269 | 279 | ||
270 | - | let | |
280 | + | let bb = 800000 | |
271 | 281 | ||
272 | - | let | |
282 | + | let bc = 100000 | |
273 | 283 | ||
274 | - | let | |
284 | + | let bd = 100000 | |
275 | 285 | ||
276 | - | let | |
286 | + | let be = 1731279600000 | |
277 | 287 | ||
278 | - | let | |
288 | + | let bf = "teamAddr" | |
279 | 289 | ||
280 | - | let | |
290 | + | let bg = "lastClaimedTime_team" | |
281 | 291 | ||
282 | - | let | |
292 | + | let bh = "teamAmountLeft" | |
283 | 293 | ||
284 | - | let | |
294 | + | let bi = "lastClaimedTime_activities" | |
285 | 295 | ||
286 | - | let | |
296 | + | let bj = "activitiesAmountLeft" | |
287 | 297 | ||
288 | - | let | |
298 | + | let bk = "stakersAmountLeft" | |
289 | 299 | ||
290 | - | func | |
300 | + | func bl (G) = ("lastClaimedTimeUser_" + G) | |
291 | 301 | ||
292 | 302 | ||
293 | - | func | |
303 | + | func bm (bn,bo) = fraction(bn, (aX * (bo + 1)), (6 * aT)) | |
294 | 304 | ||
295 | 305 | ||
296 | - | let | |
306 | + | let bp = "wlg_issue10Time" | |
297 | 307 | ||
298 | - | let | |
308 | + | let bq = "wlg_issueTime" | |
299 | 309 | ||
300 | - | let | |
310 | + | let br = "wlg_issuedAmount" | |
301 | 311 | ||
302 | - | let | |
312 | + | let bs = "zbill_issuedAmount" | |
303 | 313 | ||
304 | - | func | |
314 | + | func bt (G) = ("acresStakedAmountByUser_" + G) | |
305 | 315 | ||
306 | 316 | ||
307 | - | let | |
317 | + | let bu = "acresStakedAmountTotal" | |
308 | 318 | ||
309 | - | let | |
319 | + | let bv = "totalFarmingPower" | |
310 | 320 | ||
311 | - | let | |
321 | + | let bw = 0 | |
312 | 322 | ||
313 | - | let | |
323 | + | let bx = 1 | |
314 | 324 | ||
315 | - | let | |
325 | + | let by = 2 | |
316 | 326 | ||
317 | - | let | |
327 | + | let bz = 3 | |
318 | 328 | ||
319 | - | let | |
329 | + | let bA = 4 | |
320 | 330 | ||
321 | - | let | |
331 | + | let bB = "nftTotalIssued" | |
322 | 332 | ||
323 | - | let | |
333 | + | let bC = "nftTotalBurned" | |
324 | 334 | ||
325 | - | let | |
335 | + | let bD = "WlNftTotalStaked" | |
326 | 336 | ||
327 | - | func | |
337 | + | func bE (G) = ("userWlNftNumber_" + G) | |
328 | 338 | ||
329 | 339 | ||
330 | - | func | |
340 | + | func bF (G) = ("userFullBonus_" + G) | |
331 | 341 | ||
332 | 342 | ||
333 | - | let | |
343 | + | let bG = [0, 10, 20, 40, 80, 150, 250, 400, 700, 1000] | |
334 | 344 | ||
335 | - | func | |
336 | - | let | |
337 | - | func | |
338 | - | then | |
339 | - | else ( | |
345 | + | func bH (bI) = { | |
346 | + | let bJ = ((bI + 99999999) / aU) | |
347 | + | func bK (bL,bM) = if ((bM >= bJ)) | |
348 | + | then bL | |
349 | + | else (bL + 1) | |
340 | 350 | ||
341 | - | let | |
342 | - | let | |
343 | - | let | |
344 | - | func | |
345 | - | then | |
346 | - | else | |
351 | + | let bN = bG | |
352 | + | let bO = size(bN) | |
353 | + | let bP = 0 | |
354 | + | func bQ (bR,bS) = if ((bS >= bO)) | |
355 | + | then bR | |
356 | + | else bK(bR, bN[bS]) | |
347 | 357 | ||
348 | - | func | |
349 | - | then | |
358 | + | func bT (bR,bS) = if ((bS >= bO)) | |
359 | + | then bR | |
350 | 360 | else throw("List size exceeds 10") | |
351 | 361 | ||
352 | - | | |
362 | + | bT(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bP, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
353 | 363 | } | |
354 | 364 | ||
355 | 365 | ||
356 | - | func | |
366 | + | func bU (bI) = ((bI * 20) * (bH(bI) + 4)) | |
357 | 367 | ||
358 | 368 | ||
359 | - | func | |
360 | - | let | |
361 | - | $Tuple2(fraction( | |
369 | + | func bV (bI,bW) = { | |
370 | + | let bX = bU(bI) | |
371 | + | $Tuple2(fraction(bX, (aT + bW), aT), bX) | |
362 | 372 | } | |
363 | 373 | ||
364 | 374 | ||
365 | - | func | |
366 | - | let | |
367 | - | let | |
368 | - | let | |
369 | - | let | |
370 | - | let | |
371 | - | let | |
372 | - | [ | |
375 | + | func bY (bZ,z) = { | |
376 | + | let ca = valueOrElse(getInteger(z, bv), 0) | |
377 | + | let cb = valueOrElse(getInteger(z, bt(bZ)), 0) | |
378 | + | let cc = valueOrElse(getInteger(z, bF(bZ)), 0) | |
379 | + | let cd = bV(cb, cc) | |
380 | + | let ce = cd._1 | |
381 | + | let cf = cd._2 | |
382 | + | [ca, ce, cf, cc] | |
373 | 383 | } | |
374 | 384 | ||
375 | 385 | ||
376 | - | let | |
386 | + | let cg = 0 | |
377 | 387 | ||
378 | - | let | |
388 | + | let ch = 1 | |
379 | 389 | ||
380 | - | let | |
390 | + | let ci = 2 | |
381 | 391 | ||
382 | - | func | |
383 | - | let | |
384 | - | let | |
385 | - | let | |
386 | - | let | |
387 | - | let | |
388 | - | let | |
389 | - | let | |
390 | - | let | |
391 | - | let | |
392 | - | let | |
393 | - | let | |
394 | - | let | |
395 | - | let | |
396 | - | let | |
397 | - | let | |
398 | - | let | |
399 | - | let | |
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 | - | let | |
413 | - | let | |
414 | - | let | |
415 | - | let | |
416 | - | then | |
417 | - | else if (( | |
392 | + | func cj (ck,cl,cm,cn) = { | |
393 | + | let bn = valueOrErrorMessage(getInteger(cl[by], br), "WLGOLD is not issued yet") | |
394 | + | let co = assetBalance(cl[bw], cm) | |
395 | + | let cp = (assetBalance(cl[by], cm) - cn) | |
396 | + | let cq = assetBalance(cl[bz], cm) | |
397 | + | let cr = assetBalance(cl[bx], cm) | |
398 | + | let cs = cl[bA] | |
399 | + | let ct = (assetBalance(cs, cm) + valueOrElse(getInteger(cs, bs), 0)) | |
400 | + | let cu = ((cr + cp) + ct) | |
401 | + | let cv = valueOrErrorMessage(getBinary(cl[by], "wlg_assetId"), "Not initialized yet") | |
402 | + | let cw = lastBlock.timestamp | |
403 | + | let cx = valueOrErrorMessage(getInteger(cl[by], bq), "Not initialized") | |
404 | + | let cy = assetBalance(cl[by], cv) | |
405 | + | let cz = fraction(bn, aV, aT) | |
406 | + | let cA = valueOrElse(getInteger(cl[by], bh), cz) | |
407 | + | let cB = valueOrElse(getInteger(cl[by], bg), cx) | |
408 | + | let cC = addressFromStringValue(value(getString(cl[by], bf))) | |
409 | + | let cD = min([fraction(cz, (cw - cB), (3 * aY)), cA]) | |
410 | + | let cE = assetBalance(cC, cv) | |
411 | + | let cF = fraction(bn, aW, aT) | |
412 | + | let cG = valueOrElse(getInteger(cl[by], bj), cF) | |
413 | + | let cH = valueOrElse(getInteger(cl[by], bi), cx) | |
414 | + | let cI = min([fraction(cF, (cw - cH), (3 * aY)), cG]) | |
415 | + | let cJ = assetBalance(cl[bw], cv) | |
416 | + | let cK = valueOrElse(getInteger(cl[by], bl(ck)), cx) | |
417 | + | let cL = ((cK - cx) / aY) | |
418 | + | let cM = min([cw, (cx + (3 * aY))]) | |
419 | + | let cN = min([((cw - cx) / aY), 2]) | |
420 | + | let cO = bY(ck, cl[bx]) | |
421 | + | let cP = bm(bn, cN) | |
422 | + | let cQ = (cx + (aY * cN)) | |
423 | + | let cR = (cx + (aY * (cN - 1))) | |
424 | + | let cS = fraction(cP, (cM - cK), aY) | |
425 | + | let cT = if ((cL == cN)) | |
426 | + | then cS | |
427 | + | else if ((cL == (cN - 1))) | |
418 | 428 | then { | |
419 | - | let | |
420 | - | ( | |
429 | + | let cU = fraction(bm(bn, (cN - 1)), (cQ - cK), aY) | |
430 | + | (cU + cS) | |
421 | 431 | } | |
422 | 432 | else { | |
423 | - | let | |
424 | - | let | |
425 | - | (( | |
433 | + | let cV = fraction(bm(bn, (cN - 2)), (cR - cK), aY) | |
434 | + | let cU = bm(bn, (cN - 1)) | |
435 | + | ((cV + cU) + cS) | |
426 | 436 | } | |
427 | - | let | |
428 | - | let | |
429 | - | then fraction( | |
437 | + | let cW = valueOrElse(getInteger(cl[by], bk), 0) | |
438 | + | let cX = if ((cO[cg] != 0)) | |
439 | + | then fraction(cT, cO[ch], cO[cg]) | |
430 | 440 | else 0 | |
431 | - | let | |
432 | - | let | |
433 | - | let | |
434 | - | let | |
435 | - | let | |
436 | - | let | |
437 | - | then fraction(fraction(fraction( | |
441 | + | let cY = valueOrElse(getInteger(cl[by], bp), be) | |
442 | + | let cZ = fraction(ba, max([(cw - cY), 0]), aZ) | |
443 | + | let da = fraction(cZ, bc, aT) | |
444 | + | let db = fraction(cZ, bd, aT) | |
445 | + | let dc = max([(cw - max([be, cK])), 0]) | |
446 | + | let dd = if ((cO[cg] != 0)) | |
447 | + | then fraction(fraction(fraction(ba, dc, aZ), cO[ch], cO[cg]), bb, aT) | |
438 | 448 | else 0 | |
439 | - | let | |
440 | - | let | |
441 | - | let | |
442 | - | let | |
443 | - | let | |
444 | - | let | |
445 | - | [ | |
449 | + | let de = max([be, cw]) | |
450 | + | let df = valueOrElse(getInteger(cl[bx], bu), 0) | |
451 | + | let dg = valueOrElse(getInteger(cl[bx], bB), 0) | |
452 | + | let dh = valueOrElse(getInteger(cl[bx], bC), 0) | |
453 | + | let di = valueOrElse(getInteger(cl[bx], bD), 0) | |
454 | + | let dj = valueOrElse(getInteger(cl[bx], bE(valueOrElse(ck, ""))), 0) | |
455 | + | [bn, cy, fraction(cu, aU, bn), cu, co, cr, cp, cq, cx, cB, cz, cA, cD, cE, cF, cG, cI, cJ, cN, cW, cP, cK, ct, cX, cM, cZ, da, db, dd, de, cO[cg], df, dg, dh, di, dj] | |
446 | 456 | } | |
447 | 457 | ||
448 | 458 | ||
449 | - | func | |
450 | - | let | |
451 | - | let | |
452 | - | then wavesBalance(value( | |
459 | + | func dk (dl) = { | |
460 | + | let G = addressFromString(dl) | |
461 | + | let dm = if (isDefined(G)) | |
462 | + | then wavesBalance(value(G)) | |
453 | 463 | else BalanceDetails(0, 0, 0, 0) | |
454 | - | let | |
455 | - | then assetBalance(value( | |
464 | + | let dn = if (isDefined(G)) | |
465 | + | then assetBalance(value(G), g) | |
456 | 466 | else 0 | |
457 | - | let | |
458 | - | then assetBalance(value( | |
467 | + | let do = if (isDefined(G)) | |
468 | + | then assetBalance(value(G), J) | |
459 | 469 | else 0 | |
460 | - | let | |
461 | - | let | |
462 | - | let | |
463 | - | let | |
464 | - | let | |
465 | - | let | |
466 | - | let | |
467 | - | then assetBalance(value( | |
470 | + | let dp = valueOrElse(getString(z, P(dl)), dl) | |
471 | + | let dq = Q(dl) | |
472 | + | let dr = getString(z, dq) | |
473 | + | let ds = valueOrElse(getString(z, R(dl)), "") | |
474 | + | let dt = valueOrElse(getString(z, F(dl)), "") | |
475 | + | let du = valueOrElse(getString(z, H(dl)), "") | |
476 | + | let dv = if (isDefined(G)) | |
477 | + | then assetBalance(value(G), L) | |
468 | 478 | else 0 | |
469 | - | let | |
470 | - | let | |
471 | - | let | |
472 | - | let | |
479 | + | let dw = valueOrElse(getInteger(z, bt(dl)), 0) | |
480 | + | let dx = bH(dw) | |
481 | + | let dy = bY(dl, z) | |
482 | + | let dz = if ((dx >= size(bG))) | |
473 | 483 | then 0 | |
474 | - | else ((( | |
475 | - | let | |
476 | - | let | |
477 | - | [("%s%s__customName__" + | |
484 | + | else (((bG[dx] * aU) + 1) - dw) | |
485 | + | let dA = valueOrElse(getString(z, O(dl)), "") | |
486 | + | let dB = valueOrElse(getInteger(z, bF(dl)), 0) | |
487 | + | [("%s%s__customName__" + dp), ("%s%s__referredBy__" + valueOrElse(dr, "")), ("%s%s__referrals__" + ds), ("%s%s__lastWeekTxId__" + dt), ("%s%s__curWeekTxId__" + dt), ("%s%d__wavesBalance__" + toString(dm.available)), ("%s%d__usdtBalance__" + toString(dn)), ("%s%d__wlgoldBalance__" + toString(do)), ("%s%d__acresBalance__" + toString(dv)), ("%s%d__stakedAcres__" + toString(dw)), ("%s%d__currentLvl__" + toString(dx)), ("%s%d__acresToNextLvl__" + toString(dz)), ("%s%s__userNFTs__" + dA), ("%s%d__userBonus__" + toString(dB)), ("%s%d__userBaseFarmingPower__" + toString(dy[ci])), ("%s%d__userFarmingPower__" + toString(dy[ch])), ("%s%d__totalFarmingPower__" + toString(dy[cg]))] | |
478 | 488 | } | |
479 | 489 | ||
480 | 490 | ||
481 | - | @Callable( | |
482 | - | func constructorV1 ( | |
491 | + | @Callable(dC) | |
492 | + | func constructorV1 (cl) = if ((dC.caller != this)) | |
483 | 493 | then throw("permissions denied") | |
484 | 494 | else { | |
485 | - | func | |
495 | + | func dD (bL,dE) = (bL + "%s") | |
486 | 496 | ||
487 | - | let | |
488 | - | let | |
489 | - | let | |
490 | - | let | |
491 | - | func | |
492 | - | then | |
493 | - | else | |
497 | + | let dF = { | |
498 | + | let bN = cl | |
499 | + | let bO = size(bN) | |
500 | + | let bP = "" | |
501 | + | func bQ (bR,bS) = if ((bS >= bO)) | |
502 | + | then bR | |
503 | + | else dD(bR, bN[bS]) | |
494 | 504 | ||
495 | - | func | |
496 | - | then | |
505 | + | func bT (bR,bS) = if ((bS >= bO)) | |
506 | + | then bR | |
497 | 507 | else throw("List size exceeds 10") | |
498 | 508 | ||
499 | - | | |
509 | + | bT(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bP, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
500 | 510 | } | |
501 | - | [StringEntry( | |
511 | + | [StringEntry(r(), makeString(dF :: cl, a)), StringEntry(s(), toString(this))] | |
502 | 512 | } | |
503 | 513 | ||
504 | 514 | ||
505 | 515 | ||
506 | - | @Callable( | |
507 | - | func walletInfoREADONLY ( | |
516 | + | @Callable(dC) | |
517 | + | func walletInfoREADONLY (dl) = $Tuple2(nil, dk(dl)) | |
508 | 518 | ||
509 | 519 | ||
510 | 520 | ||
511 | - | @Callable( | |
512 | - | func conversionInfoREADONLY ( | |
513 | - | let | |
514 | - | let | |
515 | - | let | |
516 | - | let | |
517 | - | let | |
518 | - | let | |
519 | - | let | |
520 | - | let | |
521 | - | let | |
522 | - | let | |
523 | - | let | |
524 | - | let | |
525 | - | then | |
521 | + | @Callable(dC) | |
522 | + | func conversionInfoREADONLY (dl) = { | |
523 | + | let dG = addressFromStringValue(getStringValue(z, E)) | |
524 | + | let dH = aS(invoke(dG, "unstakeAllAcresREADONLY", [dl], nil)) | |
525 | + | let dI = dH._1 | |
526 | + | let dJ = dH._2 | |
527 | + | let dK = aO(invoke(z, "unstakeLandsREADONLY", [dl], nil)) | |
528 | + | let dL = dK._1 | |
529 | + | let dM = dK._2 | |
530 | + | let dN = dK._3 | |
531 | + | let dO = dK._4 | |
532 | + | let dP = addressFromStringValue(i) | |
533 | + | let dQ = valueOrElse(getString(dP, M(dl)), "") | |
534 | + | let dR = if ((dQ != "")) | |
535 | + | then aR(invoke(dP, "unstakeDuckREADONLY", [dQ, dl], nil)) | |
526 | 536 | else $Tuple3(0, 0, 0) | |
527 | - | let | |
528 | - | let | |
529 | - | let | |
530 | - | $Tuple2(nil, [("%s%d__unstakedAcres__" + toString( | |
537 | + | let dS = dR._1 | |
538 | + | let dT = dR._2 | |
539 | + | let dU = dR._3 | |
540 | + | $Tuple2(nil, [("%s%d__unstakedAcres__" + toString(dI)), ("%s%d__claimedAcres__" + toString(dJ)), ("%s%d__acresFromPieces__" + toString(dL)), ("%s%d__acresFromRes__" + toString(dM)), ("%s%d__acresFromMat__" + toString(dN)), ("%s%d__acresFromProd__" + toString(dO)), ("%s%d__acresFromDuckRes__" + toString(dS)), ("%s%d__acresFromDuckMat__" + toString(dT)), ("%s%d__acresFromDuckProd__" + toString(dU))]) | |
531 | 541 | } | |
532 | 542 | ||
533 | 543 | ||
534 | 544 | ||
535 | - | @Callable( | |
536 | - | func wlgStatsREADONLY ( | |
537 | - | let | |
538 | - | $Tuple2(nil, [("%s%d__wlgAmount__" + toString( | |
545 | + | @Callable(dC) | |
546 | + | func wlgStatsREADONLY (ck) = { | |
547 | + | let dV = cj(ck, [y, z, A, B, C], g, 0) | |
548 | + | $Tuple2(nil, [("%s%d__wlgAmount__" + toString(dV[ae])), ("%s%d__wlgWlg__" + toString(dV[af])), ("%s%d__wlgPrice__" + toString(dV[ag])), ("%s%d__usdtFunds__" + toString(dV[ah])), ("%s%d__usdtActivity__" + toString(dV[ai])), ("%s%d__usdtStaking__" + toString(dV[aj])), ("%s%d__usdtArbitrage__" + toString(dV[ak])), ("%s%d__usdtPool__" + toString(dV[al])), ("%s%d__wlgIssueTime__" + toString(dV[am])), ("%s%d__wlgLastTeamActTime__" + toString(dV[an])), ("%s%d__wlgTeamTotal__" + toString(dV[ao])), ("%s%d__wlgTeamAmLeft__" + toString(dV[ap])), ("%s%d__wlgTeamAmAvailNow__" + toString(dV[aq])), ("%s%d__wlgTeamWlgold__" + toString(dV[ar])), ("%s%d__wlgActTotal__" + toString(dV[as])), ("%s%d__wlgActAmLeft__" + toString(dV[at])), ("%s%d__wlgActAmAvailNow__" + toString(dV[au])), ("%s%d__wlgActWlgold__" + toString(dV[av])), ("%s%d__wlgCurPeriod__" + toString(dV[aw])), ("%s%d__wlgAmLeftTotal__" + toString(dV[ax])), ("%s%d__wlgCurPeriodDistribution__" + toString(dV[ay])), ("%s%d__wlgLastUserTime__" + toString(dV[az])), ("%s%d__wlgInvestFundTotal__" + toString(dV[aA])), ("%s%d__wlgUserAmAvailNow__" + toString(dV[aB])), ("%s%d__wlgEffUserTime__" + toString(dV[aC])), ("%s%d__wlgIssue10AvailNow__" + toString(dV[aD])), ("%s%d__wlgMarketingIssue10AvailNow__" + toString(dV[aE])), ("%s%d__wlgTeamIssue10AvailNow__" + toString(dV[aF])), ("%s%d__wlgUserIssue10AvailNow__" + toString(dV[aG])), ("%s%d__wlgLastIssue10Time__" + toString(dV[aH])), ("%s%d__wlgTotalFarmingPower__" + toString(dV[aI])), ("%s%d__wlgAcresStakedTotal__" + toString(dV[aJ])), ("%s%d__nftTotalIssued__" + toString(dV[aK])), ("%s%d__nftTotalBurned__" + toString(dV[aL])), ("%s%d__wlNftTotalStaked__" + toString(dV[aM])), ("%s%d__wlNftUserStaked__" + toString(dV[aN]))]) | |
539 | 549 | } | |
540 | 550 | ||
541 | 551 | ||
542 | 552 | ||
543 | - | @Callable( | |
544 | - | func lotteryStatsREADONLY ( | |
545 | - | let | |
546 | - | let | |
547 | - | let | |
548 | - | let | |
549 | - | let | |
550 | - | let | |
551 | - | let | |
552 | - | let | |
553 | - | $Tuple2(nil, [((("%s%d%d__totalTickets__" + toString( | |
553 | + | @Callable(dC) | |
554 | + | func lotteryStatsREADONLY (ck) = { | |
555 | + | let dW = (height / c) | |
556 | + | let U = (height / e) | |
557 | + | let dX = (U - 1) | |
558 | + | let dY = valueOrElse(getInteger(A, T(ck, U)), 0) | |
559 | + | let dZ = valueOrElse(getInteger(A, T(ck, dX)), 0) | |
560 | + | let ea = valueOrElse(getInteger(A, V(U)), 0) | |
561 | + | let eb = valueOrElse(getInteger(A, V(dX)), 0) | |
562 | + | let ec = valueOrElse(getString(A, S(ck)), "") | |
563 | + | $Tuple2(nil, [((("%s%d%d__totalTickets__" + toString(eb)) + a) + toString(ea)), ((("%s%d%d__userTickets__" + toString(dZ)) + a) + toString(dY)), ("%s%d__blockchainWeek__" + toString(U)), ("%s%d__blockchainDay__" + toString(dW)), ("%s%d__blockchainMinute__" + toString((height % c))), ("%s%d__winningBetToday__" + toString(W(dW))), ("%s%s__usersBet__" + ec)]) | |
554 | 564 | } | |
555 | 565 | ||
556 | 566 | ||
557 | 567 | ||
558 | - | @Callable(dx) | |
559 | - | func userOrdersREADONLY (cf) = { | |
560 | - | let dY = Y(cf) | |
561 | - | let dZ = valueOrElse(getString(dY), "") | |
562 | - | $Tuple2(nil, [("%s%s__userSaleNfts__" + dZ)]) | |
568 | + | @Callable(dC) | |
569 | + | func userOrdersREADONLY (ck) = { | |
570 | + | let ed = ad(ck) | |
571 | + | let ee = valueOrElse(getString(D, ed), "") | |
572 | + | $Tuple2(nil, [("%s%s__userSaleNfts__" + ee)]) | |
573 | + | } | |
574 | + | ||
575 | + | ||
576 | + | ||
577 | + | @Callable(dC) | |
578 | + | func orderInfoREADONLY (ef) = { | |
579 | + | let eg = valueOrElse(getInteger(D, ac(ef)), 0) | |
580 | + | let eh = valueOrElse(getString(D, aa(ef)), "") | |
581 | + | $Tuple2(nil, [("%s%d__marketNftPrice__" + toString(eg)), ("%s%s__marketNftSeller__" + eh)]) | |
563 | 582 | } | |
564 | 583 | ||
565 | 584 |
github/deemru/w8io/169f3d6 404.35 ms ◑