tx · n6Nb3gfYDFdrUW1uLVVzQGXZcsbNPymDn9WVSZMztvZ

3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv:  -0.01400000 Waves

2024.09.13 04:46 [3281211] smart account 3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv > SELF 0.00000000 Waves

{ "type": 13, "id": "n6Nb3gfYDFdrUW1uLVVzQGXZcsbNPymDn9WVSZMztvZ", "fee": 1400000, "feeAssetId": null, "timestamp": 1726191979348, "version": 2, "chainId": 84, "sender": "3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv", "senderPublicKey": "2fNSk5gmWbXBDTkSYSKd66xSgVvAYzrJnP9YSAFNvTwC", "proofs": [ "5edBsyqZL95QH9UAXJHy6gxfdt1qGD35NjCbo8ihydd9zivZoH7TejjerKoRxoqH76mouNkDVZNcP6bypaF6VJif" ], "script": "base64:BgIWCAISAwoBGBIDCgEIEgMKAQgSAwoBCFsAA1NFUAICX18ABWNoYWluCQDJAQIJAMoBAggFBHRoaXMFYnl0ZXMAAQABAAt1c2R0QXNzZXRJZAQHJG1hdGNoMAUFY2hhaW4DCQAAAgEBVwUHJG1hdGNoMAEghNp6sggDP07Ru8qO7ouTvMmC3Qtd+geWqNQj+agP/7kDCQAAAgEBVAUHJG1hdGNoMAEgVbHYn3KHgu/l41uNrAWrZd6aQ6EvFrsF8xq3h6XxxRgJAAIBAg1Vbmtub3duIGNoYWluABZkZWZhdWx0UmVzdDJBZGRyZXNzU3RyBAckbWF0Y2gwBQVjaGFpbgMJAAACAQFXBQckbWF0Y2gwAiMzUEZ3WXRhOGJpRXozMXpwZUZlNURKSzh3RTV0clNwUVZGOAMJAAACAQFUBQckbWF0Y2gwAiMzTjdVdVlhcjYyNjRQNThGQmhWV0tQUUFoNFl1YTJoZ25ndgkAAgECDVVua25vd24gY2hhaW4AFW9sZFN0YWtpbmdDb250cmFjdFN0cgQHJG1hdGNoMAUFY2hhaW4DCQAAAgEBVwUHJG1hdGNoMAIjM1BMbmNYdFMx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applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6QoWLHuwmreHtGSqvVqffhK3ycJ1mAynKFhPt2eA5Yt Next: G2mdREjNEm7rvRZHwiL82oYnhVh3Eu1rkoBAopBkocoS Diff:
OldNewDifferences
88 let c = {
99 let d = b
1010 if ((base58'2W' == d))
11+ then base58'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi'
12+ else if ((base58'2T' == d))
13+ then base58'6mWwf9mZBjVgkC54idpyaZLQfAosD914wT8fGf2iiY63'
14+ else throw("Unknown chain")
15+ }
16+
17+let e = {
18+ let d = b
19+ if ((base58'2W' == d))
1120 then "3PFwYta8biEz31zpeFe5DJK8wE5trSpQVF8"
1221 else if ((base58'2T' == d))
1322 then "3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv"
1423 else throw("Unknown chain")
1524 }
1625
17-let e = {
26+let f = {
1827 let d = b
1928 if ((base58'2W' == d))
2029 then "3PLncXtS1U83D6cQbFD3H8rBHPLgzxSFKZ1"
2332 else throw("Unknown chain")
2433 }
2534
26-func f (g,h) = valueOrErrorMessage(getString(g, h), makeString(["mandatory ", toString(g), ".", h, " is not defined"], ""))
35+func g (h,i) = valueOrErrorMessage(getString(h, i), makeString(["mandatory ", toString(h), ".", i, " is not defined"], ""))
2736
2837
29-let i = 1
38+let j = 1
3039
31-let j = 2
40+let k = 2
3241
33-func k () = "%s__restConfig"
42+let l = 4
43+
44+let m = 5
45+
46+func n () = "%s__restConfig"
3447
3548
36-func l () = "%s__rest2Addr"
49+func o () = "%s__rest2Addr"
3750
3851
39-func m (n) = split_4C(f(n, k()), a)
52+func p (q) = split_4C(g(q, n()), a)
4053
4154
42-func o (p,q) = valueOrErrorMessage(addressFromString(p[q]), ("Rest cfg doesn't contain address at index " + toString(q)))
55+func r (s,t) = valueOrErrorMessage(addressFromString(s[t]), ("Rest cfg doesn't contain address at index " + toString(t)))
4356
4457
45-let r = addressFromStringValue(valueOrElse(getString(this, l()), c))
58+let u = addressFromStringValue(valueOrElse(getString(this, o()), e))
4659
47-let p = m(r)
60+let s = p(u)
4861
49-let s = o(p, i)
62+let v = r(s, j)
5063
51-let t = o(p, j)
64+let w = r(s, k)
5265
53-let u = "oldAcresContract"
66+let x = r(s, l)
5467
55-func v (w) = ("lastTxIdByUser_" + w)
68+let y = r(s, m)
69+
70+let z = "oldAcresContract"
71+
72+func A (B) = ("lastTxIdByUser_" + B)
5673
5774
58-let x = "wlg_assetId"
75+let C = "wlg_assetId"
5976
60-let y = valueOrErrorMessage(getBinary(t, x), "WLGOLD is not issued yet")
77+let D = valueOrErrorMessage(getBinary(w, C), "WLGOLD is not issued yet")
6178
62-let z = "acresAssetId"
79+let E = "acresAssetId"
6380
64-let A = valueOrErrorMessage(getBinary(s, z), "ACRES is not issued yet")
81+let F = valueOrErrorMessage(getBinary(v, E), "ACRES is not issued yet")
6582
66-func B (C) = ("stakedDuckByOwner_" + C)
83+func G (H) = ("stakedDuckByOwner_" + H)
6784
6885
69-func D (w) = ("accountCustomNameByAddr_" + w)
86+func I (B) = ("accountCustomNameByAddr_" + B)
7087
7188
72-func E (w) = ("accRefBy_" + w)
89+func J (B) = ("accRefBy_" + B)
7390
7491
75-func F (w) = ("accReferrals_" + w)
92+func K (B) = ("accReferrals_" + B)
7693
7794
78-func G (H) = {
79- let d = H
95+func L (M) = {
96+ let d = M
8097 if ($isInstanceOf(d, "(Int, Int, Int, Int)"))
8198 then {
82- let I = d
83- I
99+ let N = d
100+ N
84101 }
85102 else throw("fail to cast into (Int, Int, Int, Int)")
86103 }
87104
88105
89-func J (H) = {
90- let d = H
106+func O (M) = {
107+ let d = M
91108 if ($isInstanceOf(d, "(Int, Int, Int)"))
92109 then {
93- let I = d
94- I
110+ let N = d
111+ N
95112 }
96113 else throw("fail to cast into (Int, Int, Int)")
97114 }
98115
99116
100-func K (H) = {
101- let d = H
117+func P (M) = {
118+ let d = M
102119 if ($isInstanceOf(d, "(Int, Int)"))
103120 then {
104- let I = d
105- I
121+ let N = d
122+ N
106123 }
107124 else throw("fail to cast into (Int, Int)")
108125 }
109126
110127
111-let L = 100000000
128+let Q = 1000000
112129
113-func M (w) = ("acresStakedAmountByUser_" + w)
130+let R = 100000000
131+
132+let S = 100000000000000
133+
134+let T = 200000
135+
136+let U = 100000
137+
138+let V = 400000
139+
140+let W = 31557600000
141+
142+let X = take(drop(this.bytes, 1), 1)
143+
144+let Y = {
145+ let d = X
146+ if ((base58'2W' == d))
147+ then 1208630000
148+ else if ((base58'2T' == d))
149+ then 0
150+ else throw("Unknown chain")
151+ }
152+
153+let Z = "teamAddr"
154+
155+let aa = "lastClaimedTime_team"
156+
157+let ab = "teamAmountLeft"
158+
159+let ac = "lastClaimedTime_activities"
160+
161+let ad = "activitiesAmountLeft"
162+
163+let ae = "stakersAmountLeft"
164+
165+func af (B) = ("lastClaimedTimeUser_" + B)
114166
115167
116-let N = [10, 20, 40, 80, 150, 250, 400, 700, 1000]
168+func ag (ah) = fraction(S, (V * (ah + 1)), (6 * Q))
117169
118-func O (P) = {
119- let Q = (P / L)
120- func R (S,T) = if ((T > Q))
121- then S
122- else (S + 1)
123170
124- let q = {
125- let U = N
126- let V = size(U)
127- let W = 0
128- func X (Y,Z) = if ((Z >= V))
129- then Y
130- else R(Y, U[Z])
171+let ai = "wlg_issueTime"
131172
132- func aa (Y,Z) = if ((Z >= V))
133- then Y
173+let aj = "wlg_issuedAmount"
174+
175+let ak = "zbill_issuedAmount"
176+
177+func al (B) = ("acresStakedAmountByUser_" + B)
178+
179+
180+let am = "acresStakedAmountTotal"
181+
182+let an = 0
183+
184+let ao = 1
185+
186+let ap = 2
187+
188+let aq = 3
189+
190+let ar = 4
191+
192+let as = [10, 20, 40, 80, 150, 250, 400, 700, 1000]
193+
194+func at (au) = {
195+ let av = (au / R)
196+ func aw (ax,ay) = if ((ay > av))
197+ then ax
198+ else (ax + 1)
199+
200+ let t = {
201+ let az = as
202+ let aA = size(az)
203+ let aB = 0
204+ func aC (aD,aE) = if ((aE >= aA))
205+ then aD
206+ else aw(aD, az[aE])
207+
208+ func aF (aD,aE) = if ((aE >= aA))
209+ then aD
134210 else throw("List size exceeds 10")
135211
136- aa(X(X(X(X(X(X(X(X(X(X(W, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
212+ aF(aC(aC(aC(aC(aC(aC(aC(aC(aC(aC(aB, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
137213 }
138- (q + 1)
214+ (t + 1)
139215 }
140216
141217
142-func ab (ac) = {
143- let w = addressFromString(ac)
144- let ad = if (isDefined(w))
145- then wavesBalance(value(w))
146- else BalanceDetails(0, 0, 0, 0)
147- let ae = if (isDefined(w))
148- then assetBalance(value(w), y)
149- else 0
150- let af = valueOrElse(getString(s, D(ac)), ac)
151- let ag = E(ac)
152- let ah = getString(s, ag)
153- let ai = valueOrElse(getString(s, F(ac)), "")
154- let aj = valueOrElse(getString(s, v(ac)), "")
155- let ak = if (isDefined(w))
156- then assetBalance(value(w), A)
157- else 0
158- let al = valueOrElse(getInteger(s, M(ac)), 0)
159- let am = O(ak)
160-[("%s%s__customName__" + af), ("%s%s__referredBy__" + valueOrElse(ah, "")), ("%s%s__referrals__" + ai), ("%s%s__lastTxId__" + aj), ("%s%d__wavesBalance__" + toString(ad.available)), ("%s%d__wlgoldBalance__" + toString(ae)), ("%s%d__acresBalance__" + toString(ak)), ("%s%d__stakedAcres__" + toString(al)), ("%s%d__currentLvl__" + toString(am))]
218+func aG (au) = ((au * 20) * (at(au) + 4))
219+
220+
221+func aH (aI,aJ) = {
222+ let aK = valueOrElse(getInteger(aJ, am), 0)
223+ let aL = aG(aK)
224+ let aM = valueOrElse(getInteger(aJ, al(aI)), 0)
225+ let aN = aG(aM)
226+[aL, aN]
161227 }
162228
163229
164-@Callable(an)
165-func constructorV1 (ao) = if ((an.caller != this))
230+let aO = 0
231+
232+let aP = 1
233+
234+let aQ = 0
235+
236+let aR = 1
237+
238+let aS = 2
239+
240+let aT = 3
241+
242+let aU = 4
243+
244+let aV = 5
245+
246+let aW = 6
247+
248+let aX = 7
249+
250+let aY = 8
251+
252+let aZ = 9
253+
254+let ba = 10
255+
256+let bb = 11
257+
258+let bc = 12
259+
260+let bd = 13
261+
262+let be = 14
263+
264+let bf = 15
265+
266+let bg = 16
267+
268+let bh = 17
269+
270+let bi = 18
271+
272+let bj = 19
273+
274+let bk = 20
275+
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))
309+ then {
310+ let bU = fraction(bS, (bP - bN), W)
311+ let bV = ((bN + bP) - bN)
312+ $Tuple2(bU, bV)
313+ }
314+ else if ((bO == (bQ - 1)))
315+ then {
316+ let bW = fraction(ag((bQ - 1)), ((bB + (W * bQ)) - bN), W)
317+ let bU = fraction(bS, (bP - (bB + (W * bQ))), W)
318+ let bX = (bW + bU)
319+ let bV = if ((bW >= bX))
320+ then (bN + fraction(W, bX, ag((bQ - 1))))
321+ else ((bB + (W * bQ)) + fraction(W, (bX - bW), bS))
322+ $Tuple2(bX, bV)
323+ }
324+ else {
325+ let bY = fraction(ag((bQ - 2)), ((bB + (W * (bQ - 1))) - bN), W)
326+ let bW = ag((bQ - 1))
327+ let bU = fraction(bS, (bP - (bB + (W * bQ))), W)
328+ let bX = ((bY + bW) + bU)
329+ let bV = if ((bY >= bX))
330+ then (bN + fraction(W, bX, ag((bQ - 2))))
331+ else if (((bY + bW) >= bX))
332+ then ((bB + (W * (bQ - 1))) + fraction(W, (bX - bY), ag((bQ - 1))))
333+ else ((bB + (W * bQ)) + fraction(W, ((bX - bY) - bW), bS))
334+ $Tuple2(bX, bV)
335+ }
336+ let bZ = bT._1
337+ let ca = bT._2
338+ let cb = valueOrElse(getInteger(bp[ap], ae), 0)
339+ let cc = fraction(bZ, bR[aP], bR[aO])
340+[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]
341+ }
342+
343+
344+func cd (ce) = {
345+ let B = addressFromString(ce)
346+ let cf = if (isDefined(B))
347+ then wavesBalance(value(B))
348+ else BalanceDetails(0, 0, 0, 0)
349+ let cg = if (isDefined(B))
350+ then assetBalance(value(B), D)
351+ else 0
352+ let ch = valueOrElse(getString(v, I(ce)), ce)
353+ let ci = J(ce)
354+ let cj = getString(v, ci)
355+ let ck = valueOrElse(getString(v, K(ce)), "")
356+ let cl = valueOrElse(getString(v, A(ce)), "")
357+ let cm = if (isDefined(B))
358+ then assetBalance(value(B), F)
359+ else 0
360+ let cn = valueOrElse(getInteger(v, al(ce)), 0)
361+ let co = at(cm)
362+[("%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))]
363+ }
364+
365+
366+@Callable(cp)
367+func constructorV1 (bp) = if ((cp.caller != this))
166368 then throw("permissions denied")
167369 else {
168- func ap (S,aq) = (S + "%s")
370+ func cq (ax,cr) = (ax + "%s")
169371
170- let ar = {
171- let U = ao
172- let V = size(U)
173- let W = ""
174- func X (Y,Z) = if ((Z >= V))
175- then Y
176- else ap(Y, U[Z])
372+ let cs = {
373+ let az = bp
374+ let aA = size(az)
375+ let aB = ""
376+ func aC (aD,aE) = if ((aE >= aA))
377+ then aD
378+ else cq(aD, az[aE])
177379
178- func aa (Y,Z) = if ((Z >= V))
179- then Y
380+ func aF (aD,aE) = if ((aE >= aA))
381+ then aD
180382 else throw("List size exceeds 10")
181383
182- aa(X(X(X(X(X(X(X(X(X(X(W, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
384+ aF(aC(aC(aC(aC(aC(aC(aC(aC(aC(aC(aB, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
183385 }
184-[StringEntry(k(), makeString(ar :: ao, a)), StringEntry(l(), toString(this))]
386+[StringEntry(n(), makeString(cs :: bp, a)), StringEntry(o(), toString(this))]
185387 }
186388
187389
188390
189-@Callable(an)
190-func walletInfoREADONLY (ac) = $Tuple2(nil, ab(ac))
391+@Callable(cp)
392+func walletInfoREADONLY (ce) = $Tuple2(nil, cd(ce))
191393
192394
193395
194-@Callable(an)
195-func conversionInfoREADONLY (ac) = {
196- let as = addressFromStringValue(getStringValue(s, u))
197- let at = K(invoke(as, "unstakeAllAcresREADONLY", [ac], nil))
198- let au = at._1
199- let av = at._2
200- let aw = G(invoke(s, "unstakeLandsREADONLY", [ac], nil))
201- let ax = aw._1
202- let ay = aw._2
203- let az = aw._3
204- let aA = aw._4
205- let aB = addressFromStringValue(e)
206- let aC = valueOrElse(getString(aB, B(ac)), "")
207- let aD = if ((aC != ""))
208- then J(invoke(aB, "unstakeDuckREADONLY", [aC, ac], nil))
396+@Callable(cp)
397+func conversionInfoREADONLY (ce) = {
398+ let ct = addressFromStringValue(getStringValue(v, z))
399+ let cu = P(invoke(ct, "unstakeAllAcresREADONLY", [ce], nil))
400+ let cv = cu._1
401+ let cw = cu._2
402+ let cx = L(invoke(v, "unstakeLandsREADONLY", [ce], nil))
403+ let cy = cx._1
404+ let cz = cx._2
405+ let cA = cx._3
406+ let cB = cx._4
407+ let cC = addressFromStringValue(f)
408+ let cD = valueOrElse(getString(cC, G(ce)), "")
409+ let cE = if ((cD != ""))
410+ then O(invoke(cC, "unstakeDuckREADONLY", [cD, ce], nil))
209411 else $Tuple3(0, 0, 0)
210- let aE = aD._1
211- let aF = aD._2
212- let aG = aD._3
213- $Tuple2(nil, [("%s%d__unstakedAcres__" + toString(au)), ("%s%d__claimedAcres__" + toString(av)), ("%s%d__acresFromPieces__" + toString(ax)), ("%s%d__acresFromRes__" + toString(ay)), ("%s%d__acresFromMat__" + toString(az)), ("%s%d__acresFromProd__" + toString(aA)), ("%s%d__acresFromDuckRes__" + toString(aE)), ("%s%d__acresFromDuckMat__" + toString(aF)), ("%s%d__acresFromDuckProd__" + toString(aG))])
412+ let cF = cE._1
413+ let cG = cE._2
414+ let cH = cE._3
415+ $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))])
416+ }
417+
418+
419+
420+@Callable(cp)
421+func wlgStatsREADONLY (bo) = {
422+ let cI = bn(bo, [u, v, w, x, y], c, 0)
423+ $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]))])
214424 }
215425
216426
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "__"
55
66 let b = take(drop(this.bytes, 1), 1)
77
88 let c = {
99 let d = b
1010 if ((base58'2W' == d))
11+ then base58'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi'
12+ else if ((base58'2T' == d))
13+ then base58'6mWwf9mZBjVgkC54idpyaZLQfAosD914wT8fGf2iiY63'
14+ else throw("Unknown chain")
15+ }
16+
17+let e = {
18+ let d = b
19+ if ((base58'2W' == d))
1120 then "3PFwYta8biEz31zpeFe5DJK8wE5trSpQVF8"
1221 else if ((base58'2T' == d))
1322 then "3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv"
1423 else throw("Unknown chain")
1524 }
1625
17-let e = {
26+let f = {
1827 let d = b
1928 if ((base58'2W' == d))
2029 then "3PLncXtS1U83D6cQbFD3H8rBHPLgzxSFKZ1"
2130 else if ((base58'2T' == d))
2231 then "3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm"
2332 else throw("Unknown chain")
2433 }
2534
26-func f (g,h) = valueOrErrorMessage(getString(g, h), makeString(["mandatory ", toString(g), ".", h, " is not defined"], ""))
35+func g (h,i) = valueOrErrorMessage(getString(h, i), makeString(["mandatory ", toString(h), ".", i, " is not defined"], ""))
2736
2837
29-let i = 1
38+let j = 1
3039
31-let j = 2
40+let k = 2
3241
33-func k () = "%s__restConfig"
42+let l = 4
43+
44+let m = 5
45+
46+func n () = "%s__restConfig"
3447
3548
36-func l () = "%s__rest2Addr"
49+func o () = "%s__rest2Addr"
3750
3851
39-func m (n) = split_4C(f(n, k()), a)
52+func p (q) = split_4C(g(q, n()), a)
4053
4154
42-func o (p,q) = valueOrErrorMessage(addressFromString(p[q]), ("Rest cfg doesn't contain address at index " + toString(q)))
55+func r (s,t) = valueOrErrorMessage(addressFromString(s[t]), ("Rest cfg doesn't contain address at index " + toString(t)))
4356
4457
45-let r = addressFromStringValue(valueOrElse(getString(this, l()), c))
58+let u = addressFromStringValue(valueOrElse(getString(this, o()), e))
4659
47-let p = m(r)
60+let s = p(u)
4861
49-let s = o(p, i)
62+let v = r(s, j)
5063
51-let t = o(p, j)
64+let w = r(s, k)
5265
53-let u = "oldAcresContract"
66+let x = r(s, l)
5467
55-func v (w) = ("lastTxIdByUser_" + w)
68+let y = r(s, m)
69+
70+let z = "oldAcresContract"
71+
72+func A (B) = ("lastTxIdByUser_" + B)
5673
5774
58-let x = "wlg_assetId"
75+let C = "wlg_assetId"
5976
60-let y = valueOrErrorMessage(getBinary(t, x), "WLGOLD is not issued yet")
77+let D = valueOrErrorMessage(getBinary(w, C), "WLGOLD is not issued yet")
6178
62-let z = "acresAssetId"
79+let E = "acresAssetId"
6380
64-let A = valueOrErrorMessage(getBinary(s, z), "ACRES is not issued yet")
81+let F = valueOrErrorMessage(getBinary(v, E), "ACRES is not issued yet")
6582
66-func B (C) = ("stakedDuckByOwner_" + C)
83+func G (H) = ("stakedDuckByOwner_" + H)
6784
6885
69-func D (w) = ("accountCustomNameByAddr_" + w)
86+func I (B) = ("accountCustomNameByAddr_" + B)
7087
7188
72-func E (w) = ("accRefBy_" + w)
89+func J (B) = ("accRefBy_" + B)
7390
7491
75-func F (w) = ("accReferrals_" + w)
92+func K (B) = ("accReferrals_" + B)
7693
7794
78-func G (H) = {
79- let d = H
95+func L (M) = {
96+ let d = M
8097 if ($isInstanceOf(d, "(Int, Int, Int, Int)"))
8198 then {
82- let I = d
83- I
99+ let N = d
100+ N
84101 }
85102 else throw("fail to cast into (Int, Int, Int, Int)")
86103 }
87104
88105
89-func J (H) = {
90- let d = H
106+func O (M) = {
107+ let d = M
91108 if ($isInstanceOf(d, "(Int, Int, Int)"))
92109 then {
93- let I = d
94- I
110+ let N = d
111+ N
95112 }
96113 else throw("fail to cast into (Int, Int, Int)")
97114 }
98115
99116
100-func K (H) = {
101- let d = H
117+func P (M) = {
118+ let d = M
102119 if ($isInstanceOf(d, "(Int, Int)"))
103120 then {
104- let I = d
105- I
121+ let N = d
122+ N
106123 }
107124 else throw("fail to cast into (Int, Int)")
108125 }
109126
110127
111-let L = 100000000
128+let Q = 1000000
112129
113-func M (w) = ("acresStakedAmountByUser_" + w)
130+let R = 100000000
131+
132+let S = 100000000000000
133+
134+let T = 200000
135+
136+let U = 100000
137+
138+let V = 400000
139+
140+let W = 31557600000
141+
142+let X = take(drop(this.bytes, 1), 1)
143+
144+let Y = {
145+ let d = X
146+ if ((base58'2W' == d))
147+ then 1208630000
148+ else if ((base58'2T' == d))
149+ then 0
150+ else throw("Unknown chain")
151+ }
152+
153+let Z = "teamAddr"
154+
155+let aa = "lastClaimedTime_team"
156+
157+let ab = "teamAmountLeft"
158+
159+let ac = "lastClaimedTime_activities"
160+
161+let ad = "activitiesAmountLeft"
162+
163+let ae = "stakersAmountLeft"
164+
165+func af (B) = ("lastClaimedTimeUser_" + B)
114166
115167
116-let N = [10, 20, 40, 80, 150, 250, 400, 700, 1000]
168+func ag (ah) = fraction(S, (V * (ah + 1)), (6 * Q))
117169
118-func O (P) = {
119- let Q = (P / L)
120- func R (S,T) = if ((T > Q))
121- then S
122- else (S + 1)
123170
124- let q = {
125- let U = N
126- let V = size(U)
127- let W = 0
128- func X (Y,Z) = if ((Z >= V))
129- then Y
130- else R(Y, U[Z])
171+let ai = "wlg_issueTime"
131172
132- func aa (Y,Z) = if ((Z >= V))
133- then Y
173+let aj = "wlg_issuedAmount"
174+
175+let ak = "zbill_issuedAmount"
176+
177+func al (B) = ("acresStakedAmountByUser_" + B)
178+
179+
180+let am = "acresStakedAmountTotal"
181+
182+let an = 0
183+
184+let ao = 1
185+
186+let ap = 2
187+
188+let aq = 3
189+
190+let ar = 4
191+
192+let as = [10, 20, 40, 80, 150, 250, 400, 700, 1000]
193+
194+func at (au) = {
195+ let av = (au / R)
196+ func aw (ax,ay) = if ((ay > av))
197+ then ax
198+ else (ax + 1)
199+
200+ let t = {
201+ let az = as
202+ let aA = size(az)
203+ let aB = 0
204+ func aC (aD,aE) = if ((aE >= aA))
205+ then aD
206+ else aw(aD, az[aE])
207+
208+ func aF (aD,aE) = if ((aE >= aA))
209+ then aD
134210 else throw("List size exceeds 10")
135211
136- aa(X(X(X(X(X(X(X(X(X(X(W, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
212+ aF(aC(aC(aC(aC(aC(aC(aC(aC(aC(aC(aB, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
137213 }
138- (q + 1)
214+ (t + 1)
139215 }
140216
141217
142-func ab (ac) = {
143- let w = addressFromString(ac)
144- let ad = if (isDefined(w))
145- then wavesBalance(value(w))
146- else BalanceDetails(0, 0, 0, 0)
147- let ae = if (isDefined(w))
148- then assetBalance(value(w), y)
149- else 0
150- let af = valueOrElse(getString(s, D(ac)), ac)
151- let ag = E(ac)
152- let ah = getString(s, ag)
153- let ai = valueOrElse(getString(s, F(ac)), "")
154- let aj = valueOrElse(getString(s, v(ac)), "")
155- let ak = if (isDefined(w))
156- then assetBalance(value(w), A)
157- else 0
158- let al = valueOrElse(getInteger(s, M(ac)), 0)
159- let am = O(ak)
160-[("%s%s__customName__" + af), ("%s%s__referredBy__" + valueOrElse(ah, "")), ("%s%s__referrals__" + ai), ("%s%s__lastTxId__" + aj), ("%s%d__wavesBalance__" + toString(ad.available)), ("%s%d__wlgoldBalance__" + toString(ae)), ("%s%d__acresBalance__" + toString(ak)), ("%s%d__stakedAcres__" + toString(al)), ("%s%d__currentLvl__" + toString(am))]
218+func aG (au) = ((au * 20) * (at(au) + 4))
219+
220+
221+func aH (aI,aJ) = {
222+ let aK = valueOrElse(getInteger(aJ, am), 0)
223+ let aL = aG(aK)
224+ let aM = valueOrElse(getInteger(aJ, al(aI)), 0)
225+ let aN = aG(aM)
226+[aL, aN]
161227 }
162228
163229
164-@Callable(an)
165-func constructorV1 (ao) = if ((an.caller != this))
230+let aO = 0
231+
232+let aP = 1
233+
234+let aQ = 0
235+
236+let aR = 1
237+
238+let aS = 2
239+
240+let aT = 3
241+
242+let aU = 4
243+
244+let aV = 5
245+
246+let aW = 6
247+
248+let aX = 7
249+
250+let aY = 8
251+
252+let aZ = 9
253+
254+let ba = 10
255+
256+let bb = 11
257+
258+let bc = 12
259+
260+let bd = 13
261+
262+let be = 14
263+
264+let bf = 15
265+
266+let bg = 16
267+
268+let bh = 17
269+
270+let bi = 18
271+
272+let bj = 19
273+
274+let bk = 20
275+
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))
309+ then {
310+ let bU = fraction(bS, (bP - bN), W)
311+ let bV = ((bN + bP) - bN)
312+ $Tuple2(bU, bV)
313+ }
314+ else if ((bO == (bQ - 1)))
315+ then {
316+ let bW = fraction(ag((bQ - 1)), ((bB + (W * bQ)) - bN), W)
317+ let bU = fraction(bS, (bP - (bB + (W * bQ))), W)
318+ let bX = (bW + bU)
319+ let bV = if ((bW >= bX))
320+ then (bN + fraction(W, bX, ag((bQ - 1))))
321+ else ((bB + (W * bQ)) + fraction(W, (bX - bW), bS))
322+ $Tuple2(bX, bV)
323+ }
324+ else {
325+ let bY = fraction(ag((bQ - 2)), ((bB + (W * (bQ - 1))) - bN), W)
326+ let bW = ag((bQ - 1))
327+ let bU = fraction(bS, (bP - (bB + (W * bQ))), W)
328+ let bX = ((bY + bW) + bU)
329+ let bV = if ((bY >= bX))
330+ then (bN + fraction(W, bX, ag((bQ - 2))))
331+ else if (((bY + bW) >= bX))
332+ then ((bB + (W * (bQ - 1))) + fraction(W, (bX - bY), ag((bQ - 1))))
333+ else ((bB + (W * bQ)) + fraction(W, ((bX - bY) - bW), bS))
334+ $Tuple2(bX, bV)
335+ }
336+ let bZ = bT._1
337+ let ca = bT._2
338+ let cb = valueOrElse(getInteger(bp[ap], ae), 0)
339+ let cc = fraction(bZ, bR[aP], bR[aO])
340+[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]
341+ }
342+
343+
344+func cd (ce) = {
345+ let B = addressFromString(ce)
346+ let cf = if (isDefined(B))
347+ then wavesBalance(value(B))
348+ else BalanceDetails(0, 0, 0, 0)
349+ let cg = if (isDefined(B))
350+ then assetBalance(value(B), D)
351+ else 0
352+ let ch = valueOrElse(getString(v, I(ce)), ce)
353+ let ci = J(ce)
354+ let cj = getString(v, ci)
355+ let ck = valueOrElse(getString(v, K(ce)), "")
356+ let cl = valueOrElse(getString(v, A(ce)), "")
357+ let cm = if (isDefined(B))
358+ then assetBalance(value(B), F)
359+ else 0
360+ let cn = valueOrElse(getInteger(v, al(ce)), 0)
361+ let co = at(cm)
362+[("%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))]
363+ }
364+
365+
366+@Callable(cp)
367+func constructorV1 (bp) = if ((cp.caller != this))
166368 then throw("permissions denied")
167369 else {
168- func ap (S,aq) = (S + "%s")
370+ func cq (ax,cr) = (ax + "%s")
169371
170- let ar = {
171- let U = ao
172- let V = size(U)
173- let W = ""
174- func X (Y,Z) = if ((Z >= V))
175- then Y
176- else ap(Y, U[Z])
372+ let cs = {
373+ let az = bp
374+ let aA = size(az)
375+ let aB = ""
376+ func aC (aD,aE) = if ((aE >= aA))
377+ then aD
378+ else cq(aD, az[aE])
177379
178- func aa (Y,Z) = if ((Z >= V))
179- then Y
380+ func aF (aD,aE) = if ((aE >= aA))
381+ then aD
180382 else throw("List size exceeds 10")
181383
182- aa(X(X(X(X(X(X(X(X(X(X(W, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
384+ aF(aC(aC(aC(aC(aC(aC(aC(aC(aC(aC(aB, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
183385 }
184-[StringEntry(k(), makeString(ar :: ao, a)), StringEntry(l(), toString(this))]
386+[StringEntry(n(), makeString(cs :: bp, a)), StringEntry(o(), toString(this))]
185387 }
186388
187389
188390
189-@Callable(an)
190-func walletInfoREADONLY (ac) = $Tuple2(nil, ab(ac))
391+@Callable(cp)
392+func walletInfoREADONLY (ce) = $Tuple2(nil, cd(ce))
191393
192394
193395
194-@Callable(an)
195-func conversionInfoREADONLY (ac) = {
196- let as = addressFromStringValue(getStringValue(s, u))
197- let at = K(invoke(as, "unstakeAllAcresREADONLY", [ac], nil))
198- let au = at._1
199- let av = at._2
200- let aw = G(invoke(s, "unstakeLandsREADONLY", [ac], nil))
201- let ax = aw._1
202- let ay = aw._2
203- let az = aw._3
204- let aA = aw._4
205- let aB = addressFromStringValue(e)
206- let aC = valueOrElse(getString(aB, B(ac)), "")
207- let aD = if ((aC != ""))
208- then J(invoke(aB, "unstakeDuckREADONLY", [aC, ac], nil))
396+@Callable(cp)
397+func conversionInfoREADONLY (ce) = {
398+ let ct = addressFromStringValue(getStringValue(v, z))
399+ let cu = P(invoke(ct, "unstakeAllAcresREADONLY", [ce], nil))
400+ let cv = cu._1
401+ let cw = cu._2
402+ let cx = L(invoke(v, "unstakeLandsREADONLY", [ce], nil))
403+ let cy = cx._1
404+ let cz = cx._2
405+ let cA = cx._3
406+ let cB = cx._4
407+ let cC = addressFromStringValue(f)
408+ let cD = valueOrElse(getString(cC, G(ce)), "")
409+ let cE = if ((cD != ""))
410+ then O(invoke(cC, "unstakeDuckREADONLY", [cD, ce], nil))
209411 else $Tuple3(0, 0, 0)
210- let aE = aD._1
211- let aF = aD._2
212- let aG = aD._3
213- $Tuple2(nil, [("%s%d__unstakedAcres__" + toString(au)), ("%s%d__claimedAcres__" + toString(av)), ("%s%d__acresFromPieces__" + toString(ax)), ("%s%d__acresFromRes__" + toString(ay)), ("%s%d__acresFromMat__" + toString(az)), ("%s%d__acresFromProd__" + toString(aA)), ("%s%d__acresFromDuckRes__" + toString(aE)), ("%s%d__acresFromDuckMat__" + toString(aF)), ("%s%d__acresFromDuckProd__" + toString(aG))])
412+ let cF = cE._1
413+ let cG = cE._2
414+ let cH = cE._3
415+ $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))])
416+ }
417+
418+
419+
420+@Callable(cp)
421+func wlgStatsREADONLY (bo) = {
422+ let cI = bn(bo, [u, v, w, x, y], c, 0)
423+ $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]))])
214424 }
215425
216426

github/deemru/w8io/169f3d6 
234.89 ms