tx · 2n2W1esMCudU9czcvYterovpXA7NP4RjDPP8pxrJgj7Z

3N7dQeENwSgKPp9Ki4aEHhRWWKVjn1DE9Qg:  -0.02000000 Waves

2023.12.17 19:52 [2890971] smart account 3N7dQeENwSgKPp9Ki4aEHhRWWKVjn1DE9Qg > SELF 0.00000000 Waves

{ "type": 13, "id": "2n2W1esMCudU9czcvYterovpXA7NP4RjDPP8pxrJgj7Z", "fee": 2000000, "feeAssetId": null, "timestamp": 1702831992983, "version": 2, "chainId": 84, "sender": "3N7dQeENwSgKPp9Ki4aEHhRWWKVjn1DE9Qg", "senderPublicKey": "5BN6FQeKuMm2XJYToUZvbBX4UELGpE3Z47P4q6sP46PG", "proofs": [ "2QGip2pUkWo2qgE3UEH1dRZ4gPsdPfsTY1jrRr5vGfqF755UVSR6jgtKzSgBdyRpKeCEeStoPTz9jXpb13mCY7F2" ], "script": "base64:BgI7CAISBAoCCAESAwoBARIAEgASBAoCCAESBQoDCAEBEgMKAQESABIDCgEIEgASAwoBCBIDCgEBEgMKAQFCAAhNSUxMSU9ONgCAgOmDsd4WAAlEQVlNSUxMSVMAgLiZKQEaa2V5QWNyZXNTdGFrZWRBbW91bnRCeVVzZXIBBGFkZHIJAKwCAgIYYWNyZXNTdGFrZWRBbW91bnRCeVVzZXJfBQRhZGRyARprZXlBY3Jlc0xvY2tlZEFtb3VudEJ5VXNlcgEEYWRkcgkArAICAhhhY3Jlc0xvY2tlZEFtb3VudEJ5VXNlcl8FBGFkZHIBF2tleUFjcmVzTG9ja2VkRXRhQnlVc2VyAQRhZGRyCQCsAgICFWFjcmVzTG9ja2VkRXRhQnlVc2VyXwUEYWRkcgATYWNyZXNTdGFrZWRUb3RhbEtleQIWYWNyZXNTdGFrZWRBbW91bnRUb3RhbAAKeHBOZXdTTGFuZADAlrECAA9EQUlMWVJFU0JZUElFQ0UAgPjSAQAVVVNEVDJBQ1JFU19NVUxUSVBMSUVSAAoBGmtleUlzQXdhcmRlZEJ5UHJvbW9BbmRVc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W50cnkCCQEea2V5VGlja2V0c1RvdGFsQnlQcm9tb0FuZFJvdW5kAgADCQBkAgUHcm91bmRJZAABCAUFZHJhd3MCXzEFA25pbAgFBWRyYXdzAl80ABq2ZMs=", "height": 2890971, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: KDZbuaYuM5yQNSeet7Nq97R8X9KckCCFTc8fBaf6Nv1 Next: B7rSLVnk7Tbfvz5SN81iVfcCjqekinxBH9Ydt7E7EkEp Diff:
OldNewDifferences
5656 func u (o) = ("promo2MapForRound__" + toString(o))
5757
5858
59-let v = "__"
60-
61-let w = 1000000
62-
63-let x = 100000000
64-
65-let y = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19]
66-
67-func z (A,B) = valueOrErrorMessage(getString(A, B), makeString(["mandatory ", toString(A), ".", B, " is not defined"], ""))
59+func v (o) = ("promo3MapForRound__" + toString(o))
6860
6961
70-let C = 1
62+let w = "__"
7163
72-let D = 2
64+let x = 1000000
7365
74-let E = 4
66+let y = 100000000
7567
76-let F = 8
68+let z = [0, 1, 2, 3, 4, 5]
7769
78-func G () = "%s__restConfig"
70+func A (B,C) = valueOrErrorMessage(getString(B, C), makeString(["mandatory ", toString(B), ".", C, " is not defined"], ""))
7971
8072
81-func H () = "%s__restAddr"
73+let D = 1
74+
75+let E = 2
76+
77+let F = 4
78+
79+let G = 8
80+
81+func H () = "%s__restConfig"
8282
8383
84-func I (J) = split_4C(z(J, G()), v)
84+func I () = "%s__restAddr"
8585
8686
87-func K (L,M) = valueOrErrorMessage(addressFromString(L[M]), ("Rest cfg doesn't contain address at index " + toString(M)))
87+func J (K) = split_4C(A(K, H()), w)
8888
8989
90-let N = addressFromStringValue(valueOrElse(getString(this, H()), s))
91-
92-let L = I(N)
93-
94-let O = K(L, C)
95-
96-let P = K(L, D)
97-
98-let Q = K(L, E)
99-
100-let R = K(L, F)
101-
102-let S = "acresIssuedAmount"
103-
104-let T = "acresAssetId"
105-
106-let U = valueOrErrorMessage(getBinary(R, T), "ACRES is not issued yet")
107-
108-func V (d) = ("acresStakedTimeByUser_" + d)
90+func L (M,N) = valueOrErrorMessage(addressFromString(M[N]), ("Rest cfg doesn't contain address at index " + toString(N)))
10991
11092
111-let W = 0
93+let O = addressFromStringValue(valueOrElse(getString(this, I()), s))
11294
113-let X = 2
95+let M = J(O)
11496
115-func Y (A) = ("finishBlockFor_" + A)
97+let P = L(M, D)
98+
99+let Q = L(M, E)
100+
101+let R = L(M, F)
102+
103+let S = L(M, G)
104+
105+let T = "acresIssuedAmount"
106+
107+let U = "acresAssetId"
108+
109+let V = valueOrErrorMessage(getBinary(S, U), "ACRES is not issued yet")
110+
111+func W (d) = ("acresStakedTimeByUser_" + d)
116112
117113
118-func Z () = "resTypesProportions"
114+let X = 0
115+
116+let Y = 2
117+
118+func Z (B) = ("finishBlockFor_" + B)
119119
120120
121-func aa (ab) = ("stakedPiecesByOwner_" + ab)
121+func aa () = "resTypesProportions"
122122
123123
124-func ac (ad) = {
125- let r = ad
124+func ab (ac) = ("stakedPiecesByOwner_" + ac)
125+
126+
127+func ad (ae) = {
128+ let r = ae
126129 if ($isInstanceOf(r, "Int"))
127130 then {
128- let ae = r
129- ae
131+ let af = r
132+ af
130133 }
131134 else throw("fail to cast into Int")
132135 }
133136
134137
135-func af (ag) = {
136- let r = ag
138+func ag (ah) = {
139+ let r = ah
137140 if ($isInstanceOf(r, "(Int, Int)"))
138141 then {
139- let ah = r
140- ah
142+ let ai = r
143+ ai
141144 }
142145 else throw("fail to cast into (Int, Int)")
143146 }
144147
145148
146-func ai (d) = ("lastTxIdByUser_" + d)
149+func aj (d) = ("lastTxIdByUser_" + d)
147150
148151
149-func aj (ak) = {
150- let al = split(valueOrElse(getString(O, Z()), "0_0_0_0_0_0"), "_")
151- func am (an,ao) = (an + parseIntValue(ao))
152+func ak (al) = {
153+ let am = split(valueOrElse(getString(P, aa()), "0_0_0_0_0_0"), "_")
154+ func an (ao,ap) = (ao + parseIntValue(ap))
152155
153- let ap = {
154- let aq = al
155- let ar = size(aq)
156- let as = 0
157- func at (au,av) = if ((av >= ar))
158- then au
159- else am(au, aq[av])
156+ let aq = {
157+ let ar = am
158+ let as = size(ar)
159+ let at = 0
160+ func au (av,aw) = if ((aw >= as))
161+ then av
162+ else an(av, ar[aw])
160163
161- func aw (au,av) = if ((av >= ar))
162- then au
164+ func ax (av,aw) = if ((aw >= as))
165+ then av
163166 else throw("List size exceeds 6")
164167
165- aw(at(at(at(at(at(at(as, 0), 1), 2), 3), 4), 5), 6)
168+ ax(au(au(au(au(au(au(at, 0), 1), 2), 3), 4), 5), 6)
166169 }
167- let ax = valueOrElse(getInteger(O, aa(ak)), 0)
168-[ap, ax]
170+ let ay = valueOrElse(getInteger(P, ab(al)), 0)
171+[aq, ay]
169172 }
170173
171174
172-func ay (ag,az) = {
173- let aA = pow(10, 0, az, 0, 0, DOWN)
174- let aB = toString((ag % aA))
175- let aC = drop(toString(aA), (1 + size(aB)))
176- (((toString((ag / aA)) + ".") + aC) + aB)
175+func az (ah,aA) = {
176+ let aB = pow(10, 0, aA, 0, 0, DOWN)
177+ let aC = toString((ah % aB))
178+ let aD = drop(toString(aB), (1 + size(aC)))
179+ (((toString((ah / aB)) + ".") + aD) + aC)
177180 }
178181
179182
180-func aD (ag,aE) = {
181- let aF = toString(ag)
182- let aC = drop(toString(pow(10, 0, (aE - size(aF)), 0, 0, DOWN)), 1)
183- (aC + aF)
183+func aE (ah,aF) = {
184+ let aG = toString(ah)
185+ let aD = drop(toString(pow(10, 0, (aF - size(aG)), 0, 0, DOWN)), 1)
186+ (aD + aG)
184187 }
185188
186189
187-func aG (aH,aI,aJ) = if ((0 >= aH))
190+func aH (aI,aJ,aK) = if ((0 >= aI))
188191 then throw("maxValue should be > 0")
189192 else {
190- let aK = sha256((aI + aJ))
191- (toInt(aK) % aH)
193+ let aL = sha256((aJ + aK))
194+ (toInt(aL) % aI)
192195 }
193196
194197
195-let aL =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_3P4kZU6X3TTLFcSUe55JSy8BySqitcPgMBz_3P5hCxBEh3NgNizZhNBreyBSqtbhJYLkKPD_3P7HLvucy11yxyMJUwjzXFHHKMEDwi1EwfC_3P8JuaqH9PTQAv8D5HBGgQfKauLTYt2NQft_3P9gTDB4rtDEVbpX3asU63H4Zinh2EnTmZE_3P9iN3qrtfJicUVy7amZeVsetVD3vUMk8be_3PCa2BsAa6JBLirszQfV5r9fJrujfhwtwfP_3PD3i4XN8KtygcFx4ry5M7UGqdfH8VYvtRT_3PDEMnnJNc2kx9cPEmvVvhXUr8SvhANKhsa_3PDGE9tKQizaeZFeDDq5aYSv89nwYbfirpZ_3PDMKQTCrUPZECVXEJJ8m1sHtutSu1naSf1_3PGh2Qu6Yvx8GTCRRVNvBUVZLdaidYSaxo5_3PKkmAtbSK5D2hQdo1RfEg8eXyMbDcRUc92_3PLMnbxzssP8W8E8XjJ1RLBBg8UZL8Cz3P2_3PMuxo4PCAox9s4a7R1eszh4iqqu8gS7jHv_3PNrMtEQChw87WZU1JAJ7aGHykCa8TjnDNK_3PPuBXfWoBy3EEory7c7vgi9Usjka7o5tBj_3PQwyeyEhT4Y6aGAL6tg73aQWJtV1zRt3nR_3PRGDShuMGb84MJtTJvtTg8qDfswkYWcm3e"
198201
199-let aN = 4970178
202+let aO = 4970178
200203
201-let aO = {
204+let aP = {
202205 let r = p
203206 if ((base58'2W' == r))
204207 then 1700524800000
207210 else throw("Unknown chain")
208211 }
209212
210-let aP = {
213+let aQ = {
211214 let r = p
212215 if ((base58'2W' == r))
213216 then 1701043199999
216219 else throw("Unknown chain")
217220 }
218221
219-let aQ = 1000000000
222+let aR = 1000000000
220223
221-let aR = [1, 3, 5, 20]
224+let aS = [1, 5]
222225
223-let aS = [500000000, 200000000, 100000000, 20000000]
226+let aT = [500000000, 100000000]
224227
225-func aT (d) = contains(aM, d)
228+func aU (d) = contains(aN, d)
226229
227230
228-func aU () = ac(reentrantInvoke(O, "saveLastTx", nil, nil))
231+func aV () = ad(reentrantInvoke(P, "saveLastTx", nil, nil))
229232
230233
231-func aV (d,aW,aX) = {
232- let aY = (lastBlock.timestamp - aX)
233- let aZ = fraction(aY, (i * aW), (b * x))
234- let ba = ac(invoke(P, "sellResourcesWorldREADONLY", [aZ], nil))
235- let bb = max([0, ba])
236- (bb * j)
234+func aW (d,aX,aY) = {
235+ let aZ = (lastBlock.timestamp - aY)
236+ let ba = fraction(aZ, (i * aX), (b * y))
237+ let bb = ad(invoke(Q, "sellResourcesWorldREADONLY", [ba], nil))
238+ let bc = max([0, bb])
239+ (bc * j)
237240 }
238241
239242
240-func bc (d,aW,aX) = {
241- let aY = (lastBlock.timestamp - aX)
242- if ((0 > aY))
243- then throw(((("Saved timestamp is in future, saved = " + toString(aX)) + ", current = ") + toString(lastBlock.timestamp)))
243+func bd (d,aX,aY) = {
244+ let aZ = (lastBlock.timestamp - aY)
245+ if ((0 > aZ))
246+ then throw(((("Saved timestamp is in future, saved = " + toString(aY)) + ", current = ") + toString(lastBlock.timestamp)))
244247 else {
245- let aZ = fraction(aY, (i * aW), (b * x))
246- let ba = ac(invoke(P, "sellResourcesWorldREADONLY", [aZ], nil))
247- let bb = if ((0 >= ba))
248+ let ba = fraction(aZ, (i * aX), (b * y))
249+ let bb = ad(invoke(Q, "sellResourcesWorldREADONLY", [ba], nil))
250+ let bc = if ((0 >= bb))
248251 then 0
249- else af(invoke(P, "sellResourcesWorld", [d, aZ], nil))._1
250- (bb * j)
252+ else ag(invoke(Q, "sellResourcesWorld", [d, ba], nil))._1
253+ (bc * j)
251254 }
252255 }
253256
254257
255-func bd (be,bf,bg,bh) = {
256- let bi = lastBlock.timestamp
257- let bj = max([0, (bf - bi)])
258- let bk = max([0, (bh - bi)])
259- let bl = (be + bg)
260- let bm = if ((bl == 0))
258+func be (bf,bg,bh,bi) = {
259+ let bj = lastBlock.timestamp
260+ let bk = max([0, (bg - bj)])
261+ let bl = max([0, (bi - bj)])
262+ let bm = (bf + bh)
263+ let bn = if ((bm == 0))
261264 then 0
262- else (fraction(bj, be, bl) + fraction(bk, bg, bl))
263- (bi + bm)
265+ else (fraction(bk, bf, bm) + fraction(bl, bh, bm))
266+ (bj + bn)
264267 }
265268
266269
267-@Callable(bn)
268-func constructorV1 (bo,bp) = if ((bn.caller != this))
270+@Callable(bo)
271+func constructorV1 (bp,bq) = if ((bo.caller != this))
269272 then throw("Permission denied")
270- else if (isDefined(getBinary(T)))
273+ else if (isDefined(getBinary(U)))
271274 then throw("Already initialized")
272275 else {
273- let bq = (aj("")[W] + bp)
274- let br = (a - (bq * x))
275- let bs = Issue("ACRES", "WavesLands land acres investment token", br, 8, false, unit, 0)
276- let bt = calculateAssetId(bs)
277-[bs, IntegerEntry(S, br), BinaryEntry(T, bt), StringEntry(H(), bo)]
276+ let br = (ak("")[X] + bq)
277+ let bs = (a - (br * y))
278+ let bt = Issue("ACRES", "WavesLands land acres investment token", bs, 8, false, unit, 0)
279+ let bu = calculateAssetId(bt)
280+[bt, IntegerEntry(T, bs), BinaryEntry(U, bu), StringEntry(I(), bp)]
278281 }
279282
280283
281284
282-@Callable(bn)
283-func unstakeAcres (bu) = {
284- let bv = aU()
285- if ((bv == bv))
286- then if ((0 >= bu))
285+@Callable(bo)
286+func unstakeAcres (bv) = {
287+ let bw = aV()
288+ if ((bw == bw))
289+ then if ((0 >= bv))
287290 then throw("Amount should be positive")
288291 else {
289- let A = toString(bn.caller)
290- if ((size(bn.payments) != 0))
292+ let B = toString(bo.caller)
293+ if ((size(bo.payments) != 0))
291294 then throw("No payments required")
292295 else {
293- let bw = V(A)
294- let bx = c(A)
295- let by = valueOrElse(getInteger(bx), 0)
296- if ((bu > by))
297- then throw(((("You have only " + ay(by, 8)) + " ACRES staked, tried to unstake ") + ay(bu, 8)))
296+ let bx = W(B)
297+ let by = c(B)
298+ let bz = valueOrElse(getInteger(by), 0)
299+ if ((bv > bz))
300+ then throw(((("You have only " + az(bz, 8)) + " ACRES staked, tried to unstake ") + az(bv, 8)))
298301 else {
299- let bz = valueOrElse(getInteger(e(A)), 0)
300- let bA = valueOrElse(getInteger(f(A)), 0)
301- let bi = lastBlock.timestamp
302- if (if ((bi >= aO))
303- then (aP >= bi)
302+ let bA = valueOrElse(getInteger(e(B)), 0)
303+ let bB = valueOrElse(getInteger(f(B)), 0)
304+ let bj = lastBlock.timestamp
305+ if (if ((bj >= aP))
306+ then (aQ >= bj)
304307 else false)
305308 then throw("You cannot unstake ACRES during Promo2")
306309 else {
307- let bB = if (aT(A))
308- then ((by - bz) - aN)
309- else (by - bz)
310- if (if ((bA > bi))
311- then (bu > bB)
310+ let bC = if (aU(B))
311+ then ((bz - bA) - aO)
312+ else (bz - bA)
313+ if (if ((bB > bj))
314+ then (bv > bC)
312315 else false)
313- then throw(((("Only " + ay(bB, 8)) + " ACRES can be unstaked now, wait until ") + toString(bA)))
316+ then throw(((("Only " + az(bC, 8)) + " ACRES can be unstaked now, wait until ") + toString(bB)))
314317 else {
315- let bC = valueOrElse(getInteger(g), 0)
316- let bD = invoke(Q, "onStakeUnstakeLand", [A], nil)
317- let bE = bc(A, by, valueOrElse(getInteger(bw), 0))
318- $Tuple2([IntegerEntry(bw, lastBlock.timestamp), IntegerEntry(bx, (by - bu)), IntegerEntry(g, (bC - bu)), ScriptTransfer(bn.caller, (bu + bE), U)], $Tuple2(bv, bD))
318+ let bD = valueOrElse(getInteger(g), 0)
319+ let bE = invoke(R, "onStakeUnstakeLand", [B], nil)
320+ let bF = bd(B, bz, valueOrElse(getInteger(bx), 0))
321+ $Tuple2([IntegerEntry(bx, lastBlock.timestamp), IntegerEntry(by, (bz - bv)), IntegerEntry(g, (bD - bv)), ScriptTransfer(bo.caller, (bv + bF), V)], $Tuple2(bw, bE))
319322 }
320323 }
321324 }
326329
327330
328331
329-@Callable(bn)
332+@Callable(bo)
330333 func stakeAcres () = {
331- let bv = aU()
332- if ((bv == bv))
334+ let bw = aV()
335+ if ((bw == bw))
333336 then {
334- let A = toString(bn.caller)
335- if ((size(bn.payments) != 1))
337+ let B = toString(bo.caller)
338+ if ((size(bo.payments) != 1))
336339 then throw("exactly 1 payment must be attached")
337340 else {
338- let bF = bn.payments[0]
339- let bG = bF.amount
340- if (if (!(isDefined(bF.assetId)))
341+ let bG = bo.payments[0]
342+ let bH = bG.amount
343+ if (if (!(isDefined(bG.assetId)))
341344 then true
342- else (value(bF.assetId) != U))
345+ else (value(bG.assetId) != V))
343346 then throw("ACRES payments only!")
344347 else {
345- let bD = invoke(Q, "onStakeUnstakeLand", [A], nil)
346- if ((bD == bD))
348+ let bE = invoke(R, "onStakeUnstakeLand", [B], nil)
349+ if ((bE == bE))
347350 then {
348- let bi = lastBlock.timestamp
349- if (if ((aO > bi))
351+ let bj = lastBlock.timestamp
352+ if (if ((aP > bj))
350353 then true
351- else (bi > aP))
354+ else (bj > aQ))
352355 then {
353- let bw = V(A)
354- let bx = c(A)
355- let by = valueOrElse(getInteger(bx), 0)
356- let bC = valueOrElse(getInteger(g), 0)
357- let bE = bc(A, by, valueOrElse(getInteger(bw), 0))
358- $Tuple2(((((if ((bE == 0))
356+ let bx = W(B)
357+ let by = c(B)
358+ let bz = valueOrElse(getInteger(by), 0)
359+ let bD = valueOrElse(getInteger(g), 0)
360+ let bF = bd(B, bz, valueOrElse(getInteger(bx), 0))
361+ $Tuple2(((((if ((bF == 0))
359362 then nil
360- else [ScriptTransfer(bn.caller, bE, U)]) :+ IntegerEntry(bw, lastBlock.timestamp)) :+ IntegerEntry(bx, (by + bG))) :+ IntegerEntry(g, (bC + bG))), $Tuple2(bv, bD))
363+ else [ScriptTransfer(bo.caller, bF, V)]) :+ IntegerEntry(bx, lastBlock.timestamp)) :+ IntegerEntry(by, (bz + bH))) :+ IntegerEntry(g, (bD + bH))), $Tuple2(bw, bE))
361364 }
362- else if ((aL > bG))
363- then throw((("Min staked amount during promo action should be at least " + ay(aL, 8)) + " ACRES"))
365+ else if ((aM > bH))
366+ then throw((("Min staked amount during promo action should be at least " + az(aM, 8)) + " ACRES"))
364367 else {
365- let bH = invoke(this, "sendLockedAcres", [A, bG, 30], nil)
366- let bI = valueOrElse(getString(t), "")
367- let bJ = if (contains(bI, A))
368+ let bI = invoke(this, "sendLockedAcres", [B, bH, 30], nil)
369+ let bJ = valueOrElse(getString(t), "")
370+ let bK = if (contains(bJ, B))
368371 then {
369- let bK = split_51C(bI, A)
370- let be = parseIntValue(take(drop(bK[1], 1), 14))
371- ((((bK[0] + A) + ":") + aD((be + bG), 14)) + drop(bK[1], 15))
372+ let bL = split_51C(bJ, B)
373+ let bf = parseIntValue(take(drop(bL[1], 1), 14))
374+ ((((bL[0] + B) + ":") + aE((bf + bH), 14)) + drop(bL[1], 15))
372375 }
373376 else {
374- let bL = ((A + ":") + aD(bG, 14))
375- if ((bI == ""))
376- then bL
377- else ((bI + "_") + bL)
377+ let bM = ((B + ":") + aE(bH, 14))
378+ if ((bJ == ""))
379+ then bM
380+ else ((bJ + "_") + bM)
378381 }
379- $Tuple2([StringEntry(t, bJ)], $Tuple3(bv, bD, bH))
382+ $Tuple2([StringEntry(t, bK)], $Tuple3(bw, bE, bI))
380383 }
381384 }
382385 else throw("Strict value is not equal to itself.")
388391
389392
390393
391-@Callable(bn)
394+@Callable(bo)
392395 func buyAcres () = {
393- let bv = aU()
394- if ((bv == bv))
396+ let bw = aV()
397+ if ((bw == bw))
395398 then {
396- let A = toString(bn.caller)
397- if ((size(bn.payments) != 1))
399+ let B = toString(bo.caller)
400+ if ((size(bo.payments) != 1))
398401 then throw("exactly 1 payment must be attached")
399402 else {
400- let bF = bn.payments[0]
401- let bG = bF.amount
402- if (if (!(isDefined(bF.assetId)))
403+ let bG = bo.payments[0]
404+ let bH = bG.amount
405+ if (if (!(isDefined(bG.assetId)))
403406 then true
404- else (value(bF.assetId) != q))
407+ else (value(bG.assetId) != q))
405408 then throw("USDT payments only!")
406- else if ((w > bG))
407- then throw((("Min payment should be " + ay(w, 6)) + " USDT"))
409+ else if ((x > bH))
410+ then throw((("Min payment should be " + az(x, 6)) + " USDT"))
408411 else {
409- let aW = (bG * j)
410- let bM = ac(invoke(O, "updateAccStats", [A, fraction(h, aW, (25 * x))], nil))
411- $Tuple2([ScriptTransfer(P, bG, q), ScriptTransfer(bn.caller, aW, U)], $Tuple2(bv, bM))
412+ let aX = (bH * j)
413+ let bN = ad(invoke(P, "updateAccStats", [B, fraction(h, aX, (25 * y))], nil))
414+ $Tuple2([ScriptTransfer(Q, bH, q), ScriptTransfer(bo.caller, aX, V)], $Tuple2(bw, bN))
412415 }
413416 }
414417 }
417420
418421
419422
420-@Callable(bn)
421-func sendAcres (d,bu) = if ((bn.caller != P))
423+@Callable(bo)
424+func sendAcres (d,bv) = if ((bo.caller != Q))
422425 then throw("Permission denied")
423- else $Tuple2([ScriptTransfer(addressFromStringValue(d), bu, U)], bu)
426+ else $Tuple2([ScriptTransfer(addressFromStringValue(d), bv, V)], bv)
424427
425428
426429
427-@Callable(bn)
428-func sendLockedAcres (d,bu,bN) = if (if ((bn.caller != this))
429- then (bn.caller != N)
430+@Callable(bo)
431+func sendLockedAcres (d,bv,bO) = if (if ((bo.caller != this))
432+ then (bo.caller != O)
430433 else false)
431434 then throw("Permission denied")
432435 else {
433- let bi = lastBlock.timestamp
434- let bw = V(d)
435- let bx = c(d)
436- let by = valueOrElse(getInteger(bx), 0)
437- let bC = valueOrElse(getInteger(g), 0)
438- let bO = if (isDefined(getInteger(bw)))
436+ let bj = lastBlock.timestamp
437+ let bx = W(d)
438+ let by = c(d)
439+ let bz = valueOrElse(getInteger(by), 0)
440+ let bD = valueOrElse(getInteger(g), 0)
441+ let bP = if (isDefined(getInteger(bx)))
439442 then nil
440- else [IntegerEntry(bw, bi)]
441- let bP = f(d)
442- let bQ = e(d)
443- let bR = valueOrElse(getInteger(bQ), 0)
444- let bS = valueOrElse(getInteger(bP), 0)
445- let bT = bd(bR, bS, bu, (bi + (bN * b)))
446- $Tuple2(((((bO :+ IntegerEntry(bx, (by + bu))) :+ IntegerEntry(g, (bC + bu))) :+ IntegerEntry(bP, bT)) :+ IntegerEntry(bQ, (bR + bu))), bu)
443+ else [IntegerEntry(bx, bj)]
444+ let bQ = f(d)
445+ let bR = e(d)
446+ let bS = valueOrElse(getInteger(bR), 0)
447+ let bT = valueOrElse(getInteger(bQ), 0)
448+ let bU = be(bS, bT, bv, (bj + (bO * b)))
449+ $Tuple2(((((bP :+ IntegerEntry(by, (bz + bv))) :+ IntegerEntry(g, (bD + bv))) :+ IntegerEntry(bQ, bU)) :+ IntegerEntry(bR, (bS + bv))), bv)
447450 }
448451
449452
450453
451-@Callable(bn)
452-func burnAcres (bu) = if ((bn.caller != O))
454+@Callable(bo)
455+func burnAcres (bv) = if ((bo.caller != P))
453456 then throw("Permission denied")
454457 else {
455- let bU = (valueOrElse(getInteger(S), 0) - bu)
456- if ((0 > bU))
458+ let bV = (valueOrElse(getInteger(T), 0) - bv)
459+ if ((0 > bV))
457460 then throw("Attempt to burn more ACRES, than exists")
458- else $Tuple2([Burn(U, bu), IntegerEntry(S, bU)], bu)
461+ else $Tuple2([Burn(V, bv), IntegerEntry(T, bV)], bv)
459462 }
460463
461464
462465
463-@Callable(bn)
466+@Callable(bo)
464467 func claimAcres () = {
465- let bv = aU()
466- if ((bv == bv))
468+ let bw = aV()
469+ if ((bw == bw))
467470 then {
468- let A = toString(bn.caller)
469- if ((size(bn.payments) != 0))
471+ let B = toString(bo.caller)
472+ if ((size(bo.payments) != 0))
470473 then throw("No payments required")
471474 else {
472- let bw = V(A)
473- let bx = c(A)
474- let aW = valueOrElse(getInteger(bx), 0)
475- let bD = invoke(Q, "onStakeUnstakeLand", [A], nil)
476- let bE = bc(A, aW, valueOrElse(getInteger(bw), 0))
477- $Tuple2([IntegerEntry(bw, lastBlock.timestamp), ScriptTransfer(bn.caller, bE, U)], $Tuple2(bv, bD))
475+ let bx = W(B)
476+ let by = c(B)
477+ let aX = valueOrElse(getInteger(by), 0)
478+ let bE = invoke(R, "onStakeUnstakeLand", [B], nil)
479+ let bF = bd(B, aX, valueOrElse(getInteger(bx), 0))
480+ $Tuple2([IntegerEntry(bx, lastBlock.timestamp), ScriptTransfer(bo.caller, bF, V)], $Tuple2(bw, bE))
478481 }
479482 }
480483 else throw("Strict value is not equal to itself.")
482485
483486
484487
485-@Callable(bn)
486-func claimAcresREADONLY (A) = {
487- let bw = V(A)
488- let bx = c(A)
489- let aW = valueOrElse(getInteger(bx), 0)
490- let bV = valueOrElse(getInteger(bw), 0)
491- let bE = aV(A, aW, bV)
492- $Tuple2(nil, [bE, bV])
488+@Callable(bo)
489+func claimAcresREADONLY (B) = {
490+ let bx = W(B)
491+ let by = c(B)
492+ let aX = valueOrElse(getInteger(by), 0)
493+ let bW = valueOrElse(getInteger(bx), 0)
494+ let bF = aW(B, aX, bW)
495+ $Tuple2(nil, [bF, bW])
493496 }
494497
495498
496499
497-@Callable(bn)
500+@Callable(bo)
498501 func claimPromo2 () = {
499- let bv = aU()
500- if ((bv == bv))
502+ let bw = aV()
503+ if ((bw == bw))
501504 then {
502- let A = toString(bn.caller)
503- if ((size(bn.payments) != 0))
505+ let B = toString(bo.caller)
506+ if ((size(bo.payments) != 0))
504507 then throw("No payments required")
505508 else {
506- let bi = lastBlock.timestamp
507- if ((aP > bi))
509+ let bj = lastBlock.timestamp
510+ if ((aQ > bj))
508511 then throw("Promo 2 is not over yet")
509512 else {
510- let bW = k(2, A)
511- if (valueOrElse(getBoolean(bW), false))
512- then throw((("Your wallet " + A) + " is already awarded in promo 2"))
513+ let bX = k(2, B)
514+ if (valueOrElse(getBoolean(bX), false))
515+ then throw((("Your wallet " + B) + " is already awarded in promo 2"))
513516 else {
514- let bI = valueOrElse(getString(t), "")
515- if (!(contains(bI, A)))
517+ let bJ = valueOrElse(getString(t), "")
518+ if (!(contains(bJ, B)))
516519 then throw("You are not participant of promo 2")
517520 else {
518- let bK = split_51C(bI, A)
519- let aW = parseIntValue(take(drop(bK[1], 1), 14))
520- let bX = (aW / aL)
521- let bY = valueOrElse(getInteger(m(2)), 0)
522- let bZ = if ((bY == 0))
521+ let bL = split_51C(bJ, B)
522+ let aX = parseIntValue(take(drop(bL[1], 1), 14))
523+ let bY = (aX / aM)
524+ let bZ = valueOrElse(getInteger(m(2)), 0)
525+ let ca = if ((bZ == 0))
523526 then {
524- func ca (an,cb) = (an + (parseIntValue(split(cb, ":")[1]) / aL))
527+ func cb (ao,cc) = (ao + (parseIntValue(split(cc, ":")[1]) / aM))
525528
526- let cc = {
527- let aq = split_51C(bI, "_")
528- let ar = size(aq)
529- let as = 0
530- func at (au,av) = if ((av >= ar))
531- then au
532- else ca(au, aq[av])
529+ let cd = {
530+ let ar = split_51C(bJ, "_")
531+ let as = size(ar)
532+ let at = 0
533+ func au (av,aw) = if ((aw >= as))
534+ then av
535+ else cb(av, ar[aw])
533536
534- func aw (au,av) = if ((av >= ar))
535- then au
537+ func ax (av,aw) = if ((aw >= as))
538+ then av
536539 else throw("List size exceeds 50")
537540
538- aw(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(as, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50)
541+ ax(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(at, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50)
539542 }
540- $Tuple2([IntegerEntry(m(2), cc), IntegerEntry(n(2, 1), cc)], cc)
543+ $Tuple2([IntegerEntry(m(2), cd), IntegerEntry(n(2, 1), cd)], cd)
541544 }
542- else $Tuple2(nil, bY)
543- let cd = bZ._1
544- let ce = bZ._2
545- let cf = fraction(aQ, bX, ce)
546- let bH = invoke(this, "sendLockedAcres", [A, cf, 30], nil)
547- $Tuple2(((cd :+ BooleanEntry(bW, true)) :+ StringEntry(u(1), bI)), bH)
545+ else $Tuple2(nil, bZ)
546+ let ce = ca._1
547+ let cf = ca._2
548+ let cg = fraction(aR, bY, cf)
549+ let bI = invoke(this, "sendLockedAcres", [B, cg, 30], nil)
550+ $Tuple2(((ce :+ BooleanEntry(bX, true)) :+ StringEntry(u(1), bJ)), bI)
548551 }
549552 }
550553 }
555558
556559
557560
558-@Callable(bn)
559-func commitForPromo2Round (o) = if ((bn.caller != this))
561+@Callable(bo)
562+func initPromo3 (ch) = if ((bo.caller != this))
563+ then throw("Permission denied")
564+ else {
565+ func cb (ao,cc) = (ao + parseIntValue(split(cc, ":")[1]))
566+
567+ let ci = {
568+ let ar = split_51C(ch, "_")
569+ let as = size(ar)
570+ let at = 0
571+ func au (av,aw) = if ((aw >= as))
572+ then av
573+ else cb(av, ar[aw])
574+
575+ func ax (av,aw) = if ((aw >= as))
576+ then av
577+ else throw("List size exceeds 20")
578+
579+ ax(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(at, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20)
580+ }
581+ $Tuple2([IntegerEntry(n(3, 1), ci), StringEntry(v(1), ch)], ci)
582+ }
583+
584+
585+
586+@Callable(bo)
587+func commitForPromo3Round (o) = if ((bo.caller != this))
560588 then throw("Permission denied")
561589 else if (if ((1 > o))
562590 then true
563- else (o > 4))
591+ else (o > 2))
564592 then throw(("Invalid roundId: " + toString(o)))
565593 else {
566- let cg = (height + X)
567- $Tuple2([IntegerEntry(Y(("2_" + toString(o))), cg)], cg)
594+ let cj = (height + Y)
595+ $Tuple2([IntegerEntry(Z(("3_" + toString(o))), cj)], cj)
568596 }
569597
570598
571599
572-@Callable(bn)
573-func drawPromo2Round (o) = if ((bn.caller != this))
600+@Callable(bo)
601+func drawPromo3Round (o) = if ((bo.caller != this))
574602 then throw("Permission denied")
575603 else if (if ((1 > o))
576604 then true
577- else (o > 4))
605+ else (o > 2))
578606 then throw(("Invalid roundId: " + toString(o)))
579607 else {
580- let ch = Y(("2_" + toString(o)))
581- let cg = valueOrErrorMessage(getInteger(ch), (("You have to commitForPromo2Round(" + toString(o)) + ") first!"))
582- if ((cg > height))
583- then throw((((("Random number is not ready yet, wait until height = " + toString(cg)) + " (current height = ") + toString(height)) + ")"))
608+ let ck = Z(("3_" + toString(o)))
609+ let cj = valueOrErrorMessage(getInteger(ck), (("You have to commitForPromo3Round(" + toString(o)) + ") first!"))
610+ if ((cj > height))
611+ then throw((((("Random number is not ready yet, wait until height = " + toString(cj)) + " (current height = ") + toString(height)) + ")"))
584612 else {
585- let aH = valueOrElse(getInteger(n(2, o)), 0)
586- if ((aH == 0))
587- then throw("No tickets to draw (was claimPromo2() called at least once?)")
613+ let aI = valueOrElse(getInteger(n(3, o)), 0)
614+ if ((aI == 0))
615+ then throw("No tickets to draw")
588616 else {
589- let aJ = value(value(blockInfoByHeight(cg)).vrf)
590- let aI = bn.transactionId
591- let bI = valueOrElse(getString(u(o)), "")
592- func ci (cj,ck) = if ((ck >= aR[(o - 1)]))
593- then cj
617+ let aK = value(value(blockInfoByHeight(cj)).vrf)
618+ let aJ = bo.transactionId
619+ let ch = valueOrElse(getString(v(o)), "")
620+ func cl (cm,cn) = if ((cn >= aS[(o - 1)]))
621+ then cm
594622 else {
595- let cl = aG(cj._1, cj._2, aJ)
596- let cm = if ((cj._3 == ""))
623+ let co = aH(cm._1, cm._2, aK)
624+ let cp = if ((cm._3 == ""))
597625 then nil
598- else split_51C(cj._3, "_")
599- func ca (an,cb) = {
600- let bK = split(cb, ":")
601- let d = bK[0]
602- let bX = (parseIntValue(bK[1]) / aL)
603- let cn = (an._1 + bX)
604- if (if ((an._3 == ""))
605- then (cn > cl)
626+ else split_51C(cm._3, "_")
627+ func cb (ao,cc) = {
628+ let bL = split(cc, ":")
629+ let d = bL[0]
630+ let bY = parseIntValue(bL[1])
631+ let cq = (ao._1 + bY)
632+ if (if ((ao._3 == ""))
633+ then (cq > co)
606634 else false)
607- then $Tuple3(cn, bX, d)
608- else $Tuple3(cn, an._2, an._3)
635+ then $Tuple3(cq, bY, d)
636+ else $Tuple3(cq, ao._2, ao._3)
609637 }
610638
611- let co = {
612- let aq = cm
613- let ar = size(aq)
614- let as = $Tuple3(0, 0, "")
615- func at (au,av) = if ((av >= ar))
616- then au
617- else ca(au, aq[av])
639+ let cr = {
640+ let ar = cp
641+ let as = size(ar)
642+ let at = $Tuple3(0, 0, "")
643+ func au (av,aw) = if ((aw >= as))
644+ then av
645+ else cb(av, ar[aw])
618646
619- func aw (au,av) = if ((av >= ar))
620- then au
621- else throw("List size exceeds 50")
647+ func ax (av,aw) = if ((aw >= as))
648+ then av
649+ else throw("List size exceeds 20")
622650
623- aw(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(as, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50)
651+ ax(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(at, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20)
624652 }
625- let cp = co._3
626- if ((cp == ""))
627- then cj
653+ let cs = cr._3
654+ if ((cs == ""))
655+ then cm
628656 else {
629- let cq = split_51C(cj._3, cp)
630- let cr = if ((cq[0] == ""))
631- then drop(cq[1], 16)
632- else (dropRight(cq[0], 1) + drop(cq[1], 15))
633- let bH = invoke(this, "sendLockedAcres", [cp, aS[(o - 1)], 30], nil)
634- $Tuple4((cj._1 - co._2), fromBase58String(getStringValue(O, ai(cp))), cr, (cj._4 :+ bH))
657+ let ct = split_51C(cm._3, cs)
658+ let cu = if ((ct[0] == ""))
659+ then drop(ct[1], 4)
660+ else (dropRight(ct[0], 1) + drop(ct[1], 3))
661+ let bI = invoke(this, "sendLockedAcres", [cs, aT[(o - 1)], 30], nil)
662+ let cv = fromBase58String(valueOrElse(getString(P, aj(cs)), "DEFAULT"))
663+ $Tuple4((cm._1 - cr._2), cv, cu, (cm._4 :+ bI))
635664 }
636665 }
637666
638- let cs = {
639- let aq = y
640- let ar = size(aq)
641- let as = $Tuple4(aH, bn.transactionId, bI, nil)
642- func at (au,av) = if ((av >= ar))
643- then au
644- else ci(au, aq[av])
667+ let cw = {
668+ let ar = z
669+ let as = size(ar)
670+ let at = $Tuple4(aI, bo.transactionId, ch, nil)
671+ func au (av,aw) = if ((aw >= as))
672+ then av
673+ else cl(av, ar[aw])
645674
646- func aw (au,av) = if ((av >= ar))
647- then au
648- else throw("List size exceeds 20")
675+ func ax (av,aw) = if ((aw >= as))
676+ then av
677+ else throw("List size exceeds 6")
649678
650- aw(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(as, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20)
679+ ax(au(au(au(au(au(au(at, 0), 1), 2), 3), 4), 5), 6)
651680 }
652- $Tuple2([DeleteEntry(ch), StringEntry(u((o + 1)), cs._3), IntegerEntry(n(2, (o + 1)), cs._1)], cs._4)
681+ $Tuple2([DeleteEntry(ck), StringEntry(v((o + 1)), cw._3), IntegerEntry(n(3, (o + 1)), cw._1)], cw._4)
653682 }
654683 }
655684 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = 100000000000000
55
66 let b = 86400000
77
88 func c (d) = ("acresStakedAmountByUser_" + d)
99
1010
1111 func e (d) = ("acresLockedAmountByUser_" + d)
1212
1313
1414 func f (d) = ("acresLockedEtaByUser_" + d)
1515
1616
1717 let g = "acresStakedAmountTotal"
1818
1919 let h = 5000000
2020
2121 let i = 3456000
2222
2323 let j = 10
2424
2525 func k (l,d) = makeString(["%s%d%s__isAwardedByPromoAndUser", toString(l), d], "__")
2626
2727
2828 func m (l) = ("%s%d__ticketsTotalByPromo__" + toString(l))
2929
3030
3131 func n (l,o) = makeString(["%s%d%d__ticketsTotalByPromoAndRound", toString(l), toString(o)], "__")
3232
3333
3434 let p = take(drop(this.bytes, 1), 1)
3535
3636 let q = {
3737 let r = p
3838 if ((base58'2W' == r))
3939 then base58'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi'
4040 else if ((base58'2T' == r))
4141 then base58'6mWwf9mZBjVgkC54idpyaZLQfAosD914wT8fGf2iiY63'
4242 else throw("Unknown chain")
4343 }
4444
4545 let s = {
4646 let r = p
4747 if ((base58'2W' == r))
4848 then "3PQCuvFbvh4LkPUnrnU1z3jnbA1p9m3WNhv"
4949 else if ((base58'2T' == r))
5050 then "3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy"
5151 else throw("Unknown chain")
5252 }
5353
5454 let t = "promo2Map"
5555
5656 func u (o) = ("promo2MapForRound__" + toString(o))
5757
5858
59-let v = "__"
60-
61-let w = 1000000
62-
63-let x = 100000000
64-
65-let y = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19]
66-
67-func z (A,B) = valueOrErrorMessage(getString(A, B), makeString(["mandatory ", toString(A), ".", B, " is not defined"], ""))
59+func v (o) = ("promo3MapForRound__" + toString(o))
6860
6961
70-let C = 1
62+let w = "__"
7163
72-let D = 2
64+let x = 1000000
7365
74-let E = 4
66+let y = 100000000
7567
76-let F = 8
68+let z = [0, 1, 2, 3, 4, 5]
7769
78-func G () = "%s__restConfig"
70+func A (B,C) = valueOrErrorMessage(getString(B, C), makeString(["mandatory ", toString(B), ".", C, " is not defined"], ""))
7971
8072
81-func H () = "%s__restAddr"
73+let D = 1
74+
75+let E = 2
76+
77+let F = 4
78+
79+let G = 8
80+
81+func H () = "%s__restConfig"
8282
8383
84-func I (J) = split_4C(z(J, G()), v)
84+func I () = "%s__restAddr"
8585
8686
87-func K (L,M) = valueOrErrorMessage(addressFromString(L[M]), ("Rest cfg doesn't contain address at index " + toString(M)))
87+func J (K) = split_4C(A(K, H()), w)
8888
8989
90-let N = addressFromStringValue(valueOrElse(getString(this, H()), s))
91-
92-let L = I(N)
93-
94-let O = K(L, C)
95-
96-let P = K(L, D)
97-
98-let Q = K(L, E)
99-
100-let R = K(L, F)
101-
102-let S = "acresIssuedAmount"
103-
104-let T = "acresAssetId"
105-
106-let U = valueOrErrorMessage(getBinary(R, T), "ACRES is not issued yet")
107-
108-func V (d) = ("acresStakedTimeByUser_" + d)
90+func L (M,N) = valueOrErrorMessage(addressFromString(M[N]), ("Rest cfg doesn't contain address at index " + toString(N)))
10991
11092
111-let W = 0
93+let O = addressFromStringValue(valueOrElse(getString(this, I()), s))
11294
113-let X = 2
95+let M = J(O)
11496
115-func Y (A) = ("finishBlockFor_" + A)
97+let P = L(M, D)
98+
99+let Q = L(M, E)
100+
101+let R = L(M, F)
102+
103+let S = L(M, G)
104+
105+let T = "acresIssuedAmount"
106+
107+let U = "acresAssetId"
108+
109+let V = valueOrErrorMessage(getBinary(S, U), "ACRES is not issued yet")
110+
111+func W (d) = ("acresStakedTimeByUser_" + d)
116112
117113
118-func Z () = "resTypesProportions"
114+let X = 0
115+
116+let Y = 2
117+
118+func Z (B) = ("finishBlockFor_" + B)
119119
120120
121-func aa (ab) = ("stakedPiecesByOwner_" + ab)
121+func aa () = "resTypesProportions"
122122
123123
124-func ac (ad) = {
125- let r = ad
124+func ab (ac) = ("stakedPiecesByOwner_" + ac)
125+
126+
127+func ad (ae) = {
128+ let r = ae
126129 if ($isInstanceOf(r, "Int"))
127130 then {
128- let ae = r
129- ae
131+ let af = r
132+ af
130133 }
131134 else throw("fail to cast into Int")
132135 }
133136
134137
135-func af (ag) = {
136- let r = ag
138+func ag (ah) = {
139+ let r = ah
137140 if ($isInstanceOf(r, "(Int, Int)"))
138141 then {
139- let ah = r
140- ah
142+ let ai = r
143+ ai
141144 }
142145 else throw("fail to cast into (Int, Int)")
143146 }
144147
145148
146-func ai (d) = ("lastTxIdByUser_" + d)
149+func aj (d) = ("lastTxIdByUser_" + d)
147150
148151
149-func aj (ak) = {
150- let al = split(valueOrElse(getString(O, Z()), "0_0_0_0_0_0"), "_")
151- func am (an,ao) = (an + parseIntValue(ao))
152+func ak (al) = {
153+ let am = split(valueOrElse(getString(P, aa()), "0_0_0_0_0_0"), "_")
154+ func an (ao,ap) = (ao + parseIntValue(ap))
152155
153- let ap = {
154- let aq = al
155- let ar = size(aq)
156- let as = 0
157- func at (au,av) = if ((av >= ar))
158- then au
159- else am(au, aq[av])
156+ let aq = {
157+ let ar = am
158+ let as = size(ar)
159+ let at = 0
160+ func au (av,aw) = if ((aw >= as))
161+ then av
162+ else an(av, ar[aw])
160163
161- func aw (au,av) = if ((av >= ar))
162- then au
164+ func ax (av,aw) = if ((aw >= as))
165+ then av
163166 else throw("List size exceeds 6")
164167
165- aw(at(at(at(at(at(at(as, 0), 1), 2), 3), 4), 5), 6)
168+ ax(au(au(au(au(au(au(at, 0), 1), 2), 3), 4), 5), 6)
166169 }
167- let ax = valueOrElse(getInteger(O, aa(ak)), 0)
168-[ap, ax]
170+ let ay = valueOrElse(getInteger(P, ab(al)), 0)
171+[aq, ay]
169172 }
170173
171174
172-func ay (ag,az) = {
173- let aA = pow(10, 0, az, 0, 0, DOWN)
174- let aB = toString((ag % aA))
175- let aC = drop(toString(aA), (1 + size(aB)))
176- (((toString((ag / aA)) + ".") + aC) + aB)
175+func az (ah,aA) = {
176+ let aB = pow(10, 0, aA, 0, 0, DOWN)
177+ let aC = toString((ah % aB))
178+ let aD = drop(toString(aB), (1 + size(aC)))
179+ (((toString((ah / aB)) + ".") + aD) + aC)
177180 }
178181
179182
180-func aD (ag,aE) = {
181- let aF = toString(ag)
182- let aC = drop(toString(pow(10, 0, (aE - size(aF)), 0, 0, DOWN)), 1)
183- (aC + aF)
183+func aE (ah,aF) = {
184+ let aG = toString(ah)
185+ let aD = drop(toString(pow(10, 0, (aF - size(aG)), 0, 0, DOWN)), 1)
186+ (aD + aG)
184187 }
185188
186189
187-func aG (aH,aI,aJ) = if ((0 >= aH))
190+func aH (aI,aJ,aK) = if ((0 >= aI))
188191 then throw("maxValue should be > 0")
189192 else {
190- let aK = sha256((aI + aJ))
191- (toInt(aK) % aH)
193+ let aL = sha256((aJ + aK))
194+ (toInt(aL) % aI)
192195 }
193196
194197
195-let aL = 10000000
198+let aM = 10000000
196199
197-let aM = "3P2NGX4Q5nge1MCauwQW5aqYLdkccSGj1Ep_3P2xFAHW9yhyNohYozWd4HFhEXZu3bsNSoR_3P2yKaZ2gvn9Xe5tti81a7P9LZhHgjvToV9_3P37zQ3cf2ecu55RmJqEiGSivdzN9avt3m9_3P4az6dtzsvGCWFAxa94UdevKzXyEwxEiFG_3P4kZU6X3TTLFcSUe55JSy8BySqitcPgMBz_3P5hCxBEh3NgNizZhNBreyBSqtbhJYLkKPD_3P7HLvucy11yxyMJUwjzXFHHKMEDwi1EwfC_3P8JuaqH9PTQAv8D5HBGgQfKauLTYt2NQft_3P9gTDB4rtDEVbpX3asU63H4Zinh2EnTmZE_3P9iN3qrtfJicUVy7amZeVsetVD3vUMk8be_3PCa2BsAa6JBLirszQfV5r9fJrujfhwtwfP_3PD3i4XN8KtygcFx4ry5M7UGqdfH8VYvtRT_3PDEMnnJNc2kx9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P2_3PMuxo4PCAox9s4a7R1eszh4iqqu8gS7jHv_3PNrMtEQChw87WZU1JAJ7aGHykCa8TjnDNK_3PPuBXfWoBy3EEory7c7vgi9Usjka7o5tBj_3PQwyeyEhT4Y6aGAL6tg73aQWJtV1zRt3nR_3PRGDShuMGb84MJtTJvtTg8qDfswkYWcm3e"
198201
199-let aN = 4970178
202+let aO = 4970178
200203
201-let aO = {
204+let aP = {
202205 let r = p
203206 if ((base58'2W' == r))
204207 then 1700524800000
205208 else if ((base58'2T' == r))
206209 then 1700420400000
207210 else throw("Unknown chain")
208211 }
209212
210-let aP = {
213+let aQ = {
211214 let r = p
212215 if ((base58'2W' == r))
213216 then 1701043199999
214217 else if ((base58'2T' == r))
215218 then 1700496000000
216219 else throw("Unknown chain")
217220 }
218221
219-let aQ = 1000000000
222+let aR = 1000000000
220223
221-let aR = [1, 3, 5, 20]
224+let aS = [1, 5]
222225
223-let aS = [500000000, 200000000, 100000000, 20000000]
226+let aT = [500000000, 100000000]
224227
225-func aT (d) = contains(aM, d)
228+func aU (d) = contains(aN, d)
226229
227230
228-func aU () = ac(reentrantInvoke(O, "saveLastTx", nil, nil))
231+func aV () = ad(reentrantInvoke(P, "saveLastTx", nil, nil))
229232
230233
231-func aV (d,aW,aX) = {
232- let aY = (lastBlock.timestamp - aX)
233- let aZ = fraction(aY, (i * aW), (b * x))
234- let ba = ac(invoke(P, "sellResourcesWorldREADONLY", [aZ], nil))
235- let bb = max([0, ba])
236- (bb * j)
234+func aW (d,aX,aY) = {
235+ let aZ = (lastBlock.timestamp - aY)
236+ let ba = fraction(aZ, (i * aX), (b * y))
237+ let bb = ad(invoke(Q, "sellResourcesWorldREADONLY", [ba], nil))
238+ let bc = max([0, bb])
239+ (bc * j)
237240 }
238241
239242
240-func bc (d,aW,aX) = {
241- let aY = (lastBlock.timestamp - aX)
242- if ((0 > aY))
243- then throw(((("Saved timestamp is in future, saved = " + toString(aX)) + ", current = ") + toString(lastBlock.timestamp)))
243+func bd (d,aX,aY) = {
244+ let aZ = (lastBlock.timestamp - aY)
245+ if ((0 > aZ))
246+ then throw(((("Saved timestamp is in future, saved = " + toString(aY)) + ", current = ") + toString(lastBlock.timestamp)))
244247 else {
245- let aZ = fraction(aY, (i * aW), (b * x))
246- let ba = ac(invoke(P, "sellResourcesWorldREADONLY", [aZ], nil))
247- let bb = if ((0 >= ba))
248+ let ba = fraction(aZ, (i * aX), (b * y))
249+ let bb = ad(invoke(Q, "sellResourcesWorldREADONLY", [ba], nil))
250+ let bc = if ((0 >= bb))
248251 then 0
249- else af(invoke(P, "sellResourcesWorld", [d, aZ], nil))._1
250- (bb * j)
252+ else ag(invoke(Q, "sellResourcesWorld", [d, ba], nil))._1
253+ (bc * j)
251254 }
252255 }
253256
254257
255-func bd (be,bf,bg,bh) = {
256- let bi = lastBlock.timestamp
257- let bj = max([0, (bf - bi)])
258- let bk = max([0, (bh - bi)])
259- let bl = (be + bg)
260- let bm = if ((bl == 0))
258+func be (bf,bg,bh,bi) = {
259+ let bj = lastBlock.timestamp
260+ let bk = max([0, (bg - bj)])
261+ let bl = max([0, (bi - bj)])
262+ let bm = (bf + bh)
263+ let bn = if ((bm == 0))
261264 then 0
262- else (fraction(bj, be, bl) + fraction(bk, bg, bl))
263- (bi + bm)
265+ else (fraction(bk, bf, bm) + fraction(bl, bh, bm))
266+ (bj + bn)
264267 }
265268
266269
267-@Callable(bn)
268-func constructorV1 (bo,bp) = if ((bn.caller != this))
270+@Callable(bo)
271+func constructorV1 (bp,bq) = if ((bo.caller != this))
269272 then throw("Permission denied")
270- else if (isDefined(getBinary(T)))
273+ else if (isDefined(getBinary(U)))
271274 then throw("Already initialized")
272275 else {
273- let bq = (aj("")[W] + bp)
274- let br = (a - (bq * x))
275- let bs = Issue("ACRES", "WavesLands land acres investment token", br, 8, false, unit, 0)
276- let bt = calculateAssetId(bs)
277-[bs, IntegerEntry(S, br), BinaryEntry(T, bt), StringEntry(H(), bo)]
276+ let br = (ak("")[X] + bq)
277+ let bs = (a - (br * y))
278+ let bt = Issue("ACRES", "WavesLands land acres investment token", bs, 8, false, unit, 0)
279+ let bu = calculateAssetId(bt)
280+[bt, IntegerEntry(T, bs), BinaryEntry(U, bu), StringEntry(I(), bp)]
278281 }
279282
280283
281284
282-@Callable(bn)
283-func unstakeAcres (bu) = {
284- let bv = aU()
285- if ((bv == bv))
286- then if ((0 >= bu))
285+@Callable(bo)
286+func unstakeAcres (bv) = {
287+ let bw = aV()
288+ if ((bw == bw))
289+ then if ((0 >= bv))
287290 then throw("Amount should be positive")
288291 else {
289- let A = toString(bn.caller)
290- if ((size(bn.payments) != 0))
292+ let B = toString(bo.caller)
293+ if ((size(bo.payments) != 0))
291294 then throw("No payments required")
292295 else {
293- let bw = V(A)
294- let bx = c(A)
295- let by = valueOrElse(getInteger(bx), 0)
296- if ((bu > by))
297- then throw(((("You have only " + ay(by, 8)) + " ACRES staked, tried to unstake ") + ay(bu, 8)))
296+ let bx = W(B)
297+ let by = c(B)
298+ let bz = valueOrElse(getInteger(by), 0)
299+ if ((bv > bz))
300+ then throw(((("You have only " + az(bz, 8)) + " ACRES staked, tried to unstake ") + az(bv, 8)))
298301 else {
299- let bz = valueOrElse(getInteger(e(A)), 0)
300- let bA = valueOrElse(getInteger(f(A)), 0)
301- let bi = lastBlock.timestamp
302- if (if ((bi >= aO))
303- then (aP >= bi)
302+ let bA = valueOrElse(getInteger(e(B)), 0)
303+ let bB = valueOrElse(getInteger(f(B)), 0)
304+ let bj = lastBlock.timestamp
305+ if (if ((bj >= aP))
306+ then (aQ >= bj)
304307 else false)
305308 then throw("You cannot unstake ACRES during Promo2")
306309 else {
307- let bB = if (aT(A))
308- then ((by - bz) - aN)
309- else (by - bz)
310- if (if ((bA > bi))
311- then (bu > bB)
310+ let bC = if (aU(B))
311+ then ((bz - bA) - aO)
312+ else (bz - bA)
313+ if (if ((bB > bj))
314+ then (bv > bC)
312315 else false)
313- then throw(((("Only " + ay(bB, 8)) + " ACRES can be unstaked now, wait until ") + toString(bA)))
316+ then throw(((("Only " + az(bC, 8)) + " ACRES can be unstaked now, wait until ") + toString(bB)))
314317 else {
315- let bC = valueOrElse(getInteger(g), 0)
316- let bD = invoke(Q, "onStakeUnstakeLand", [A], nil)
317- let bE = bc(A, by, valueOrElse(getInteger(bw), 0))
318- $Tuple2([IntegerEntry(bw, lastBlock.timestamp), IntegerEntry(bx, (by - bu)), IntegerEntry(g, (bC - bu)), ScriptTransfer(bn.caller, (bu + bE), U)], $Tuple2(bv, bD))
318+ let bD = valueOrElse(getInteger(g), 0)
319+ let bE = invoke(R, "onStakeUnstakeLand", [B], nil)
320+ let bF = bd(B, bz, valueOrElse(getInteger(bx), 0))
321+ $Tuple2([IntegerEntry(bx, lastBlock.timestamp), IntegerEntry(by, (bz - bv)), IntegerEntry(g, (bD - bv)), ScriptTransfer(bo.caller, (bv + bF), V)], $Tuple2(bw, bE))
319322 }
320323 }
321324 }
322325 }
323326 }
324327 else throw("Strict value is not equal to itself.")
325328 }
326329
327330
328331
329-@Callable(bn)
332+@Callable(bo)
330333 func stakeAcres () = {
331- let bv = aU()
332- if ((bv == bv))
334+ let bw = aV()
335+ if ((bw == bw))
333336 then {
334- let A = toString(bn.caller)
335- if ((size(bn.payments) != 1))
337+ let B = toString(bo.caller)
338+ if ((size(bo.payments) != 1))
336339 then throw("exactly 1 payment must be attached")
337340 else {
338- let bF = bn.payments[0]
339- let bG = bF.amount
340- if (if (!(isDefined(bF.assetId)))
341+ let bG = bo.payments[0]
342+ let bH = bG.amount
343+ if (if (!(isDefined(bG.assetId)))
341344 then true
342- else (value(bF.assetId) != U))
345+ else (value(bG.assetId) != V))
343346 then throw("ACRES payments only!")
344347 else {
345- let bD = invoke(Q, "onStakeUnstakeLand", [A], nil)
346- if ((bD == bD))
348+ let bE = invoke(R, "onStakeUnstakeLand", [B], nil)
349+ if ((bE == bE))
347350 then {
348- let bi = lastBlock.timestamp
349- if (if ((aO > bi))
351+ let bj = lastBlock.timestamp
352+ if (if ((aP > bj))
350353 then true
351- else (bi > aP))
354+ else (bj > aQ))
352355 then {
353- let bw = V(A)
354- let bx = c(A)
355- let by = valueOrElse(getInteger(bx), 0)
356- let bC = valueOrElse(getInteger(g), 0)
357- let bE = bc(A, by, valueOrElse(getInteger(bw), 0))
358- $Tuple2(((((if ((bE == 0))
356+ let bx = W(B)
357+ let by = c(B)
358+ let bz = valueOrElse(getInteger(by), 0)
359+ let bD = valueOrElse(getInteger(g), 0)
360+ let bF = bd(B, bz, valueOrElse(getInteger(bx), 0))
361+ $Tuple2(((((if ((bF == 0))
359362 then nil
360- else [ScriptTransfer(bn.caller, bE, U)]) :+ IntegerEntry(bw, lastBlock.timestamp)) :+ IntegerEntry(bx, (by + bG))) :+ IntegerEntry(g, (bC + bG))), $Tuple2(bv, bD))
363+ else [ScriptTransfer(bo.caller, bF, V)]) :+ IntegerEntry(bx, lastBlock.timestamp)) :+ IntegerEntry(by, (bz + bH))) :+ IntegerEntry(g, (bD + bH))), $Tuple2(bw, bE))
361364 }
362- else if ((aL > bG))
363- then throw((("Min staked amount during promo action should be at least " + ay(aL, 8)) + " ACRES"))
365+ else if ((aM > bH))
366+ then throw((("Min staked amount during promo action should be at least " + az(aM, 8)) + " ACRES"))
364367 else {
365- let bH = invoke(this, "sendLockedAcres", [A, bG, 30], nil)
366- let bI = valueOrElse(getString(t), "")
367- let bJ = if (contains(bI, A))
368+ let bI = invoke(this, "sendLockedAcres", [B, bH, 30], nil)
369+ let bJ = valueOrElse(getString(t), "")
370+ let bK = if (contains(bJ, B))
368371 then {
369- let bK = split_51C(bI, A)
370- let be = parseIntValue(take(drop(bK[1], 1), 14))
371- ((((bK[0] + A) + ":") + aD((be + bG), 14)) + drop(bK[1], 15))
372+ let bL = split_51C(bJ, B)
373+ let bf = parseIntValue(take(drop(bL[1], 1), 14))
374+ ((((bL[0] + B) + ":") + aE((bf + bH), 14)) + drop(bL[1], 15))
372375 }
373376 else {
374- let bL = ((A + ":") + aD(bG, 14))
375- if ((bI == ""))
376- then bL
377- else ((bI + "_") + bL)
377+ let bM = ((B + ":") + aE(bH, 14))
378+ if ((bJ == ""))
379+ then bM
380+ else ((bJ + "_") + bM)
378381 }
379- $Tuple2([StringEntry(t, bJ)], $Tuple3(bv, bD, bH))
382+ $Tuple2([StringEntry(t, bK)], $Tuple3(bw, bE, bI))
380383 }
381384 }
382385 else throw("Strict value is not equal to itself.")
383386 }
384387 }
385388 }
386389 else throw("Strict value is not equal to itself.")
387390 }
388391
389392
390393
391-@Callable(bn)
394+@Callable(bo)
392395 func buyAcres () = {
393- let bv = aU()
394- if ((bv == bv))
396+ let bw = aV()
397+ if ((bw == bw))
395398 then {
396- let A = toString(bn.caller)
397- if ((size(bn.payments) != 1))
399+ let B = toString(bo.caller)
400+ if ((size(bo.payments) != 1))
398401 then throw("exactly 1 payment must be attached")
399402 else {
400- let bF = bn.payments[0]
401- let bG = bF.amount
402- if (if (!(isDefined(bF.assetId)))
403+ let bG = bo.payments[0]
404+ let bH = bG.amount
405+ if (if (!(isDefined(bG.assetId)))
403406 then true
404- else (value(bF.assetId) != q))
407+ else (value(bG.assetId) != q))
405408 then throw("USDT payments only!")
406- else if ((w > bG))
407- then throw((("Min payment should be " + ay(w, 6)) + " USDT"))
409+ else if ((x > bH))
410+ then throw((("Min payment should be " + az(x, 6)) + " USDT"))
408411 else {
409- let aW = (bG * j)
410- let bM = ac(invoke(O, "updateAccStats", [A, fraction(h, aW, (25 * x))], nil))
411- $Tuple2([ScriptTransfer(P, bG, q), ScriptTransfer(bn.caller, aW, U)], $Tuple2(bv, bM))
412+ let aX = (bH * j)
413+ let bN = ad(invoke(P, "updateAccStats", [B, fraction(h, aX, (25 * y))], nil))
414+ $Tuple2([ScriptTransfer(Q, bH, q), ScriptTransfer(bo.caller, aX, V)], $Tuple2(bw, bN))
412415 }
413416 }
414417 }
415418 else throw("Strict value is not equal to itself.")
416419 }
417420
418421
419422
420-@Callable(bn)
421-func sendAcres (d,bu) = if ((bn.caller != P))
423+@Callable(bo)
424+func sendAcres (d,bv) = if ((bo.caller != Q))
422425 then throw("Permission denied")
423- else $Tuple2([ScriptTransfer(addressFromStringValue(d), bu, U)], bu)
426+ else $Tuple2([ScriptTransfer(addressFromStringValue(d), bv, V)], bv)
424427
425428
426429
427-@Callable(bn)
428-func sendLockedAcres (d,bu,bN) = if (if ((bn.caller != this))
429- then (bn.caller != N)
430+@Callable(bo)
431+func sendLockedAcres (d,bv,bO) = if (if ((bo.caller != this))
432+ then (bo.caller != O)
430433 else false)
431434 then throw("Permission denied")
432435 else {
433- let bi = lastBlock.timestamp
434- let bw = V(d)
435- let bx = c(d)
436- let by = valueOrElse(getInteger(bx), 0)
437- let bC = valueOrElse(getInteger(g), 0)
438- let bO = if (isDefined(getInteger(bw)))
436+ let bj = lastBlock.timestamp
437+ let bx = W(d)
438+ let by = c(d)
439+ let bz = valueOrElse(getInteger(by), 0)
440+ let bD = valueOrElse(getInteger(g), 0)
441+ let bP = if (isDefined(getInteger(bx)))
439442 then nil
440- else [IntegerEntry(bw, bi)]
441- let bP = f(d)
442- let bQ = e(d)
443- let bR = valueOrElse(getInteger(bQ), 0)
444- let bS = valueOrElse(getInteger(bP), 0)
445- let bT = bd(bR, bS, bu, (bi + (bN * b)))
446- $Tuple2(((((bO :+ IntegerEntry(bx, (by + bu))) :+ IntegerEntry(g, (bC + bu))) :+ IntegerEntry(bP, bT)) :+ IntegerEntry(bQ, (bR + bu))), bu)
443+ else [IntegerEntry(bx, bj)]
444+ let bQ = f(d)
445+ let bR = e(d)
446+ let bS = valueOrElse(getInteger(bR), 0)
447+ let bT = valueOrElse(getInteger(bQ), 0)
448+ let bU = be(bS, bT, bv, (bj + (bO * b)))
449+ $Tuple2(((((bP :+ IntegerEntry(by, (bz + bv))) :+ IntegerEntry(g, (bD + bv))) :+ IntegerEntry(bQ, bU)) :+ IntegerEntry(bR, (bS + bv))), bv)
447450 }
448451
449452
450453
451-@Callable(bn)
452-func burnAcres (bu) = if ((bn.caller != O))
454+@Callable(bo)
455+func burnAcres (bv) = if ((bo.caller != P))
453456 then throw("Permission denied")
454457 else {
455- let bU = (valueOrElse(getInteger(S), 0) - bu)
456- if ((0 > bU))
458+ let bV = (valueOrElse(getInteger(T), 0) - bv)
459+ if ((0 > bV))
457460 then throw("Attempt to burn more ACRES, than exists")
458- else $Tuple2([Burn(U, bu), IntegerEntry(S, bU)], bu)
461+ else $Tuple2([Burn(V, bv), IntegerEntry(T, bV)], bv)
459462 }
460463
461464
462465
463-@Callable(bn)
466+@Callable(bo)
464467 func claimAcres () = {
465- let bv = aU()
466- if ((bv == bv))
468+ let bw = aV()
469+ if ((bw == bw))
467470 then {
468- let A = toString(bn.caller)
469- if ((size(bn.payments) != 0))
471+ let B = toString(bo.caller)
472+ if ((size(bo.payments) != 0))
470473 then throw("No payments required")
471474 else {
472- let bw = V(A)
473- let bx = c(A)
474- let aW = valueOrElse(getInteger(bx), 0)
475- let bD = invoke(Q, "onStakeUnstakeLand", [A], nil)
476- let bE = bc(A, aW, valueOrElse(getInteger(bw), 0))
477- $Tuple2([IntegerEntry(bw, lastBlock.timestamp), ScriptTransfer(bn.caller, bE, U)], $Tuple2(bv, bD))
475+ let bx = W(B)
476+ let by = c(B)
477+ let aX = valueOrElse(getInteger(by), 0)
478+ let bE = invoke(R, "onStakeUnstakeLand", [B], nil)
479+ let bF = bd(B, aX, valueOrElse(getInteger(bx), 0))
480+ $Tuple2([IntegerEntry(bx, lastBlock.timestamp), ScriptTransfer(bo.caller, bF, V)], $Tuple2(bw, bE))
478481 }
479482 }
480483 else throw("Strict value is not equal to itself.")
481484 }
482485
483486
484487
485-@Callable(bn)
486-func claimAcresREADONLY (A) = {
487- let bw = V(A)
488- let bx = c(A)
489- let aW = valueOrElse(getInteger(bx), 0)
490- let bV = valueOrElse(getInteger(bw), 0)
491- let bE = aV(A, aW, bV)
492- $Tuple2(nil, [bE, bV])
488+@Callable(bo)
489+func claimAcresREADONLY (B) = {
490+ let bx = W(B)
491+ let by = c(B)
492+ let aX = valueOrElse(getInteger(by), 0)
493+ let bW = valueOrElse(getInteger(bx), 0)
494+ let bF = aW(B, aX, bW)
495+ $Tuple2(nil, [bF, bW])
493496 }
494497
495498
496499
497-@Callable(bn)
500+@Callable(bo)
498501 func claimPromo2 () = {
499- let bv = aU()
500- if ((bv == bv))
502+ let bw = aV()
503+ if ((bw == bw))
501504 then {
502- let A = toString(bn.caller)
503- if ((size(bn.payments) != 0))
505+ let B = toString(bo.caller)
506+ if ((size(bo.payments) != 0))
504507 then throw("No payments required")
505508 else {
506- let bi = lastBlock.timestamp
507- if ((aP > bi))
509+ let bj = lastBlock.timestamp
510+ if ((aQ > bj))
508511 then throw("Promo 2 is not over yet")
509512 else {
510- let bW = k(2, A)
511- if (valueOrElse(getBoolean(bW), false))
512- then throw((("Your wallet " + A) + " is already awarded in promo 2"))
513+ let bX = k(2, B)
514+ if (valueOrElse(getBoolean(bX), false))
515+ then throw((("Your wallet " + B) + " is already awarded in promo 2"))
513516 else {
514- let bI = valueOrElse(getString(t), "")
515- if (!(contains(bI, A)))
517+ let bJ = valueOrElse(getString(t), "")
518+ if (!(contains(bJ, B)))
516519 then throw("You are not participant of promo 2")
517520 else {
518- let bK = split_51C(bI, A)
519- let aW = parseIntValue(take(drop(bK[1], 1), 14))
520- let bX = (aW / aL)
521- let bY = valueOrElse(getInteger(m(2)), 0)
522- let bZ = if ((bY == 0))
521+ let bL = split_51C(bJ, B)
522+ let aX = parseIntValue(take(drop(bL[1], 1), 14))
523+ let bY = (aX / aM)
524+ let bZ = valueOrElse(getInteger(m(2)), 0)
525+ let ca = if ((bZ == 0))
523526 then {
524- func ca (an,cb) = (an + (parseIntValue(split(cb, ":")[1]) / aL))
527+ func cb (ao,cc) = (ao + (parseIntValue(split(cc, ":")[1]) / aM))
525528
526- let cc = {
527- let aq = split_51C(bI, "_")
528- let ar = size(aq)
529- let as = 0
530- func at (au,av) = if ((av >= ar))
531- then au
532- else ca(au, aq[av])
529+ let cd = {
530+ let ar = split_51C(bJ, "_")
531+ let as = size(ar)
532+ let at = 0
533+ func au (av,aw) = if ((aw >= as))
534+ then av
535+ else cb(av, ar[aw])
533536
534- func aw (au,av) = if ((av >= ar))
535- then au
537+ func ax (av,aw) = if ((aw >= as))
538+ then av
536539 else throw("List size exceeds 50")
537540
538- aw(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(as, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50)
541+ ax(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(at, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50)
539542 }
540- $Tuple2([IntegerEntry(m(2), cc), IntegerEntry(n(2, 1), cc)], cc)
543+ $Tuple2([IntegerEntry(m(2), cd), IntegerEntry(n(2, 1), cd)], cd)
541544 }
542- else $Tuple2(nil, bY)
543- let cd = bZ._1
544- let ce = bZ._2
545- let cf = fraction(aQ, bX, ce)
546- let bH = invoke(this, "sendLockedAcres", [A, cf, 30], nil)
547- $Tuple2(((cd :+ BooleanEntry(bW, true)) :+ StringEntry(u(1), bI)), bH)
545+ else $Tuple2(nil, bZ)
546+ let ce = ca._1
547+ let cf = ca._2
548+ let cg = fraction(aR, bY, cf)
549+ let bI = invoke(this, "sendLockedAcres", [B, cg, 30], nil)
550+ $Tuple2(((ce :+ BooleanEntry(bX, true)) :+ StringEntry(u(1), bJ)), bI)
548551 }
549552 }
550553 }
551554 }
552555 }
553556 else throw("Strict value is not equal to itself.")
554557 }
555558
556559
557560
558-@Callable(bn)
559-func commitForPromo2Round (o) = if ((bn.caller != this))
561+@Callable(bo)
562+func initPromo3 (ch) = if ((bo.caller != this))
563+ then throw("Permission denied")
564+ else {
565+ func cb (ao,cc) = (ao + parseIntValue(split(cc, ":")[1]))
566+
567+ let ci = {
568+ let ar = split_51C(ch, "_")
569+ let as = size(ar)
570+ let at = 0
571+ func au (av,aw) = if ((aw >= as))
572+ then av
573+ else cb(av, ar[aw])
574+
575+ func ax (av,aw) = if ((aw >= as))
576+ then av
577+ else throw("List size exceeds 20")
578+
579+ ax(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(at, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20)
580+ }
581+ $Tuple2([IntegerEntry(n(3, 1), ci), StringEntry(v(1), ch)], ci)
582+ }
583+
584+
585+
586+@Callable(bo)
587+func commitForPromo3Round (o) = if ((bo.caller != this))
560588 then throw("Permission denied")
561589 else if (if ((1 > o))
562590 then true
563- else (o > 4))
591+ else (o > 2))
564592 then throw(("Invalid roundId: " + toString(o)))
565593 else {
566- let cg = (height + X)
567- $Tuple2([IntegerEntry(Y(("2_" + toString(o))), cg)], cg)
594+ let cj = (height + Y)
595+ $Tuple2([IntegerEntry(Z(("3_" + toString(o))), cj)], cj)
568596 }
569597
570598
571599
572-@Callable(bn)
573-func drawPromo2Round (o) = if ((bn.caller != this))
600+@Callable(bo)
601+func drawPromo3Round (o) = if ((bo.caller != this))
574602 then throw("Permission denied")
575603 else if (if ((1 > o))
576604 then true
577- else (o > 4))
605+ else (o > 2))
578606 then throw(("Invalid roundId: " + toString(o)))
579607 else {
580- let ch = Y(("2_" + toString(o)))
581- let cg = valueOrErrorMessage(getInteger(ch), (("You have to commitForPromo2Round(" + toString(o)) + ") first!"))
582- if ((cg > height))
583- then throw((((("Random number is not ready yet, wait until height = " + toString(cg)) + " (current height = ") + toString(height)) + ")"))
608+ let ck = Z(("3_" + toString(o)))
609+ let cj = valueOrErrorMessage(getInteger(ck), (("You have to commitForPromo3Round(" + toString(o)) + ") first!"))
610+ if ((cj > height))
611+ then throw((((("Random number is not ready yet, wait until height = " + toString(cj)) + " (current height = ") + toString(height)) + ")"))
584612 else {
585- let aH = valueOrElse(getInteger(n(2, o)), 0)
586- if ((aH == 0))
587- then throw("No tickets to draw (was claimPromo2() called at least once?)")
613+ let aI = valueOrElse(getInteger(n(3, o)), 0)
614+ if ((aI == 0))
615+ then throw("No tickets to draw")
588616 else {
589- let aJ = value(value(blockInfoByHeight(cg)).vrf)
590- let aI = bn.transactionId
591- let bI = valueOrElse(getString(u(o)), "")
592- func ci (cj,ck) = if ((ck >= aR[(o - 1)]))
593- then cj
617+ let aK = value(value(blockInfoByHeight(cj)).vrf)
618+ let aJ = bo.transactionId
619+ let ch = valueOrElse(getString(v(o)), "")
620+ func cl (cm,cn) = if ((cn >= aS[(o - 1)]))
621+ then cm
594622 else {
595- let cl = aG(cj._1, cj._2, aJ)
596- let cm = if ((cj._3 == ""))
623+ let co = aH(cm._1, cm._2, aK)
624+ let cp = if ((cm._3 == ""))
597625 then nil
598- else split_51C(cj._3, "_")
599- func ca (an,cb) = {
600- let bK = split(cb, ":")
601- let d = bK[0]
602- let bX = (parseIntValue(bK[1]) / aL)
603- let cn = (an._1 + bX)
604- if (if ((an._3 == ""))
605- then (cn > cl)
626+ else split_51C(cm._3, "_")
627+ func cb (ao,cc) = {
628+ let bL = split(cc, ":")
629+ let d = bL[0]
630+ let bY = parseIntValue(bL[1])
631+ let cq = (ao._1 + bY)
632+ if (if ((ao._3 == ""))
633+ then (cq > co)
606634 else false)
607- then $Tuple3(cn, bX, d)
608- else $Tuple3(cn, an._2, an._3)
635+ then $Tuple3(cq, bY, d)
636+ else $Tuple3(cq, ao._2, ao._3)
609637 }
610638
611- let co = {
612- let aq = cm
613- let ar = size(aq)
614- let as = $Tuple3(0, 0, "")
615- func at (au,av) = if ((av >= ar))
616- then au
617- else ca(au, aq[av])
639+ let cr = {
640+ let ar = cp
641+ let as = size(ar)
642+ let at = $Tuple3(0, 0, "")
643+ func au (av,aw) = if ((aw >= as))
644+ then av
645+ else cb(av, ar[aw])
618646
619- func aw (au,av) = if ((av >= ar))
620- then au
621- else throw("List size exceeds 50")
647+ func ax (av,aw) = if ((aw >= as))
648+ then av
649+ else throw("List size exceeds 20")
622650
623- aw(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(as, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50)
651+ ax(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(au(at, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20)
624652 }
625- let cp = co._3
626- if ((cp == ""))
627- then cj
653+ let cs = cr._3
654+ if ((cs == ""))
655+ then cm
628656 else {
629- let cq = split_51C(cj._3, cp)
630- let cr = if ((cq[0] == ""))
631- then drop(cq[1], 16)
632- else (dropRight(cq[0], 1) + drop(cq[1], 15))
633- let bH = invoke(this, "sendLockedAcres", [cp, aS[(o - 1)], 30], nil)
634- $Tuple4((cj._1 - co._2), fromBase58String(getStringValue(O, ai(cp))), cr, (cj._4 :+ bH))
657+ let ct = split_51C(cm._3, cs)
658+ let cu = if ((ct[0] == ""))
659+ then drop(ct[1], 4)
660+ else (dropRight(ct[0], 1) + drop(ct[1], 3))
661+ let bI = invoke(this, "sendLockedAcres", [cs, aT[(o - 1)], 30], nil)
662+ let cv = fromBase58String(valueOrElse(getString(P, aj(cs)), "DEFAULT"))
663+ $Tuple4((cm._1 - cr._2), cv, cu, (cm._4 :+ bI))
635664 }
636665 }
637666
638- let cs = {
639- let aq = y
640- let ar = size(aq)
641- let as = $Tuple4(aH, bn.transactionId, bI, nil)
642- func at (au,av) = if ((av >= ar))
643- then au
644- else ci(au, aq[av])
667+ let cw = {
668+ let ar = z
669+ let as = size(ar)
670+ let at = $Tuple4(aI, bo.transactionId, ch, nil)
671+ func au (av,aw) = if ((aw >= as))
672+ then av
673+ else cl(av, ar[aw])
645674
646- func aw (au,av) = if ((av >= ar))
647- then au
648- else throw("List size exceeds 20")
675+ func ax (av,aw) = if ((aw >= as))
676+ then av
677+ else throw("List size exceeds 6")
649678
650- aw(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(as, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20)
679+ ax(au(au(au(au(au(au(at, 0), 1), 2), 3), 4), 5), 6)
651680 }
652- $Tuple2([DeleteEntry(ch), StringEntry(u((o + 1)), cs._3), IntegerEntry(n(2, (o + 1)), cs._1)], cs._4)
681+ $Tuple2([DeleteEntry(ck), StringEntry(v((o + 1)), cw._3), IntegerEntry(n(3, (o + 1)), cw._1)], cw._4)
653682 }
654683 }
655684 }
656685
657686

github/deemru/w8io/169f3d6 
274.79 ms