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:BgI7CAISBAoCCAESAwoBARIAEgASBAoCCAESBQoDCAEBEgMKAQESABIDCgEIEgASAwoBCBIDCgEBEgMKAQFCAAhNSUxMSU9ONgCAgOmDsd4WAAlEQVlNSUxMSVMAgLiZKQEaa2V5QWNyZXNTdGFrZWRBbW91bnRCeVVzZXIBBGFkZHIJAKwCAgIYYWNyZXNTdGFrZWRBbW91bnRCeVVzZXJfBQRhZGRyARprZXlBY3Jlc0xvY2tlZEFtb3VudEJ5VXNlcgEEYWRkcgkArAICAhhhY3Jlc0xvY2tlZEFtb3VudEJ5VXNlcl8FBGFkZHIBF2tleUFjcmVzTG9ja2VkRXRhQnlVc2VyAQRhZGRyCQCsAgICFWFjcmVzTG9ja2VkRXRhQnlVc2VyXwUEYWRkcgATYWNyZXNTdGFrZWRUb3RhbEtleQIWYWNyZXNTdGFrZWRBbW91bnRUb3RhbAAKeHBOZXdTTGFuZADAlrECAA9EQUlMWVJFU0JZUElFQ0UAgPjSAQAVVVNEVDJBQ1JFU19NVUxUSVBMSUVSAAoBGmtleUlzQXdhcmRlZEJ5UHJvbW9BbmRVc2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50cnkCCQEea2V5VGlja2V0c1RvdGFsQnlQcm9tb0FuZFJvdW5kAgADCQBkAgUHcm91bmRJZAABCAUFZHJhd3MCXzEFA25pbAgFBWRyYXdzAl80ABq2ZMs=", "height": 2890971, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: KDZbuaYuM5yQNSeet7Nq97R8X9KckCCFTc8fBaf6Nv1 Next: B7rSLVnk7Tbfvz5SN81iVfcCjqekinxBH9Ydt7E7EkEp Diff:
Old | New | Differences | |
---|---|---|---|
56 | 56 | func u (o) = ("promo2MapForRound__" + toString(o)) | |
57 | 57 | ||
58 | 58 | ||
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)) | |
68 | 60 | ||
69 | 61 | ||
70 | - | let | |
62 | + | let w = "__" | |
71 | 63 | ||
72 | - | let | |
64 | + | let x = 1000000 | |
73 | 65 | ||
74 | - | let | |
66 | + | let y = 100000000 | |
75 | 67 | ||
76 | - | let | |
68 | + | let z = [0, 1, 2, 3, 4, 5] | |
77 | 69 | ||
78 | - | func | |
70 | + | func A (B,C) = valueOrErrorMessage(getString(B, C), makeString(["mandatory ", toString(B), ".", C, " is not defined"], "")) | |
79 | 71 | ||
80 | 72 | ||
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" | |
82 | 82 | ||
83 | 83 | ||
84 | - | func I ( | |
84 | + | func I () = "%s__restAddr" | |
85 | 85 | ||
86 | 86 | ||
87 | - | func | |
87 | + | func J (K) = split_4C(A(K, H()), w) | |
88 | 88 | ||
89 | 89 | ||
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))) | |
109 | 91 | ||
110 | 92 | ||
111 | - | let | |
93 | + | let O = addressFromStringValue(valueOrElse(getString(this, I()), s)) | |
112 | 94 | ||
113 | - | let | |
95 | + | let M = J(O) | |
114 | 96 | ||
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) | |
116 | 112 | ||
117 | 113 | ||
118 | - | func Z () = "resTypesProportions" | |
114 | + | let X = 0 | |
115 | + | ||
116 | + | let Y = 2 | |
117 | + | ||
118 | + | func Z (B) = ("finishBlockFor_" + B) | |
119 | 119 | ||
120 | 120 | ||
121 | - | func aa ( | |
121 | + | func aa () = "resTypesProportions" | |
122 | 122 | ||
123 | 123 | ||
124 | - | func ac (ad) = { | |
125 | - | let r = ad | |
124 | + | func ab (ac) = ("stakedPiecesByOwner_" + ac) | |
125 | + | ||
126 | + | ||
127 | + | func ad (ae) = { | |
128 | + | let r = ae | |
126 | 129 | if ($isInstanceOf(r, "Int")) | |
127 | 130 | then { | |
128 | - | let | |
129 | - | | |
131 | + | let af = r | |
132 | + | af | |
130 | 133 | } | |
131 | 134 | else throw("fail to cast into Int") | |
132 | 135 | } | |
133 | 136 | ||
134 | 137 | ||
135 | - | func | |
136 | - | let r = | |
138 | + | func ag (ah) = { | |
139 | + | let r = ah | |
137 | 140 | if ($isInstanceOf(r, "(Int, Int)")) | |
138 | 141 | then { | |
139 | - | let | |
140 | - | | |
142 | + | let ai = r | |
143 | + | ai | |
141 | 144 | } | |
142 | 145 | else throw("fail to cast into (Int, Int)") | |
143 | 146 | } | |
144 | 147 | ||
145 | 148 | ||
146 | - | func | |
149 | + | func aj (d) = ("lastTxIdByUser_" + d) | |
147 | 150 | ||
148 | 151 | ||
149 | - | func | |
150 | - | let | |
151 | - | func | |
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)) | |
152 | 155 | ||
153 | - | let | |
154 | - | let | |
155 | - | let | |
156 | - | let | |
157 | - | func | |
158 | - | then | |
159 | - | else | |
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]) | |
160 | 163 | ||
161 | - | func | |
162 | - | then | |
164 | + | func ax (av,aw) = if ((aw >= as)) | |
165 | + | then av | |
163 | 166 | else throw("List size exceeds 6") | |
164 | 167 | ||
165 | - | | |
168 | + | ax(au(au(au(au(au(au(at, 0), 1), 2), 3), 4), 5), 6) | |
166 | 169 | } | |
167 | - | let | |
168 | - | [ | |
170 | + | let ay = valueOrElse(getInteger(P, ab(al)), 0) | |
171 | + | [aq, ay] | |
169 | 172 | } | |
170 | 173 | ||
171 | 174 | ||
172 | - | func | |
173 | - | let | |
174 | - | let | |
175 | - | let | |
176 | - | (((toString(( | |
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) | |
177 | 180 | } | |
178 | 181 | ||
179 | 182 | ||
180 | - | func | |
181 | - | let | |
182 | - | let | |
183 | - | ( | |
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) | |
184 | 187 | } | |
185 | 188 | ||
186 | 189 | ||
187 | - | func | |
190 | + | func aH (aI,aJ,aK) = if ((0 >= aI)) | |
188 | 191 | then throw("maxValue should be > 0") | |
189 | 192 | else { | |
190 | - | let | |
191 | - | (toInt( | |
193 | + | let aL = sha256((aJ + aK)) | |
194 | + | (toInt(aL) % aI) | |
192 | 195 | } | |
193 | 196 | ||
194 | 197 | ||
195 | - | let | |
198 | + | let aM = 10000000 | |
196 | 199 | ||
197 | - | let | |
200 | + | let aN = "3P2NGX4Q5nge1MCauwQW5aqYLdkccSGj1Ep_3P2xFAHW9yhyNohYozWd4HFhEXZu3bsNSoR_3P2yKaZ2gvn9Xe5tti81a7P9LZhHgjvToV9_3P37zQ3cf2ecu55RmJqEiGSivdzN9avt3m9_3P4az6dtzsvGCWFAxa94UdevKzXyEwxEiFG_3P4kZU6X3TTLFcSUe55JSy8BySqitcPgMBz_3P5hCxBEh3NgNizZhNBreyBSqtbhJYLkKPD_3P7HLvucy11yxyMJUwjzXFHHKMEDwi1EwfC_3P8JuaqH9PTQAv8D5HBGgQfKauLTYt2NQft_3P9gTDB4rtDEVbpX3asU63H4Zinh2EnTmZE_3P9iN3qrtfJicUVy7amZeVsetVD3vUMk8be_3PCa2BsAa6JBLirszQfV5r9fJrujfhwtwfP_3PD3i4XN8KtygcFx4ry5M7UGqdfH8VYvtRT_3PDEMnnJNc2kx9cPEmvVvhXUr8SvhANKhsa_3PDGE9tKQizaeZFeDDq5aYSv89nwYbfirpZ_3PDMKQTCrUPZECVXEJJ8m1sHtutSu1naSf1_3PGh2Qu6Yvx8GTCRRVNvBUVZLdaidYSaxo5_3PKkmAtbSK5D2hQdo1RfEg8eXyMbDcRUc92_3PLMnbxzssP8W8E8XjJ1RLBBg8UZL8Cz3P2_3PMuxo4PCAox9s4a7R1eszh4iqqu8gS7jHv_3PNrMtEQChw87WZU1JAJ7aGHykCa8TjnDNK_3PPuBXfWoBy3EEory7c7vgi9Usjka7o5tBj_3PQwyeyEhT4Y6aGAL6tg73aQWJtV1zRt3nR_3PRGDShuMGb84MJtTJvtTg8qDfswkYWcm3e" | |
198 | 201 | ||
199 | - | let | |
202 | + | let aO = 4970178 | |
200 | 203 | ||
201 | - | let | |
204 | + | let aP = { | |
202 | 205 | let r = p | |
203 | 206 | if ((base58'2W' == r)) | |
204 | 207 | then 1700524800000 | |
207 | 210 | else throw("Unknown chain") | |
208 | 211 | } | |
209 | 212 | ||
210 | - | let | |
213 | + | let aQ = { | |
211 | 214 | let r = p | |
212 | 215 | if ((base58'2W' == r)) | |
213 | 216 | then 1701043199999 | |
216 | 219 | else throw("Unknown chain") | |
217 | 220 | } | |
218 | 221 | ||
219 | - | let | |
222 | + | let aR = 1000000000 | |
220 | 223 | ||
221 | - | let | |
224 | + | let aS = [1, 5] | |
222 | 225 | ||
223 | - | let | |
226 | + | let aT = [500000000, 100000000] | |
224 | 227 | ||
225 | - | func | |
228 | + | func aU (d) = contains(aN, d) | |
226 | 229 | ||
227 | 230 | ||
228 | - | func | |
231 | + | func aV () = ad(reentrantInvoke(P, "saveLastTx", nil, nil)) | |
229 | 232 | ||
230 | 233 | ||
231 | - | func | |
232 | - | let | |
233 | - | let | |
234 | - | let | |
235 | - | let | |
236 | - | ( | |
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) | |
237 | 240 | } | |
238 | 241 | ||
239 | 242 | ||
240 | - | func | |
241 | - | let | |
242 | - | if ((0 > | |
243 | - | then throw(((("Saved timestamp is in future, saved = " + toString( | |
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))) | |
244 | 247 | else { | |
245 | - | let | |
246 | - | let | |
247 | - | let | |
248 | + | let ba = fraction(aZ, (i * aX), (b * y)) | |
249 | + | let bb = ad(invoke(Q, "sellResourcesWorldREADONLY", [ba], nil)) | |
250 | + | let bc = if ((0 >= bb)) | |
248 | 251 | then 0 | |
249 | - | else | |
250 | - | ( | |
252 | + | else ag(invoke(Q, "sellResourcesWorld", [d, ba], nil))._1 | |
253 | + | (bc * j) | |
251 | 254 | } | |
252 | 255 | } | |
253 | 256 | ||
254 | 257 | ||
255 | - | func | |
256 | - | let | |
257 | - | let | |
258 | - | let | |
259 | - | let | |
260 | - | let | |
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)) | |
261 | 264 | then 0 | |
262 | - | else (fraction( | |
263 | - | ( | |
265 | + | else (fraction(bk, bf, bm) + fraction(bl, bh, bm)) | |
266 | + | (bj + bn) | |
264 | 267 | } | |
265 | 268 | ||
266 | 269 | ||
267 | - | @Callable( | |
268 | - | func constructorV1 ( | |
270 | + | @Callable(bo) | |
271 | + | func constructorV1 (bp,bq) = if ((bo.caller != this)) | |
269 | 272 | then throw("Permission denied") | |
270 | - | else if (isDefined(getBinary( | |
273 | + | else if (isDefined(getBinary(U))) | |
271 | 274 | then throw("Already initialized") | |
272 | 275 | else { | |
273 | - | let | |
274 | - | let | |
275 | - | let | |
276 | - | let | |
277 | - | [ | |
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)] | |
278 | 281 | } | |
279 | 282 | ||
280 | 283 | ||
281 | 284 | ||
282 | - | @Callable( | |
283 | - | func unstakeAcres ( | |
284 | - | let | |
285 | - | if (( | |
286 | - | then if ((0 >= | |
285 | + | @Callable(bo) | |
286 | + | func unstakeAcres (bv) = { | |
287 | + | let bw = aV() | |
288 | + | if ((bw == bw)) | |
289 | + | then if ((0 >= bv)) | |
287 | 290 | then throw("Amount should be positive") | |
288 | 291 | else { | |
289 | - | let | |
290 | - | if ((size( | |
292 | + | let B = toString(bo.caller) | |
293 | + | if ((size(bo.payments) != 0)) | |
291 | 294 | then throw("No payments required") | |
292 | 295 | else { | |
293 | - | let | |
294 | - | let | |
295 | - | let | |
296 | - | if (( | |
297 | - | then throw(((("You have only " + | |
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))) | |
298 | 301 | else { | |
299 | - | let | |
300 | - | let | |
301 | - | let | |
302 | - | if (if (( | |
303 | - | then ( | |
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) | |
304 | 307 | else false) | |
305 | 308 | then throw("You cannot unstake ACRES during Promo2") | |
306 | 309 | else { | |
307 | - | let | |
308 | - | then (( | |
309 | - | else ( | |
310 | - | if (if (( | |
311 | - | then ( | |
310 | + | let bC = if (aU(B)) | |
311 | + | then ((bz - bA) - aO) | |
312 | + | else (bz - bA) | |
313 | + | if (if ((bB > bj)) | |
314 | + | then (bv > bC) | |
312 | 315 | else false) | |
313 | - | then throw(((("Only " + | |
316 | + | then throw(((("Only " + az(bC, 8)) + " ACRES can be unstaked now, wait until ") + toString(bB))) | |
314 | 317 | else { | |
315 | - | let | |
316 | - | let | |
317 | - | let | |
318 | - | $Tuple2([IntegerEntry( | |
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)) | |
319 | 322 | } | |
320 | 323 | } | |
321 | 324 | } | |
326 | 329 | ||
327 | 330 | ||
328 | 331 | ||
329 | - | @Callable( | |
332 | + | @Callable(bo) | |
330 | 333 | func stakeAcres () = { | |
331 | - | let | |
332 | - | if (( | |
334 | + | let bw = aV() | |
335 | + | if ((bw == bw)) | |
333 | 336 | then { | |
334 | - | let | |
335 | - | if ((size( | |
337 | + | let B = toString(bo.caller) | |
338 | + | if ((size(bo.payments) != 1)) | |
336 | 339 | then throw("exactly 1 payment must be attached") | |
337 | 340 | else { | |
338 | - | let | |
339 | - | let | |
340 | - | if (if (!(isDefined( | |
341 | + | let bG = bo.payments[0] | |
342 | + | let bH = bG.amount | |
343 | + | if (if (!(isDefined(bG.assetId))) | |
341 | 344 | then true | |
342 | - | else (value( | |
345 | + | else (value(bG.assetId) != V)) | |
343 | 346 | then throw("ACRES payments only!") | |
344 | 347 | else { | |
345 | - | let | |
346 | - | if (( | |
348 | + | let bE = invoke(R, "onStakeUnstakeLand", [B], nil) | |
349 | + | if ((bE == bE)) | |
347 | 350 | then { | |
348 | - | let | |
349 | - | if (if (( | |
351 | + | let bj = lastBlock.timestamp | |
352 | + | if (if ((aP > bj)) | |
350 | 353 | then true | |
351 | - | else ( | |
354 | + | else (bj > aQ)) | |
352 | 355 | then { | |
353 | - | let | |
354 | - | let | |
355 | - | let | |
356 | - | let | |
357 | - | let | |
358 | - | $Tuple2(((((if (( | |
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)) | |
359 | 362 | then nil | |
360 | - | else [ScriptTransfer( | |
363 | + | else [ScriptTransfer(bo.caller, bF, V)]) :+ IntegerEntry(bx, lastBlock.timestamp)) :+ IntegerEntry(by, (bz + bH))) :+ IntegerEntry(g, (bD + bH))), $Tuple2(bw, bE)) | |
361 | 364 | } | |
362 | - | else if (( | |
363 | - | then throw((("Min staked amount during promo action should be at least " + | |
365 | + | else if ((aM > bH)) | |
366 | + | then throw((("Min staked amount during promo action should be at least " + az(aM, 8)) + " ACRES")) | |
364 | 367 | else { | |
365 | - | let | |
366 | - | let | |
367 | - | let | |
368 | + | let bI = invoke(this, "sendLockedAcres", [B, bH, 30], nil) | |
369 | + | let bJ = valueOrElse(getString(t), "") | |
370 | + | let bK = if (contains(bJ, B)) | |
368 | 371 | then { | |
369 | - | let | |
370 | - | let | |
371 | - | (((( | |
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)) | |
372 | 375 | } | |
373 | 376 | else { | |
374 | - | let | |
375 | - | if (( | |
376 | - | then | |
377 | - | else (( | |
377 | + | let bM = ((B + ":") + aE(bH, 14)) | |
378 | + | if ((bJ == "")) | |
379 | + | then bM | |
380 | + | else ((bJ + "_") + bM) | |
378 | 381 | } | |
379 | - | $Tuple2([StringEntry(t, | |
382 | + | $Tuple2([StringEntry(t, bK)], $Tuple3(bw, bE, bI)) | |
380 | 383 | } | |
381 | 384 | } | |
382 | 385 | else throw("Strict value is not equal to itself.") | |
388 | 391 | ||
389 | 392 | ||
390 | 393 | ||
391 | - | @Callable( | |
394 | + | @Callable(bo) | |
392 | 395 | func buyAcres () = { | |
393 | - | let | |
394 | - | if (( | |
396 | + | let bw = aV() | |
397 | + | if ((bw == bw)) | |
395 | 398 | then { | |
396 | - | let | |
397 | - | if ((size( | |
399 | + | let B = toString(bo.caller) | |
400 | + | if ((size(bo.payments) != 1)) | |
398 | 401 | then throw("exactly 1 payment must be attached") | |
399 | 402 | else { | |
400 | - | let | |
401 | - | let | |
402 | - | if (if (!(isDefined( | |
403 | + | let bG = bo.payments[0] | |
404 | + | let bH = bG.amount | |
405 | + | if (if (!(isDefined(bG.assetId))) | |
403 | 406 | then true | |
404 | - | else (value( | |
407 | + | else (value(bG.assetId) != q)) | |
405 | 408 | then throw("USDT payments only!") | |
406 | - | else if (( | |
407 | - | then throw((("Min payment should be " + | |
409 | + | else if ((x > bH)) | |
410 | + | then throw((("Min payment should be " + az(x, 6)) + " USDT")) | |
408 | 411 | else { | |
409 | - | let | |
410 | - | let | |
411 | - | $Tuple2([ScriptTransfer( | |
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)) | |
412 | 415 | } | |
413 | 416 | } | |
414 | 417 | } | |
417 | 420 | ||
418 | 421 | ||
419 | 422 | ||
420 | - | @Callable( | |
421 | - | func sendAcres (d, | |
423 | + | @Callable(bo) | |
424 | + | func sendAcres (d,bv) = if ((bo.caller != Q)) | |
422 | 425 | then throw("Permission denied") | |
423 | - | else $Tuple2([ScriptTransfer(addressFromStringValue(d), | |
426 | + | else $Tuple2([ScriptTransfer(addressFromStringValue(d), bv, V)], bv) | |
424 | 427 | ||
425 | 428 | ||
426 | 429 | ||
427 | - | @Callable( | |
428 | - | func sendLockedAcres (d, | |
429 | - | then ( | |
430 | + | @Callable(bo) | |
431 | + | func sendLockedAcres (d,bv,bO) = if (if ((bo.caller != this)) | |
432 | + | then (bo.caller != O) | |
430 | 433 | else false) | |
431 | 434 | then throw("Permission denied") | |
432 | 435 | else { | |
433 | - | let | |
434 | - | let | |
435 | - | let | |
436 | - | let | |
437 | - | let | |
438 | - | let | |
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))) | |
439 | 442 | then nil | |
440 | - | else [IntegerEntry( | |
441 | - | let | |
442 | - | let | |
443 | - | let | |
444 | - | let | |
445 | - | let | |
446 | - | $Tuple2((((( | |
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) | |
447 | 450 | } | |
448 | 451 | ||
449 | 452 | ||
450 | 453 | ||
451 | - | @Callable( | |
452 | - | func burnAcres ( | |
454 | + | @Callable(bo) | |
455 | + | func burnAcres (bv) = if ((bo.caller != P)) | |
453 | 456 | then throw("Permission denied") | |
454 | 457 | else { | |
455 | - | let | |
456 | - | if ((0 > | |
458 | + | let bV = (valueOrElse(getInteger(T), 0) - bv) | |
459 | + | if ((0 > bV)) | |
457 | 460 | then throw("Attempt to burn more ACRES, than exists") | |
458 | - | else $Tuple2([Burn( | |
461 | + | else $Tuple2([Burn(V, bv), IntegerEntry(T, bV)], bv) | |
459 | 462 | } | |
460 | 463 | ||
461 | 464 | ||
462 | 465 | ||
463 | - | @Callable( | |
466 | + | @Callable(bo) | |
464 | 467 | func claimAcres () = { | |
465 | - | let | |
466 | - | if (( | |
468 | + | let bw = aV() | |
469 | + | if ((bw == bw)) | |
467 | 470 | then { | |
468 | - | let | |
469 | - | if ((size( | |
471 | + | let B = toString(bo.caller) | |
472 | + | if ((size(bo.payments) != 0)) | |
470 | 473 | then throw("No payments required") | |
471 | 474 | else { | |
472 | - | let | |
473 | - | let | |
474 | - | let | |
475 | - | let | |
476 | - | let | |
477 | - | $Tuple2([IntegerEntry( | |
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)) | |
478 | 481 | } | |
479 | 482 | } | |
480 | 483 | else throw("Strict value is not equal to itself.") | |
482 | 485 | ||
483 | 486 | ||
484 | 487 | ||
485 | - | @Callable( | |
486 | - | func claimAcresREADONLY ( | |
487 | - | let | |
488 | - | let | |
489 | - | let | |
490 | - | let | |
491 | - | let | |
492 | - | $Tuple2(nil, [ | |
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]) | |
493 | 496 | } | |
494 | 497 | ||
495 | 498 | ||
496 | 499 | ||
497 | - | @Callable( | |
500 | + | @Callable(bo) | |
498 | 501 | func claimPromo2 () = { | |
499 | - | let | |
500 | - | if (( | |
502 | + | let bw = aV() | |
503 | + | if ((bw == bw)) | |
501 | 504 | then { | |
502 | - | let | |
503 | - | if ((size( | |
505 | + | let B = toString(bo.caller) | |
506 | + | if ((size(bo.payments) != 0)) | |
504 | 507 | then throw("No payments required") | |
505 | 508 | else { | |
506 | - | let | |
507 | - | if (( | |
509 | + | let bj = lastBlock.timestamp | |
510 | + | if ((aQ > bj)) | |
508 | 511 | then throw("Promo 2 is not over yet") | |
509 | 512 | else { | |
510 | - | let | |
511 | - | if (valueOrElse(getBoolean( | |
512 | - | then throw((("Your wallet " + | |
513 | + | let bX = k(2, B) | |
514 | + | if (valueOrElse(getBoolean(bX), false)) | |
515 | + | then throw((("Your wallet " + B) + " is already awarded in promo 2")) | |
513 | 516 | else { | |
514 | - | let | |
515 | - | if (!(contains( | |
517 | + | let bJ = valueOrElse(getString(t), "") | |
518 | + | if (!(contains(bJ, B))) | |
516 | 519 | then throw("You are not participant of promo 2") | |
517 | 520 | else { | |
518 | - | let | |
519 | - | let | |
520 | - | let | |
521 | - | let | |
522 | - | let | |
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)) | |
523 | 526 | then { | |
524 | - | func | |
527 | + | func cb (ao,cc) = (ao + (parseIntValue(split(cc, ":")[1]) / aM)) | |
525 | 528 | ||
526 | - | let | |
527 | - | let | |
528 | - | let | |
529 | - | let | |
530 | - | func | |
531 | - | then | |
532 | - | else | |
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]) | |
533 | 536 | ||
534 | - | func | |
535 | - | then | |
537 | + | func ax (av,aw) = if ((aw >= as)) | |
538 | + | then av | |
536 | 539 | else throw("List size exceeds 50") | |
537 | 540 | ||
538 | - | | |
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) | |
539 | 542 | } | |
540 | - | $Tuple2([IntegerEntry(m(2), | |
543 | + | $Tuple2([IntegerEntry(m(2), cd), IntegerEntry(n(2, 1), cd)], cd) | |
541 | 544 | } | |
542 | - | else $Tuple2(nil, | |
543 | - | let | |
544 | - | let | |
545 | - | let | |
546 | - | let | |
547 | - | $Tuple2((( | |
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) | |
548 | 551 | } | |
549 | 552 | } | |
550 | 553 | } | |
555 | 558 | ||
556 | 559 | ||
557 | 560 | ||
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)) | |
560 | 588 | then throw("Permission denied") | |
561 | 589 | else if (if ((1 > o)) | |
562 | 590 | then true | |
563 | - | else (o > | |
591 | + | else (o > 2)) | |
564 | 592 | then throw(("Invalid roundId: " + toString(o))) | |
565 | 593 | else { | |
566 | - | let | |
567 | - | $Tuple2([IntegerEntry( | |
594 | + | let cj = (height + Y) | |
595 | + | $Tuple2([IntegerEntry(Z(("3_" + toString(o))), cj)], cj) | |
568 | 596 | } | |
569 | 597 | ||
570 | 598 | ||
571 | 599 | ||
572 | - | @Callable( | |
573 | - | func | |
600 | + | @Callable(bo) | |
601 | + | func drawPromo3Round (o) = if ((bo.caller != this)) | |
574 | 602 | then throw("Permission denied") | |
575 | 603 | else if (if ((1 > o)) | |
576 | 604 | then true | |
577 | - | else (o > | |
605 | + | else (o > 2)) | |
578 | 606 | then throw(("Invalid roundId: " + toString(o))) | |
579 | 607 | else { | |
580 | - | let | |
581 | - | let | |
582 | - | if (( | |
583 | - | then throw((((("Random number is not ready yet, wait until height = " + toString( | |
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)) + ")")) | |
584 | 612 | else { | |
585 | - | let | |
586 | - | if (( | |
587 | - | then throw("No tickets to draw | |
613 | + | let aI = valueOrElse(getInteger(n(3, o)), 0) | |
614 | + | if ((aI == 0)) | |
615 | + | then throw("No tickets to draw") | |
588 | 616 | else { | |
589 | - | let | |
590 | - | let | |
591 | - | let | |
592 | - | func | |
593 | - | then | |
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 | |
594 | 622 | else { | |
595 | - | let | |
596 | - | let | |
623 | + | let co = aH(cm._1, cm._2, aK) | |
624 | + | let cp = if ((cm._3 == "")) | |
597 | 625 | then nil | |
598 | - | else split_51C( | |
599 | - | func | |
600 | - | let | |
601 | - | let d = | |
602 | - | let | |
603 | - | let | |
604 | - | if (if (( | |
605 | - | then ( | |
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) | |
606 | 634 | else false) | |
607 | - | then $Tuple3( | |
608 | - | else $Tuple3( | |
635 | + | then $Tuple3(cq, bY, d) | |
636 | + | else $Tuple3(cq, ao._2, ao._3) | |
609 | 637 | } | |
610 | 638 | ||
611 | - | let | |
612 | - | let | |
613 | - | let | |
614 | - | let | |
615 | - | func | |
616 | - | then | |
617 | - | else | |
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]) | |
618 | 646 | ||
619 | - | func | |
620 | - | then | |
621 | - | else throw("List size exceeds | |
647 | + | func ax (av,aw) = if ((aw >= as)) | |
648 | + | then av | |
649 | + | else throw("List size exceeds 20") | |
622 | 650 | ||
623 | - | | |
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) | |
624 | 652 | } | |
625 | - | let | |
626 | - | if (( | |
627 | - | then | |
653 | + | let cs = cr._3 | |
654 | + | if ((cs == "")) | |
655 | + | then cm | |
628 | 656 | 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)) | |
635 | 664 | } | |
636 | 665 | } | |
637 | 666 | ||
638 | - | let | |
639 | - | let | |
640 | - | let | |
641 | - | let | |
642 | - | func | |
643 | - | then | |
644 | - | else | |
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]) | |
645 | 674 | ||
646 | - | func | |
647 | - | then | |
648 | - | else throw("List size exceeds | |
675 | + | func ax (av,aw) = if ((aw >= as)) | |
676 | + | then av | |
677 | + | else throw("List size exceeds 6") | |
649 | 678 | ||
650 | - | | |
679 | + | ax(au(au(au(au(au(au(at, 0), 1), 2), 3), 4), 5), 6) | |
651 | 680 | } | |
652 | - | $Tuple2([DeleteEntry( | |
681 | + | $Tuple2([DeleteEntry(ck), StringEntry(v((o + 1)), cw._3), IntegerEntry(n(3, (o + 1)), cw._1)], cw._4) | |
653 | 682 | } | |
654 | 683 | } | |
655 | 684 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 100000000000000 | |
5 | 5 | ||
6 | 6 | let b = 86400000 | |
7 | 7 | ||
8 | 8 | func c (d) = ("acresStakedAmountByUser_" + d) | |
9 | 9 | ||
10 | 10 | ||
11 | 11 | func e (d) = ("acresLockedAmountByUser_" + d) | |
12 | 12 | ||
13 | 13 | ||
14 | 14 | func f (d) = ("acresLockedEtaByUser_" + d) | |
15 | 15 | ||
16 | 16 | ||
17 | 17 | let g = "acresStakedAmountTotal" | |
18 | 18 | ||
19 | 19 | let h = 5000000 | |
20 | 20 | ||
21 | 21 | let i = 3456000 | |
22 | 22 | ||
23 | 23 | let j = 10 | |
24 | 24 | ||
25 | 25 | func k (l,d) = makeString(["%s%d%s__isAwardedByPromoAndUser", toString(l), d], "__") | |
26 | 26 | ||
27 | 27 | ||
28 | 28 | func m (l) = ("%s%d__ticketsTotalByPromo__" + toString(l)) | |
29 | 29 | ||
30 | 30 | ||
31 | 31 | func n (l,o) = makeString(["%s%d%d__ticketsTotalByPromoAndRound", toString(l), toString(o)], "__") | |
32 | 32 | ||
33 | 33 | ||
34 | 34 | let p = take(drop(this.bytes, 1), 1) | |
35 | 35 | ||
36 | 36 | let q = { | |
37 | 37 | let r = p | |
38 | 38 | if ((base58'2W' == r)) | |
39 | 39 | then base58'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi' | |
40 | 40 | else if ((base58'2T' == r)) | |
41 | 41 | then base58'6mWwf9mZBjVgkC54idpyaZLQfAosD914wT8fGf2iiY63' | |
42 | 42 | else throw("Unknown chain") | |
43 | 43 | } | |
44 | 44 | ||
45 | 45 | let s = { | |
46 | 46 | let r = p | |
47 | 47 | if ((base58'2W' == r)) | |
48 | 48 | then "3PQCuvFbvh4LkPUnrnU1z3jnbA1p9m3WNhv" | |
49 | 49 | else if ((base58'2T' == r)) | |
50 | 50 | then "3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy" | |
51 | 51 | else throw("Unknown chain") | |
52 | 52 | } | |
53 | 53 | ||
54 | 54 | let t = "promo2Map" | |
55 | 55 | ||
56 | 56 | func u (o) = ("promo2MapForRound__" + toString(o)) | |
57 | 57 | ||
58 | 58 | ||
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)) | |
68 | 60 | ||
69 | 61 | ||
70 | - | let | |
62 | + | let w = "__" | |
71 | 63 | ||
72 | - | let | |
64 | + | let x = 1000000 | |
73 | 65 | ||
74 | - | let | |
66 | + | let y = 100000000 | |
75 | 67 | ||
76 | - | let | |
68 | + | let z = [0, 1, 2, 3, 4, 5] | |
77 | 69 | ||
78 | - | func | |
70 | + | func A (B,C) = valueOrErrorMessage(getString(B, C), makeString(["mandatory ", toString(B), ".", C, " is not defined"], "")) | |
79 | 71 | ||
80 | 72 | ||
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" | |
82 | 82 | ||
83 | 83 | ||
84 | - | func I ( | |
84 | + | func I () = "%s__restAddr" | |
85 | 85 | ||
86 | 86 | ||
87 | - | func | |
87 | + | func J (K) = split_4C(A(K, H()), w) | |
88 | 88 | ||
89 | 89 | ||
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))) | |
109 | 91 | ||
110 | 92 | ||
111 | - | let | |
93 | + | let O = addressFromStringValue(valueOrElse(getString(this, I()), s)) | |
112 | 94 | ||
113 | - | let | |
95 | + | let M = J(O) | |
114 | 96 | ||
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) | |
116 | 112 | ||
117 | 113 | ||
118 | - | func Z () = "resTypesProportions" | |
114 | + | let X = 0 | |
115 | + | ||
116 | + | let Y = 2 | |
117 | + | ||
118 | + | func Z (B) = ("finishBlockFor_" + B) | |
119 | 119 | ||
120 | 120 | ||
121 | - | func aa ( | |
121 | + | func aa () = "resTypesProportions" | |
122 | 122 | ||
123 | 123 | ||
124 | - | func ac (ad) = { | |
125 | - | let r = ad | |
124 | + | func ab (ac) = ("stakedPiecesByOwner_" + ac) | |
125 | + | ||
126 | + | ||
127 | + | func ad (ae) = { | |
128 | + | let r = ae | |
126 | 129 | if ($isInstanceOf(r, "Int")) | |
127 | 130 | then { | |
128 | - | let | |
129 | - | | |
131 | + | let af = r | |
132 | + | af | |
130 | 133 | } | |
131 | 134 | else throw("fail to cast into Int") | |
132 | 135 | } | |
133 | 136 | ||
134 | 137 | ||
135 | - | func | |
136 | - | let r = | |
138 | + | func ag (ah) = { | |
139 | + | let r = ah | |
137 | 140 | if ($isInstanceOf(r, "(Int, Int)")) | |
138 | 141 | then { | |
139 | - | let | |
140 | - | | |
142 | + | let ai = r | |
143 | + | ai | |
141 | 144 | } | |
142 | 145 | else throw("fail to cast into (Int, Int)") | |
143 | 146 | } | |
144 | 147 | ||
145 | 148 | ||
146 | - | func | |
149 | + | func aj (d) = ("lastTxIdByUser_" + d) | |
147 | 150 | ||
148 | 151 | ||
149 | - | func | |
150 | - | let | |
151 | - | func | |
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)) | |
152 | 155 | ||
153 | - | let | |
154 | - | let | |
155 | - | let | |
156 | - | let | |
157 | - | func | |
158 | - | then | |
159 | - | else | |
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]) | |
160 | 163 | ||
161 | - | func | |
162 | - | then | |
164 | + | func ax (av,aw) = if ((aw >= as)) | |
165 | + | then av | |
163 | 166 | else throw("List size exceeds 6") | |
164 | 167 | ||
165 | - | | |
168 | + | ax(au(au(au(au(au(au(at, 0), 1), 2), 3), 4), 5), 6) | |
166 | 169 | } | |
167 | - | let | |
168 | - | [ | |
170 | + | let ay = valueOrElse(getInteger(P, ab(al)), 0) | |
171 | + | [aq, ay] | |
169 | 172 | } | |
170 | 173 | ||
171 | 174 | ||
172 | - | func | |
173 | - | let | |
174 | - | let | |
175 | - | let | |
176 | - | (((toString(( | |
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) | |
177 | 180 | } | |
178 | 181 | ||
179 | 182 | ||
180 | - | func | |
181 | - | let | |
182 | - | let | |
183 | - | ( | |
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) | |
184 | 187 | } | |
185 | 188 | ||
186 | 189 | ||
187 | - | func | |
190 | + | func aH (aI,aJ,aK) = if ((0 >= aI)) | |
188 | 191 | then throw("maxValue should be > 0") | |
189 | 192 | else { | |
190 | - | let | |
191 | - | (toInt( | |
193 | + | let aL = sha256((aJ + aK)) | |
194 | + | (toInt(aL) % aI) | |
192 | 195 | } | |
193 | 196 | ||
194 | 197 | ||
195 | - | let | |
198 | + | let aM = 10000000 | |
196 | 199 | ||
197 | - | let | |
200 | + | let aN = "3P2NGX4Q5nge1MCauwQW5aqYLdkccSGj1Ep_3P2xFAHW9yhyNohYozWd4HFhEXZu3bsNSoR_3P2yKaZ2gvn9Xe5tti81a7P9LZhHgjvToV9_3P37zQ3cf2ecu55RmJqEiGSivdzN9avt3m9_3P4az6dtzsvGCWFAxa94UdevKzXyEwxEiFG_3P4kZU6X3TTLFcSUe55JSy8BySqitcPgMBz_3P5hCxBEh3NgNizZhNBreyBSqtbhJYLkKPD_3P7HLvucy11yxyMJUwjzXFHHKMEDwi1EwfC_3P8JuaqH9PTQAv8D5HBGgQfKauLTYt2NQft_3P9gTDB4rtDEVbpX3asU63H4Zinh2EnTmZE_3P9iN3qrtfJicUVy7amZeVsetVD3vUMk8be_3PCa2BsAa6JBLirszQfV5r9fJrujfhwtwfP_3PD3i4XN8KtygcFx4ry5M7UGqdfH8VYvtRT_3PDEMnnJNc2kx9cPEmvVvhXUr8SvhANKhsa_3PDGE9tKQizaeZFeDDq5aYSv89nwYbfirpZ_3PDMKQTCrUPZECVXEJJ8m1sHtutSu1naSf1_3PGh2Qu6Yvx8GTCRRVNvBUVZLdaidYSaxo5_3PKkmAtbSK5D2hQdo1RfEg8eXyMbDcRUc92_3PLMnbxzssP8W8E8XjJ1RLBBg8UZL8Cz3P2_3PMuxo4PCAox9s4a7R1eszh4iqqu8gS7jHv_3PNrMtEQChw87WZU1JAJ7aGHykCa8TjnDNK_3PPuBXfWoBy3EEory7c7vgi9Usjka7o5tBj_3PQwyeyEhT4Y6aGAL6tg73aQWJtV1zRt3nR_3PRGDShuMGb84MJtTJvtTg8qDfswkYWcm3e" | |
198 | 201 | ||
199 | - | let | |
202 | + | let aO = 4970178 | |
200 | 203 | ||
201 | - | let | |
204 | + | let aP = { | |
202 | 205 | let r = p | |
203 | 206 | if ((base58'2W' == r)) | |
204 | 207 | then 1700524800000 | |
205 | 208 | else if ((base58'2T' == r)) | |
206 | 209 | then 1700420400000 | |
207 | 210 | else throw("Unknown chain") | |
208 | 211 | } | |
209 | 212 | ||
210 | - | let | |
213 | + | let aQ = { | |
211 | 214 | let r = p | |
212 | 215 | if ((base58'2W' == r)) | |
213 | 216 | then 1701043199999 | |
214 | 217 | else if ((base58'2T' == r)) | |
215 | 218 | then 1700496000000 | |
216 | 219 | else throw("Unknown chain") | |
217 | 220 | } | |
218 | 221 | ||
219 | - | let | |
222 | + | let aR = 1000000000 | |
220 | 223 | ||
221 | - | let | |
224 | + | let aS = [1, 5] | |
222 | 225 | ||
223 | - | let | |
226 | + | let aT = [500000000, 100000000] | |
224 | 227 | ||
225 | - | func | |
228 | + | func aU (d) = contains(aN, d) | |
226 | 229 | ||
227 | 230 | ||
228 | - | func | |
231 | + | func aV () = ad(reentrantInvoke(P, "saveLastTx", nil, nil)) | |
229 | 232 | ||
230 | 233 | ||
231 | - | func | |
232 | - | let | |
233 | - | let | |
234 | - | let | |
235 | - | let | |
236 | - | ( | |
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) | |
237 | 240 | } | |
238 | 241 | ||
239 | 242 | ||
240 | - | func | |
241 | - | let | |
242 | - | if ((0 > | |
243 | - | then throw(((("Saved timestamp is in future, saved = " + toString( | |
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))) | |
244 | 247 | else { | |
245 | - | let | |
246 | - | let | |
247 | - | let | |
248 | + | let ba = fraction(aZ, (i * aX), (b * y)) | |
249 | + | let bb = ad(invoke(Q, "sellResourcesWorldREADONLY", [ba], nil)) | |
250 | + | let bc = if ((0 >= bb)) | |
248 | 251 | then 0 | |
249 | - | else | |
250 | - | ( | |
252 | + | else ag(invoke(Q, "sellResourcesWorld", [d, ba], nil))._1 | |
253 | + | (bc * j) | |
251 | 254 | } | |
252 | 255 | } | |
253 | 256 | ||
254 | 257 | ||
255 | - | func | |
256 | - | let | |
257 | - | let | |
258 | - | let | |
259 | - | let | |
260 | - | let | |
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)) | |
261 | 264 | then 0 | |
262 | - | else (fraction( | |
263 | - | ( | |
265 | + | else (fraction(bk, bf, bm) + fraction(bl, bh, bm)) | |
266 | + | (bj + bn) | |
264 | 267 | } | |
265 | 268 | ||
266 | 269 | ||
267 | - | @Callable( | |
268 | - | func constructorV1 ( | |
270 | + | @Callable(bo) | |
271 | + | func constructorV1 (bp,bq) = if ((bo.caller != this)) | |
269 | 272 | then throw("Permission denied") | |
270 | - | else if (isDefined(getBinary( | |
273 | + | else if (isDefined(getBinary(U))) | |
271 | 274 | then throw("Already initialized") | |
272 | 275 | else { | |
273 | - | let | |
274 | - | let | |
275 | - | let | |
276 | - | let | |
277 | - | [ | |
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)] | |
278 | 281 | } | |
279 | 282 | ||
280 | 283 | ||
281 | 284 | ||
282 | - | @Callable( | |
283 | - | func unstakeAcres ( | |
284 | - | let | |
285 | - | if (( | |
286 | - | then if ((0 >= | |
285 | + | @Callable(bo) | |
286 | + | func unstakeAcres (bv) = { | |
287 | + | let bw = aV() | |
288 | + | if ((bw == bw)) | |
289 | + | then if ((0 >= bv)) | |
287 | 290 | then throw("Amount should be positive") | |
288 | 291 | else { | |
289 | - | let | |
290 | - | if ((size( | |
292 | + | let B = toString(bo.caller) | |
293 | + | if ((size(bo.payments) != 0)) | |
291 | 294 | then throw("No payments required") | |
292 | 295 | else { | |
293 | - | let | |
294 | - | let | |
295 | - | let | |
296 | - | if (( | |
297 | - | then throw(((("You have only " + | |
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))) | |
298 | 301 | else { | |
299 | - | let | |
300 | - | let | |
301 | - | let | |
302 | - | if (if (( | |
303 | - | then ( | |
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) | |
304 | 307 | else false) | |
305 | 308 | then throw("You cannot unstake ACRES during Promo2") | |
306 | 309 | else { | |
307 | - | let | |
308 | - | then (( | |
309 | - | else ( | |
310 | - | if (if (( | |
311 | - | then ( | |
310 | + | let bC = if (aU(B)) | |
311 | + | then ((bz - bA) - aO) | |
312 | + | else (bz - bA) | |
313 | + | if (if ((bB > bj)) | |
314 | + | then (bv > bC) | |
312 | 315 | else false) | |
313 | - | then throw(((("Only " + | |
316 | + | then throw(((("Only " + az(bC, 8)) + " ACRES can be unstaked now, wait until ") + toString(bB))) | |
314 | 317 | else { | |
315 | - | let | |
316 | - | let | |
317 | - | let | |
318 | - | $Tuple2([IntegerEntry( | |
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)) | |
319 | 322 | } | |
320 | 323 | } | |
321 | 324 | } | |
322 | 325 | } | |
323 | 326 | } | |
324 | 327 | else throw("Strict value is not equal to itself.") | |
325 | 328 | } | |
326 | 329 | ||
327 | 330 | ||
328 | 331 | ||
329 | - | @Callable( | |
332 | + | @Callable(bo) | |
330 | 333 | func stakeAcres () = { | |
331 | - | let | |
332 | - | if (( | |
334 | + | let bw = aV() | |
335 | + | if ((bw == bw)) | |
333 | 336 | then { | |
334 | - | let | |
335 | - | if ((size( | |
337 | + | let B = toString(bo.caller) | |
338 | + | if ((size(bo.payments) != 1)) | |
336 | 339 | then throw("exactly 1 payment must be attached") | |
337 | 340 | else { | |
338 | - | let | |
339 | - | let | |
340 | - | if (if (!(isDefined( | |
341 | + | let bG = bo.payments[0] | |
342 | + | let bH = bG.amount | |
343 | + | if (if (!(isDefined(bG.assetId))) | |
341 | 344 | then true | |
342 | - | else (value( | |
345 | + | else (value(bG.assetId) != V)) | |
343 | 346 | then throw("ACRES payments only!") | |
344 | 347 | else { | |
345 | - | let | |
346 | - | if (( | |
348 | + | let bE = invoke(R, "onStakeUnstakeLand", [B], nil) | |
349 | + | if ((bE == bE)) | |
347 | 350 | then { | |
348 | - | let | |
349 | - | if (if (( | |
351 | + | let bj = lastBlock.timestamp | |
352 | + | if (if ((aP > bj)) | |
350 | 353 | then true | |
351 | - | else ( | |
354 | + | else (bj > aQ)) | |
352 | 355 | then { | |
353 | - | let | |
354 | - | let | |
355 | - | let | |
356 | - | let | |
357 | - | let | |
358 | - | $Tuple2(((((if (( | |
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)) | |
359 | 362 | then nil | |
360 | - | else [ScriptTransfer( | |
363 | + | else [ScriptTransfer(bo.caller, bF, V)]) :+ IntegerEntry(bx, lastBlock.timestamp)) :+ IntegerEntry(by, (bz + bH))) :+ IntegerEntry(g, (bD + bH))), $Tuple2(bw, bE)) | |
361 | 364 | } | |
362 | - | else if (( | |
363 | - | then throw((("Min staked amount during promo action should be at least " + | |
365 | + | else if ((aM > bH)) | |
366 | + | then throw((("Min staked amount during promo action should be at least " + az(aM, 8)) + " ACRES")) | |
364 | 367 | else { | |
365 | - | let | |
366 | - | let | |
367 | - | let | |
368 | + | let bI = invoke(this, "sendLockedAcres", [B, bH, 30], nil) | |
369 | + | let bJ = valueOrElse(getString(t), "") | |
370 | + | let bK = if (contains(bJ, B)) | |
368 | 371 | then { | |
369 | - | let | |
370 | - | let | |
371 | - | (((( | |
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)) | |
372 | 375 | } | |
373 | 376 | else { | |
374 | - | let | |
375 | - | if (( | |
376 | - | then | |
377 | - | else (( | |
377 | + | let bM = ((B + ":") + aE(bH, 14)) | |
378 | + | if ((bJ == "")) | |
379 | + | then bM | |
380 | + | else ((bJ + "_") + bM) | |
378 | 381 | } | |
379 | - | $Tuple2([StringEntry(t, | |
382 | + | $Tuple2([StringEntry(t, bK)], $Tuple3(bw, bE, bI)) | |
380 | 383 | } | |
381 | 384 | } | |
382 | 385 | else throw("Strict value is not equal to itself.") | |
383 | 386 | } | |
384 | 387 | } | |
385 | 388 | } | |
386 | 389 | else throw("Strict value is not equal to itself.") | |
387 | 390 | } | |
388 | 391 | ||
389 | 392 | ||
390 | 393 | ||
391 | - | @Callable( | |
394 | + | @Callable(bo) | |
392 | 395 | func buyAcres () = { | |
393 | - | let | |
394 | - | if (( | |
396 | + | let bw = aV() | |
397 | + | if ((bw == bw)) | |
395 | 398 | then { | |
396 | - | let | |
397 | - | if ((size( | |
399 | + | let B = toString(bo.caller) | |
400 | + | if ((size(bo.payments) != 1)) | |
398 | 401 | then throw("exactly 1 payment must be attached") | |
399 | 402 | else { | |
400 | - | let | |
401 | - | let | |
402 | - | if (if (!(isDefined( | |
403 | + | let bG = bo.payments[0] | |
404 | + | let bH = bG.amount | |
405 | + | if (if (!(isDefined(bG.assetId))) | |
403 | 406 | then true | |
404 | - | else (value( | |
407 | + | else (value(bG.assetId) != q)) | |
405 | 408 | then throw("USDT payments only!") | |
406 | - | else if (( | |
407 | - | then throw((("Min payment should be " + | |
409 | + | else if ((x > bH)) | |
410 | + | then throw((("Min payment should be " + az(x, 6)) + " USDT")) | |
408 | 411 | else { | |
409 | - | let | |
410 | - | let | |
411 | - | $Tuple2([ScriptTransfer( | |
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)) | |
412 | 415 | } | |
413 | 416 | } | |
414 | 417 | } | |
415 | 418 | else throw("Strict value is not equal to itself.") | |
416 | 419 | } | |
417 | 420 | ||
418 | 421 | ||
419 | 422 | ||
420 | - | @Callable( | |
421 | - | func sendAcres (d, | |
423 | + | @Callable(bo) | |
424 | + | func sendAcres (d,bv) = if ((bo.caller != Q)) | |
422 | 425 | then throw("Permission denied") | |
423 | - | else $Tuple2([ScriptTransfer(addressFromStringValue(d), | |
426 | + | else $Tuple2([ScriptTransfer(addressFromStringValue(d), bv, V)], bv) | |
424 | 427 | ||
425 | 428 | ||
426 | 429 | ||
427 | - | @Callable( | |
428 | - | func sendLockedAcres (d, | |
429 | - | then ( | |
430 | + | @Callable(bo) | |
431 | + | func sendLockedAcres (d,bv,bO) = if (if ((bo.caller != this)) | |
432 | + | then (bo.caller != O) | |
430 | 433 | else false) | |
431 | 434 | then throw("Permission denied") | |
432 | 435 | else { | |
433 | - | let | |
434 | - | let | |
435 | - | let | |
436 | - | let | |
437 | - | let | |
438 | - | let | |
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))) | |
439 | 442 | then nil | |
440 | - | else [IntegerEntry( | |
441 | - | let | |
442 | - | let | |
443 | - | let | |
444 | - | let | |
445 | - | let | |
446 | - | $Tuple2((((( | |
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) | |
447 | 450 | } | |
448 | 451 | ||
449 | 452 | ||
450 | 453 | ||
451 | - | @Callable( | |
452 | - | func burnAcres ( | |
454 | + | @Callable(bo) | |
455 | + | func burnAcres (bv) = if ((bo.caller != P)) | |
453 | 456 | then throw("Permission denied") | |
454 | 457 | else { | |
455 | - | let | |
456 | - | if ((0 > | |
458 | + | let bV = (valueOrElse(getInteger(T), 0) - bv) | |
459 | + | if ((0 > bV)) | |
457 | 460 | then throw("Attempt to burn more ACRES, than exists") | |
458 | - | else $Tuple2([Burn( | |
461 | + | else $Tuple2([Burn(V, bv), IntegerEntry(T, bV)], bv) | |
459 | 462 | } | |
460 | 463 | ||
461 | 464 | ||
462 | 465 | ||
463 | - | @Callable( | |
466 | + | @Callable(bo) | |
464 | 467 | func claimAcres () = { | |
465 | - | let | |
466 | - | if (( | |
468 | + | let bw = aV() | |
469 | + | if ((bw == bw)) | |
467 | 470 | then { | |
468 | - | let | |
469 | - | if ((size( | |
471 | + | let B = toString(bo.caller) | |
472 | + | if ((size(bo.payments) != 0)) | |
470 | 473 | then throw("No payments required") | |
471 | 474 | else { | |
472 | - | let | |
473 | - | let | |
474 | - | let | |
475 | - | let | |
476 | - | let | |
477 | - | $Tuple2([IntegerEntry( | |
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)) | |
478 | 481 | } | |
479 | 482 | } | |
480 | 483 | else throw("Strict value is not equal to itself.") | |
481 | 484 | } | |
482 | 485 | ||
483 | 486 | ||
484 | 487 | ||
485 | - | @Callable( | |
486 | - | func claimAcresREADONLY ( | |
487 | - | let | |
488 | - | let | |
489 | - | let | |
490 | - | let | |
491 | - | let | |
492 | - | $Tuple2(nil, [ | |
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]) | |
493 | 496 | } | |
494 | 497 | ||
495 | 498 | ||
496 | 499 | ||
497 | - | @Callable( | |
500 | + | @Callable(bo) | |
498 | 501 | func claimPromo2 () = { | |
499 | - | let | |
500 | - | if (( | |
502 | + | let bw = aV() | |
503 | + | if ((bw == bw)) | |
501 | 504 | then { | |
502 | - | let | |
503 | - | if ((size( | |
505 | + | let B = toString(bo.caller) | |
506 | + | if ((size(bo.payments) != 0)) | |
504 | 507 | then throw("No payments required") | |
505 | 508 | else { | |
506 | - | let | |
507 | - | if (( | |
509 | + | let bj = lastBlock.timestamp | |
510 | + | if ((aQ > bj)) | |
508 | 511 | then throw("Promo 2 is not over yet") | |
509 | 512 | else { | |
510 | - | let | |
511 | - | if (valueOrElse(getBoolean( | |
512 | - | then throw((("Your wallet " + | |
513 | + | let bX = k(2, B) | |
514 | + | if (valueOrElse(getBoolean(bX), false)) | |
515 | + | then throw((("Your wallet " + B) + " is already awarded in promo 2")) | |
513 | 516 | else { | |
514 | - | let | |
515 | - | if (!(contains( | |
517 | + | let bJ = valueOrElse(getString(t), "") | |
518 | + | if (!(contains(bJ, B))) | |
516 | 519 | then throw("You are not participant of promo 2") | |
517 | 520 | else { | |
518 | - | let | |
519 | - | let | |
520 | - | let | |
521 | - | let | |
522 | - | let | |
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)) | |
523 | 526 | then { | |
524 | - | func | |
527 | + | func cb (ao,cc) = (ao + (parseIntValue(split(cc, ":")[1]) / aM)) | |
525 | 528 | ||
526 | - | let | |
527 | - | let | |
528 | - | let | |
529 | - | let | |
530 | - | func | |
531 | - | then | |
532 | - | else | |
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]) | |
533 | 536 | ||
534 | - | func | |
535 | - | then | |
537 | + | func ax (av,aw) = if ((aw >= as)) | |
538 | + | then av | |
536 | 539 | else throw("List size exceeds 50") | |
537 | 540 | ||
538 | - | | |
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) | |
539 | 542 | } | |
540 | - | $Tuple2([IntegerEntry(m(2), | |
543 | + | $Tuple2([IntegerEntry(m(2), cd), IntegerEntry(n(2, 1), cd)], cd) | |
541 | 544 | } | |
542 | - | else $Tuple2(nil, | |
543 | - | let | |
544 | - | let | |
545 | - | let | |
546 | - | let | |
547 | - | $Tuple2((( | |
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) | |
548 | 551 | } | |
549 | 552 | } | |
550 | 553 | } | |
551 | 554 | } | |
552 | 555 | } | |
553 | 556 | else throw("Strict value is not equal to itself.") | |
554 | 557 | } | |
555 | 558 | ||
556 | 559 | ||
557 | 560 | ||
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)) | |
560 | 588 | then throw("Permission denied") | |
561 | 589 | else if (if ((1 > o)) | |
562 | 590 | then true | |
563 | - | else (o > | |
591 | + | else (o > 2)) | |
564 | 592 | then throw(("Invalid roundId: " + toString(o))) | |
565 | 593 | else { | |
566 | - | let | |
567 | - | $Tuple2([IntegerEntry( | |
594 | + | let cj = (height + Y) | |
595 | + | $Tuple2([IntegerEntry(Z(("3_" + toString(o))), cj)], cj) | |
568 | 596 | } | |
569 | 597 | ||
570 | 598 | ||
571 | 599 | ||
572 | - | @Callable( | |
573 | - | func | |
600 | + | @Callable(bo) | |
601 | + | func drawPromo3Round (o) = if ((bo.caller != this)) | |
574 | 602 | then throw("Permission denied") | |
575 | 603 | else if (if ((1 > o)) | |
576 | 604 | then true | |
577 | - | else (o > | |
605 | + | else (o > 2)) | |
578 | 606 | then throw(("Invalid roundId: " + toString(o))) | |
579 | 607 | else { | |
580 | - | let | |
581 | - | let | |
582 | - | if (( | |
583 | - | then throw((((("Random number is not ready yet, wait until height = " + toString( | |
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)) + ")")) | |
584 | 612 | else { | |
585 | - | let | |
586 | - | if (( | |
587 | - | then throw("No tickets to draw | |
613 | + | let aI = valueOrElse(getInteger(n(3, o)), 0) | |
614 | + | if ((aI == 0)) | |
615 | + | then throw("No tickets to draw") | |
588 | 616 | else { | |
589 | - | let | |
590 | - | let | |
591 | - | let | |
592 | - | func | |
593 | - | then | |
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 | |
594 | 622 | else { | |
595 | - | let | |
596 | - | let | |
623 | + | let co = aH(cm._1, cm._2, aK) | |
624 | + | let cp = if ((cm._3 == "")) | |
597 | 625 | then nil | |
598 | - | else split_51C( | |
599 | - | func | |
600 | - | let | |
601 | - | let d = | |
602 | - | let | |
603 | - | let | |
604 | - | if (if (( | |
605 | - | then ( | |
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) | |
606 | 634 | else false) | |
607 | - | then $Tuple3( | |
608 | - | else $Tuple3( | |
635 | + | then $Tuple3(cq, bY, d) | |
636 | + | else $Tuple3(cq, ao._2, ao._3) | |
609 | 637 | } | |
610 | 638 | ||
611 | - | let | |
612 | - | let | |
613 | - | let | |
614 | - | let | |
615 | - | func | |
616 | - | then | |
617 | - | else | |
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]) | |
618 | 646 | ||
619 | - | func | |
620 | - | then | |
621 | - | else throw("List size exceeds | |
647 | + | func ax (av,aw) = if ((aw >= as)) | |
648 | + | then av | |
649 | + | else throw("List size exceeds 20") | |
622 | 650 | ||
623 | - | | |
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) | |
624 | 652 | } | |
625 | - | let | |
626 | - | if (( | |
627 | - | then | |
653 | + | let cs = cr._3 | |
654 | + | if ((cs == "")) | |
655 | + | then cm | |
628 | 656 | 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)) | |
635 | 664 | } | |
636 | 665 | } | |
637 | 666 | ||
638 | - | let | |
639 | - | let | |
640 | - | let | |
641 | - | let | |
642 | - | func | |
643 | - | then | |
644 | - | else | |
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]) | |
645 | 674 | ||
646 | - | func | |
647 | - | then | |
648 | - | else throw("List size exceeds | |
675 | + | func ax (av,aw) = if ((aw >= as)) | |
676 | + | then av | |
677 | + | else throw("List size exceeds 6") | |
649 | 678 | ||
650 | - | | |
679 | + | ax(au(au(au(au(au(au(at, 0), 1), 2), 3), 4), 5), 6) | |
651 | 680 | } | |
652 | - | $Tuple2([DeleteEntry( | |
681 | + | $Tuple2([DeleteEntry(ck), StringEntry(v((o + 1)), cw._3), IntegerEntry(n(3, (o + 1)), cw._1)], cw._4) | |
653 | 682 | } | |
654 | 683 | } | |
655 | 684 | } | |
656 | 685 | ||
657 | 686 |
github/deemru/w8io/169f3d6 274.79 ms ◑