tx · 3rSTnyXJaMwa8kjU9ftu4g8L9VgB6cd8xrQYj6cGFUkt 3NBPx1Fciu3JQNEGZ21jSnTdutLNGGBUSXh: -0.03800000 Waves 2024.12.14 00:37 [3413355] smart account 3NBPx1Fciu3JQNEGZ21jSnTdutLNGGBUSXh > SELF 0.00000000 Waves
{ "type": 13, "id": "3rSTnyXJaMwa8kjU9ftu4g8L9VgB6cd8xrQYj6cGFUkt", "fee": 3800000, "feeAssetId": null, "timestamp": 1734125873080, "version": 2, "chainId": 84, "sender": "3NBPx1Fciu3JQNEGZ21jSnTdutLNGGBUSXh", "senderPublicKey": "3QtfC1XbLZXdeawMDeSERy9vvjUmj1XYd2GFmrvx7pWQ", "proofs": [ "2cxgTMa1sZix75LE8WydDEBhCsiccJxPFgiPBzfaxBYo21MstvN8eGaye9jpP7gNJJ5dqsvxXqHxA95ajXG6XVhn" ], "script": "base64:BgJLCAISABIECgIICBIDCgEEEgMKAQESABIAEgMKAQESABIECgIIARIAEgMKAQgSAwoBCBIECgIIARIDCgEIEgASAwoBCBIAEgASABIAjAEAA1NFUAICX18ABU1VTFQ2AMCEPQAFTVVMVDcAgK3iBAAFTVVMVDgAgMLXLwAGTVVMVDE0AICA6YOx3hYACkRBWV9NSUxMSVMAgLiZKQAVVVNEVDJBQ1JFU19NVUxUSVBMSUVSAAoAE09ORV9QRVJDRU5UX0RJVklTT1IAZAAMUkFORE9NX0RFTEFZAAIAFE5GVF9DSEVTVF9QUklDRV9VU0RUAMCWsQIABWNoYWluCQDJAQIJAMoBAggFBHRoaXMFYnl0ZXMAAQABABdEQUlMWV9QUk9NT19TVEFSVF9CTE9DSwQHJG1hdGNoMAUFY2hhaW4DCQAAAgEBVwUHJG1hdGNoMACA75ECAwkAAAIBAVQFByRtYXRjaDAAwKbQAQkAAgECDVVua25vd24gY2hhaW4AFURBSUxZX1BST01PX0VORF9CTE9DSwQHJG1hdGNoMAUFY2hhaW4DCQAAAgEBVwUHJG1hdGNoMACg25MCAwkAAAIB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PQ==", "height": 3413355, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GF9ZrVqtxwtdcPSkGuZrsZqMwPgyMXE3CcAW8SQHdkx2 Next: GRvh9pRReqPEmcr6A8J1gyRWRFE2nT5GCBaUP1bJG8hu Diff:
Old | New | Differences | |
---|---|---|---|
89 | 89 | let t = { | |
90 | 90 | let m = k | |
91 | 91 | if ((base58'2W' == m)) | |
92 | - | then "3PQCuvFbvh4LkPUnrnU1z3jnbA1p9m3WNhv" | |
93 | - | else if ((base58'2T' == m)) | |
94 | - | then "3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy" | |
95 | - | else throw("Unknown chain") | |
96 | - | } | |
97 | - | ||
98 | - | let u = { | |
99 | - | let m = k | |
100 | - | if ((base58'2W' == m)) | |
101 | 92 | then f | |
102 | 93 | else if ((base58'2T' == m)) | |
103 | 94 | then 60000 | |
104 | 95 | else throw("Unknown chain") | |
105 | 96 | } | |
106 | 97 | ||
107 | - | let | |
98 | + | let u = { | |
108 | 99 | let m = k | |
109 | 100 | if ((base58'2W' == m)) | |
110 | 101 | then "3PLncXtS1U83D6cQbFD3H8rBHPLgzxSFKZ1" | |
113 | 104 | else throw("Unknown chain") | |
114 | 105 | } | |
115 | 106 | ||
116 | - | func | |
107 | + | func v (w,x) = valueOrErrorMessage(getString(w, x), makeString(["mandatory ", toString(w), ".", x, " is not defined"], "")) | |
117 | 108 | ||
118 | 109 | ||
119 | - | let | |
110 | + | let y = 1 | |
120 | 111 | ||
121 | - | let | |
112 | + | let z = 2 | |
122 | 113 | ||
123 | - | let | |
114 | + | let A = 5 | |
124 | 115 | ||
125 | - | let | |
116 | + | let B = 6 | |
126 | 117 | ||
127 | - | func | |
118 | + | func C () = "%s__restConfig" | |
128 | 119 | ||
129 | 120 | ||
130 | - | func | |
121 | + | func D () = "%s__rest2Addr" | |
131 | 122 | ||
132 | 123 | ||
133 | - | func | |
124 | + | func E (F) = split_4C(v(F, C()), a) | |
134 | 125 | ||
135 | 126 | ||
136 | - | let G = addressFromStringValue(valueOrElse(getString(this, F()), t)) | |
137 | - | ||
138 | - | func H (I) = split_4C(w(I, D()), a) | |
127 | + | func G (H,I) = valueOrErrorMessage(addressFromString(H[I]), ("Rest cfg doesn't contain address at index " + toString(I))) | |
139 | 128 | ||
140 | 129 | ||
141 | - | func J (K,L) = valueOrErrorMessage(addressFromString(K[L]), ("Rest cfg doesn't contain address at index " + toString(L))) | |
130 | + | let J = addressFromStringValue(valueOrElse(getString(this, D()), s)) | |
131 | + | ||
132 | + | let H = E(J) | |
133 | + | ||
134 | + | let K = G(H, y) | |
135 | + | ||
136 | + | let L = G(H, z) | |
137 | + | ||
138 | + | let M = G(H, A) | |
139 | + | ||
140 | + | let N = G(H, B) | |
141 | + | ||
142 | + | let O = "oldAcresContract" | |
143 | + | ||
144 | + | func P () = "contractsBlocked" | |
142 | 145 | ||
143 | 146 | ||
144 | - | let M = 1 | |
145 | - | ||
146 | - | let N = H(G) | |
147 | - | ||
148 | - | let O = J(N, M) | |
149 | - | ||
150 | - | let P = addressFromStringValue(valueOrElse(getString(this, E()), s)) | |
151 | - | ||
152 | - | let K = H(P) | |
153 | - | ||
154 | - | let Q = J(K, z) | |
155 | - | ||
156 | - | let R = J(K, A) | |
157 | - | ||
158 | - | let S = J(K, B) | |
159 | - | ||
160 | - | let T = J(K, C) | |
161 | - | ||
162 | - | let U = "oldAcresContract" | |
163 | - | ||
164 | - | func V () = "contractsBlocked" | |
147 | + | func Q (R) = ("lastWeekTxIdByUser_" + R) | |
165 | 148 | ||
166 | 149 | ||
167 | - | func | |
150 | + | func S (R) = ("curWeekTxIdByUser_" + R) | |
168 | 151 | ||
169 | 152 | ||
170 | - | func | |
153 | + | func T (w) = ("finishBlockFor_" + w) | |
171 | 154 | ||
172 | 155 | ||
173 | - | func Z (x) = ("finishBlockFor_" + x) | |
156 | + | let U = "wlg_assetId" | |
157 | + | ||
158 | + | let V = valueOrErrorMessage(getBinary(L, U), "WLGOLD is not issued yet") | |
159 | + | ||
160 | + | let W = "acresIssuedAmount" | |
161 | + | ||
162 | + | let X = "acresAssetId" | |
163 | + | ||
164 | + | let Y = valueOrErrorMessage(getBinary(K, X), "ACRES is not issued yet") | |
165 | + | ||
166 | + | func Z (R) = ("acresStakedTimeByUser_" + R) | |
174 | 167 | ||
175 | 168 | ||
176 | - | let aa = "wlg_assetId" | |
177 | - | ||
178 | - | let ab = valueOrErrorMessage(getBinary(R, aa), "WLGOLD is not issued yet") | |
179 | - | ||
180 | - | let ac = "acresIssuedAmount" | |
181 | - | ||
182 | - | let ad = "acresAssetId" | |
183 | - | ||
184 | - | let ae = valueOrErrorMessage(getBinary(Q, ad), "ACRES is not issued yet") | |
185 | - | ||
186 | - | func af (X) = ("acresStakedTimeByUser_" + X) | |
169 | + | func aa (ab) = ("stakedLandsByOwner_" + ab) | |
187 | 170 | ||
188 | 171 | ||
189 | - | func | |
172 | + | func ac (ab) = ("stakedDuckByOwner_" + ab) | |
190 | 173 | ||
191 | 174 | ||
192 | - | func | |
175 | + | func ad (ae,R) = ((("st_" + ae) + "_") + R) | |
193 | 176 | ||
194 | 177 | ||
195 | - | func | |
178 | + | func af (ab) = ("stakedNFTsByOwner_" + ab) | |
196 | 179 | ||
197 | 180 | ||
198 | - | func | |
181 | + | func ag (w) = ("promoAcres_" + w) | |
199 | 182 | ||
200 | 183 | ||
201 | - | func | |
184 | + | func ah (w) = ("promoTickets_" + w) | |
202 | 185 | ||
203 | 186 | ||
204 | - | func an (x) = ("promoTickets_" + x) | |
187 | + | let ai = "totalPromoTickets" | |
188 | + | ||
189 | + | let aj = "promoMap" | |
190 | + | ||
191 | + | func ak (al) = ("dailyWinners_" + toString(al)) | |
205 | 192 | ||
206 | 193 | ||
207 | - | let ao = "totalPromoTickets" | |
208 | - | ||
209 | - | let ap = "promoMap" | |
210 | - | ||
211 | - | func aq (ar) = ("dailyWinners_" + toString(ar)) | |
212 | - | ||
213 | - | ||
214 | - | func as (at) = { | |
215 | - | let m = at | |
194 | + | func am (an) = { | |
195 | + | let m = an | |
216 | 196 | if ($isInstanceOf(m, "Int")) | |
217 | 197 | then { | |
218 | - | let | |
219 | - | | |
198 | + | let ao = m | |
199 | + | ao | |
220 | 200 | } | |
221 | 201 | else throw("fail to cast into Int") | |
222 | 202 | } | |
223 | 203 | ||
224 | 204 | ||
225 | - | func | |
226 | - | let m = | |
205 | + | func ap (aq) = { | |
206 | + | let m = aq | |
227 | 207 | if ($isInstanceOf(m, "(Int, Int, Int, Int, Int)")) | |
228 | 208 | then { | |
229 | - | let | |
230 | - | | |
209 | + | let ar = m | |
210 | + | ar | |
231 | 211 | } | |
232 | 212 | else throw("fail to cast into (Int, Int, Int, Int, Int)") | |
233 | 213 | } | |
234 | 214 | ||
235 | 215 | ||
236 | - | func | |
237 | - | let m = | |
216 | + | func as (aq) = { | |
217 | + | let m = aq | |
238 | 218 | if ($isInstanceOf(m, "(Int, Int, Int, Int)")) | |
239 | 219 | then { | |
240 | - | let | |
241 | - | | |
220 | + | let ar = m | |
221 | + | ar | |
242 | 222 | } | |
243 | 223 | else throw("fail to cast into (Int, Int, Int, Int)") | |
244 | 224 | } | |
245 | 225 | ||
246 | 226 | ||
247 | - | func | |
248 | - | let m = | |
227 | + | func at (aq) = { | |
228 | + | let m = aq | |
249 | 229 | if ($isInstanceOf(m, "(Int, Int, Int)")) | |
250 | 230 | then { | |
251 | - | let | |
252 | - | | |
231 | + | let ar = m | |
232 | + | ar | |
253 | 233 | } | |
254 | 234 | else throw("fail to cast into (Int, Int, Int)") | |
255 | 235 | } | |
256 | 236 | ||
257 | 237 | ||
258 | - | func | |
259 | - | let m = | |
238 | + | func au (aq) = { | |
239 | + | let m = aq | |
260 | 240 | if ($isInstanceOf(m, "(Int, Int)")) | |
261 | 241 | then { | |
262 | - | let | |
263 | - | | |
242 | + | let ar = m | |
243 | + | ar | |
264 | 244 | } | |
265 | 245 | else throw("fail to cast into (Int, Int)") | |
266 | 246 | } | |
267 | 247 | ||
268 | 248 | ||
269 | - | func | |
270 | - | let | |
271 | - | let | |
272 | - | let | |
273 | - | (((toString(( | |
249 | + | func av (aq,aw) = { | |
250 | + | let ax = pow(10, 0, aw, 0, 0, DOWN) | |
251 | + | let ay = toString((aq % ax)) | |
252 | + | let az = drop(toString(ax), (1 + size(ay))) | |
253 | + | (((toString((aq / ax)) + ".") + az) + ay) | |
274 | 254 | } | |
275 | 255 | ||
276 | 256 | ||
277 | - | func | |
257 | + | func aA (aB,aC,aD) = if ((0 >= aB)) | |
278 | 258 | then throw("maxValue should be > 0") | |
279 | 259 | else { | |
280 | - | let | |
281 | - | (toInt( | |
260 | + | let aE = sha256_16Kb((aC + aD)) | |
261 | + | (toInt(aE) % aB) | |
282 | 262 | } | |
283 | 263 | ||
284 | 264 | ||
285 | - | func | |
286 | - | let | |
287 | - | let | |
288 | - | ( | |
265 | + | func aF (aq,aG) = { | |
266 | + | let aH = toString(aq) | |
267 | + | let az = drop(toString(pow(10, 0, (aG - size(aH)), 0, 0, DOWN)), 1) | |
268 | + | (az + aH) | |
289 | 269 | } | |
290 | 270 | ||
291 | 271 | ||
292 | - | let | |
272 | + | let aI = 1000000 | |
293 | 273 | ||
294 | - | let | |
274 | + | let aJ = 100000000 | |
295 | 275 | ||
296 | - | let | |
276 | + | let aK = "wlg_issuedAmount" | |
297 | 277 | ||
298 | - | let | |
278 | + | let aL = "zbill_issuedAmount" | |
299 | 279 | ||
300 | - | func | |
280 | + | func aM (R) = ("acresStakedAmountByUser_" + R) | |
301 | 281 | ||
302 | 282 | ||
303 | - | func | |
283 | + | func aN (R) = ("farmingPowerByUser_" + R) | |
304 | 284 | ||
305 | 285 | ||
306 | - | let | |
286 | + | let aO = "acresStakedAmountTotal" | |
307 | 287 | ||
308 | - | let | |
288 | + | let aP = "totalFarmingPower" | |
309 | 289 | ||
310 | - | let | |
290 | + | let aQ = 3 | |
311 | 291 | ||
312 | - | let | |
292 | + | let aR = 1 | |
313 | 293 | ||
314 | - | let | |
294 | + | let aS = 5000 | |
315 | 295 | ||
316 | - | let | |
296 | + | let aT = 4 | |
317 | 297 | ||
318 | - | let | |
298 | + | let aU = "nftTotalIssued" | |
319 | 299 | ||
320 | - | let | |
300 | + | let aV = "nftTotalBurned" | |
321 | 301 | ||
322 | - | let | |
302 | + | let aW = "WlNftTotalStaked" | |
323 | 303 | ||
324 | - | let | |
304 | + | let aX = "ArkNftTotalStaked" | |
325 | 305 | ||
326 | - | func | |
306 | + | func aY (ae) = ("nftNumberByAssetId_" + ae) | |
327 | 307 | ||
328 | 308 | ||
329 | - | func | |
309 | + | func aZ (R) = ("userWlNftNumber_" + R) | |
330 | 310 | ||
331 | 311 | ||
332 | - | func | |
312 | + | func ba (R) = ("userArkNftNumber_" + R) | |
333 | 313 | ||
334 | 314 | ||
335 | - | func | |
315 | + | func bb (R) = ("userFullBonus_" + R) | |
336 | 316 | ||
337 | 317 | ||
338 | - | let | |
318 | + | let bc = [0, 10, 20, 40, 80, 150, 250, 400, 700, 1000] | |
339 | 319 | ||
340 | - | func bj (bk) = { | |
341 | - | let bl = ((bk + 99999999) / aP) | |
342 | - | func bm (bn,bo) = if ((bo >= bl)) | |
320 | + | func bd (be) = { | |
321 | + | let bf = ((be + 99999999) / aJ) | |
322 | + | func bg (bh,bi) = if ((bi >= bf)) | |
323 | + | then bh | |
324 | + | else (bh + 1) | |
325 | + | ||
326 | + | let bj = bc | |
327 | + | let bk = size(bj) | |
328 | + | let bl = 0 | |
329 | + | func bm (bn,bo) = if ((bo >= bk)) | |
343 | 330 | then bn | |
344 | - | else (bn | |
331 | + | else bg(bn, bj[bo]) | |
345 | 332 | ||
346 | - | let bp = bi | |
347 | - | let bq = size(bp) | |
348 | - | let br = 0 | |
349 | - | func bs (bt,bu) = if ((bu >= bq)) | |
350 | - | then bt | |
351 | - | else bm(bt, bp[bu]) | |
352 | - | ||
353 | - | func bv (bt,bu) = if ((bu >= bq)) | |
354 | - | then bt | |
333 | + | func bp (bn,bo) = if ((bo >= bk)) | |
334 | + | then bn | |
355 | 335 | else throw("List size exceeds 10") | |
356 | 336 | ||
357 | - | | |
337 | + | bp(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bl, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
358 | 338 | } | |
359 | 339 | ||
360 | 340 | ||
361 | - | func | |
341 | + | func bq (be) = ((be * 20) * (bd(be) + 4)) | |
362 | 342 | ||
363 | 343 | ||
364 | - | func | |
365 | - | let | |
366 | - | $Tuple2(fraction( | |
344 | + | func br (be,bs) = { | |
345 | + | let bt = bq(be) | |
346 | + | $Tuple2(fraction(bt, (aI + bs), aI), bt) | |
367 | 347 | } | |
368 | 348 | ||
369 | 349 | ||
370 | - | let | |
350 | + | let bu = "teamAddr" | |
371 | 351 | ||
372 | - | func | |
352 | + | func bv (R) = ("lastArbTimeUser_" + R) | |
373 | 353 | ||
374 | 354 | ||
375 | - | let | |
355 | + | let bw = 1733346000000 | |
376 | 356 | ||
377 | - | let | |
357 | + | let bx = 14 | |
378 | 358 | ||
379 | - | let | |
359 | + | let by = "lastAcresSellTime" | |
380 | 360 | ||
381 | - | let | |
361 | + | let bz = "lastLimitLeft" | |
382 | 362 | ||
383 | - | let | |
363 | + | let bA = ["Gold shovel", "Pickaxe"] | |
384 | 364 | ||
385 | - | let | |
365 | + | let bB = ["Reward for early birds", "Increases FarmPower"] | |
386 | 366 | ||
387 | - | let | |
367 | + | let bC = 0 | |
388 | 368 | ||
389 | - | let | |
369 | + | let bD = 1 | |
390 | 370 | ||
391 | - | let | |
371 | + | let bE = [5, 10, 20] | |
392 | 372 | ||
393 | - | let | |
373 | + | let bF = 0 | |
394 | 374 | ||
395 | - | let | |
375 | + | let bG = 1 | |
396 | 376 | ||
397 | - | let | |
377 | + | let bH = 2 | |
398 | 378 | ||
399 | - | let bO = ["SHOVEL", "PICKAXE"] | |
379 | + | let bI = ["SHOVEL", "PICKAXE"] | |
380 | + | ||
381 | + | let bJ = 0 | |
382 | + | ||
383 | + | let bK = 1 | |
384 | + | ||
385 | + | let bL = ["contentPickaxeC", "contentPickaxeU", "contentPickaxeL", "contentPickaxeE", "contentShovelP"] | |
386 | + | ||
387 | + | let bM = 0 | |
388 | + | ||
389 | + | let bN = 4 | |
390 | + | ||
391 | + | let bO = ["Common", "Uncommon", "Legendary", "Epic", "Promo"] | |
400 | 392 | ||
401 | 393 | let bP = 0 | |
402 | 394 | ||
403 | 395 | let bQ = 1 | |
404 | 396 | ||
405 | - | let bR = | |
397 | + | let bR = 2 | |
406 | 398 | ||
407 | - | let bS = | |
399 | + | let bS = 3 | |
408 | 400 | ||
409 | 401 | let bT = 4 | |
410 | 402 | ||
411 | - | let bU = [" | |
403 | + | let bU = ["Digging tools"] | |
412 | 404 | ||
413 | 405 | let bV = 0 | |
414 | 406 | ||
415 | - | let bW = | |
407 | + | let bW = ["FarmPower"] | |
416 | 408 | ||
417 | - | let bX = | |
409 | + | let bX = 0 | |
418 | 410 | ||
419 | - | let bY = 3 | |
420 | - | ||
421 | - | let bZ = 4 | |
422 | - | ||
423 | - | let ca = ["Digging tools"] | |
424 | - | ||
425 | - | let cb = 0 | |
426 | - | ||
427 | - | let cc = ["FarmPower"] | |
428 | - | ||
429 | - | let cd = 0 | |
430 | - | ||
431 | - | func ce (cf) = if (if ((cf.originCaller != P)) | |
432 | - | then valueOrElse(getBoolean(V()), false) | |
411 | + | func bY (bZ) = if (if ((bZ.originCaller != J)) | |
412 | + | then valueOrElse(getBoolean(P()), false) | |
433 | 413 | else false) | |
434 | 414 | then throw("Contracts are under maintenance") | |
435 | 415 | else { | |
436 | - | let | |
437 | - | let | |
438 | - | let | |
439 | - | let | |
440 | - | let | |
441 | - | let | |
442 | - | let | |
443 | - | if (isDefined( | |
416 | + | let R = toString(bZ.originCaller) | |
417 | + | let ca = (height / p) | |
418 | + | let cb = Q(R) | |
419 | + | let cc = getString(cb) | |
420 | + | let cd = toBase58String(bZ.transactionId) | |
421 | + | let ce = ((toString(ca) + "_") + cd) | |
422 | + | let cf = S(R) | |
423 | + | if (isDefined(cc)) | |
444 | 424 | then { | |
445 | - | let | |
446 | - | if (( | |
447 | - | then [StringEntry( | |
448 | - | else if (( | |
449 | - | then [StringEntry( | |
425 | + | let cg = split(value(cc), "_") | |
426 | + | if ((cg[0] == toString(ca))) | |
427 | + | then [StringEntry(cb, ce), StringEntry(cf, ce)] | |
428 | + | else if ((cg[0] == toString((ca - 1)))) | |
429 | + | then [StringEntry(cf, ce)] | |
450 | 430 | else { | |
451 | - | let | |
452 | - | let | |
453 | - | if (( | |
454 | - | then [StringEntry( | |
455 | - | else [StringEntry( | |
431 | + | let ch = getStringValue(cf) | |
432 | + | let ci = split(ch, "_") | |
433 | + | if ((ci[0] == toString(ca))) | |
434 | + | then [StringEntry(cf, ce)] | |
435 | + | else [StringEntry(cb, ch), StringEntry(cf, ce)] | |
456 | 436 | } | |
457 | 437 | } | |
458 | - | else [StringEntry( | |
438 | + | else [StringEntry(cb, ce), StringEntry(cf, ce)] | |
459 | 439 | } | |
460 | 440 | ||
461 | 441 | ||
462 | - | func | |
442 | + | func cj (ck,cl,cm,cn,co,cp,cq,cr) = (((((((((((((((((((((((("{\"url\": \"https://waveslands.com\", " + "\"contentKey\": \"") + ck) + "\", ") + "\"number\": ") + toString(cl)) + ", ") + "\"collection\": \"") + cm) + "\", ") + "\"name\": \"") + cn) + "\", ") + "\"description\": \"") + co) + "\", ") + "\"rare\": \"") + cp) + "\", ") + "\"bonus\": ") + toString(cq)) + ", ") + "\"bonusType\": \"") + cr) + "\"}") | |
463 | 443 | ||
464 | 444 | ||
465 | - | func | |
466 | - | let | |
467 | - | let | |
468 | - | let | |
469 | - | let | |
470 | - | let | |
471 | - | $Tuple2([ | |
445 | + | func cs (ct,cu,cv,cw,cx,cy,cz,R) = { | |
446 | + | let cl = valueOrElse(getInteger(aU), 0) | |
447 | + | let cp = bO[cw] | |
448 | + | let cn = (((bI[ct] + "-") + take(cp, 1)) + toString(cx)) | |
449 | + | let cA = Issue(cn, cj(bL[cu], cl, bU[cv], bA[ct], bB[cy], bO[cw], cx, bW[cz]), 1, 0, false) | |
450 | + | let cB = calculateAssetId(cA) | |
451 | + | $Tuple2([cA, IntegerEntry(aU, (cl + 1)), IntegerEntry(aY(toBase58String(cB)), cl), ScriptTransfer(R, 1, cB)], cB) | |
472 | 452 | } | |
473 | 453 | ||
474 | 454 | ||
475 | - | func | |
476 | - | then throw(("NFT is not supported: " + | |
455 | + | func cC (co) = if (!(contains(co, "\"bonusType\": \"FarmPower\""))) | |
456 | + | then throw(("NFT is not supported: " + co)) | |
477 | 457 | else { | |
478 | - | let | |
479 | - | parseIntValue(drop( | |
458 | + | let cD = split_4C(split_4C(co, "\"bonus\":")[1], ",")[0] | |
459 | + | parseIntValue(drop(cD, (valueOrElse(lastIndexOf(cD, " "), -1) + 1))) | |
480 | 460 | } | |
481 | 461 | ||
482 | 462 | ||
483 | - | func | |
484 | - | then throw(("NFT is not supported: " + | |
463 | + | func cE (co) = if (!(contains(co, "\"rare\""))) | |
464 | + | then throw(("NFT is not supported: " + co)) | |
485 | 465 | else { | |
486 | - | let | |
487 | - | value(indexOf( | |
466 | + | let cF = split_4C(split_4C(split_4C(co, "\"rare\"")[1], ",")[0], "\"")[1] | |
467 | + | value(indexOf(bO, cF)) | |
488 | 468 | } | |
489 | 469 | ||
490 | 470 | ||
491 | - | func | |
492 | - | then ( | |
471 | + | func cG (cH,w,cI) = if (if ((cH == 0)) | |
472 | + | then (cI == 0) | |
493 | 473 | else false) | |
494 | 474 | then throw("Nothing to do") | |
495 | 475 | else { | |
496 | - | let | |
497 | - | if (( | |
476 | + | let cJ = invoke(L, "onStakeUnstakeLand", [w], nil) | |
477 | + | if ((cJ == cJ)) | |
498 | 478 | then { | |
499 | - | let | |
500 | - | let | |
501 | - | let | |
502 | - | let | |
503 | - | if (if ((0 > | |
504 | - | then (0 > ( | |
479 | + | let cK = lastBlock.timestamp | |
480 | + | let cL = Z(w) | |
481 | + | let cM = aM(w) | |
482 | + | let cN = valueOrElse(getInteger(cM), 0) | |
483 | + | if (if ((0 > cH)) | |
484 | + | then (0 > (cN + cH)) | |
505 | 485 | else false) | |
506 | - | then throw(((("You have only " + | |
486 | + | then throw(((("You have only " + av(cN, 8)) + " ACRES staked, tried to unstake ") + av(-(cH), 8))) | |
507 | 487 | else { | |
508 | - | let | |
509 | - | let | |
510 | - | let | |
511 | - | let | |
512 | - | let | |
513 | - | let | |
514 | - | if (if ((0 > | |
515 | - | then (0 > ( | |
488 | + | let cO = (cN + cH) | |
489 | + | let cP = valueOrElse(getInteger(aO), 0) | |
490 | + | let cQ = aN(w) | |
491 | + | let cR = valueOrElse(getInteger(cQ), 0) | |
492 | + | let cS = bb(w) | |
493 | + | let cT = valueOrElse(getInteger(K, cS), 0) | |
494 | + | if (if ((0 > cI)) | |
495 | + | then (0 > (cT + cI)) | |
516 | 496 | else false) | |
517 | - | then throw((((("You have only " + | |
497 | + | then throw((((("You have only " + av(cT, 4)) + "% bonus, and tried to unstake ") + av(-(cI), 4)) + "%")) | |
518 | 498 | else { | |
519 | - | let | |
520 | - | let | |
521 | - | let | |
522 | - | let | |
523 | - | let | |
499 | + | let cU = br(cO, (cT + cI)) | |
500 | + | let cV = cU._1 | |
501 | + | let cW = cU._2 | |
502 | + | let cX = valueOrElse(getInteger(aP), 0) | |
503 | + | let cY = if ((cH == 0)) | |
524 | 504 | then nil | |
525 | - | else [IntegerEntry( | |
526 | - | let | |
505 | + | else [IntegerEntry(cM, cO), IntegerEntry(aO, (cP + cH))] | |
506 | + | let cZ = if ((cI == 0)) | |
527 | 507 | then nil | |
528 | - | else [IntegerEntry( | |
529 | - | $Tuple2((((( | |
508 | + | else [IntegerEntry(cS, (cT + cI))] | |
509 | + | $Tuple2(((((cY ++ cZ) :+ IntegerEntry(cL, lastBlock.timestamp)) :+ IntegerEntry(cQ, cV)) :+ IntegerEntry(aP, ((cX + cV) - cR))), cJ) | |
530 | 510 | } | |
531 | 511 | } | |
532 | 512 | } | |
534 | 514 | } | |
535 | 515 | ||
536 | 516 | ||
537 | - | func | |
538 | - | let | |
539 | - | let | |
540 | - | let | |
541 | - | let | |
542 | - | let | |
543 | - | fraction( | |
517 | + | func da (db) = { | |
518 | + | let dc = valueOrErrorMessage(getInteger(L, aK), "WLGOLD is not issued yet") | |
519 | + | let dd = assetBalance(L, r) | |
520 | + | let de = (assetBalance(K, r) - db) | |
521 | + | let df = (assetBalance(M, r) + valueOrElse(getInteger(M, aL), 0)) | |
522 | + | let dg = ((de + dd) + df) | |
523 | + | fraction(dg, d, dc) | |
544 | 524 | } | |
545 | 525 | ||
546 | 526 | ||
547 | - | func | |
548 | - | let | |
549 | - | let | |
550 | - | let | |
551 | - | let | |
552 | - | let | |
553 | - | let | |
554 | - | let | |
555 | - | let | |
556 | - | let | |
557 | - | $Tuple2(IntegerEntry( | |
527 | + | func dh () = { | |
528 | + | let dd = assetBalance(L, r) | |
529 | + | let de = assetBalance(this, r) | |
530 | + | let df = (assetBalance(M, r) + valueOrElse(getInteger(M, aL), 0)) | |
531 | + | let di = (((de + dd) + df) / h) | |
532 | + | let dj = valueOrElse(getInteger(bz), di) | |
533 | + | let dk = valueOrElse(getInteger(by), 0) | |
534 | + | let cK = lastBlock.timestamp | |
535 | + | let dl = (dj + fraction(di, (cK - dk), f)) | |
536 | + | let dm = min([dl, di]) | |
537 | + | $Tuple2(IntegerEntry(by, cK), dm) | |
558 | 538 | } | |
559 | 539 | ||
560 | 540 | ||
561 | - | let | |
541 | + | let dn = addressFromStringValue("3PJgZ6AK1WVCpdCmEZpesHmaKvrQDdXG5og") | |
562 | 542 | ||
563 | - | let | |
543 | + | let do = valueOrElse(getString(dn, "static_incubatorAddress"), "") | |
564 | 544 | ||
565 | - | let | |
545 | + | let dp = valueOrElse(getString(dn, "static_breederAddress"), "") | |
566 | 546 | ||
567 | - | let | |
547 | + | let dq = valueOrElse(getString(dn, "static_turtleIncubatorAddress"), "") | |
568 | 548 | ||
569 | - | let | |
549 | + | let dr = valueOrElse(getString(dn, "static_turtleBreederAddress"), "") | |
570 | 550 | ||
571 | - | let | |
551 | + | let ds = valueOrElse(getString(dn, "static_canineIncubatorAddress"), "") | |
572 | 552 | ||
573 | - | let | |
553 | + | let dt = valueOrElse(getString(dn, "static_canineBreederAddress"), "") | |
574 | 554 | ||
575 | - | let | |
555 | + | let du = valueOrElse(getString(dn, "static_felineIncubatorAddress"), "") | |
576 | 556 | ||
577 | - | let | |
557 | + | let dv = valueOrElse(getString(dn, "static_felineBreederAddress"), "") | |
578 | 558 | ||
579 | - | let | |
559 | + | let dw = valueOrElse(getString(dn, "static_mutantIncubatorAddress"), "") | |
580 | 560 | ||
581 | - | func | |
582 | - | let | |
561 | + | func dx (dy) = { | |
562 | + | let dz = toString(dy.issuer) | |
583 | 563 | if (if (if (if (if (if (if (if (if (if ((k == base58'2T')) | |
584 | - | then ( | |
564 | + | then (dz == u) | |
585 | 565 | else false) | |
586 | 566 | then true | |
587 | - | else ( | |
567 | + | else (dz == do)) | |
588 | 568 | then true | |
589 | - | else ( | |
569 | + | else (dz == dp)) | |
590 | 570 | then true | |
591 | - | else ( | |
571 | + | else (dz == dq)) | |
592 | 572 | then true | |
593 | - | else ( | |
573 | + | else (dz == dr)) | |
594 | 574 | then true | |
595 | - | else ( | |
575 | + | else (dz == ds)) | |
596 | 576 | then true | |
597 | - | else ( | |
577 | + | else (dz == dt)) | |
598 | 578 | then true | |
599 | - | else ( | |
579 | + | else (dz == du)) | |
600 | 580 | then true | |
601 | - | else ( | |
602 | - | then | |
603 | - | else if (( | |
604 | - | then | |
581 | + | else (dz == dv)) | |
582 | + | then dy.name | |
583 | + | else if ((dz == dw)) | |
584 | + | then dy.description | |
605 | 585 | else "" | |
606 | 586 | } | |
607 | 587 | ||
608 | 588 | ||
609 | - | func | |
610 | - | let | |
611 | - | if (( | |
612 | - | then throw((("You can stake max " + toString( | |
589 | + | func dA (R,dB,bs,dC,dD,dE) = { | |
590 | + | let dF = valueOrElse(getInteger(dC), 0) | |
591 | + | if ((dF >= dE)) | |
592 | + | then throw((("You can stake max " + toString(dE)) + " of such NFTs")) | |
613 | 593 | else { | |
614 | - | let | |
615 | - | let | |
616 | - | let | |
617 | - | $Tuple2(((( | |
594 | + | let dG = cG(0, R, bs) | |
595 | + | let dH = dG._1 | |
596 | + | let dI = dG._2 | |
597 | + | $Tuple2((((dH :+ IntegerEntry(dC, (dF + 1))) :+ IntegerEntry(dD, (valueOrElse(getInteger(dD), 0) + 1))) :+ IntegerEntry(ad(dB, R), lastBlock.timestamp)), dI) | |
618 | 598 | } | |
619 | 599 | } | |
620 | 600 | ||
621 | 601 | ||
622 | - | let | |
602 | + | let dJ = 3 | |
623 | 603 | ||
624 | - | let | |
604 | + | let dK = [50000000, 25000000, 25000000] | |
625 | 605 | ||
626 | - | func | |
627 | - | let | |
628 | - | let | |
629 | - | let | |
630 | - | let | |
606 | + | func dL (w,cH,dM) = { | |
607 | + | let dN = cG(cH, w, 0) | |
608 | + | let dH = dN._1 | |
609 | + | let dI = dN._2 | |
610 | + | let dO = if (if ((height >= l)) | |
631 | 611 | then (n > height) | |
632 | 612 | else false) | |
633 | 613 | then { | |
634 | - | let | |
635 | - | let | |
614 | + | let dP = ag(w) | |
615 | + | let dQ = ((if (dM) | |
636 | 616 | then 0 | |
637 | - | else valueOrElse(getInteger( | |
638 | - | let | |
639 | - | let | |
640 | - | let | |
641 | - | let | |
642 | - | if (if ( | |
617 | + | else valueOrElse(getInteger(dP), 0)) + cH) | |
618 | + | let dR = (dQ / d) | |
619 | + | let dS = ah(w) | |
620 | + | let dT = (dR - valueOrElse(getInteger(dS), 0)) | |
621 | + | let dU = (valueOrElse(getInteger(ai), 0) + dT) | |
622 | + | if (if (dM) | |
643 | 623 | then true | |
644 | - | else ( | |
624 | + | else (dT > 0)) | |
645 | 625 | then { | |
646 | - | let | |
647 | - | let | |
648 | - | let | |
626 | + | let dV = valueOrElse(getString(aj), "") | |
627 | + | let dW = ((w + ":") + aF(dR, 3)) | |
628 | + | let dX = if (contains(dV, w)) | |
649 | 629 | then { | |
650 | - | let | |
651 | - | if (( | |
630 | + | let dY = split_51C(dV, w) | |
631 | + | if ((dY[0] == "")) | |
652 | 632 | then { | |
653 | - | let | |
654 | - | if (( | |
655 | - | then if (( | |
633 | + | let dZ = drop(dY[1], 4) | |
634 | + | if ((dZ == "")) | |
635 | + | then if ((dR == 0)) | |
656 | 636 | then "" | |
657 | - | else | |
658 | - | else if (( | |
659 | - | then drop( | |
660 | - | else ( | |
637 | + | else dW | |
638 | + | else if ((dR == 0)) | |
639 | + | then drop(dZ, 1) | |
640 | + | else (dW + dZ) | |
661 | 641 | } | |
662 | 642 | else { | |
663 | - | let | |
664 | - | if (( | |
665 | - | then if (( | |
666 | - | then dropRight( | |
667 | - | else ( | |
668 | - | else if (( | |
669 | - | then ( | |
670 | - | else (( | |
643 | + | let dZ = drop(dY[1], 4) | |
644 | + | if ((dZ == "")) | |
645 | + | then if ((dR == 0)) | |
646 | + | then dropRight(dY[0], 1) | |
647 | + | else (dY[0] + dW) | |
648 | + | else if ((dR == 0)) | |
649 | + | then (dY[0] + drop(dZ, 1)) | |
650 | + | else ((dY[0] + dW) + dZ) | |
671 | 651 | } | |
672 | 652 | } | |
673 | - | else if (( | |
674 | - | then | |
675 | - | else if (( | |
676 | - | then | |
677 | - | else (( | |
678 | - | [IntegerEntry( | |
653 | + | else if ((dR == 0)) | |
654 | + | then dV | |
655 | + | else if ((dV == "")) | |
656 | + | then dW | |
657 | + | else ((dV + "_") + dW) | |
658 | + | [IntegerEntry(dP, dQ), IntegerEntry(dS, dR), IntegerEntry(ai, dU), StringEntry(aj, dX)] | |
679 | 659 | } | |
680 | - | else [IntegerEntry( | |
660 | + | else [IntegerEntry(dP, dQ)] | |
681 | 661 | } | |
682 | 662 | else nil | |
683 | - | $Tuple2(( | |
663 | + | $Tuple2((dH ++ dO), dI) | |
684 | 664 | } | |
685 | 665 | ||
686 | 666 | ||
687 | - | @Callable( | |
688 | - | func saveLastTx () = if (!(containsElement([ | |
667 | + | @Callable(bZ) | |
668 | + | func saveLastTx () = if (!(containsElement([L, N], bZ.caller))) | |
689 | 669 | then throw("Access denied") | |
690 | - | else $Tuple2( | |
670 | + | else $Tuple2(bY(bZ), 42) | |
691 | 671 | ||
692 | 672 | ||
693 | 673 | ||
694 | - | @Callable( | |
695 | - | func constructorV1 ( | |
674 | + | @Callable(bZ) | |
675 | + | func constructorV1 (ea,eb) = if ((bZ.caller != this)) | |
696 | 676 | then throw("Permission denied") | |
697 | 677 | else { | |
698 | - | let | |
699 | - | [IntegerEntry( | |
678 | + | let ec = addressFromStringValue(eb) | |
679 | + | [IntegerEntry(W, getIntegerValue(ec, W)), BinaryEntry(X, getBinaryValue(ec, X)), StringEntry(D(), ea), StringEntry(O, eb)] | |
700 | 680 | } | |
701 | 681 | ||
702 | 682 | ||
703 | 683 | ||
704 | - | @Callable( | |
705 | - | func setBlocked ( | |
684 | + | @Callable(bZ) | |
685 | + | func setBlocked (ed) = if ((bZ.caller != this)) | |
706 | 686 | then throw("permission denied") | |
707 | - | else [BooleanEntry( | |
687 | + | else [BooleanEntry(P(), ed)] | |
708 | 688 | ||
709 | 689 | ||
710 | 690 | ||
711 | - | @Callable( | |
712 | - | func unstakeAcres ( | |
713 | - | let | |
691 | + | @Callable(bZ) | |
692 | + | func unstakeAcres (ee) = { | |
693 | + | let ef = bY(bZ) | |
714 | 694 | if (if ((height >= l)) | |
715 | 695 | then (n > height) | |
716 | 696 | else false) | |
717 | 697 | then throw("You can't unstake during Xmas promo period") | |
718 | - | else if ((0 >= | |
698 | + | else if ((0 >= ee)) | |
719 | 699 | then throw("Amount should be positive") | |
720 | 700 | else { | |
721 | - | let | |
722 | - | if ((size( | |
701 | + | let w = toString(bZ.caller) | |
702 | + | if ((size(bZ.payments) != 0)) | |
723 | 703 | then throw("No payments required") | |
724 | 704 | else { | |
725 | - | let | |
726 | - | if (( | |
727 | - | then throw(("You traded some WLGOLD, cannot unstake until " + toString( | |
705 | + | let eg = (valueOrElse(getInteger(L, bv(w)), 0) + t) | |
706 | + | if ((eg > lastBlock.timestamp)) | |
707 | + | then throw(("You traded some WLGOLD, cannot unstake until " + toString(eg))) | |
728 | 708 | else { | |
729 | - | let | |
730 | - | let | |
731 | - | let | |
732 | - | $Tuple2((( | |
709 | + | let eh = cG(-(ee), w, 0) | |
710 | + | let dH = eh._1 | |
711 | + | let dI = eh._2 | |
712 | + | $Tuple2(((dH :+ ScriptTransfer(bZ.caller, ee, Y)) ++ ef), dI) | |
733 | 713 | } | |
734 | 714 | } | |
735 | 715 | } | |
737 | 717 | ||
738 | 718 | ||
739 | 719 | ||
740 | - | @Callable( | |
720 | + | @Callable(bZ) | |
741 | 721 | func stakeAcres () = { | |
742 | - | let | |
743 | - | let | |
744 | - | if ((size( | |
722 | + | let ef = bY(bZ) | |
723 | + | let w = toString(bZ.caller) | |
724 | + | if ((size(bZ.payments) != 1)) | |
745 | 725 | then throw("exactly 1 payment must be attached") | |
746 | 726 | else { | |
747 | - | let | |
748 | - | let | |
749 | - | if (if (!(isDefined( | |
727 | + | let ei = bZ.payments[0] | |
728 | + | let cH = ei.amount | |
729 | + | if (if (!(isDefined(ei.assetId))) | |
750 | 730 | then true | |
751 | - | else (value( | |
731 | + | else (value(ei.assetId) != Y)) | |
752 | 732 | then throw("ACRES payments only!") | |
753 | 733 | else { | |
754 | - | let | |
755 | - | let | |
756 | - | let | |
757 | - | $Tuple2(( | |
734 | + | let ej = dL(w, cH, false) | |
735 | + | let ek = ej._1 | |
736 | + | let dI = ej._2 | |
737 | + | $Tuple2((ek ++ ef), dI) | |
758 | 738 | } | |
759 | 739 | } | |
760 | 740 | } | |
761 | 741 | ||
762 | 742 | ||
763 | 743 | ||
764 | - | @Callable( | |
744 | + | @Callable(bZ) | |
765 | 745 | func buyAcres () = { | |
766 | - | let | |
767 | - | if ((size( | |
746 | + | let ef = bY(bZ) | |
747 | + | if ((size(bZ.payments) != 1)) | |
768 | 748 | then throw("exactly 1 payment must be attached") | |
769 | 749 | else { | |
770 | - | let | |
771 | - | let | |
772 | - | if (if (!(isDefined( | |
750 | + | let ei = bZ.payments[0] | |
751 | + | let el = ei.amount | |
752 | + | if (if (!(isDefined(ei.assetId))) | |
773 | 753 | then true | |
774 | - | else (value( | |
754 | + | else (value(ei.assetId) != r)) | |
775 | 755 | then throw("USDT payments only!") | |
776 | - | else if ((b > | |
777 | - | then throw((("Min payment should be " + | |
756 | + | else if ((b > el)) | |
757 | + | then throw((("Min payment should be " + av(b, 6)) + " USDT")) | |
778 | 758 | else { | |
779 | - | let | |
780 | - | let | |
781 | - | let | |
782 | - | let | |
783 | - | if (( | |
759 | + | let em = (el * g) | |
760 | + | let en = fraction(el, d, da(el)) | |
761 | + | let eo = addressFromStringValue(getStringValue(O)) | |
762 | + | let ep = invoke(eo, "requestAcresCallback", [em], nil) | |
763 | + | if ((ep == ep)) | |
784 | 764 | then { | |
785 | - | let | |
786 | - | $Tuple2(([ScriptTransfer( | |
765 | + | let eq = am(invoke(L, "burnWlgold", [en], nil)) | |
766 | + | $Tuple2(([ScriptTransfer(bZ.caller, em, Y)] ++ ef), eq) | |
787 | 767 | } | |
788 | 768 | else throw("Strict value is not equal to itself.") | |
789 | 769 | } | |
792 | 772 | ||
793 | 773 | ||
794 | 774 | ||
795 | - | @Callable( | |
796 | - | func buyAcresREADONLY ( | |
797 | - | let | |
798 | - | let | |
799 | - | $Tuple2(nil, [ | |
775 | + | @Callable(bZ) | |
776 | + | func buyAcresREADONLY (el) = { | |
777 | + | let em = (el * g) | |
778 | + | let er = fraction(el, d, da(el)) | |
779 | + | $Tuple2(nil, [em, b, em, er]) | |
800 | 780 | } | |
801 | 781 | ||
802 | 782 | ||
803 | 783 | ||
804 | - | @Callable( | |
784 | + | @Callable(bZ) | |
805 | 785 | func sellAcres () = { | |
806 | - | let | |
807 | - | if ((size( | |
786 | + | let ef = bY(bZ) | |
787 | + | if ((size(bZ.payments) != 1)) | |
808 | 788 | then throw("exactly 1 payment must be attached") | |
809 | 789 | else { | |
810 | - | let | |
811 | - | let | |
812 | - | if (if (!(isDefined( | |
790 | + | let ei = bZ.payments[0] | |
791 | + | let em = ei.amount | |
792 | + | if (if (!(isDefined(ei.assetId))) | |
813 | 793 | then true | |
814 | - | else (value( | |
794 | + | else (value(ei.assetId) != Y)) | |
815 | 795 | then throw("ACRES payments only!") | |
816 | - | else if ((c > | |
817 | - | then throw((("Min payment should be " + | |
796 | + | else if ((c > em)) | |
797 | + | then throw((("Min payment should be " + av(c, 8)) + " ACRES")) | |
818 | 798 | else { | |
819 | - | let | |
820 | - | let | |
821 | - | let | |
822 | - | let | |
823 | - | let | |
824 | - | if (( | |
825 | - | then throw((("You can sell max " + | |
799 | + | let R = toString(bZ.caller) | |
800 | + | let es = dh() | |
801 | + | let et = es._1 | |
802 | + | let eu = es._2 | |
803 | + | let ev = (eu * g) | |
804 | + | if ((em > ev)) | |
805 | + | then throw((("You can sell max " + av(ev, 8)) + " ACRES")) | |
826 | 806 | else { | |
827 | - | let | |
828 | - | $Tuple2(([ | |
807 | + | let el = ((em / g) / 2) | |
808 | + | $Tuple2(([et, IntegerEntry(bz, (eu - el)), ScriptTransfer(bZ.caller, el, r)] ++ ef), el) | |
829 | 809 | } | |
830 | 810 | } | |
831 | 811 | } | |
833 | 813 | ||
834 | 814 | ||
835 | 815 | ||
836 | - | @Callable( | |
837 | - | func sellAcresREADONLY ( | |
838 | - | let | |
839 | - | let | |
840 | - | let | |
841 | - | let | |
842 | - | $Tuple2(nil, [ | |
816 | + | @Callable(bZ) | |
817 | + | func sellAcresREADONLY (w,em) = { | |
818 | + | let ew = dh() | |
819 | + | let et = ew._1 | |
820 | + | let eu = ew._2 | |
821 | + | let el = ((em / g) / 2) | |
822 | + | $Tuple2(nil, [el, c, (eu * g), 0]) | |
843 | 823 | } | |
844 | 824 | ||
845 | 825 | ||
846 | 826 | ||
847 | - | @Callable( | |
827 | + | @Callable(bZ) | |
848 | 828 | func convertOldStakes () = { | |
849 | - | let | |
850 | - | if (( | |
851 | - | then throw(("Disabled until " + toString(( | |
829 | + | let ef = bY(bZ) | |
830 | + | if ((bw > lastBlock.timestamp)) | |
831 | + | then throw(("Disabled until " + toString((bw / 1000)))) | |
852 | 832 | else { | |
853 | - | let | |
854 | - | if ((size( | |
833 | + | let w = toString(bZ.caller) | |
834 | + | if ((size(bZ.payments) != 0)) | |
855 | 835 | then throw("No payments required") | |
856 | 836 | else { | |
857 | - | let | |
858 | - | let | |
859 | - | let | |
860 | - | then | |
837 | + | let eo = addressFromStringValue(getStringValue(O)) | |
838 | + | let ee = valueOrElse(getInteger(eo, aM(w)), 0) | |
839 | + | let ex = if ((ee > 0)) | |
840 | + | then au(invoke(eo, "unstakeAcresCallback", [ee, w], nil)) | |
861 | 841 | else $Tuple2(0, 0) | |
862 | - | let | |
863 | - | let | |
864 | - | let | |
842 | + | let ey = addressFromStringValue(u) | |
843 | + | let ez = getString(ey, aa(w)) | |
844 | + | let eA = if (isDefined(ez)) | |
865 | 845 | then { | |
866 | - | let | |
867 | - | if ((size( | |
868 | - | then throw((("You have more than " + toString( | |
846 | + | let eB = split_51C(value(ez), "_") | |
847 | + | if ((size(eB) > bx)) | |
848 | + | then throw((("You have more than " + toString(bx)) + " lands staked, please contact support, we'll process your case manually")) | |
869 | 849 | else { | |
870 | - | func | |
850 | + | func eC (bh,eD) = if ((eD == "")) | |
871 | 851 | then throw("landAssetId is required") | |
872 | 852 | else { | |
873 | - | let | |
874 | - | if (( | |
875 | - | then $Tuple5(( | |
853 | + | let dZ = ap(invoke(ey, "unstakeLandCallback", [eD, w], nil)) | |
854 | + | if ((dZ == dZ)) | |
855 | + | then $Tuple5((bh._1 + dZ._1), (bh._2 + dZ._2), (bh._3 + dZ._3), (bh._4 + dZ._4), (bh._5 + dZ._5)) | |
876 | 856 | else throw("Strict value is not equal to itself.") | |
877 | 857 | } | |
878 | 858 | ||
879 | - | let | |
880 | - | let | |
881 | - | let | |
882 | - | let | |
883 | - | func | |
884 | - | then | |
885 | - | else | |
859 | + | let eE = { | |
860 | + | let bj = eB | |
861 | + | let bk = size(bj) | |
862 | + | let bl = $Tuple5(0, 0, 0, 0, 0) | |
863 | + | func bm (bn,bo) = if ((bo >= bk)) | |
864 | + | then bn | |
865 | + | else eC(bn, bj[bo]) | |
886 | 866 | ||
887 | - | func | |
888 | - | then | |
867 | + | func bp (bn,bo) = if ((bo >= bk)) | |
868 | + | then bn | |
889 | 869 | else throw("List size exceeds 14") | |
890 | 870 | ||
891 | - | | |
871 | + | bp(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bl, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14) | |
892 | 872 | } | |
893 | - | if (( | |
873 | + | if ((eE == eE)) | |
894 | 874 | then { | |
895 | - | let | |
896 | - | if (( | |
875 | + | let eF = invoke(ey, "unstakeLandsFinalizeCallback", [w], nil) | |
876 | + | if ((eF == eF)) | |
897 | 877 | then { | |
898 | - | let | |
899 | - | if (( | |
878 | + | let ep = invoke(eo, "requestAcresCallback", [(((eE._1 + eE._2) + eE._3) + eE._4)], nil) | |
879 | + | if ((ep == ep)) | |
900 | 880 | then { | |
901 | - | let | |
902 | - | let | |
903 | - | let | |
904 | - | $Tuple6( | |
881 | + | let eG = cs(bJ, bN, bV, bT, 3, bC, bX, bZ.caller) | |
882 | + | let eH = eG._1 | |
883 | + | let cB = eG._2 | |
884 | + | $Tuple6(eE._1, eE._2, eE._3, eE._4, eE._5, eH) | |
905 | 885 | } | |
906 | 886 | else throw("Strict value is not equal to itself.") | |
907 | 887 | } | |
911 | 891 | } | |
912 | 892 | } | |
913 | 893 | else $Tuple6(0, 0, 0, 0, 0, nil) | |
914 | - | let | |
915 | - | let | |
916 | - | then | |
894 | + | let eI = valueOrElse(getString(ey, ac(w)), "") | |
895 | + | let eJ = if ((eI != "")) | |
896 | + | then at(invoke(ey, "unstakeDuckCallback", [eI, w], nil)) | |
917 | 897 | else $Tuple3(0, 0, 0) | |
918 | - | let | |
919 | - | $Tuple2((( | |
898 | + | let eK = cG((((((((ex._1 + eA._1) + eA._2) + eA._3) + eA._4) + eJ._1) + eJ._2) + eJ._3), w, 0) | |
899 | + | $Tuple2(((eA._6 ++ eK._1) ++ ef), $Tuple3(ex._2, eA._5, eK._2)) | |
920 | 900 | } | |
921 | 901 | } | |
922 | 902 | } | |
923 | 903 | ||
924 | 904 | ||
925 | 905 | ||
926 | - | @Callable( | |
927 | - | func unstakeLandsREADONLY ( | |
928 | - | let | |
929 | - | let | |
930 | - | let | |
906 | + | @Callable(bZ) | |
907 | + | func unstakeLandsREADONLY (w) = { | |
908 | + | let ey = addressFromStringValue(u) | |
909 | + | let ez = getString(ey, aa(w)) | |
910 | + | let eA = if (isDefined(ez)) | |
931 | 911 | then { | |
932 | - | let | |
933 | - | func | |
912 | + | let eB = split_51C(value(ez), "_") | |
913 | + | func eC (bh,eD) = if ((eD == "")) | |
934 | 914 | then throw("landAssetId is required") | |
935 | 915 | else { | |
936 | - | let | |
937 | - | $Tuple4(( | |
916 | + | let dZ = as(invoke(ey, "unstakeLandREADONLY", [eD, w], nil)) | |
917 | + | $Tuple4((bh._1 + dZ._1), (bh._2 + dZ._2), (bh._3 + dZ._3), (bh._4 + dZ._4)) | |
938 | 918 | } | |
939 | 919 | ||
940 | - | let | |
941 | - | let | |
942 | - | let | |
943 | - | func | |
944 | - | then | |
945 | - | else | |
920 | + | let bj = eB | |
921 | + | let bk = size(bj) | |
922 | + | let bl = $Tuple4(0, 0, 0, 0) | |
923 | + | func bm (bn,bo) = if ((bo >= bk)) | |
924 | + | then bn | |
925 | + | else eC(bn, bj[bo]) | |
946 | 926 | ||
947 | - | func | |
948 | - | then | |
927 | + | func bp (bn,bo) = if ((bo >= bk)) | |
928 | + | then bn | |
949 | 929 | else throw("List size exceeds 100") | |
950 | 930 | ||
951 | - | | |
931 | + | bp(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bl, 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), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100) | |
952 | 932 | } | |
953 | 933 | else $Tuple4(0, 0, 0, 0) | |
954 | - | $Tuple2(nil, | |
934 | + | $Tuple2(nil, eA) | |
955 | 935 | } | |
956 | 936 | ||
957 | 937 | ||
958 | 938 | ||
959 | - | @Callable( | |
960 | - | func stakeAcresCallback ( | |
939 | + | @Callable(bZ) | |
940 | + | func stakeAcresCallback (R) = if ((bZ.caller != addressFromStringValue(u))) | |
961 | 941 | then throw("Permission denied") | |
962 | - | else | |
942 | + | else cG(bZ.payments[0].amount, R, 0) | |
963 | 943 | ||
964 | 944 | ||
965 | 945 | ||
966 | - | @Callable( | |
967 | - | func simulateStakeAcresREADONLY ( | |
968 | - | let | |
969 | - | let | |
970 | - | let | |
971 | - | let | |
972 | - | let | |
973 | - | let | |
974 | - | let | |
975 | - | let | |
976 | - | let | |
977 | - | let | |
978 | - | let | |
979 | - | $Tuple2(nil, [cX, | |
946 | + | @Callable(bZ) | |
947 | + | func simulateStakeAcresREADONLY (w,eL) = { | |
948 | + | let cM = aM(w) | |
949 | + | let cO = (valueOrElse(getInteger(cM), 0) + eL) | |
950 | + | let cP = valueOrElse(getInteger(aO), 0) | |
951 | + | let cQ = aN(w) | |
952 | + | let cR = valueOrElse(getInteger(cQ), 0) | |
953 | + | let eM = valueOrElse(getInteger(K, bb(w)), 0) | |
954 | + | let eN = br(cO, eM) | |
955 | + | let cV = eN._1 | |
956 | + | let cW = eN._2 | |
957 | + | let cX = valueOrElse(getInteger(aP), 0) | |
958 | + | let eO = ((cX + cV) - cR) | |
959 | + | $Tuple2(nil, [cR, cV, cX, eO]) | |
980 | 960 | } | |
981 | 961 | ||
982 | 962 | ||
983 | 963 | ||
984 | - | @Callable( | |
985 | - | func issuePickC1 ( | |
964 | + | @Callable(bZ) | |
965 | + | func issuePickC1 (eP) = if ((bZ.caller != L)) | |
986 | 966 | then throw("Permission denied") | |
987 | - | else | |
967 | + | else cs(bK, bM, bV, bP, 1, bD, bX, addressFromStringValue(eP)) | |
988 | 968 | ||
989 | 969 | ||
990 | 970 | ||
991 | - | @Callable( | |
971 | + | @Callable(bZ) | |
992 | 972 | func stakeNFT () = { | |
993 | - | let | |
994 | - | if ((size( | |
973 | + | let ef = bY(bZ) | |
974 | + | if ((size(bZ.payments) != 1)) | |
995 | 975 | then throw("Exactly one payment required") | |
996 | 976 | else { | |
997 | - | let | |
998 | - | if (( | |
977 | + | let ei = value(bZ.payments[0]) | |
978 | + | if ((ei.amount != 1)) | |
999 | 979 | then throw("NFT token should be attached as payment") | |
1000 | 980 | else { | |
1001 | - | let | |
1002 | - | let | |
1003 | - | let | |
1004 | - | let | |
1005 | - | let | |
1006 | - | let | |
1007 | - | let | |
1008 | - | then split_4C(value( | |
981 | + | let ae = value(ei.assetId) | |
982 | + | let eQ = value(assetInfo(ae)) | |
983 | + | let dB = toBase58String(ae) | |
984 | + | let R = toString(bZ.caller) | |
985 | + | let eR = af(R) | |
986 | + | let eS = getString(eR) | |
987 | + | let eT = if (isDefined(eS)) | |
988 | + | then split_4C(value(eS), "_") | |
1009 | 989 | else nil | |
1010 | - | if (containsElement( | |
1011 | - | then throw(("Your staked NFTs already contain " + | |
1012 | - | else if ((size( | |
1013 | - | then throw((("Your already staked max (" + toString( | |
990 | + | if (containsElement(eT, dB)) | |
991 | + | then throw(("Your staked NFTs already contain " + dB)) | |
992 | + | else if ((size(eT) >= aT)) | |
993 | + | then throw((("Your already staked max (" + toString(aT)) + ") NFTs")) | |
1014 | 994 | else { | |
1015 | - | let | |
1016 | - | if (( | |
995 | + | let eU = StringEntry(eR, makeString_2C((eT :+ dB), "_")) | |
996 | + | if ((eQ.issuer == this)) | |
1017 | 997 | then { | |
1018 | - | let | |
1019 | - | let | |
1020 | - | let | |
1021 | - | $Tuple2((( | |
998 | + | let eV = dA(R, dB, (cC(value(eQ.description)) * 10000), aZ(R), aW, aQ) | |
999 | + | let dH = eV._1 | |
1000 | + | let dI = eV._2 | |
1001 | + | $Tuple2(((ef ++ dH) :+ eU), dI) | |
1022 | 1002 | } | |
1023 | - | else if (( | |
1003 | + | else if ((dx(eQ) == "")) | |
1024 | 1004 | then throw("Only WavesLands and Arkimals NFT tokens are accepted") | |
1025 | 1005 | else { | |
1026 | - | let | |
1027 | - | let | |
1028 | - | let | |
1029 | - | $Tuple2((( | |
1006 | + | let eW = dA(R, dB, aS, ba(R), aX, aR) | |
1007 | + | let dH = eW._1 | |
1008 | + | let dI = eW._2 | |
1009 | + | $Tuple2(((ef ++ dH) :+ eU), dI) | |
1030 | 1010 | } | |
1031 | 1011 | } | |
1032 | 1012 | } | |
1035 | 1015 | ||
1036 | 1016 | ||
1037 | 1017 | ||
1038 | - | @Callable( | |
1039 | - | func unstakeNFT ( | |
1040 | - | let | |
1041 | - | if ((size( | |
1018 | + | @Callable(bZ) | |
1019 | + | func unstakeNFT (dB) = { | |
1020 | + | let ef = bY(bZ) | |
1021 | + | if ((size(bZ.payments) != 0)) | |
1042 | 1022 | then throw("No payments required") | |
1043 | 1023 | else { | |
1044 | - | let | |
1045 | - | let | |
1046 | - | let | |
1047 | - | let | |
1048 | - | if (!(isDefined(getInteger( | |
1049 | - | then throw((("NFT " + | |
1024 | + | let ae = fromBase58String(dB) | |
1025 | + | let R = toString(bZ.caller) | |
1026 | + | let eQ = value(assetInfo(ae)) | |
1027 | + | let cL = ad(dB, R) | |
1028 | + | if (!(isDefined(getInteger(cL)))) | |
1029 | + | then throw((("NFT " + eQ.name) + " is not staked by you")) | |
1050 | 1030 | else { | |
1051 | - | let | |
1052 | - | let | |
1053 | - | let | |
1054 | - | if (!(isDefined( | |
1055 | - | then throw(("Your staked NFTs don't contain " + | |
1031 | + | let eR = af(R) | |
1032 | + | let eT = split_4C(valueOrElse(getString(eR), ""), "_") | |
1033 | + | let I = indexOf(eT, dB) | |
1034 | + | if (!(isDefined(I))) | |
1035 | + | then throw(("Your staked NFTs don't contain " + dB)) | |
1056 | 1036 | else { | |
1057 | - | let | |
1058 | - | then StringEntry( | |
1059 | - | else DeleteEntry( | |
1060 | - | let | |
1061 | - | if ( | |
1037 | + | let eU = if ((size(eT) > 1)) | |
1038 | + | then StringEntry(eR, makeString_2C(removeByIndex(eT, value(I)), "_")) | |
1039 | + | else DeleteEntry(eR) | |
1040 | + | let eX = (eQ.issuer == this) | |
1041 | + | if (eX) | |
1062 | 1042 | then { | |
1063 | - | let | |
1064 | - | let | |
1065 | - | let | |
1066 | - | let | |
1067 | - | let | |
1068 | - | $Tuple2((((((( | |
1043 | + | let eY = valueOrElse(getInteger(aZ(R)), 0) | |
1044 | + | let eZ = (cC(value(eQ.description)) * 10000) | |
1045 | + | let fa = cG(0, R, -(eZ)) | |
1046 | + | let dH = fa._1 | |
1047 | + | let dI = fa._2 | |
1048 | + | $Tuple2(((((((dH :+ eU) :+ IntegerEntry(aZ(R), (eY - 1))) :+ IntegerEntry(aW, max([0, (valueOrElse(getInteger(aW), 0) - 1)]))) :+ DeleteEntry(ad(toBase58String(ae), R))) :+ ScriptTransfer(bZ.caller, 1, ae)) ++ ef), dI) | |
1069 | 1049 | } | |
1070 | 1050 | else { | |
1071 | - | let | |
1072 | - | if (( | |
1051 | + | let fb = dx(eQ) | |
1052 | + | if ((fb == "")) | |
1073 | 1053 | then throw("Only WavesLands and Arkimals NFT tokens are accepted") | |
1074 | 1054 | else { | |
1075 | - | let | |
1076 | - | let | |
1077 | - | let | |
1078 | - | let | |
1079 | - | $Tuple2(((((( | |
1055 | + | let fc = valueOrElse(getInteger(ba(R)), 0) | |
1056 | + | let fd = cG(0, R, -(aS)) | |
1057 | + | let dH = fd._1 | |
1058 | + | let dI = fd._2 | |
1059 | + | $Tuple2((((((dH :+ eU) :+ IntegerEntry(ba(R), (fc - 1))) :+ DeleteEntry(ad(toBase58String(ae), R))) :+ ScriptTransfer(bZ.caller, 1, ae)) ++ ef), dI) | |
1080 | 1060 | } | |
1081 | 1061 | } | |
1082 | 1062 | } | |
1086 | 1066 | ||
1087 | 1067 | ||
1088 | 1068 | ||
1089 | - | @Callable( | |
1069 | + | @Callable(bZ) | |
1090 | 1070 | func exchangeNFTs () = { | |
1091 | - | let | |
1092 | - | if ((3 > size( | |
1071 | + | let ef = bY(bZ) | |
1072 | + | if ((3 > size(bZ.payments))) | |
1093 | 1073 | then throw("Min one WLGOLD and 2 NFT payments allowed") | |
1094 | - | else if ((size( | |
1074 | + | else if ((size(bZ.payments) > 10)) | |
1095 | 1075 | then throw("Max one WLGOLD and 9 NFT payments allowed") | |
1096 | 1076 | else { | |
1097 | - | let | |
1098 | - | func | |
1099 | - | let | |
1100 | - | if (( | |
1101 | - | then $Tuple4(( | |
1077 | + | let R = toString(bZ.caller) | |
1078 | + | func fe (bh,ei) = { | |
1079 | + | let ae = valueOrErrorMessage(ei.assetId, "WAVES payments not allowed") | |
1080 | + | if ((ae == V)) | |
1081 | + | then $Tuple4((bh._1 + ei.amount), bh._2, bh._3, bh._4) | |
1102 | 1082 | else { | |
1103 | - | let | |
1104 | - | if (( | |
1083 | + | let eQ = value(assetInfo(ae)) | |
1084 | + | if ((eQ.issuer != this)) | |
1105 | 1085 | then throw("Only WL-issued NFTs allowed") | |
1106 | 1086 | else { | |
1107 | - | let | |
1108 | - | if (if (( | |
1109 | - | then ( | |
1087 | + | let ff = cE(value(eQ.description)) | |
1088 | + | if (if ((bh._4 > 0)) | |
1089 | + | then (ff != bh._4) | |
1110 | 1090 | else false) | |
1111 | 1091 | then throw("You can exchange only NFTs of the same rarity") | |
1112 | 1092 | else { | |
1113 | - | let | |
1114 | - | $Tuple4( | |
1093 | + | let cx = cC(value(eQ.description)) | |
1094 | + | $Tuple4(bh._1, (bh._2 + cx), (bh._3 :+ Burn(ae, 1)), ff) | |
1115 | 1095 | } | |
1116 | 1096 | } | |
1117 | 1097 | } | |
1118 | 1098 | } | |
1119 | 1099 | ||
1120 | - | let | |
1121 | - | let | |
1122 | - | let | |
1123 | - | let | |
1124 | - | func | |
1125 | - | then | |
1126 | - | else | |
1100 | + | let fg = { | |
1101 | + | let bj = bZ.payments | |
1102 | + | let bk = size(bj) | |
1103 | + | let bl = $Tuple4(0, 0, nil, -1) | |
1104 | + | func bm (bn,bo) = if ((bo >= bk)) | |
1105 | + | then bn | |
1106 | + | else fe(bn, bj[bo]) | |
1127 | 1107 | ||
1128 | - | func | |
1129 | - | then | |
1108 | + | func bp (bn,bo) = if ((bo >= bk)) | |
1109 | + | then bn | |
1130 | 1110 | else throw("List size exceeds 10") | |
1131 | 1111 | ||
1132 | - | | |
1112 | + | bp(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bl, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
1133 | 1113 | } | |
1134 | - | let | |
1135 | - | let | |
1136 | - | let | |
1137 | - | let | |
1138 | - | let | |
1139 | - | then if (( | |
1140 | - | then | |
1141 | - | else if (( | |
1142 | - | then | |
1143 | - | else throw((("You can advance only one level of rarity, max total bonus " + toString( | |
1144 | - | else if (( | |
1145 | - | then if (( | |
1146 | - | then | |
1147 | - | else if (( | |
1148 | - | then | |
1149 | - | else throw((("You can advance only one level of rarity, max total bonus " + toString( | |
1150 | - | else if (( | |
1151 | - | then if (( | |
1152 | - | then | |
1153 | - | else | |
1154 | - | else if (( | |
1155 | - | then | |
1156 | - | else if (( | |
1114 | + | let fh = fg._1 | |
1115 | + | let fi = fg._2 | |
1116 | + | let fj = fg._3 | |
1117 | + | let cw = fg._4 | |
1118 | + | let fk = if ((cw == bP)) | |
1119 | + | then if ((bE[bF] > fi)) | |
1120 | + | then bP | |
1121 | + | else if ((bE[bG] > fi)) | |
1122 | + | then bQ | |
1123 | + | else throw((("You can advance only one level of rarity, max total bonus " + toString(bE[bG])) + "%")) | |
1124 | + | else if ((cw == bQ)) | |
1125 | + | then if ((bE[bG] > fi)) | |
1126 | + | then bQ | |
1127 | + | else if ((bE[bH] > fi)) | |
1128 | + | then bR | |
1129 | + | else throw((("You can advance only one level of rarity, max total bonus " + toString(bE[bH])) + "%")) | |
1130 | + | else if ((cw == bR)) | |
1131 | + | then if ((bE[bH] > fi)) | |
1132 | + | then bR | |
1133 | + | else bS | |
1134 | + | else if ((cw == bS)) | |
1135 | + | then bS | |
1136 | + | else if ((cw == bT)) | |
1157 | 1137 | then throw("You can't exchange NFTs of this rarity") | |
1158 | 1138 | else throw("Unknown rarity") | |
1159 | - | let | |
1160 | - | let | |
1161 | - | let | |
1162 | - | let | |
1163 | - | if ((0 > | |
1164 | - | then throw((("You need to attach " + | |
1139 | + | let fl = fraction(fi, e, da(0)) | |
1140 | + | let fm = (fh - fl) | |
1141 | + | let fn = (fl / 2) | |
1142 | + | let eq = am(invoke(L, "burnWlgold", [(fl - fn)], nil)) | |
1143 | + | if ((0 > fm)) | |
1144 | + | then throw((("You need to attach " + av(fl, 8)) + " WLGOLD as fee")) | |
1165 | 1145 | else { | |
1166 | - | let | |
1167 | - | then [ScriptTransfer( | |
1146 | + | let fo = if ((fm > 0)) | |
1147 | + | then [ScriptTransfer(bZ.caller, fm, V)] | |
1168 | 1148 | else nil | |
1169 | - | let | |
1170 | - | let | |
1171 | - | let | |
1172 | - | let | |
1173 | - | let | |
1149 | + | let fp = cs(bK, fk, bV, fk, fi, bD, bX, bZ.caller) | |
1150 | + | let fq = fp._1 | |
1151 | + | let cB = fp._2 | |
1152 | + | let fr = size(fj) | |
1153 | + | let fs = if ((fr == 0)) | |
1174 | 1154 | then nil | |
1175 | - | else [IntegerEntry( | |
1176 | - | $Tuple2(((((( | |
1155 | + | else [IntegerEntry(aV, (valueOrElse(getInteger(aV), 0) + fr))] | |
1156 | + | $Tuple2((((((fq ++ fj) ++ fs) ++ ef) ++ fo) :+ ScriptTransfer(addressFromStringValue(getStringValue(L, bu)), fn, V)), $Tuple2(cB, eq)) | |
1177 | 1157 | } | |
1178 | 1158 | } | |
1179 | 1159 | } | |
1180 | 1160 | ||
1181 | 1161 | ||
1182 | 1162 | ||
1183 | - | @Callable( | |
1163 | + | @Callable(bZ) | |
1184 | 1164 | func openNftChest () = { | |
1185 | - | let | |
1186 | - | if ((size( | |
1165 | + | let ef = bY(bZ) | |
1166 | + | if ((size(bZ.payments) != 1)) | |
1187 | 1167 | then throw("exactly 1 payment must be attached") | |
1188 | 1168 | else { | |
1189 | - | let | |
1190 | - | let | |
1191 | - | if (if (!(isDefined( | |
1169 | + | let ei = bZ.payments[0] | |
1170 | + | let en = ei.amount | |
1171 | + | if (if (!(isDefined(ei.assetId))) | |
1192 | 1172 | then true | |
1193 | - | else (value( | |
1173 | + | else (value(ei.assetId) != V)) | |
1194 | 1174 | then throw("WLGOLD payments only!") | |
1195 | 1175 | else { | |
1196 | - | let | |
1197 | - | let | |
1198 | - | let | |
1199 | - | let | |
1200 | - | if ((0 > | |
1201 | - | then throw((("You need to attach " + | |
1176 | + | let fl = fraction(j, d, da(0)) | |
1177 | + | let fm = (en - fl) | |
1178 | + | let fn = (fl / 2) | |
1179 | + | let eq = am(invoke(L, "burnWlgold", [(fl - fn)], nil)) | |
1180 | + | if ((0 > fm)) | |
1181 | + | then throw((("You need to attach " + av(fl, 8)) + " WLGOLD as fee")) | |
1202 | 1182 | else { | |
1203 | - | let | |
1204 | - | then [ScriptTransfer( | |
1183 | + | let fo = if ((fm > 0)) | |
1184 | + | then [ScriptTransfer(bZ.caller, fm, V)] | |
1205 | 1185 | else nil | |
1206 | - | let | |
1207 | - | let | |
1208 | - | let | |
1209 | - | if (( | |
1210 | - | then throw(("Random number is not ready yet, wait until height = " + toString( | |
1186 | + | let R = toString(bZ.caller) | |
1187 | + | let ft = T(R) | |
1188 | + | let fu = valueOrErrorMessage(getInteger(ft), "You have to commitForRandom() first!") | |
1189 | + | if ((fu > height)) | |
1190 | + | then throw(("Random number is not ready yet, wait until height = " + toString(fu))) | |
1211 | 1191 | else { | |
1212 | - | let | |
1213 | - | let | |
1214 | - | let | |
1215 | - | let | |
1216 | - | then $Tuple2(1, | |
1217 | - | else if ((98 > | |
1218 | - | then $Tuple2(5, | |
1219 | - | else $Tuple2(10, | |
1220 | - | let | |
1221 | - | let | |
1222 | - | let | |
1223 | - | let | |
1224 | - | let | |
1225 | - | $Tuple2((((( | |
1192 | + | let aD = value(value(blockInfoByHeight(fu)).vrf) | |
1193 | + | let aC = fromBase58String(split(valueOrElse(getString(S(R)), "42_DEFAULT"), "_")[1]) | |
1194 | + | let fv = aA(100, aC, aD) | |
1195 | + | let fw = if ((84 > fv)) | |
1196 | + | then $Tuple2(1, bP) | |
1197 | + | else if ((98 > fv)) | |
1198 | + | then $Tuple2(5, bQ) | |
1199 | + | else $Tuple2(10, bR) | |
1200 | + | let cq = fw._1 | |
1201 | + | let cw = fw._2 | |
1202 | + | let fx = cs(bK, cw, bV, cw, cq, bD, bX, bZ.caller) | |
1203 | + | let fq = fx._1 | |
1204 | + | let cB = fx._2 | |
1205 | + | $Tuple2(((((fq ++ ef) ++ fo) :+ ScriptTransfer(addressFromStringValue(getStringValue(L, bu)), fn, V)) :+ DeleteEntry(ft)), $Tuple2(cB, eq)) | |
1226 | 1206 | } | |
1227 | 1207 | } | |
1228 | 1208 | } | |
1231 | 1211 | ||
1232 | 1212 | ||
1233 | 1213 | ||
1234 | - | @Callable( | |
1214 | + | @Callable(bZ) | |
1235 | 1215 | func commitForRandom () = { | |
1236 | - | let | |
1237 | - | let | |
1238 | - | let | |
1239 | - | if (isDefined(getInteger( | |
1216 | + | let ef = bY(bZ) | |
1217 | + | let R = toString(bZ.caller) | |
1218 | + | let ft = T(R) | |
1219 | + | if (isDefined(getInteger(ft))) | |
1240 | 1220 | then throw("You already commited for random, please use it") | |
1241 | 1221 | else { | |
1242 | - | let | |
1243 | - | $Tuple2(([IntegerEntry( | |
1222 | + | let fu = (height + i) | |
1223 | + | $Tuple2(([IntegerEntry(ft, fu)] ++ ef), fu) | |
1244 | 1224 | } | |
1245 | 1225 | } | |
1246 | 1226 | ||
1247 | 1227 | ||
1248 | 1228 | ||
1249 | - | @Callable( | |
1250 | - | func drawDaylyPromo () = if (( | |
1229 | + | @Callable(bZ) | |
1230 | + | func drawDaylyPromo () = if ((bZ.caller != this)) | |
1251 | 1231 | then throw("Permission denied") | |
1252 | 1232 | else { | |
1253 | - | let | |
1254 | - | let | |
1255 | - | if (( | |
1233 | + | let fy = (height / o) | |
1234 | + | let aB = valueOrElse(getInteger(ai), 0) | |
1235 | + | if ((aB == 0)) | |
1256 | 1236 | then throw("No tickets to draw") | |
1257 | 1237 | else { | |
1258 | - | let | |
1259 | - | let | |
1260 | - | then | |
1261 | - | else ( | |
1262 | - | let | |
1263 | - | let | |
1264 | - | if (( | |
1238 | + | let fz = (fy * o) | |
1239 | + | let fA = if ((fz > q)) | |
1240 | + | then fz | |
1241 | + | else (fz + q) | |
1242 | + | let aD = value(value(blockInfoByHeight(fA)).vrf) | |
1243 | + | let dV = valueOrElse(getString(aj), "") | |
1244 | + | if ((dV == "")) | |
1265 | 1245 | then throw("No participants") | |
1266 | 1246 | else { | |
1267 | - | func | |
1268 | - | then | |
1247 | + | func fB (fC,fD) = if ((fD >= dJ)) | |
1248 | + | then fC | |
1269 | 1249 | else { | |
1270 | - | let | |
1271 | - | let | |
1250 | + | let fv = aA(fC._1, fC._2, aD) | |
1251 | + | let fE = if ((fC._3 == "")) | |
1272 | 1252 | then nil | |
1273 | - | else split_51C( | |
1274 | - | func | |
1275 | - | let | |
1276 | - | let | |
1277 | - | let | |
1278 | - | let | |
1279 | - | if (if (( | |
1280 | - | then ( | |
1253 | + | else split_51C(fC._3, "_") | |
1254 | + | func fF (bh,fG) = { | |
1255 | + | let fH = split(fG, ":") | |
1256 | + | let R = fH[0] | |
1257 | + | let dR = parseIntValue(fH[1]) | |
1258 | + | let fI = (bh._1 + dR) | |
1259 | + | if (if ((bh._3 == "")) | |
1260 | + | then (fI > fv) | |
1281 | 1261 | else false) | |
1282 | - | then $Tuple3( | |
1283 | - | else $Tuple3( | |
1262 | + | then $Tuple3(fI, dR, R) | |
1263 | + | else $Tuple3(fI, bh._2, bh._3) | |
1284 | 1264 | } | |
1285 | 1265 | ||
1286 | - | let | |
1287 | - | let | |
1288 | - | let | |
1289 | - | let | |
1290 | - | func | |
1291 | - | then | |
1292 | - | else | |
1266 | + | let dZ = { | |
1267 | + | let bj = fE | |
1268 | + | let bk = size(bj) | |
1269 | + | let bl = $Tuple3(0, 0, "") | |
1270 | + | func bm (bn,bo) = if ((bo >= bk)) | |
1271 | + | then bn | |
1272 | + | else fF(bn, bj[bo]) | |
1293 | 1273 | ||
1294 | - | func | |
1295 | - | then | |
1274 | + | func bp (bn,bo) = if ((bo >= bk)) | |
1275 | + | then bn | |
1296 | 1276 | else throw("List size exceeds 200") | |
1297 | 1277 | ||
1298 | - | | |
1278 | + | bp(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bl, 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), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100), 101), 102), 103), 104), 105), 106), 107), 108), 109), 110), 111), 112), 113), 114), 115), 116), 117), 118), 119), 120), 121), 122), 123), 124), 125), 126), 127), 128), 129), 130), 131), 132), 133), 134), 135), 136), 137), 138), 139), 140), 141), 142), 143), 144), 145), 146), 147), 148), 149), 150), 151), 152), 153), 154), 155), 156), 157), 158), 159), 160), 161), 162), 163), 164), 165), 166), 167), 168), 169), 170), 171), 172), 173), 174), 175), 176), 177), 178), 179), 180), 181), 182), 183), 184), 185), 186), 187), 188), 189), 190), 191), 192), 193), 194), 195), 196), 197), 198), 199), 200) | |
1299 | 1279 | } | |
1300 | - | let | |
1301 | - | if (( | |
1302 | - | then | |
1280 | + | let fJ = dZ._3 | |
1281 | + | if ((fJ == "")) | |
1282 | + | then fC | |
1303 | 1283 | else { | |
1304 | - | let | |
1305 | - | let | |
1306 | - | then drop( | |
1307 | - | else (dropRight( | |
1308 | - | let | |
1309 | - | let | |
1310 | - | let | |
1311 | - | let | |
1312 | - | $Tuple5(( | |
1284 | + | let dY = split_51C(fC._3, fJ) | |
1285 | + | let dX = if ((dY[0] == "")) | |
1286 | + | then drop(dY[1], 5) | |
1287 | + | else (dropRight(dY[0], 1) + drop(dY[1], 4)) | |
1288 | + | let fK = dL(fJ, dK[fD], true) | |
1289 | + | let ek = fK._1 | |
1290 | + | let fL = fK._2 | |
1291 | + | let fM = fromBase58String(split(valueOrElse(getString(S(fJ)), "0_DEFAULT"), "_")[1]) | |
1292 | + | $Tuple5((fC._1 - dZ._2), fM, dX, (fC._4 :+ ek), (fC._5 :+ fJ)) | |
1313 | 1293 | } | |
1314 | 1294 | } | |
1315 | 1295 | ||
1316 | - | let | |
1317 | - | let | |
1318 | - | let | |
1319 | - | let | |
1320 | - | func | |
1321 | - | then | |
1322 | - | else | |
1296 | + | let fN = { | |
1297 | + | let bj = [0, 1, 2] | |
1298 | + | let bk = size(bj) | |
1299 | + | let bl = $Tuple5(aB, bZ.transactionId, dV, nil, nil) | |
1300 | + | func bm (bn,bo) = if ((bo >= bk)) | |
1301 | + | then bn | |
1302 | + | else fB(bn, bj[bo]) | |
1323 | 1303 | ||
1324 | - | func | |
1325 | - | then | |
1304 | + | func bp (bn,bo) = if ((bo >= bk)) | |
1305 | + | then bn | |
1326 | 1306 | else throw("List size exceeds 3") | |
1327 | 1307 | ||
1328 | - | | |
1308 | + | bp(bm(bm(bm(bl, 0), 1), 2), 3) | |
1329 | 1309 | } | |
1330 | - | $Tuple2(((( | |
1310 | + | $Tuple2((((fN._4 :+ StringEntry(aj, fN._3)) :+ IntegerEntry(ai, fN._1)) :+ StringEntry(ak(fy), makeString(fN._5, "_"))), 0) | |
1331 | 1311 | } | |
1332 | 1312 | } | |
1333 | 1313 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "__" | |
5 | 5 | ||
6 | 6 | let b = 1000000 | |
7 | 7 | ||
8 | 8 | let c = 10000000 | |
9 | 9 | ||
10 | 10 | let d = 100000000 | |
11 | 11 | ||
12 | 12 | let e = 100000000000000 | |
13 | 13 | ||
14 | 14 | let f = 86400000 | |
15 | 15 | ||
16 | 16 | let g = 10 | |
17 | 17 | ||
18 | 18 | let h = 100 | |
19 | 19 | ||
20 | 20 | let i = 2 | |
21 | 21 | ||
22 | 22 | let j = 5000000 | |
23 | 23 | ||
24 | 24 | let k = take(drop(this.bytes, 1), 1) | |
25 | 25 | ||
26 | 26 | let l = { | |
27 | 27 | let m = k | |
28 | 28 | if ((base58'2W' == m)) | |
29 | 29 | then 4487040 | |
30 | 30 | else if ((base58'2T' == m)) | |
31 | 31 | then 3412800 | |
32 | 32 | else throw("Unknown chain") | |
33 | 33 | } | |
34 | 34 | ||
35 | 35 | let n = { | |
36 | 36 | let m = k | |
37 | 37 | if ((base58'2W' == m)) | |
38 | 38 | then 4517280 | |
39 | 39 | else if ((base58'2T' == m)) | |
40 | 40 | then 3443040 | |
41 | 41 | else throw("Unknown chain") | |
42 | 42 | } | |
43 | 43 | ||
44 | 44 | let o = { | |
45 | 45 | let m = k | |
46 | 46 | if ((base58'2W' == m)) | |
47 | 47 | then 1440 | |
48 | 48 | else if ((base58'2T' == m)) | |
49 | 49 | then 60 | |
50 | 50 | else throw("Unknown chain") | |
51 | 51 | } | |
52 | 52 | ||
53 | 53 | let p = { | |
54 | 54 | let m = k | |
55 | 55 | if ((base58'2W' == m)) | |
56 | 56 | then 10080 | |
57 | 57 | else if ((base58'2T' == m)) | |
58 | 58 | then 180 | |
59 | 59 | else throw("Unknown chain") | |
60 | 60 | } | |
61 | 61 | ||
62 | 62 | let q = { | |
63 | 63 | let m = k | |
64 | 64 | if ((base58'2W' == m)) | |
65 | 65 | then 0 | |
66 | 66 | else if ((base58'2T' == m)) | |
67 | 67 | then 1146000 | |
68 | 68 | else throw("Unknown chain") | |
69 | 69 | } | |
70 | 70 | ||
71 | 71 | let r = { | |
72 | 72 | let m = k | |
73 | 73 | if ((base58'2W' == m)) | |
74 | 74 | then base58'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi' | |
75 | 75 | else if ((base58'2T' == m)) | |
76 | 76 | then base58'6mWwf9mZBjVgkC54idpyaZLQfAosD914wT8fGf2iiY63' | |
77 | 77 | else throw("Unknown chain") | |
78 | 78 | } | |
79 | 79 | ||
80 | 80 | let s = { | |
81 | 81 | let m = k | |
82 | 82 | if ((base58'2W' == m)) | |
83 | 83 | then "3PFwYta8biEz31zpeFe5DJK8wE5trSpQVF8" | |
84 | 84 | else if ((base58'2T' == m)) | |
85 | 85 | then "3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv" | |
86 | 86 | else throw("Unknown chain") | |
87 | 87 | } | |
88 | 88 | ||
89 | 89 | let t = { | |
90 | 90 | let m = k | |
91 | 91 | if ((base58'2W' == m)) | |
92 | - | then "3PQCuvFbvh4LkPUnrnU1z3jnbA1p9m3WNhv" | |
93 | - | else if ((base58'2T' == m)) | |
94 | - | then "3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy" | |
95 | - | else throw("Unknown chain") | |
96 | - | } | |
97 | - | ||
98 | - | let u = { | |
99 | - | let m = k | |
100 | - | if ((base58'2W' == m)) | |
101 | 92 | then f | |
102 | 93 | else if ((base58'2T' == m)) | |
103 | 94 | then 60000 | |
104 | 95 | else throw("Unknown chain") | |
105 | 96 | } | |
106 | 97 | ||
107 | - | let | |
98 | + | let u = { | |
108 | 99 | let m = k | |
109 | 100 | if ((base58'2W' == m)) | |
110 | 101 | then "3PLncXtS1U83D6cQbFD3H8rBHPLgzxSFKZ1" | |
111 | 102 | else if ((base58'2T' == m)) | |
112 | 103 | then "3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm" | |
113 | 104 | else throw("Unknown chain") | |
114 | 105 | } | |
115 | 106 | ||
116 | - | func | |
107 | + | func v (w,x) = valueOrErrorMessage(getString(w, x), makeString(["mandatory ", toString(w), ".", x, " is not defined"], "")) | |
117 | 108 | ||
118 | 109 | ||
119 | - | let | |
110 | + | let y = 1 | |
120 | 111 | ||
121 | - | let | |
112 | + | let z = 2 | |
122 | 113 | ||
123 | - | let | |
114 | + | let A = 5 | |
124 | 115 | ||
125 | - | let | |
116 | + | let B = 6 | |
126 | 117 | ||
127 | - | func | |
118 | + | func C () = "%s__restConfig" | |
128 | 119 | ||
129 | 120 | ||
130 | - | func | |
121 | + | func D () = "%s__rest2Addr" | |
131 | 122 | ||
132 | 123 | ||
133 | - | func | |
124 | + | func E (F) = split_4C(v(F, C()), a) | |
134 | 125 | ||
135 | 126 | ||
136 | - | let G = addressFromStringValue(valueOrElse(getString(this, F()), t)) | |
137 | - | ||
138 | - | func H (I) = split_4C(w(I, D()), a) | |
127 | + | func G (H,I) = valueOrErrorMessage(addressFromString(H[I]), ("Rest cfg doesn't contain address at index " + toString(I))) | |
139 | 128 | ||
140 | 129 | ||
141 | - | func J (K,L) = valueOrErrorMessage(addressFromString(K[L]), ("Rest cfg doesn't contain address at index " + toString(L))) | |
130 | + | let J = addressFromStringValue(valueOrElse(getString(this, D()), s)) | |
131 | + | ||
132 | + | let H = E(J) | |
133 | + | ||
134 | + | let K = G(H, y) | |
135 | + | ||
136 | + | let L = G(H, z) | |
137 | + | ||
138 | + | let M = G(H, A) | |
139 | + | ||
140 | + | let N = G(H, B) | |
141 | + | ||
142 | + | let O = "oldAcresContract" | |
143 | + | ||
144 | + | func P () = "contractsBlocked" | |
142 | 145 | ||
143 | 146 | ||
144 | - | let M = 1 | |
145 | - | ||
146 | - | let N = H(G) | |
147 | - | ||
148 | - | let O = J(N, M) | |
149 | - | ||
150 | - | let P = addressFromStringValue(valueOrElse(getString(this, E()), s)) | |
151 | - | ||
152 | - | let K = H(P) | |
153 | - | ||
154 | - | let Q = J(K, z) | |
155 | - | ||
156 | - | let R = J(K, A) | |
157 | - | ||
158 | - | let S = J(K, B) | |
159 | - | ||
160 | - | let T = J(K, C) | |
161 | - | ||
162 | - | let U = "oldAcresContract" | |
163 | - | ||
164 | - | func V () = "contractsBlocked" | |
147 | + | func Q (R) = ("lastWeekTxIdByUser_" + R) | |
165 | 148 | ||
166 | 149 | ||
167 | - | func | |
150 | + | func S (R) = ("curWeekTxIdByUser_" + R) | |
168 | 151 | ||
169 | 152 | ||
170 | - | func | |
153 | + | func T (w) = ("finishBlockFor_" + w) | |
171 | 154 | ||
172 | 155 | ||
173 | - | func Z (x) = ("finishBlockFor_" + x) | |
156 | + | let U = "wlg_assetId" | |
157 | + | ||
158 | + | let V = valueOrErrorMessage(getBinary(L, U), "WLGOLD is not issued yet") | |
159 | + | ||
160 | + | let W = "acresIssuedAmount" | |
161 | + | ||
162 | + | let X = "acresAssetId" | |
163 | + | ||
164 | + | let Y = valueOrErrorMessage(getBinary(K, X), "ACRES is not issued yet") | |
165 | + | ||
166 | + | func Z (R) = ("acresStakedTimeByUser_" + R) | |
174 | 167 | ||
175 | 168 | ||
176 | - | let aa = "wlg_assetId" | |
177 | - | ||
178 | - | let ab = valueOrErrorMessage(getBinary(R, aa), "WLGOLD is not issued yet") | |
179 | - | ||
180 | - | let ac = "acresIssuedAmount" | |
181 | - | ||
182 | - | let ad = "acresAssetId" | |
183 | - | ||
184 | - | let ae = valueOrErrorMessage(getBinary(Q, ad), "ACRES is not issued yet") | |
185 | - | ||
186 | - | func af (X) = ("acresStakedTimeByUser_" + X) | |
169 | + | func aa (ab) = ("stakedLandsByOwner_" + ab) | |
187 | 170 | ||
188 | 171 | ||
189 | - | func | |
172 | + | func ac (ab) = ("stakedDuckByOwner_" + ab) | |
190 | 173 | ||
191 | 174 | ||
192 | - | func | |
175 | + | func ad (ae,R) = ((("st_" + ae) + "_") + R) | |
193 | 176 | ||
194 | 177 | ||
195 | - | func | |
178 | + | func af (ab) = ("stakedNFTsByOwner_" + ab) | |
196 | 179 | ||
197 | 180 | ||
198 | - | func | |
181 | + | func ag (w) = ("promoAcres_" + w) | |
199 | 182 | ||
200 | 183 | ||
201 | - | func | |
184 | + | func ah (w) = ("promoTickets_" + w) | |
202 | 185 | ||
203 | 186 | ||
204 | - | func an (x) = ("promoTickets_" + x) | |
187 | + | let ai = "totalPromoTickets" | |
188 | + | ||
189 | + | let aj = "promoMap" | |
190 | + | ||
191 | + | func ak (al) = ("dailyWinners_" + toString(al)) | |
205 | 192 | ||
206 | 193 | ||
207 | - | let ao = "totalPromoTickets" | |
208 | - | ||
209 | - | let ap = "promoMap" | |
210 | - | ||
211 | - | func aq (ar) = ("dailyWinners_" + toString(ar)) | |
212 | - | ||
213 | - | ||
214 | - | func as (at) = { | |
215 | - | let m = at | |
194 | + | func am (an) = { | |
195 | + | let m = an | |
216 | 196 | if ($isInstanceOf(m, "Int")) | |
217 | 197 | then { | |
218 | - | let | |
219 | - | | |
198 | + | let ao = m | |
199 | + | ao | |
220 | 200 | } | |
221 | 201 | else throw("fail to cast into Int") | |
222 | 202 | } | |
223 | 203 | ||
224 | 204 | ||
225 | - | func | |
226 | - | let m = | |
205 | + | func ap (aq) = { | |
206 | + | let m = aq | |
227 | 207 | if ($isInstanceOf(m, "(Int, Int, Int, Int, Int)")) | |
228 | 208 | then { | |
229 | - | let | |
230 | - | | |
209 | + | let ar = m | |
210 | + | ar | |
231 | 211 | } | |
232 | 212 | else throw("fail to cast into (Int, Int, Int, Int, Int)") | |
233 | 213 | } | |
234 | 214 | ||
235 | 215 | ||
236 | - | func | |
237 | - | let m = | |
216 | + | func as (aq) = { | |
217 | + | let m = aq | |
238 | 218 | if ($isInstanceOf(m, "(Int, Int, Int, Int)")) | |
239 | 219 | then { | |
240 | - | let | |
241 | - | | |
220 | + | let ar = m | |
221 | + | ar | |
242 | 222 | } | |
243 | 223 | else throw("fail to cast into (Int, Int, Int, Int)") | |
244 | 224 | } | |
245 | 225 | ||
246 | 226 | ||
247 | - | func | |
248 | - | let m = | |
227 | + | func at (aq) = { | |
228 | + | let m = aq | |
249 | 229 | if ($isInstanceOf(m, "(Int, Int, Int)")) | |
250 | 230 | then { | |
251 | - | let | |
252 | - | | |
231 | + | let ar = m | |
232 | + | ar | |
253 | 233 | } | |
254 | 234 | else throw("fail to cast into (Int, Int, Int)") | |
255 | 235 | } | |
256 | 236 | ||
257 | 237 | ||
258 | - | func | |
259 | - | let m = | |
238 | + | func au (aq) = { | |
239 | + | let m = aq | |
260 | 240 | if ($isInstanceOf(m, "(Int, Int)")) | |
261 | 241 | then { | |
262 | - | let | |
263 | - | | |
242 | + | let ar = m | |
243 | + | ar | |
264 | 244 | } | |
265 | 245 | else throw("fail to cast into (Int, Int)") | |
266 | 246 | } | |
267 | 247 | ||
268 | 248 | ||
269 | - | func | |
270 | - | let | |
271 | - | let | |
272 | - | let | |
273 | - | (((toString(( | |
249 | + | func av (aq,aw) = { | |
250 | + | let ax = pow(10, 0, aw, 0, 0, DOWN) | |
251 | + | let ay = toString((aq % ax)) | |
252 | + | let az = drop(toString(ax), (1 + size(ay))) | |
253 | + | (((toString((aq / ax)) + ".") + az) + ay) | |
274 | 254 | } | |
275 | 255 | ||
276 | 256 | ||
277 | - | func | |
257 | + | func aA (aB,aC,aD) = if ((0 >= aB)) | |
278 | 258 | then throw("maxValue should be > 0") | |
279 | 259 | else { | |
280 | - | let | |
281 | - | (toInt( | |
260 | + | let aE = sha256_16Kb((aC + aD)) | |
261 | + | (toInt(aE) % aB) | |
282 | 262 | } | |
283 | 263 | ||
284 | 264 | ||
285 | - | func | |
286 | - | let | |
287 | - | let | |
288 | - | ( | |
265 | + | func aF (aq,aG) = { | |
266 | + | let aH = toString(aq) | |
267 | + | let az = drop(toString(pow(10, 0, (aG - size(aH)), 0, 0, DOWN)), 1) | |
268 | + | (az + aH) | |
289 | 269 | } | |
290 | 270 | ||
291 | 271 | ||
292 | - | let | |
272 | + | let aI = 1000000 | |
293 | 273 | ||
294 | - | let | |
274 | + | let aJ = 100000000 | |
295 | 275 | ||
296 | - | let | |
276 | + | let aK = "wlg_issuedAmount" | |
297 | 277 | ||
298 | - | let | |
278 | + | let aL = "zbill_issuedAmount" | |
299 | 279 | ||
300 | - | func | |
280 | + | func aM (R) = ("acresStakedAmountByUser_" + R) | |
301 | 281 | ||
302 | 282 | ||
303 | - | func | |
283 | + | func aN (R) = ("farmingPowerByUser_" + R) | |
304 | 284 | ||
305 | 285 | ||
306 | - | let | |
286 | + | let aO = "acresStakedAmountTotal" | |
307 | 287 | ||
308 | - | let | |
288 | + | let aP = "totalFarmingPower" | |
309 | 289 | ||
310 | - | let | |
290 | + | let aQ = 3 | |
311 | 291 | ||
312 | - | let | |
292 | + | let aR = 1 | |
313 | 293 | ||
314 | - | let | |
294 | + | let aS = 5000 | |
315 | 295 | ||
316 | - | let | |
296 | + | let aT = 4 | |
317 | 297 | ||
318 | - | let | |
298 | + | let aU = "nftTotalIssued" | |
319 | 299 | ||
320 | - | let | |
300 | + | let aV = "nftTotalBurned" | |
321 | 301 | ||
322 | - | let | |
302 | + | let aW = "WlNftTotalStaked" | |
323 | 303 | ||
324 | - | let | |
304 | + | let aX = "ArkNftTotalStaked" | |
325 | 305 | ||
326 | - | func | |
306 | + | func aY (ae) = ("nftNumberByAssetId_" + ae) | |
327 | 307 | ||
328 | 308 | ||
329 | - | func | |
309 | + | func aZ (R) = ("userWlNftNumber_" + R) | |
330 | 310 | ||
331 | 311 | ||
332 | - | func | |
312 | + | func ba (R) = ("userArkNftNumber_" + R) | |
333 | 313 | ||
334 | 314 | ||
335 | - | func | |
315 | + | func bb (R) = ("userFullBonus_" + R) | |
336 | 316 | ||
337 | 317 | ||
338 | - | let | |
318 | + | let bc = [0, 10, 20, 40, 80, 150, 250, 400, 700, 1000] | |
339 | 319 | ||
340 | - | func bj (bk) = { | |
341 | - | let bl = ((bk + 99999999) / aP) | |
342 | - | func bm (bn,bo) = if ((bo >= bl)) | |
320 | + | func bd (be) = { | |
321 | + | let bf = ((be + 99999999) / aJ) | |
322 | + | func bg (bh,bi) = if ((bi >= bf)) | |
323 | + | then bh | |
324 | + | else (bh + 1) | |
325 | + | ||
326 | + | let bj = bc | |
327 | + | let bk = size(bj) | |
328 | + | let bl = 0 | |
329 | + | func bm (bn,bo) = if ((bo >= bk)) | |
343 | 330 | then bn | |
344 | - | else (bn | |
331 | + | else bg(bn, bj[bo]) | |
345 | 332 | ||
346 | - | let bp = bi | |
347 | - | let bq = size(bp) | |
348 | - | let br = 0 | |
349 | - | func bs (bt,bu) = if ((bu >= bq)) | |
350 | - | then bt | |
351 | - | else bm(bt, bp[bu]) | |
352 | - | ||
353 | - | func bv (bt,bu) = if ((bu >= bq)) | |
354 | - | then bt | |
333 | + | func bp (bn,bo) = if ((bo >= bk)) | |
334 | + | then bn | |
355 | 335 | else throw("List size exceeds 10") | |
356 | 336 | ||
357 | - | | |
337 | + | bp(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bl, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
358 | 338 | } | |
359 | 339 | ||
360 | 340 | ||
361 | - | func | |
341 | + | func bq (be) = ((be * 20) * (bd(be) + 4)) | |
362 | 342 | ||
363 | 343 | ||
364 | - | func | |
365 | - | let | |
366 | - | $Tuple2(fraction( | |
344 | + | func br (be,bs) = { | |
345 | + | let bt = bq(be) | |
346 | + | $Tuple2(fraction(bt, (aI + bs), aI), bt) | |
367 | 347 | } | |
368 | 348 | ||
369 | 349 | ||
370 | - | let | |
350 | + | let bu = "teamAddr" | |
371 | 351 | ||
372 | - | func | |
352 | + | func bv (R) = ("lastArbTimeUser_" + R) | |
373 | 353 | ||
374 | 354 | ||
375 | - | let | |
355 | + | let bw = 1733346000000 | |
376 | 356 | ||
377 | - | let | |
357 | + | let bx = 14 | |
378 | 358 | ||
379 | - | let | |
359 | + | let by = "lastAcresSellTime" | |
380 | 360 | ||
381 | - | let | |
361 | + | let bz = "lastLimitLeft" | |
382 | 362 | ||
383 | - | let | |
363 | + | let bA = ["Gold shovel", "Pickaxe"] | |
384 | 364 | ||
385 | - | let | |
365 | + | let bB = ["Reward for early birds", "Increases FarmPower"] | |
386 | 366 | ||
387 | - | let | |
367 | + | let bC = 0 | |
388 | 368 | ||
389 | - | let | |
369 | + | let bD = 1 | |
390 | 370 | ||
391 | - | let | |
371 | + | let bE = [5, 10, 20] | |
392 | 372 | ||
393 | - | let | |
373 | + | let bF = 0 | |
394 | 374 | ||
395 | - | let | |
375 | + | let bG = 1 | |
396 | 376 | ||
397 | - | let | |
377 | + | let bH = 2 | |
398 | 378 | ||
399 | - | let bO = ["SHOVEL", "PICKAXE"] | |
379 | + | let bI = ["SHOVEL", "PICKAXE"] | |
380 | + | ||
381 | + | let bJ = 0 | |
382 | + | ||
383 | + | let bK = 1 | |
384 | + | ||
385 | + | let bL = ["contentPickaxeC", "contentPickaxeU", "contentPickaxeL", "contentPickaxeE", "contentShovelP"] | |
386 | + | ||
387 | + | let bM = 0 | |
388 | + | ||
389 | + | let bN = 4 | |
390 | + | ||
391 | + | let bO = ["Common", "Uncommon", "Legendary", "Epic", "Promo"] | |
400 | 392 | ||
401 | 393 | let bP = 0 | |
402 | 394 | ||
403 | 395 | let bQ = 1 | |
404 | 396 | ||
405 | - | let bR = | |
397 | + | let bR = 2 | |
406 | 398 | ||
407 | - | let bS = | |
399 | + | let bS = 3 | |
408 | 400 | ||
409 | 401 | let bT = 4 | |
410 | 402 | ||
411 | - | let bU = [" | |
403 | + | let bU = ["Digging tools"] | |
412 | 404 | ||
413 | 405 | let bV = 0 | |
414 | 406 | ||
415 | - | let bW = | |
407 | + | let bW = ["FarmPower"] | |
416 | 408 | ||
417 | - | let bX = | |
409 | + | let bX = 0 | |
418 | 410 | ||
419 | - | let bY = 3 | |
420 | - | ||
421 | - | let bZ = 4 | |
422 | - | ||
423 | - | let ca = ["Digging tools"] | |
424 | - | ||
425 | - | let cb = 0 | |
426 | - | ||
427 | - | let cc = ["FarmPower"] | |
428 | - | ||
429 | - | let cd = 0 | |
430 | - | ||
431 | - | func ce (cf) = if (if ((cf.originCaller != P)) | |
432 | - | then valueOrElse(getBoolean(V()), false) | |
411 | + | func bY (bZ) = if (if ((bZ.originCaller != J)) | |
412 | + | then valueOrElse(getBoolean(P()), false) | |
433 | 413 | else false) | |
434 | 414 | then throw("Contracts are under maintenance") | |
435 | 415 | else { | |
436 | - | let | |
437 | - | let | |
438 | - | let | |
439 | - | let | |
440 | - | let | |
441 | - | let | |
442 | - | let | |
443 | - | if (isDefined( | |
416 | + | let R = toString(bZ.originCaller) | |
417 | + | let ca = (height / p) | |
418 | + | let cb = Q(R) | |
419 | + | let cc = getString(cb) | |
420 | + | let cd = toBase58String(bZ.transactionId) | |
421 | + | let ce = ((toString(ca) + "_") + cd) | |
422 | + | let cf = S(R) | |
423 | + | if (isDefined(cc)) | |
444 | 424 | then { | |
445 | - | let | |
446 | - | if (( | |
447 | - | then [StringEntry( | |
448 | - | else if (( | |
449 | - | then [StringEntry( | |
425 | + | let cg = split(value(cc), "_") | |
426 | + | if ((cg[0] == toString(ca))) | |
427 | + | then [StringEntry(cb, ce), StringEntry(cf, ce)] | |
428 | + | else if ((cg[0] == toString((ca - 1)))) | |
429 | + | then [StringEntry(cf, ce)] | |
450 | 430 | else { | |
451 | - | let | |
452 | - | let | |
453 | - | if (( | |
454 | - | then [StringEntry( | |
455 | - | else [StringEntry( | |
431 | + | let ch = getStringValue(cf) | |
432 | + | let ci = split(ch, "_") | |
433 | + | if ((ci[0] == toString(ca))) | |
434 | + | then [StringEntry(cf, ce)] | |
435 | + | else [StringEntry(cb, ch), StringEntry(cf, ce)] | |
456 | 436 | } | |
457 | 437 | } | |
458 | - | else [StringEntry( | |
438 | + | else [StringEntry(cb, ce), StringEntry(cf, ce)] | |
459 | 439 | } | |
460 | 440 | ||
461 | 441 | ||
462 | - | func | |
442 | + | func cj (ck,cl,cm,cn,co,cp,cq,cr) = (((((((((((((((((((((((("{\"url\": \"https://waveslands.com\", " + "\"contentKey\": \"") + ck) + "\", ") + "\"number\": ") + toString(cl)) + ", ") + "\"collection\": \"") + cm) + "\", ") + "\"name\": \"") + cn) + "\", ") + "\"description\": \"") + co) + "\", ") + "\"rare\": \"") + cp) + "\", ") + "\"bonus\": ") + toString(cq)) + ", ") + "\"bonusType\": \"") + cr) + "\"}") | |
463 | 443 | ||
464 | 444 | ||
465 | - | func | |
466 | - | let | |
467 | - | let | |
468 | - | let | |
469 | - | let | |
470 | - | let | |
471 | - | $Tuple2([ | |
445 | + | func cs (ct,cu,cv,cw,cx,cy,cz,R) = { | |
446 | + | let cl = valueOrElse(getInteger(aU), 0) | |
447 | + | let cp = bO[cw] | |
448 | + | let cn = (((bI[ct] + "-") + take(cp, 1)) + toString(cx)) | |
449 | + | let cA = Issue(cn, cj(bL[cu], cl, bU[cv], bA[ct], bB[cy], bO[cw], cx, bW[cz]), 1, 0, false) | |
450 | + | let cB = calculateAssetId(cA) | |
451 | + | $Tuple2([cA, IntegerEntry(aU, (cl + 1)), IntegerEntry(aY(toBase58String(cB)), cl), ScriptTransfer(R, 1, cB)], cB) | |
472 | 452 | } | |
473 | 453 | ||
474 | 454 | ||
475 | - | func | |
476 | - | then throw(("NFT is not supported: " + | |
455 | + | func cC (co) = if (!(contains(co, "\"bonusType\": \"FarmPower\""))) | |
456 | + | then throw(("NFT is not supported: " + co)) | |
477 | 457 | else { | |
478 | - | let | |
479 | - | parseIntValue(drop( | |
458 | + | let cD = split_4C(split_4C(co, "\"bonus\":")[1], ",")[0] | |
459 | + | parseIntValue(drop(cD, (valueOrElse(lastIndexOf(cD, " "), -1) + 1))) | |
480 | 460 | } | |
481 | 461 | ||
482 | 462 | ||
483 | - | func | |
484 | - | then throw(("NFT is not supported: " + | |
463 | + | func cE (co) = if (!(contains(co, "\"rare\""))) | |
464 | + | then throw(("NFT is not supported: " + co)) | |
485 | 465 | else { | |
486 | - | let | |
487 | - | value(indexOf( | |
466 | + | let cF = split_4C(split_4C(split_4C(co, "\"rare\"")[1], ",")[0], "\"")[1] | |
467 | + | value(indexOf(bO, cF)) | |
488 | 468 | } | |
489 | 469 | ||
490 | 470 | ||
491 | - | func | |
492 | - | then ( | |
471 | + | func cG (cH,w,cI) = if (if ((cH == 0)) | |
472 | + | then (cI == 0) | |
493 | 473 | else false) | |
494 | 474 | then throw("Nothing to do") | |
495 | 475 | else { | |
496 | - | let | |
497 | - | if (( | |
476 | + | let cJ = invoke(L, "onStakeUnstakeLand", [w], nil) | |
477 | + | if ((cJ == cJ)) | |
498 | 478 | then { | |
499 | - | let | |
500 | - | let | |
501 | - | let | |
502 | - | let | |
503 | - | if (if ((0 > | |
504 | - | then (0 > ( | |
479 | + | let cK = lastBlock.timestamp | |
480 | + | let cL = Z(w) | |
481 | + | let cM = aM(w) | |
482 | + | let cN = valueOrElse(getInteger(cM), 0) | |
483 | + | if (if ((0 > cH)) | |
484 | + | then (0 > (cN + cH)) | |
505 | 485 | else false) | |
506 | - | then throw(((("You have only " + | |
486 | + | then throw(((("You have only " + av(cN, 8)) + " ACRES staked, tried to unstake ") + av(-(cH), 8))) | |
507 | 487 | else { | |
508 | - | let | |
509 | - | let | |
510 | - | let | |
511 | - | let | |
512 | - | let | |
513 | - | let | |
514 | - | if (if ((0 > | |
515 | - | then (0 > ( | |
488 | + | let cO = (cN + cH) | |
489 | + | let cP = valueOrElse(getInteger(aO), 0) | |
490 | + | let cQ = aN(w) | |
491 | + | let cR = valueOrElse(getInteger(cQ), 0) | |
492 | + | let cS = bb(w) | |
493 | + | let cT = valueOrElse(getInteger(K, cS), 0) | |
494 | + | if (if ((0 > cI)) | |
495 | + | then (0 > (cT + cI)) | |
516 | 496 | else false) | |
517 | - | then throw((((("You have only " + | |
497 | + | then throw((((("You have only " + av(cT, 4)) + "% bonus, and tried to unstake ") + av(-(cI), 4)) + "%")) | |
518 | 498 | else { | |
519 | - | let | |
520 | - | let | |
521 | - | let | |
522 | - | let | |
523 | - | let | |
499 | + | let cU = br(cO, (cT + cI)) | |
500 | + | let cV = cU._1 | |
501 | + | let cW = cU._2 | |
502 | + | let cX = valueOrElse(getInteger(aP), 0) | |
503 | + | let cY = if ((cH == 0)) | |
524 | 504 | then nil | |
525 | - | else [IntegerEntry( | |
526 | - | let | |
505 | + | else [IntegerEntry(cM, cO), IntegerEntry(aO, (cP + cH))] | |
506 | + | let cZ = if ((cI == 0)) | |
527 | 507 | then nil | |
528 | - | else [IntegerEntry( | |
529 | - | $Tuple2((((( | |
508 | + | else [IntegerEntry(cS, (cT + cI))] | |
509 | + | $Tuple2(((((cY ++ cZ) :+ IntegerEntry(cL, lastBlock.timestamp)) :+ IntegerEntry(cQ, cV)) :+ IntegerEntry(aP, ((cX + cV) - cR))), cJ) | |
530 | 510 | } | |
531 | 511 | } | |
532 | 512 | } | |
533 | 513 | else throw("Strict value is not equal to itself.") | |
534 | 514 | } | |
535 | 515 | ||
536 | 516 | ||
537 | - | func | |
538 | - | let | |
539 | - | let | |
540 | - | let | |
541 | - | let | |
542 | - | let | |
543 | - | fraction( | |
517 | + | func da (db) = { | |
518 | + | let dc = valueOrErrorMessage(getInteger(L, aK), "WLGOLD is not issued yet") | |
519 | + | let dd = assetBalance(L, r) | |
520 | + | let de = (assetBalance(K, r) - db) | |
521 | + | let df = (assetBalance(M, r) + valueOrElse(getInteger(M, aL), 0)) | |
522 | + | let dg = ((de + dd) + df) | |
523 | + | fraction(dg, d, dc) | |
544 | 524 | } | |
545 | 525 | ||
546 | 526 | ||
547 | - | func | |
548 | - | let | |
549 | - | let | |
550 | - | let | |
551 | - | let | |
552 | - | let | |
553 | - | let | |
554 | - | let | |
555 | - | let | |
556 | - | let | |
557 | - | $Tuple2(IntegerEntry( | |
527 | + | func dh () = { | |
528 | + | let dd = assetBalance(L, r) | |
529 | + | let de = assetBalance(this, r) | |
530 | + | let df = (assetBalance(M, r) + valueOrElse(getInteger(M, aL), 0)) | |
531 | + | let di = (((de + dd) + df) / h) | |
532 | + | let dj = valueOrElse(getInteger(bz), di) | |
533 | + | let dk = valueOrElse(getInteger(by), 0) | |
534 | + | let cK = lastBlock.timestamp | |
535 | + | let dl = (dj + fraction(di, (cK - dk), f)) | |
536 | + | let dm = min([dl, di]) | |
537 | + | $Tuple2(IntegerEntry(by, cK), dm) | |
558 | 538 | } | |
559 | 539 | ||
560 | 540 | ||
561 | - | let | |
541 | + | let dn = addressFromStringValue("3PJgZ6AK1WVCpdCmEZpesHmaKvrQDdXG5og") | |
562 | 542 | ||
563 | - | let | |
543 | + | let do = valueOrElse(getString(dn, "static_incubatorAddress"), "") | |
564 | 544 | ||
565 | - | let | |
545 | + | let dp = valueOrElse(getString(dn, "static_breederAddress"), "") | |
566 | 546 | ||
567 | - | let | |
547 | + | let dq = valueOrElse(getString(dn, "static_turtleIncubatorAddress"), "") | |
568 | 548 | ||
569 | - | let | |
549 | + | let dr = valueOrElse(getString(dn, "static_turtleBreederAddress"), "") | |
570 | 550 | ||
571 | - | let | |
551 | + | let ds = valueOrElse(getString(dn, "static_canineIncubatorAddress"), "") | |
572 | 552 | ||
573 | - | let | |
553 | + | let dt = valueOrElse(getString(dn, "static_canineBreederAddress"), "") | |
574 | 554 | ||
575 | - | let | |
555 | + | let du = valueOrElse(getString(dn, "static_felineIncubatorAddress"), "") | |
576 | 556 | ||
577 | - | let | |
557 | + | let dv = valueOrElse(getString(dn, "static_felineBreederAddress"), "") | |
578 | 558 | ||
579 | - | let | |
559 | + | let dw = valueOrElse(getString(dn, "static_mutantIncubatorAddress"), "") | |
580 | 560 | ||
581 | - | func | |
582 | - | let | |
561 | + | func dx (dy) = { | |
562 | + | let dz = toString(dy.issuer) | |
583 | 563 | if (if (if (if (if (if (if (if (if (if ((k == base58'2T')) | |
584 | - | then ( | |
564 | + | then (dz == u) | |
585 | 565 | else false) | |
586 | 566 | then true | |
587 | - | else ( | |
567 | + | else (dz == do)) | |
588 | 568 | then true | |
589 | - | else ( | |
569 | + | else (dz == dp)) | |
590 | 570 | then true | |
591 | - | else ( | |
571 | + | else (dz == dq)) | |
592 | 572 | then true | |
593 | - | else ( | |
573 | + | else (dz == dr)) | |
594 | 574 | then true | |
595 | - | else ( | |
575 | + | else (dz == ds)) | |
596 | 576 | then true | |
597 | - | else ( | |
577 | + | else (dz == dt)) | |
598 | 578 | then true | |
599 | - | else ( | |
579 | + | else (dz == du)) | |
600 | 580 | then true | |
601 | - | else ( | |
602 | - | then | |
603 | - | else if (( | |
604 | - | then | |
581 | + | else (dz == dv)) | |
582 | + | then dy.name | |
583 | + | else if ((dz == dw)) | |
584 | + | then dy.description | |
605 | 585 | else "" | |
606 | 586 | } | |
607 | 587 | ||
608 | 588 | ||
609 | - | func | |
610 | - | let | |
611 | - | if (( | |
612 | - | then throw((("You can stake max " + toString( | |
589 | + | func dA (R,dB,bs,dC,dD,dE) = { | |
590 | + | let dF = valueOrElse(getInteger(dC), 0) | |
591 | + | if ((dF >= dE)) | |
592 | + | then throw((("You can stake max " + toString(dE)) + " of such NFTs")) | |
613 | 593 | else { | |
614 | - | let | |
615 | - | let | |
616 | - | let | |
617 | - | $Tuple2(((( | |
594 | + | let dG = cG(0, R, bs) | |
595 | + | let dH = dG._1 | |
596 | + | let dI = dG._2 | |
597 | + | $Tuple2((((dH :+ IntegerEntry(dC, (dF + 1))) :+ IntegerEntry(dD, (valueOrElse(getInteger(dD), 0) + 1))) :+ IntegerEntry(ad(dB, R), lastBlock.timestamp)), dI) | |
618 | 598 | } | |
619 | 599 | } | |
620 | 600 | ||
621 | 601 | ||
622 | - | let | |
602 | + | let dJ = 3 | |
623 | 603 | ||
624 | - | let | |
604 | + | let dK = [50000000, 25000000, 25000000] | |
625 | 605 | ||
626 | - | func | |
627 | - | let | |
628 | - | let | |
629 | - | let | |
630 | - | let | |
606 | + | func dL (w,cH,dM) = { | |
607 | + | let dN = cG(cH, w, 0) | |
608 | + | let dH = dN._1 | |
609 | + | let dI = dN._2 | |
610 | + | let dO = if (if ((height >= l)) | |
631 | 611 | then (n > height) | |
632 | 612 | else false) | |
633 | 613 | then { | |
634 | - | let | |
635 | - | let | |
614 | + | let dP = ag(w) | |
615 | + | let dQ = ((if (dM) | |
636 | 616 | then 0 | |
637 | - | else valueOrElse(getInteger( | |
638 | - | let | |
639 | - | let | |
640 | - | let | |
641 | - | let | |
642 | - | if (if ( | |
617 | + | else valueOrElse(getInteger(dP), 0)) + cH) | |
618 | + | let dR = (dQ / d) | |
619 | + | let dS = ah(w) | |
620 | + | let dT = (dR - valueOrElse(getInteger(dS), 0)) | |
621 | + | let dU = (valueOrElse(getInteger(ai), 0) + dT) | |
622 | + | if (if (dM) | |
643 | 623 | then true | |
644 | - | else ( | |
624 | + | else (dT > 0)) | |
645 | 625 | then { | |
646 | - | let | |
647 | - | let | |
648 | - | let | |
626 | + | let dV = valueOrElse(getString(aj), "") | |
627 | + | let dW = ((w + ":") + aF(dR, 3)) | |
628 | + | let dX = if (contains(dV, w)) | |
649 | 629 | then { | |
650 | - | let | |
651 | - | if (( | |
630 | + | let dY = split_51C(dV, w) | |
631 | + | if ((dY[0] == "")) | |
652 | 632 | then { | |
653 | - | let | |
654 | - | if (( | |
655 | - | then if (( | |
633 | + | let dZ = drop(dY[1], 4) | |
634 | + | if ((dZ == "")) | |
635 | + | then if ((dR == 0)) | |
656 | 636 | then "" | |
657 | - | else | |
658 | - | else if (( | |
659 | - | then drop( | |
660 | - | else ( | |
637 | + | else dW | |
638 | + | else if ((dR == 0)) | |
639 | + | then drop(dZ, 1) | |
640 | + | else (dW + dZ) | |
661 | 641 | } | |
662 | 642 | else { | |
663 | - | let | |
664 | - | if (( | |
665 | - | then if (( | |
666 | - | then dropRight( | |
667 | - | else ( | |
668 | - | else if (( | |
669 | - | then ( | |
670 | - | else (( | |
643 | + | let dZ = drop(dY[1], 4) | |
644 | + | if ((dZ == "")) | |
645 | + | then if ((dR == 0)) | |
646 | + | then dropRight(dY[0], 1) | |
647 | + | else (dY[0] + dW) | |
648 | + | else if ((dR == 0)) | |
649 | + | then (dY[0] + drop(dZ, 1)) | |
650 | + | else ((dY[0] + dW) + dZ) | |
671 | 651 | } | |
672 | 652 | } | |
673 | - | else if (( | |
674 | - | then | |
675 | - | else if (( | |
676 | - | then | |
677 | - | else (( | |
678 | - | [IntegerEntry( | |
653 | + | else if ((dR == 0)) | |
654 | + | then dV | |
655 | + | else if ((dV == "")) | |
656 | + | then dW | |
657 | + | else ((dV + "_") + dW) | |
658 | + | [IntegerEntry(dP, dQ), IntegerEntry(dS, dR), IntegerEntry(ai, dU), StringEntry(aj, dX)] | |
679 | 659 | } | |
680 | - | else [IntegerEntry( | |
660 | + | else [IntegerEntry(dP, dQ)] | |
681 | 661 | } | |
682 | 662 | else nil | |
683 | - | $Tuple2(( | |
663 | + | $Tuple2((dH ++ dO), dI) | |
684 | 664 | } | |
685 | 665 | ||
686 | 666 | ||
687 | - | @Callable( | |
688 | - | func saveLastTx () = if (!(containsElement([ | |
667 | + | @Callable(bZ) | |
668 | + | func saveLastTx () = if (!(containsElement([L, N], bZ.caller))) | |
689 | 669 | then throw("Access denied") | |
690 | - | else $Tuple2( | |
670 | + | else $Tuple2(bY(bZ), 42) | |
691 | 671 | ||
692 | 672 | ||
693 | 673 | ||
694 | - | @Callable( | |
695 | - | func constructorV1 ( | |
674 | + | @Callable(bZ) | |
675 | + | func constructorV1 (ea,eb) = if ((bZ.caller != this)) | |
696 | 676 | then throw("Permission denied") | |
697 | 677 | else { | |
698 | - | let | |
699 | - | [IntegerEntry( | |
678 | + | let ec = addressFromStringValue(eb) | |
679 | + | [IntegerEntry(W, getIntegerValue(ec, W)), BinaryEntry(X, getBinaryValue(ec, X)), StringEntry(D(), ea), StringEntry(O, eb)] | |
700 | 680 | } | |
701 | 681 | ||
702 | 682 | ||
703 | 683 | ||
704 | - | @Callable( | |
705 | - | func setBlocked ( | |
684 | + | @Callable(bZ) | |
685 | + | func setBlocked (ed) = if ((bZ.caller != this)) | |
706 | 686 | then throw("permission denied") | |
707 | - | else [BooleanEntry( | |
687 | + | else [BooleanEntry(P(), ed)] | |
708 | 688 | ||
709 | 689 | ||
710 | 690 | ||
711 | - | @Callable( | |
712 | - | func unstakeAcres ( | |
713 | - | let | |
691 | + | @Callable(bZ) | |
692 | + | func unstakeAcres (ee) = { | |
693 | + | let ef = bY(bZ) | |
714 | 694 | if (if ((height >= l)) | |
715 | 695 | then (n > height) | |
716 | 696 | else false) | |
717 | 697 | then throw("You can't unstake during Xmas promo period") | |
718 | - | else if ((0 >= | |
698 | + | else if ((0 >= ee)) | |
719 | 699 | then throw("Amount should be positive") | |
720 | 700 | else { | |
721 | - | let | |
722 | - | if ((size( | |
701 | + | let w = toString(bZ.caller) | |
702 | + | if ((size(bZ.payments) != 0)) | |
723 | 703 | then throw("No payments required") | |
724 | 704 | else { | |
725 | - | let | |
726 | - | if (( | |
727 | - | then throw(("You traded some WLGOLD, cannot unstake until " + toString( | |
705 | + | let eg = (valueOrElse(getInteger(L, bv(w)), 0) + t) | |
706 | + | if ((eg > lastBlock.timestamp)) | |
707 | + | then throw(("You traded some WLGOLD, cannot unstake until " + toString(eg))) | |
728 | 708 | else { | |
729 | - | let | |
730 | - | let | |
731 | - | let | |
732 | - | $Tuple2((( | |
709 | + | let eh = cG(-(ee), w, 0) | |
710 | + | let dH = eh._1 | |
711 | + | let dI = eh._2 | |
712 | + | $Tuple2(((dH :+ ScriptTransfer(bZ.caller, ee, Y)) ++ ef), dI) | |
733 | 713 | } | |
734 | 714 | } | |
735 | 715 | } | |
736 | 716 | } | |
737 | 717 | ||
738 | 718 | ||
739 | 719 | ||
740 | - | @Callable( | |
720 | + | @Callable(bZ) | |
741 | 721 | func stakeAcres () = { | |
742 | - | let | |
743 | - | let | |
744 | - | if ((size( | |
722 | + | let ef = bY(bZ) | |
723 | + | let w = toString(bZ.caller) | |
724 | + | if ((size(bZ.payments) != 1)) | |
745 | 725 | then throw("exactly 1 payment must be attached") | |
746 | 726 | else { | |
747 | - | let | |
748 | - | let | |
749 | - | if (if (!(isDefined( | |
727 | + | let ei = bZ.payments[0] | |
728 | + | let cH = ei.amount | |
729 | + | if (if (!(isDefined(ei.assetId))) | |
750 | 730 | then true | |
751 | - | else (value( | |
731 | + | else (value(ei.assetId) != Y)) | |
752 | 732 | then throw("ACRES payments only!") | |
753 | 733 | else { | |
754 | - | let | |
755 | - | let | |
756 | - | let | |
757 | - | $Tuple2(( | |
734 | + | let ej = dL(w, cH, false) | |
735 | + | let ek = ej._1 | |
736 | + | let dI = ej._2 | |
737 | + | $Tuple2((ek ++ ef), dI) | |
758 | 738 | } | |
759 | 739 | } | |
760 | 740 | } | |
761 | 741 | ||
762 | 742 | ||
763 | 743 | ||
764 | - | @Callable( | |
744 | + | @Callable(bZ) | |
765 | 745 | func buyAcres () = { | |
766 | - | let | |
767 | - | if ((size( | |
746 | + | let ef = bY(bZ) | |
747 | + | if ((size(bZ.payments) != 1)) | |
768 | 748 | then throw("exactly 1 payment must be attached") | |
769 | 749 | else { | |
770 | - | let | |
771 | - | let | |
772 | - | if (if (!(isDefined( | |
750 | + | let ei = bZ.payments[0] | |
751 | + | let el = ei.amount | |
752 | + | if (if (!(isDefined(ei.assetId))) | |
773 | 753 | then true | |
774 | - | else (value( | |
754 | + | else (value(ei.assetId) != r)) | |
775 | 755 | then throw("USDT payments only!") | |
776 | - | else if ((b > | |
777 | - | then throw((("Min payment should be " + | |
756 | + | else if ((b > el)) | |
757 | + | then throw((("Min payment should be " + av(b, 6)) + " USDT")) | |
778 | 758 | else { | |
779 | - | let | |
780 | - | let | |
781 | - | let | |
782 | - | let | |
783 | - | if (( | |
759 | + | let em = (el * g) | |
760 | + | let en = fraction(el, d, da(el)) | |
761 | + | let eo = addressFromStringValue(getStringValue(O)) | |
762 | + | let ep = invoke(eo, "requestAcresCallback", [em], nil) | |
763 | + | if ((ep == ep)) | |
784 | 764 | then { | |
785 | - | let | |
786 | - | $Tuple2(([ScriptTransfer( | |
765 | + | let eq = am(invoke(L, "burnWlgold", [en], nil)) | |
766 | + | $Tuple2(([ScriptTransfer(bZ.caller, em, Y)] ++ ef), eq) | |
787 | 767 | } | |
788 | 768 | else throw("Strict value is not equal to itself.") | |
789 | 769 | } | |
790 | 770 | } | |
791 | 771 | } | |
792 | 772 | ||
793 | 773 | ||
794 | 774 | ||
795 | - | @Callable( | |
796 | - | func buyAcresREADONLY ( | |
797 | - | let | |
798 | - | let | |
799 | - | $Tuple2(nil, [ | |
775 | + | @Callable(bZ) | |
776 | + | func buyAcresREADONLY (el) = { | |
777 | + | let em = (el * g) | |
778 | + | let er = fraction(el, d, da(el)) | |
779 | + | $Tuple2(nil, [em, b, em, er]) | |
800 | 780 | } | |
801 | 781 | ||
802 | 782 | ||
803 | 783 | ||
804 | - | @Callable( | |
784 | + | @Callable(bZ) | |
805 | 785 | func sellAcres () = { | |
806 | - | let | |
807 | - | if ((size( | |
786 | + | let ef = bY(bZ) | |
787 | + | if ((size(bZ.payments) != 1)) | |
808 | 788 | then throw("exactly 1 payment must be attached") | |
809 | 789 | else { | |
810 | - | let | |
811 | - | let | |
812 | - | if (if (!(isDefined( | |
790 | + | let ei = bZ.payments[0] | |
791 | + | let em = ei.amount | |
792 | + | if (if (!(isDefined(ei.assetId))) | |
813 | 793 | then true | |
814 | - | else (value( | |
794 | + | else (value(ei.assetId) != Y)) | |
815 | 795 | then throw("ACRES payments only!") | |
816 | - | else if ((c > | |
817 | - | then throw((("Min payment should be " + | |
796 | + | else if ((c > em)) | |
797 | + | then throw((("Min payment should be " + av(c, 8)) + " ACRES")) | |
818 | 798 | else { | |
819 | - | let | |
820 | - | let | |
821 | - | let | |
822 | - | let | |
823 | - | let | |
824 | - | if (( | |
825 | - | then throw((("You can sell max " + | |
799 | + | let R = toString(bZ.caller) | |
800 | + | let es = dh() | |
801 | + | let et = es._1 | |
802 | + | let eu = es._2 | |
803 | + | let ev = (eu * g) | |
804 | + | if ((em > ev)) | |
805 | + | then throw((("You can sell max " + av(ev, 8)) + " ACRES")) | |
826 | 806 | else { | |
827 | - | let | |
828 | - | $Tuple2(([ | |
807 | + | let el = ((em / g) / 2) | |
808 | + | $Tuple2(([et, IntegerEntry(bz, (eu - el)), ScriptTransfer(bZ.caller, el, r)] ++ ef), el) | |
829 | 809 | } | |
830 | 810 | } | |
831 | 811 | } | |
832 | 812 | } | |
833 | 813 | ||
834 | 814 | ||
835 | 815 | ||
836 | - | @Callable( | |
837 | - | func sellAcresREADONLY ( | |
838 | - | let | |
839 | - | let | |
840 | - | let | |
841 | - | let | |
842 | - | $Tuple2(nil, [ | |
816 | + | @Callable(bZ) | |
817 | + | func sellAcresREADONLY (w,em) = { | |
818 | + | let ew = dh() | |
819 | + | let et = ew._1 | |
820 | + | let eu = ew._2 | |
821 | + | let el = ((em / g) / 2) | |
822 | + | $Tuple2(nil, [el, c, (eu * g), 0]) | |
843 | 823 | } | |
844 | 824 | ||
845 | 825 | ||
846 | 826 | ||
847 | - | @Callable( | |
827 | + | @Callable(bZ) | |
848 | 828 | func convertOldStakes () = { | |
849 | - | let | |
850 | - | if (( | |
851 | - | then throw(("Disabled until " + toString(( | |
829 | + | let ef = bY(bZ) | |
830 | + | if ((bw > lastBlock.timestamp)) | |
831 | + | then throw(("Disabled until " + toString((bw / 1000)))) | |
852 | 832 | else { | |
853 | - | let | |
854 | - | if ((size( | |
833 | + | let w = toString(bZ.caller) | |
834 | + | if ((size(bZ.payments) != 0)) | |
855 | 835 | then throw("No payments required") | |
856 | 836 | else { | |
857 | - | let | |
858 | - | let | |
859 | - | let | |
860 | - | then | |
837 | + | let eo = addressFromStringValue(getStringValue(O)) | |
838 | + | let ee = valueOrElse(getInteger(eo, aM(w)), 0) | |
839 | + | let ex = if ((ee > 0)) | |
840 | + | then au(invoke(eo, "unstakeAcresCallback", [ee, w], nil)) | |
861 | 841 | else $Tuple2(0, 0) | |
862 | - | let | |
863 | - | let | |
864 | - | let | |
842 | + | let ey = addressFromStringValue(u) | |
843 | + | let ez = getString(ey, aa(w)) | |
844 | + | let eA = if (isDefined(ez)) | |
865 | 845 | then { | |
866 | - | let | |
867 | - | if ((size( | |
868 | - | then throw((("You have more than " + toString( | |
846 | + | let eB = split_51C(value(ez), "_") | |
847 | + | if ((size(eB) > bx)) | |
848 | + | then throw((("You have more than " + toString(bx)) + " lands staked, please contact support, we'll process your case manually")) | |
869 | 849 | else { | |
870 | - | func | |
850 | + | func eC (bh,eD) = if ((eD == "")) | |
871 | 851 | then throw("landAssetId is required") | |
872 | 852 | else { | |
873 | - | let | |
874 | - | if (( | |
875 | - | then $Tuple5(( | |
853 | + | let dZ = ap(invoke(ey, "unstakeLandCallback", [eD, w], nil)) | |
854 | + | if ((dZ == dZ)) | |
855 | + | then $Tuple5((bh._1 + dZ._1), (bh._2 + dZ._2), (bh._3 + dZ._3), (bh._4 + dZ._4), (bh._5 + dZ._5)) | |
876 | 856 | else throw("Strict value is not equal to itself.") | |
877 | 857 | } | |
878 | 858 | ||
879 | - | let | |
880 | - | let | |
881 | - | let | |
882 | - | let | |
883 | - | func | |
884 | - | then | |
885 | - | else | |
859 | + | let eE = { | |
860 | + | let bj = eB | |
861 | + | let bk = size(bj) | |
862 | + | let bl = $Tuple5(0, 0, 0, 0, 0) | |
863 | + | func bm (bn,bo) = if ((bo >= bk)) | |
864 | + | then bn | |
865 | + | else eC(bn, bj[bo]) | |
886 | 866 | ||
887 | - | func | |
888 | - | then | |
867 | + | func bp (bn,bo) = if ((bo >= bk)) | |
868 | + | then bn | |
889 | 869 | else throw("List size exceeds 14") | |
890 | 870 | ||
891 | - | | |
871 | + | bp(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bl, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14) | |
892 | 872 | } | |
893 | - | if (( | |
873 | + | if ((eE == eE)) | |
894 | 874 | then { | |
895 | - | let | |
896 | - | if (( | |
875 | + | let eF = invoke(ey, "unstakeLandsFinalizeCallback", [w], nil) | |
876 | + | if ((eF == eF)) | |
897 | 877 | then { | |
898 | - | let | |
899 | - | if (( | |
878 | + | let ep = invoke(eo, "requestAcresCallback", [(((eE._1 + eE._2) + eE._3) + eE._4)], nil) | |
879 | + | if ((ep == ep)) | |
900 | 880 | then { | |
901 | - | let | |
902 | - | let | |
903 | - | let | |
904 | - | $Tuple6( | |
881 | + | let eG = cs(bJ, bN, bV, bT, 3, bC, bX, bZ.caller) | |
882 | + | let eH = eG._1 | |
883 | + | let cB = eG._2 | |
884 | + | $Tuple6(eE._1, eE._2, eE._3, eE._4, eE._5, eH) | |
905 | 885 | } | |
906 | 886 | else throw("Strict value is not equal to itself.") | |
907 | 887 | } | |
908 | 888 | else throw("Strict value is not equal to itself.") | |
909 | 889 | } | |
910 | 890 | else throw("Strict value is not equal to itself.") | |
911 | 891 | } | |
912 | 892 | } | |
913 | 893 | else $Tuple6(0, 0, 0, 0, 0, nil) | |
914 | - | let | |
915 | - | let | |
916 | - | then | |
894 | + | let eI = valueOrElse(getString(ey, ac(w)), "") | |
895 | + | let eJ = if ((eI != "")) | |
896 | + | then at(invoke(ey, "unstakeDuckCallback", [eI, w], nil)) | |
917 | 897 | else $Tuple3(0, 0, 0) | |
918 | - | let | |
919 | - | $Tuple2((( | |
898 | + | let eK = cG((((((((ex._1 + eA._1) + eA._2) + eA._3) + eA._4) + eJ._1) + eJ._2) + eJ._3), w, 0) | |
899 | + | $Tuple2(((eA._6 ++ eK._1) ++ ef), $Tuple3(ex._2, eA._5, eK._2)) | |
920 | 900 | } | |
921 | 901 | } | |
922 | 902 | } | |
923 | 903 | ||
924 | 904 | ||
925 | 905 | ||
926 | - | @Callable( | |
927 | - | func unstakeLandsREADONLY ( | |
928 | - | let | |
929 | - | let | |
930 | - | let | |
906 | + | @Callable(bZ) | |
907 | + | func unstakeLandsREADONLY (w) = { | |
908 | + | let ey = addressFromStringValue(u) | |
909 | + | let ez = getString(ey, aa(w)) | |
910 | + | let eA = if (isDefined(ez)) | |
931 | 911 | then { | |
932 | - | let | |
933 | - | func | |
912 | + | let eB = split_51C(value(ez), "_") | |
913 | + | func eC (bh,eD) = if ((eD == "")) | |
934 | 914 | then throw("landAssetId is required") | |
935 | 915 | else { | |
936 | - | let | |
937 | - | $Tuple4(( | |
916 | + | let dZ = as(invoke(ey, "unstakeLandREADONLY", [eD, w], nil)) | |
917 | + | $Tuple4((bh._1 + dZ._1), (bh._2 + dZ._2), (bh._3 + dZ._3), (bh._4 + dZ._4)) | |
938 | 918 | } | |
939 | 919 | ||
940 | - | let | |
941 | - | let | |
942 | - | let | |
943 | - | func | |
944 | - | then | |
945 | - | else | |
920 | + | let bj = eB | |
921 | + | let bk = size(bj) | |
922 | + | let bl = $Tuple4(0, 0, 0, 0) | |
923 | + | func bm (bn,bo) = if ((bo >= bk)) | |
924 | + | then bn | |
925 | + | else eC(bn, bj[bo]) | |
946 | 926 | ||
947 | - | func | |
948 | - | then | |
927 | + | func bp (bn,bo) = if ((bo >= bk)) | |
928 | + | then bn | |
949 | 929 | else throw("List size exceeds 100") | |
950 | 930 | ||
951 | - | | |
931 | + | bp(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bl, 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), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100) | |
952 | 932 | } | |
953 | 933 | else $Tuple4(0, 0, 0, 0) | |
954 | - | $Tuple2(nil, | |
934 | + | $Tuple2(nil, eA) | |
955 | 935 | } | |
956 | 936 | ||
957 | 937 | ||
958 | 938 | ||
959 | - | @Callable( | |
960 | - | func stakeAcresCallback ( | |
939 | + | @Callable(bZ) | |
940 | + | func stakeAcresCallback (R) = if ((bZ.caller != addressFromStringValue(u))) | |
961 | 941 | then throw("Permission denied") | |
962 | - | else | |
942 | + | else cG(bZ.payments[0].amount, R, 0) | |
963 | 943 | ||
964 | 944 | ||
965 | 945 | ||
966 | - | @Callable( | |
967 | - | func simulateStakeAcresREADONLY ( | |
968 | - | let | |
969 | - | let | |
970 | - | let | |
971 | - | let | |
972 | - | let | |
973 | - | let | |
974 | - | let | |
975 | - | let | |
976 | - | let | |
977 | - | let | |
978 | - | let | |
979 | - | $Tuple2(nil, [cX, | |
946 | + | @Callable(bZ) | |
947 | + | func simulateStakeAcresREADONLY (w,eL) = { | |
948 | + | let cM = aM(w) | |
949 | + | let cO = (valueOrElse(getInteger(cM), 0) + eL) | |
950 | + | let cP = valueOrElse(getInteger(aO), 0) | |
951 | + | let cQ = aN(w) | |
952 | + | let cR = valueOrElse(getInteger(cQ), 0) | |
953 | + | let eM = valueOrElse(getInteger(K, bb(w)), 0) | |
954 | + | let eN = br(cO, eM) | |
955 | + | let cV = eN._1 | |
956 | + | let cW = eN._2 | |
957 | + | let cX = valueOrElse(getInteger(aP), 0) | |
958 | + | let eO = ((cX + cV) - cR) | |
959 | + | $Tuple2(nil, [cR, cV, cX, eO]) | |
980 | 960 | } | |
981 | 961 | ||
982 | 962 | ||
983 | 963 | ||
984 | - | @Callable( | |
985 | - | func issuePickC1 ( | |
964 | + | @Callable(bZ) | |
965 | + | func issuePickC1 (eP) = if ((bZ.caller != L)) | |
986 | 966 | then throw("Permission denied") | |
987 | - | else | |
967 | + | else cs(bK, bM, bV, bP, 1, bD, bX, addressFromStringValue(eP)) | |
988 | 968 | ||
989 | 969 | ||
990 | 970 | ||
991 | - | @Callable( | |
971 | + | @Callable(bZ) | |
992 | 972 | func stakeNFT () = { | |
993 | - | let | |
994 | - | if ((size( | |
973 | + | let ef = bY(bZ) | |
974 | + | if ((size(bZ.payments) != 1)) | |
995 | 975 | then throw("Exactly one payment required") | |
996 | 976 | else { | |
997 | - | let | |
998 | - | if (( | |
977 | + | let ei = value(bZ.payments[0]) | |
978 | + | if ((ei.amount != 1)) | |
999 | 979 | then throw("NFT token should be attached as payment") | |
1000 | 980 | else { | |
1001 | - | let | |
1002 | - | let | |
1003 | - | let | |
1004 | - | let | |
1005 | - | let | |
1006 | - | let | |
1007 | - | let | |
1008 | - | then split_4C(value( | |
981 | + | let ae = value(ei.assetId) | |
982 | + | let eQ = value(assetInfo(ae)) | |
983 | + | let dB = toBase58String(ae) | |
984 | + | let R = toString(bZ.caller) | |
985 | + | let eR = af(R) | |
986 | + | let eS = getString(eR) | |
987 | + | let eT = if (isDefined(eS)) | |
988 | + | then split_4C(value(eS), "_") | |
1009 | 989 | else nil | |
1010 | - | if (containsElement( | |
1011 | - | then throw(("Your staked NFTs already contain " + | |
1012 | - | else if ((size( | |
1013 | - | then throw((("Your already staked max (" + toString( | |
990 | + | if (containsElement(eT, dB)) | |
991 | + | then throw(("Your staked NFTs already contain " + dB)) | |
992 | + | else if ((size(eT) >= aT)) | |
993 | + | then throw((("Your already staked max (" + toString(aT)) + ") NFTs")) | |
1014 | 994 | else { | |
1015 | - | let | |
1016 | - | if (( | |
995 | + | let eU = StringEntry(eR, makeString_2C((eT :+ dB), "_")) | |
996 | + | if ((eQ.issuer == this)) | |
1017 | 997 | then { | |
1018 | - | let | |
1019 | - | let | |
1020 | - | let | |
1021 | - | $Tuple2((( | |
998 | + | let eV = dA(R, dB, (cC(value(eQ.description)) * 10000), aZ(R), aW, aQ) | |
999 | + | let dH = eV._1 | |
1000 | + | let dI = eV._2 | |
1001 | + | $Tuple2(((ef ++ dH) :+ eU), dI) | |
1022 | 1002 | } | |
1023 | - | else if (( | |
1003 | + | else if ((dx(eQ) == "")) | |
1024 | 1004 | then throw("Only WavesLands and Arkimals NFT tokens are accepted") | |
1025 | 1005 | else { | |
1026 | - | let | |
1027 | - | let | |
1028 | - | let | |
1029 | - | $Tuple2((( | |
1006 | + | let eW = dA(R, dB, aS, ba(R), aX, aR) | |
1007 | + | let dH = eW._1 | |
1008 | + | let dI = eW._2 | |
1009 | + | $Tuple2(((ef ++ dH) :+ eU), dI) | |
1030 | 1010 | } | |
1031 | 1011 | } | |
1032 | 1012 | } | |
1033 | 1013 | } | |
1034 | 1014 | } | |
1035 | 1015 | ||
1036 | 1016 | ||
1037 | 1017 | ||
1038 | - | @Callable( | |
1039 | - | func unstakeNFT ( | |
1040 | - | let | |
1041 | - | if ((size( | |
1018 | + | @Callable(bZ) | |
1019 | + | func unstakeNFT (dB) = { | |
1020 | + | let ef = bY(bZ) | |
1021 | + | if ((size(bZ.payments) != 0)) | |
1042 | 1022 | then throw("No payments required") | |
1043 | 1023 | else { | |
1044 | - | let | |
1045 | - | let | |
1046 | - | let | |
1047 | - | let | |
1048 | - | if (!(isDefined(getInteger( | |
1049 | - | then throw((("NFT " + | |
1024 | + | let ae = fromBase58String(dB) | |
1025 | + | let R = toString(bZ.caller) | |
1026 | + | let eQ = value(assetInfo(ae)) | |
1027 | + | let cL = ad(dB, R) | |
1028 | + | if (!(isDefined(getInteger(cL)))) | |
1029 | + | then throw((("NFT " + eQ.name) + " is not staked by you")) | |
1050 | 1030 | else { | |
1051 | - | let | |
1052 | - | let | |
1053 | - | let | |
1054 | - | if (!(isDefined( | |
1055 | - | then throw(("Your staked NFTs don't contain " + | |
1031 | + | let eR = af(R) | |
1032 | + | let eT = split_4C(valueOrElse(getString(eR), ""), "_") | |
1033 | + | let I = indexOf(eT, dB) | |
1034 | + | if (!(isDefined(I))) | |
1035 | + | then throw(("Your staked NFTs don't contain " + dB)) | |
1056 | 1036 | else { | |
1057 | - | let | |
1058 | - | then StringEntry( | |
1059 | - | else DeleteEntry( | |
1060 | - | let | |
1061 | - | if ( | |
1037 | + | let eU = if ((size(eT) > 1)) | |
1038 | + | then StringEntry(eR, makeString_2C(removeByIndex(eT, value(I)), "_")) | |
1039 | + | else DeleteEntry(eR) | |
1040 | + | let eX = (eQ.issuer == this) | |
1041 | + | if (eX) | |
1062 | 1042 | then { | |
1063 | - | let | |
1064 | - | let | |
1065 | - | let | |
1066 | - | let | |
1067 | - | let | |
1068 | - | $Tuple2((((((( | |
1043 | + | let eY = valueOrElse(getInteger(aZ(R)), 0) | |
1044 | + | let eZ = (cC(value(eQ.description)) * 10000) | |
1045 | + | let fa = cG(0, R, -(eZ)) | |
1046 | + | let dH = fa._1 | |
1047 | + | let dI = fa._2 | |
1048 | + | $Tuple2(((((((dH :+ eU) :+ IntegerEntry(aZ(R), (eY - 1))) :+ IntegerEntry(aW, max([0, (valueOrElse(getInteger(aW), 0) - 1)]))) :+ DeleteEntry(ad(toBase58String(ae), R))) :+ ScriptTransfer(bZ.caller, 1, ae)) ++ ef), dI) | |
1069 | 1049 | } | |
1070 | 1050 | else { | |
1071 | - | let | |
1072 | - | if (( | |
1051 | + | let fb = dx(eQ) | |
1052 | + | if ((fb == "")) | |
1073 | 1053 | then throw("Only WavesLands and Arkimals NFT tokens are accepted") | |
1074 | 1054 | else { | |
1075 | - | let | |
1076 | - | let | |
1077 | - | let | |
1078 | - | let | |
1079 | - | $Tuple2(((((( | |
1055 | + | let fc = valueOrElse(getInteger(ba(R)), 0) | |
1056 | + | let fd = cG(0, R, -(aS)) | |
1057 | + | let dH = fd._1 | |
1058 | + | let dI = fd._2 | |
1059 | + | $Tuple2((((((dH :+ eU) :+ IntegerEntry(ba(R), (fc - 1))) :+ DeleteEntry(ad(toBase58String(ae), R))) :+ ScriptTransfer(bZ.caller, 1, ae)) ++ ef), dI) | |
1080 | 1060 | } | |
1081 | 1061 | } | |
1082 | 1062 | } | |
1083 | 1063 | } | |
1084 | 1064 | } | |
1085 | 1065 | } | |
1086 | 1066 | ||
1087 | 1067 | ||
1088 | 1068 | ||
1089 | - | @Callable( | |
1069 | + | @Callable(bZ) | |
1090 | 1070 | func exchangeNFTs () = { | |
1091 | - | let | |
1092 | - | if ((3 > size( | |
1071 | + | let ef = bY(bZ) | |
1072 | + | if ((3 > size(bZ.payments))) | |
1093 | 1073 | then throw("Min one WLGOLD and 2 NFT payments allowed") | |
1094 | - | else if ((size( | |
1074 | + | else if ((size(bZ.payments) > 10)) | |
1095 | 1075 | then throw("Max one WLGOLD and 9 NFT payments allowed") | |
1096 | 1076 | else { | |
1097 | - | let | |
1098 | - | func | |
1099 | - | let | |
1100 | - | if (( | |
1101 | - | then $Tuple4(( | |
1077 | + | let R = toString(bZ.caller) | |
1078 | + | func fe (bh,ei) = { | |
1079 | + | let ae = valueOrErrorMessage(ei.assetId, "WAVES payments not allowed") | |
1080 | + | if ((ae == V)) | |
1081 | + | then $Tuple4((bh._1 + ei.amount), bh._2, bh._3, bh._4) | |
1102 | 1082 | else { | |
1103 | - | let | |
1104 | - | if (( | |
1083 | + | let eQ = value(assetInfo(ae)) | |
1084 | + | if ((eQ.issuer != this)) | |
1105 | 1085 | then throw("Only WL-issued NFTs allowed") | |
1106 | 1086 | else { | |
1107 | - | let | |
1108 | - | if (if (( | |
1109 | - | then ( | |
1087 | + | let ff = cE(value(eQ.description)) | |
1088 | + | if (if ((bh._4 > 0)) | |
1089 | + | then (ff != bh._4) | |
1110 | 1090 | else false) | |
1111 | 1091 | then throw("You can exchange only NFTs of the same rarity") | |
1112 | 1092 | else { | |
1113 | - | let | |
1114 | - | $Tuple4( | |
1093 | + | let cx = cC(value(eQ.description)) | |
1094 | + | $Tuple4(bh._1, (bh._2 + cx), (bh._3 :+ Burn(ae, 1)), ff) | |
1115 | 1095 | } | |
1116 | 1096 | } | |
1117 | 1097 | } | |
1118 | 1098 | } | |
1119 | 1099 | ||
1120 | - | let | |
1121 | - | let | |
1122 | - | let | |
1123 | - | let | |
1124 | - | func | |
1125 | - | then | |
1126 | - | else | |
1100 | + | let fg = { | |
1101 | + | let bj = bZ.payments | |
1102 | + | let bk = size(bj) | |
1103 | + | let bl = $Tuple4(0, 0, nil, -1) | |
1104 | + | func bm (bn,bo) = if ((bo >= bk)) | |
1105 | + | then bn | |
1106 | + | else fe(bn, bj[bo]) | |
1127 | 1107 | ||
1128 | - | func | |
1129 | - | then | |
1108 | + | func bp (bn,bo) = if ((bo >= bk)) | |
1109 | + | then bn | |
1130 | 1110 | else throw("List size exceeds 10") | |
1131 | 1111 | ||
1132 | - | | |
1112 | + | bp(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bl, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
1133 | 1113 | } | |
1134 | - | let | |
1135 | - | let | |
1136 | - | let | |
1137 | - | let | |
1138 | - | let | |
1139 | - | then if (( | |
1140 | - | then | |
1141 | - | else if (( | |
1142 | - | then | |
1143 | - | else throw((("You can advance only one level of rarity, max total bonus " + toString( | |
1144 | - | else if (( | |
1145 | - | then if (( | |
1146 | - | then | |
1147 | - | else if (( | |
1148 | - | then | |
1149 | - | else throw((("You can advance only one level of rarity, max total bonus " + toString( | |
1150 | - | else if (( | |
1151 | - | then if (( | |
1152 | - | then | |
1153 | - | else | |
1154 | - | else if (( | |
1155 | - | then | |
1156 | - | else if (( | |
1114 | + | let fh = fg._1 | |
1115 | + | let fi = fg._2 | |
1116 | + | let fj = fg._3 | |
1117 | + | let cw = fg._4 | |
1118 | + | let fk = if ((cw == bP)) | |
1119 | + | then if ((bE[bF] > fi)) | |
1120 | + | then bP | |
1121 | + | else if ((bE[bG] > fi)) | |
1122 | + | then bQ | |
1123 | + | else throw((("You can advance only one level of rarity, max total bonus " + toString(bE[bG])) + "%")) | |
1124 | + | else if ((cw == bQ)) | |
1125 | + | then if ((bE[bG] > fi)) | |
1126 | + | then bQ | |
1127 | + | else if ((bE[bH] > fi)) | |
1128 | + | then bR | |
1129 | + | else throw((("You can advance only one level of rarity, max total bonus " + toString(bE[bH])) + "%")) | |
1130 | + | else if ((cw == bR)) | |
1131 | + | then if ((bE[bH] > fi)) | |
1132 | + | then bR | |
1133 | + | else bS | |
1134 | + | else if ((cw == bS)) | |
1135 | + | then bS | |
1136 | + | else if ((cw == bT)) | |
1157 | 1137 | then throw("You can't exchange NFTs of this rarity") | |
1158 | 1138 | else throw("Unknown rarity") | |
1159 | - | let | |
1160 | - | let | |
1161 | - | let | |
1162 | - | let | |
1163 | - | if ((0 > | |
1164 | - | then throw((("You need to attach " + | |
1139 | + | let fl = fraction(fi, e, da(0)) | |
1140 | + | let fm = (fh - fl) | |
1141 | + | let fn = (fl / 2) | |
1142 | + | let eq = am(invoke(L, "burnWlgold", [(fl - fn)], nil)) | |
1143 | + | if ((0 > fm)) | |
1144 | + | then throw((("You need to attach " + av(fl, 8)) + " WLGOLD as fee")) | |
1165 | 1145 | else { | |
1166 | - | let | |
1167 | - | then [ScriptTransfer( | |
1146 | + | let fo = if ((fm > 0)) | |
1147 | + | then [ScriptTransfer(bZ.caller, fm, V)] | |
1168 | 1148 | else nil | |
1169 | - | let | |
1170 | - | let | |
1171 | - | let | |
1172 | - | let | |
1173 | - | let | |
1149 | + | let fp = cs(bK, fk, bV, fk, fi, bD, bX, bZ.caller) | |
1150 | + | let fq = fp._1 | |
1151 | + | let cB = fp._2 | |
1152 | + | let fr = size(fj) | |
1153 | + | let fs = if ((fr == 0)) | |
1174 | 1154 | then nil | |
1175 | - | else [IntegerEntry( | |
1176 | - | $Tuple2(((((( | |
1155 | + | else [IntegerEntry(aV, (valueOrElse(getInteger(aV), 0) + fr))] | |
1156 | + | $Tuple2((((((fq ++ fj) ++ fs) ++ ef) ++ fo) :+ ScriptTransfer(addressFromStringValue(getStringValue(L, bu)), fn, V)), $Tuple2(cB, eq)) | |
1177 | 1157 | } | |
1178 | 1158 | } | |
1179 | 1159 | } | |
1180 | 1160 | ||
1181 | 1161 | ||
1182 | 1162 | ||
1183 | - | @Callable( | |
1163 | + | @Callable(bZ) | |
1184 | 1164 | func openNftChest () = { | |
1185 | - | let | |
1186 | - | if ((size( | |
1165 | + | let ef = bY(bZ) | |
1166 | + | if ((size(bZ.payments) != 1)) | |
1187 | 1167 | then throw("exactly 1 payment must be attached") | |
1188 | 1168 | else { | |
1189 | - | let | |
1190 | - | let | |
1191 | - | if (if (!(isDefined( | |
1169 | + | let ei = bZ.payments[0] | |
1170 | + | let en = ei.amount | |
1171 | + | if (if (!(isDefined(ei.assetId))) | |
1192 | 1172 | then true | |
1193 | - | else (value( | |
1173 | + | else (value(ei.assetId) != V)) | |
1194 | 1174 | then throw("WLGOLD payments only!") | |
1195 | 1175 | else { | |
1196 | - | let | |
1197 | - | let | |
1198 | - | let | |
1199 | - | let | |
1200 | - | if ((0 > | |
1201 | - | then throw((("You need to attach " + | |
1176 | + | let fl = fraction(j, d, da(0)) | |
1177 | + | let fm = (en - fl) | |
1178 | + | let fn = (fl / 2) | |
1179 | + | let eq = am(invoke(L, "burnWlgold", [(fl - fn)], nil)) | |
1180 | + | if ((0 > fm)) | |
1181 | + | then throw((("You need to attach " + av(fl, 8)) + " WLGOLD as fee")) | |
1202 | 1182 | else { | |
1203 | - | let | |
1204 | - | then [ScriptTransfer( | |
1183 | + | let fo = if ((fm > 0)) | |
1184 | + | then [ScriptTransfer(bZ.caller, fm, V)] | |
1205 | 1185 | else nil | |
1206 | - | let | |
1207 | - | let | |
1208 | - | let | |
1209 | - | if (( | |
1210 | - | then throw(("Random number is not ready yet, wait until height = " + toString( | |
1186 | + | let R = toString(bZ.caller) | |
1187 | + | let ft = T(R) | |
1188 | + | let fu = valueOrErrorMessage(getInteger(ft), "You have to commitForRandom() first!") | |
1189 | + | if ((fu > height)) | |
1190 | + | then throw(("Random number is not ready yet, wait until height = " + toString(fu))) | |
1211 | 1191 | else { | |
1212 | - | let | |
1213 | - | let | |
1214 | - | let | |
1215 | - | let | |
1216 | - | then $Tuple2(1, | |
1217 | - | else if ((98 > | |
1218 | - | then $Tuple2(5, | |
1219 | - | else $Tuple2(10, | |
1220 | - | let | |
1221 | - | let | |
1222 | - | let | |
1223 | - | let | |
1224 | - | let | |
1225 | - | $Tuple2((((( | |
1192 | + | let aD = value(value(blockInfoByHeight(fu)).vrf) | |
1193 | + | let aC = fromBase58String(split(valueOrElse(getString(S(R)), "42_DEFAULT"), "_")[1]) | |
1194 | + | let fv = aA(100, aC, aD) | |
1195 | + | let fw = if ((84 > fv)) | |
1196 | + | then $Tuple2(1, bP) | |
1197 | + | else if ((98 > fv)) | |
1198 | + | then $Tuple2(5, bQ) | |
1199 | + | else $Tuple2(10, bR) | |
1200 | + | let cq = fw._1 | |
1201 | + | let cw = fw._2 | |
1202 | + | let fx = cs(bK, cw, bV, cw, cq, bD, bX, bZ.caller) | |
1203 | + | let fq = fx._1 | |
1204 | + | let cB = fx._2 | |
1205 | + | $Tuple2(((((fq ++ ef) ++ fo) :+ ScriptTransfer(addressFromStringValue(getStringValue(L, bu)), fn, V)) :+ DeleteEntry(ft)), $Tuple2(cB, eq)) | |
1226 | 1206 | } | |
1227 | 1207 | } | |
1228 | 1208 | } | |
1229 | 1209 | } | |
1230 | 1210 | } | |
1231 | 1211 | ||
1232 | 1212 | ||
1233 | 1213 | ||
1234 | - | @Callable( | |
1214 | + | @Callable(bZ) | |
1235 | 1215 | func commitForRandom () = { | |
1236 | - | let | |
1237 | - | let | |
1238 | - | let | |
1239 | - | if (isDefined(getInteger( | |
1216 | + | let ef = bY(bZ) | |
1217 | + | let R = toString(bZ.caller) | |
1218 | + | let ft = T(R) | |
1219 | + | if (isDefined(getInteger(ft))) | |
1240 | 1220 | then throw("You already commited for random, please use it") | |
1241 | 1221 | else { | |
1242 | - | let | |
1243 | - | $Tuple2(([IntegerEntry( | |
1222 | + | let fu = (height + i) | |
1223 | + | $Tuple2(([IntegerEntry(ft, fu)] ++ ef), fu) | |
1244 | 1224 | } | |
1245 | 1225 | } | |
1246 | 1226 | ||
1247 | 1227 | ||
1248 | 1228 | ||
1249 | - | @Callable( | |
1250 | - | func drawDaylyPromo () = if (( | |
1229 | + | @Callable(bZ) | |
1230 | + | func drawDaylyPromo () = if ((bZ.caller != this)) | |
1251 | 1231 | then throw("Permission denied") | |
1252 | 1232 | else { | |
1253 | - | let | |
1254 | - | let | |
1255 | - | if (( | |
1233 | + | let fy = (height / o) | |
1234 | + | let aB = valueOrElse(getInteger(ai), 0) | |
1235 | + | if ((aB == 0)) | |
1256 | 1236 | then throw("No tickets to draw") | |
1257 | 1237 | else { | |
1258 | - | let | |
1259 | - | let | |
1260 | - | then | |
1261 | - | else ( | |
1262 | - | let | |
1263 | - | let | |
1264 | - | if (( | |
1238 | + | let fz = (fy * o) | |
1239 | + | let fA = if ((fz > q)) | |
1240 | + | then fz | |
1241 | + | else (fz + q) | |
1242 | + | let aD = value(value(blockInfoByHeight(fA)).vrf) | |
1243 | + | let dV = valueOrElse(getString(aj), "") | |
1244 | + | if ((dV == "")) | |
1265 | 1245 | then throw("No participants") | |
1266 | 1246 | else { | |
1267 | - | func | |
1268 | - | then | |
1247 | + | func fB (fC,fD) = if ((fD >= dJ)) | |
1248 | + | then fC | |
1269 | 1249 | else { | |
1270 | - | let | |
1271 | - | let | |
1250 | + | let fv = aA(fC._1, fC._2, aD) | |
1251 | + | let fE = if ((fC._3 == "")) | |
1272 | 1252 | then nil | |
1273 | - | else split_51C( | |
1274 | - | func | |
1275 | - | let | |
1276 | - | let | |
1277 | - | let | |
1278 | - | let | |
1279 | - | if (if (( | |
1280 | - | then ( | |
1253 | + | else split_51C(fC._3, "_") | |
1254 | + | func fF (bh,fG) = { | |
1255 | + | let fH = split(fG, ":") | |
1256 | + | let R = fH[0] | |
1257 | + | let dR = parseIntValue(fH[1]) | |
1258 | + | let fI = (bh._1 + dR) | |
1259 | + | if (if ((bh._3 == "")) | |
1260 | + | then (fI > fv) | |
1281 | 1261 | else false) | |
1282 | - | then $Tuple3( | |
1283 | - | else $Tuple3( | |
1262 | + | then $Tuple3(fI, dR, R) | |
1263 | + | else $Tuple3(fI, bh._2, bh._3) | |
1284 | 1264 | } | |
1285 | 1265 | ||
1286 | - | let | |
1287 | - | let | |
1288 | - | let | |
1289 | - | let | |
1290 | - | func | |
1291 | - | then | |
1292 | - | else | |
1266 | + | let dZ = { | |
1267 | + | let bj = fE | |
1268 | + | let bk = size(bj) | |
1269 | + | let bl = $Tuple3(0, 0, "") | |
1270 | + | func bm (bn,bo) = if ((bo >= bk)) | |
1271 | + | then bn | |
1272 | + | else fF(bn, bj[bo]) | |
1293 | 1273 | ||
1294 | - | func | |
1295 | - | then | |
1274 | + | func bp (bn,bo) = if ((bo >= bk)) | |
1275 | + | then bn | |
1296 | 1276 | else throw("List size exceeds 200") | |
1297 | 1277 | ||
1298 | - | | |
1278 | + | bp(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bl, 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), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100), 101), 102), 103), 104), 105), 106), 107), 108), 109), 110), 111), 112), 113), 114), 115), 116), 117), 118), 119), 120), 121), 122), 123), 124), 125), 126), 127), 128), 129), 130), 131), 132), 133), 134), 135), 136), 137), 138), 139), 140), 141), 142), 143), 144), 145), 146), 147), 148), 149), 150), 151), 152), 153), 154), 155), 156), 157), 158), 159), 160), 161), 162), 163), 164), 165), 166), 167), 168), 169), 170), 171), 172), 173), 174), 175), 176), 177), 178), 179), 180), 181), 182), 183), 184), 185), 186), 187), 188), 189), 190), 191), 192), 193), 194), 195), 196), 197), 198), 199), 200) | |
1299 | 1279 | } | |
1300 | - | let | |
1301 | - | if (( | |
1302 | - | then | |
1280 | + | let fJ = dZ._3 | |
1281 | + | if ((fJ == "")) | |
1282 | + | then fC | |
1303 | 1283 | else { | |
1304 | - | let | |
1305 | - | let | |
1306 | - | then drop( | |
1307 | - | else (dropRight( | |
1308 | - | let | |
1309 | - | let | |
1310 | - | let | |
1311 | - | let | |
1312 | - | $Tuple5(( | |
1284 | + | let dY = split_51C(fC._3, fJ) | |
1285 | + | let dX = if ((dY[0] == "")) | |
1286 | + | then drop(dY[1], 5) | |
1287 | + | else (dropRight(dY[0], 1) + drop(dY[1], 4)) | |
1288 | + | let fK = dL(fJ, dK[fD], true) | |
1289 | + | let ek = fK._1 | |
1290 | + | let fL = fK._2 | |
1291 | + | let fM = fromBase58String(split(valueOrElse(getString(S(fJ)), "0_DEFAULT"), "_")[1]) | |
1292 | + | $Tuple5((fC._1 - dZ._2), fM, dX, (fC._4 :+ ek), (fC._5 :+ fJ)) | |
1313 | 1293 | } | |
1314 | 1294 | } | |
1315 | 1295 | ||
1316 | - | let | |
1317 | - | let | |
1318 | - | let | |
1319 | - | let | |
1320 | - | func | |
1321 | - | then | |
1322 | - | else | |
1296 | + | let fN = { | |
1297 | + | let bj = [0, 1, 2] | |
1298 | + | let bk = size(bj) | |
1299 | + | let bl = $Tuple5(aB, bZ.transactionId, dV, nil, nil) | |
1300 | + | func bm (bn,bo) = if ((bo >= bk)) | |
1301 | + | then bn | |
1302 | + | else fB(bn, bj[bo]) | |
1323 | 1303 | ||
1324 | - | func | |
1325 | - | then | |
1304 | + | func bp (bn,bo) = if ((bo >= bk)) | |
1305 | + | then bn | |
1326 | 1306 | else throw("List size exceeds 3") | |
1327 | 1307 | ||
1328 | - | | |
1308 | + | bp(bm(bm(bm(bl, 0), 1), 2), 3) | |
1329 | 1309 | } | |
1330 | - | $Tuple2(((( | |
1310 | + | $Tuple2((((fN._4 :+ StringEntry(aj, fN._3)) :+ IntegerEntry(ai, fN._1)) :+ StringEntry(ak(fy), makeString(fN._5, "_"))), 0) | |
1331 | 1311 | } | |
1332 | 1312 | } | |
1333 | 1313 | } | |
1334 | 1314 | ||
1335 | 1315 |
github/deemru/w8io/169f3d6 1291.81 ms ◑