tx · CMpXSrPGqpkQoKJdzK7MYiNCSt36qmxUuv5ZZ1SRskHE

3NBPx1Fciu3JQNEGZ21jSnTdutLNGGBUSXh:  -0.02900000 Waves

2024.11.29 06:35 [3392191] smart account 3NBPx1Fciu3JQNEGZ21jSnTdutLNGGBUSXh > SELF 0.00000000 Waves

{ "type": 13, "id": "CMpXSrPGqpkQoKJdzK7MYiNCSt36qmxUuv5ZZ1SRskHE", "fee": 2900000, "feeAssetId": null, "timestamp": 1732851368049, "version": 2, "chainId": 84, "sender": "3NBPx1Fciu3JQNEGZ21jSnTdutLNGGBUSXh", "senderPublicKey": "3QtfC1XbLZXdeawMDeSERy9vvjUmj1XYd2GFmrvx7pWQ", "proofs": [ "3SvsL8eunES8X1VvkaoRnXgQsXJ6d2HUtJUfcibw119YAjABRVdgvXc541R6uJYDCBi3eptJyDdsvzeYLAG8UrBX" ], "script": "base64:BgJHCAISABIECgIICBIDCgEEEgMKAQESABIAEgMKAQESABIECgIIARIAEgMKAQgSAwoBCBIECgIIARIDCgEIEgASAwoBCBIAEgBxAANTRVACAl9fAAVNVUxUNgDAhD0ABU1VTFQ3AICt4gQABU1VTFQ4AIDC1y8ACkRBWV9NSUxMSVMAgLiZKQAVVVNEVDJBQ1JFU19NVUxUSVBMSUVSAAoAE09ORV9QRVJDRU5UX0RJVklTT1IAZAAFY2hhaW4JAMkBAgkAygECCAUEdGhpcwVieXRlcwABAAEAC1dFRUtfQkxPQ0tTBAckbWF0Y2gwBQVjaGFpbgMJAAACAQFXBQckbWF0Y2gwAOBOAwkAAAIBAVQFByRtYXRjaDAAtAEJAAIBAg1Vbmtub3duIGNoYWluAAt1c2R0QXNzZXRJZAQHJG1hdGNoMAUFY2hhaW4DCQAAAgEBVwUHJG1hdGNoMAEghNp6sggDP07Ru8qO7ouTvMmC3Qtd+geWqNQj+agP/7kDCQAAAgEBVAUHJG1hdGNoMAEgVbHYn3KHgu/l41uNrAWrZd6aQ6EvFrsF8xq3h6XxxRgJAAIBAg1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IBCQCsAgIJAKwCAgITWW91IG5lZWQgdG8gYXR0YWNoIAkApAMBBQp0b3RhbEJvbnVzAgwgVVNEVCBhcyBmZWUEDWNoYW5nZUFjdGlvbnMDCQBmAgUGY2hhbmdlAAAJAMwIAgkBDlNjcmlwdFRyYW5zZmVyAwgFAWkGY2FsbGVyBQZjaGFuZ2UFC3VzZHRBc3NldElkBQNuaWwFA25pbAQNJHQwMjU5NzIyNjA0NAkBEGlzc3VlTkZUaW50ZXJuYWwCBQhuZnRJbmRleAgFAWkGY2FsbGVyBA9pc3N1ZU5mdEFjdGlvbnMIBQ0kdDAyNTk3MjI2MDQ0Al8xBApuZnRBc3NldElkCAUNJHQwMjU5NzIyNjA0NAJfMgQGYnVybmVkCQCQAwEFC2J1cm5BY3Rpb25zBBJidXJuQ291bnRlckFjdGlvbnMDCQAAAgUGYnVybmVkAAAFA25pbAkAzAgCCQEMSW50ZWdlckVudHJ5AgURa2V5TmZ0VG90YWxCdXJuZWQJAGQCCQELdmFsdWVPckVsc2UCCQCfCAEFEWtleU5mdFRvdGFsQnVybmVkAAAFBmJ1cm5lZAUDbmlsCQCUCgIJAM4IAgkAzggCCQDOCAIJAM4IAgUPaXNzdWVOZnRBY3Rpb25zBQtidXJuQWN0aW9ucwUSYnVybkNvdW50ZXJBY3Rpb25zBQ1wcm9sb2dBY3Rpb25zBQ1jaGFuZ2VBY3Rpb25zBQpuZnRBc3NldElkAWkBDG9wZW5OZnRDaGVzdAADCQECIT0CCAUBaQZjYWxsZXIFBHRoaXMJAAIBAhFQZXJtaXNzaW9uIGRlbmllZAkAlAoCBQNuaWwAAACZzK1g", "height": 3392191, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FkuouCruxf26S6783WN9HtAwaEcUXm26w4tpTzigbPrD Next: GA2UU9F6mipcYYJXiK8DyuuXwDmb63ccEcor7gfsiL85 Diff:
OldNewDifferences
206206
207207 let ap = "totalFarmingPower"
208208
209-let aq = 0
209+let aq = 3
210210
211-let ar = 3
211+let ar = 1
212212
213-let as = 1
213+let as = 5000
214214
215-let at = 5000
215+let at = 4
216216
217-let au = 4
217+let au = "nftTotalIssued"
218218
219-let av = "nftTotalIssued"
219+let av = "nftTotalBurned"
220220
221-let aw = "nftTotalBurned"
221+let aw = "WlNftTotalStaked"
222222
223-let ax = "WlNftTotalStaked"
223+let ax = "ArkNftTotalStaked"
224224
225-let ay = "ArkNftTotalStaked"
226-
227-func az (S) = ("nftNumberByAssetId_" + S)
225+func ay (S) = ("nftNumberByAssetId_" + S)
228226
229227
230-func aA (I) = ("userWlNftNumber_" + I)
228+func az (I) = ("userWlNftNumber_" + I)
231229
232230
233-func aB (I) = ("userArkNftNumber_" + I)
231+func aA (I) = ("userArkNftNumber_" + I)
234232
235233
236-func aC (I) = ("userFullBonus_" + I)
234+func aB (I) = ("userFullBonus_" + I)
237235
238236
239-let aD = [0, 10, 20, 40, 80, 150, 250, 400, 700, 1000]
237+let aC = [0, 10, 20, 40, 80, 150, 250, 400, 700, 1000]
240238
241-func aE (aF) = {
242- let aG = ((aF + 99999999) / aj)
243- func aH (aI,aJ) = if ((aJ >= aG))
244- then aI
245- else (aI + 1)
239+func aD (aE) = {
240+ let aF = ((aE + 99999999) / aj)
241+ func aG (aH,aI) = if ((aI >= aF))
242+ then aH
243+ else (aH + 1)
246244
247- let aK = aD
248- let aL = size(aK)
249- let aM = 0
250- func aN (aO,aP) = if ((aP >= aL))
251- then aO
252- else aH(aO, aK[aP])
245+ let aJ = aC
246+ let aK = size(aJ)
247+ let aL = 0
248+ func aM (aN,aO) = if ((aO >= aK))
249+ then aN
250+ else aG(aN, aJ[aO])
253251
254- func aQ (aO,aP) = if ((aP >= aL))
255- then aO
252+ func aP (aN,aO) = if ((aO >= aK))
253+ then aN
256254 else throw("List size exceeds 10")
257255
258- aQ(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aM, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
256+ aP(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aL, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
259257 }
260258
261259
262-func aR (aF) = ((aF * 20) * (aE(aF) + 4))
260+func aQ (aE) = ((aE * 20) * (aD(aE) + 4))
263261
264262
265-func aS (aF,aT) = {
266- let aU = aR(aF)
267- $Tuple2(fraction(aU, (ai + aT), ai), aU)
263+func aR (aE,aS) = {
264+ let aT = aQ(aE)
265+ $Tuple2(fraction(aT, (ai + aS), ai), aT)
268266 }
269267
270268
271-func aV (I) = ("lastArbTimeUser_" + I)
269+func aU (I) = ("lastArbTimeUser_" + I)
272270
273271
274-let aW = "lastAcresSellTime"
272+let aV = "lastAcresSellTime"
275273
276-let aX = "lastLimitLeft"
274+let aW = "lastLimitLeft"
277275
278-let aY = ["SHOVEL-P3", "PICKAXE-C1", "PICKAXE-C3", "PICKAXE-C5", "PICKAXE-C10"]
276+let aX = ["SHOVEL-P3", "PICKAXE-C1", "PICKAXE-C3", "PICKAXE-C5", "PICKAXE-C10"]
279277
280-let aZ = ["contentShovelP3", "contentPickaxeC1", "contentPickaxeC3", "contentPickaxeC5", "contentPickaxeC10"]
278+let aY = ["contentShovelP3", "contentPickaxeC1", "contentPickaxeC3", "contentPickaxeC5", "contentPickaxeC10"]
281279
282-let ba = ["Gold shovel", "Pickaxe", "Pickaxe", "Pickaxe", "Pickaxe"]
280+let aZ = ["Gold shovel", "Pickaxe"]
283281
284-let bb = ["Reward for early birds", "Increases FarmPower", "Increases FarmPower", "Increases FarmPower", "Increases FarmPower"]
282+let ba = ["Reward for early birds", "Increases FarmPower"]
285283
286-let bc = ["Promo", "Common", "Common", "Common", "Common"]
284+let bb = 0
287285
288-let bd = [3, 1, 3, 5, 10]
286+let bc = 1
289287
290-func be (bf) = if (if ((bf.originCaller != B))
288+let bd = ["Promo", "Common"]
289+
290+let be = [3, 1, 3, 5, 10]
291+
292+let bf = ["SHOVEL", "PICKAXE"]
293+
294+let bg = 0
295+
296+let bh = 1
297+
298+let bi = ["contentPickaxeC", "contentPickaxeU", "contentPickaxeL", "contentPickaxeE", "contentShovelP"]
299+
300+let bj = 0
301+
302+let bk = 4
303+
304+let bl = ["Common", "Uncommon", "Legendary", "Epic", "Promo"]
305+
306+let bm = 0
307+
308+let bn = 4
309+
310+let bo = ["Digging tools"]
311+
312+let bp = 0
313+
314+let bq = ["FarmPower"]
315+
316+let br = 0
317+
318+func bs (bt) = if (if ((bt.originCaller != B))
291319 then valueOrElse(getBoolean(G()), false)
292320 else false)
293321 then throw("Contracts are under maintenance")
294322 else {
295- let I = toString(bf.originCaller)
296- let bg = (height / i)
297- let bh = getString(H(I))
298- let bi = toBase58String(bf.transactionId)
299- let bj = ((toString(bg) + "_") + bi)
300- if (isDefined(bh))
323+ let I = toString(bt.originCaller)
324+ let bu = (height / i)
325+ let bv = H(I)
326+ let bw = getString(bv)
327+ let bx = toBase58String(bt.transactionId)
328+ let by = ((toString(bu) + "_") + bx)
329+ let bz = J(I)
330+ if (isDefined(bw))
301331 then {
302- let bk = split(value(bh), "_")
303- if ((bk[0] == toString(bg)))
304- then [StringEntry(H(I), bj), StringEntry(J(I), bj)]
305- else if ((bk[0] == toString((bg - 1))))
306- then [StringEntry(J(I), bj)]
332+ let bA = split(value(bw), "_")
333+ if ((bA[0] == toString(bu)))
334+ then [StringEntry(bv, by), StringEntry(bz, by)]
335+ else if ((bA[0] == toString((bu - 1))))
336+ then [StringEntry(bz, by)]
307337 else {
308- let bl = getStringValue(H(I))
309- let bm = split(bl, "_")
310- if ((bm[0] == toString(bg)))
311- then [StringEntry(J(I), bj)]
312- else [StringEntry(H(I), bl), StringEntry(J(I), bj)]
338+ let bB = getStringValue(bz)
339+ let bC = split(bB, "_")
340+ if ((bC[0] == toString(bu)))
341+ then [StringEntry(bz, by)]
342+ else [StringEntry(bv, bB), StringEntry(bz, by)]
313343 }
314344 }
315- else [StringEntry(H(I), bj), StringEntry(J(I), bj)]
345+ else [StringEntry(bv, by), StringEntry(bz, by)]
316346 }
317347
318348
319-func bn (bo,bp) = ((((((((((((((((((((("{\"url\": \"https://waveslands.com\", " + "\"contentKey\": \"") + aZ[bo]) + "\", ") + "\"number\": ") + bp) + ", ") + "\"collection\": \"Digging tools") + "\", ") + "\"name\": \"") + ba[bo]) + "\", ") + "\"description\": \"") + bb[bo]) + "\", ") + "\"rare\": \"") + bc[bo]) + "\", ") + "\"bonus\": ") + toString(bd[bo])) + ", ") + "\"bonusType\": \"FarmPower\"}")
349+func bD (bE,bF,bG,bH,bI,bJ,bK,bL) = (((((((((((((((((((((((("{\"url\": \"https://waveslands.com\", " + "\"contentKey\": \"") + bE) + "\", ") + "\"number\": ") + toString(bF)) + ", ") + "\"collection\": \"") + bG) + "\", ") + "\"name\": \"") + bH) + "\", ") + "\"description\": \"") + bI) + "\", ") + "\"rare\": \"") + bJ) + "\", ") + "\"bonus\": ") + toString(bK)) + ", ") + "\"bonusType\": \"") + bL) + "\"}")
320350
321351
322-func bq (bo,I) = if ((bo >= size(aZ)))
352+func bM (bN,bO,bP,bQ,bR,bS,bT,I) = {
353+ let bF = valueOrElse(getInteger(au), 0)
354+ let bJ = bl[bQ]
355+ let bH = (((bf[bN] + "-") + take(bJ, 1)) + toString(bR))
356+ let bU = Issue(bH, bD(bi[bO], bF, bo[bP], aZ[bN], ba[bS], bl[bQ], bR, bq[bT]), 1, 0, false)
357+ let bV = calculateAssetId(bU)
358+ $Tuple2([bU, IntegerEntry(au, (bF + 1)), IntegerEntry(ay(toBase58String(bV)), bF), ScriptTransfer(I, 1, bV)], bV)
359+ }
360+
361+
362+func bW (bX,bF) = ((((((((((((((((((((("{\"url\": \"https://waveslands.com\", " + "\"contentKey\": \"") + aY[bX]) + "\", ") + "\"number\": ") + bF) + ", ") + "\"collection\": \"Digging tools") + "\", ") + "\"name\": \"") + aZ[bX]) + "\", ") + "\"description\": \"") + ba[bX]) + "\", ") + "\"rare\": \"") + bd[bX]) + "\", ") + "\"bonus\": ") + toString(be[bX])) + ", ") + "\"bonusType\": \"FarmPower\"}")
363+
364+
365+func bY (bX,I) = if ((bX >= size(aY)))
323366 then throw("nftIndex out of bounds")
324367 else {
325- let bp = valueOrElse(getInteger(av), 0)
326- let br = Issue(aY[bo], bn(bo, toString(bp)), 1, 0, false)
327- let bs = calculateAssetId(br)
328- $Tuple2([br, IntegerEntry(av, (bp + 1)), IntegerEntry(az(toBase58String(bs)), bp), ScriptTransfer(I, 1, bs)], bs)
368+ let bF = valueOrElse(getInteger(au), 0)
369+ let bU = Issue(aX[bX], bW(bX, toString(bF)), 1, 0, false)
370+ let bV = calculateAssetId(bU)
371+ $Tuple2([bU, IntegerEntry(au, (bF + 1)), IntegerEntry(ay(toBase58String(bV)), bF), ScriptTransfer(I, 1, bV)], bV)
329372 }
330373
331374
332-func bt (bu,p,bv) = if (if ((bu == 0))
333- then (bv == 0)
375+func bZ (ca,p,cb) = if (if ((ca == 0))
376+ then (cb == 0)
334377 else false)
335378 then throw("Nothing to do")
336379 else {
337- let bw = invoke(D, "onStakeUnstakeLand", [p], nil)
338- if ((bw == bw))
380+ let cc = invoke(D, "onStakeUnstakeLand", [p], nil)
381+ if ((cc == cc))
339382 then {
340- let bx = lastBlock.timestamp
341- let by = N(p)
342- let bz = am(p)
343- let bA = valueOrElse(getInteger(bz), 0)
344- if (if ((0 > bu))
345- then (0 > (bA + bu))
383+ let cd = lastBlock.timestamp
384+ let ce = N(p)
385+ let cf = am(p)
386+ let cg = valueOrElse(getInteger(cf), 0)
387+ if (if ((0 > ca))
388+ then (0 > (cg + ca))
346389 else false)
347- then throw(((("You have only " + ad(bA, 8)) + " ACRES staked, tried to unstake ") + ad(-(bu), 8)))
390+ then throw(((("You have only " + ad(cg, 8)) + " ACRES staked, tried to unstake ") + ad(-(ca), 8)))
348391 else {
349- let bB = (bA + bu)
350- let bC = valueOrElse(getInteger(ao), 0)
351- let bD = an(p)
352- let bE = valueOrElse(getInteger(bD), 0)
353- let bF = aC(p)
354- let bG = valueOrElse(getInteger(C, bF), 0)
355- if (if ((0 > bv))
356- then (0 > (bG + bv))
392+ let ch = (cg + ca)
393+ let ci = valueOrElse(getInteger(ao), 0)
394+ let cj = an(p)
395+ let ck = valueOrElse(getInteger(cj), 0)
396+ let cl = aB(p)
397+ let cm = valueOrElse(getInteger(C, cl), 0)
398+ if (if ((0 > cb))
399+ then (0 > (cm + cb))
357400 else false)
358- then throw((((("You have only " + ad(bG, 4)) + "% bonus, and tried to unstake ") + ad(-(bv), 4)) + "%"))
401+ then throw((((("You have only " + ad(cm, 4)) + "% bonus, and tried to unstake ") + ad(-(cb), 4)) + "%"))
359402 else {
360- let bH = aS(bB, (bG + bv))
361- let bI = bH._1
362- let bJ = bH._2
363- let bK = valueOrElse(getInteger(ap), 0)
364- let bL = if ((bu == 0))
403+ let cn = aR(ch, (cm + cb))
404+ let co = cn._1
405+ let cp = cn._2
406+ let cq = valueOrElse(getInteger(ap), 0)
407+ let cr = if ((ca == 0))
365408 then nil
366- else [IntegerEntry(bz, bB), IntegerEntry(ao, (bC + bu))]
367- $Tuple2(((((bL :+ IntegerEntry(by, lastBlock.timestamp)) :+ IntegerEntry(bD, bI)) :+ IntegerEntry(ap, ((bK + bI) - bE))) :+ IntegerEntry(bF, (bG + bv))), bw)
409+ else [IntegerEntry(cf, ch), IntegerEntry(ao, (ci + ca))]
410+ $Tuple2(((((cr :+ IntegerEntry(ce, lastBlock.timestamp)) :+ IntegerEntry(cj, co)) :+ IntegerEntry(ap, ((cq + co) - ck))) :+ IntegerEntry(cl, (cm + cb))), cc)
368411 }
369412 }
370413 }
372415 }
373416
374417
375-func bM (bN) = {
376- let bO = valueOrErrorMessage(getInteger(D, ak), "WLGOLD is not issued yet")
377- let bP = assetBalance(D, k)
378- let bQ = (assetBalance(C, k) - bN)
379- let bR = (assetBalance(E, k) + valueOrElse(getInteger(E, al), 0))
380- let bS = ((bQ + bP) + bR)
381- fraction(bS, d, bO)
418+func cs (ct) = {
419+ let cu = valueOrErrorMessage(getInteger(D, ak), "WLGOLD is not issued yet")
420+ let cv = assetBalance(D, k)
421+ let cw = (assetBalance(C, k) - ct)
422+ let cx = (assetBalance(E, k) + valueOrElse(getInteger(E, al), 0))
423+ let cy = ((cw + cv) + cx)
424+ fraction(cy, d, cu)
382425 }
383426
384427
385-func bT () = {
386- let bP = assetBalance(D, k)
387- let bQ = assetBalance(this, k)
388- let bR = (assetBalance(E, k) + valueOrElse(getInteger(E, al), 0))
389- let bU = (((bQ + bP) + bR) / g)
390- let bV = valueOrElse(getInteger(aX), bU)
391- let bW = valueOrElse(getInteger(aW), 0)
392- let bx = lastBlock.timestamp
393- let bX = (bV + fraction(bU, (bx - bW), e))
394- let bY = min([bX, bU])
395- $Tuple2(IntegerEntry(aW, bx), bY)
428+func cz () = {
429+ let cv = assetBalance(D, k)
430+ let cw = assetBalance(this, k)
431+ let cx = (assetBalance(E, k) + valueOrElse(getInteger(E, al), 0))
432+ let cA = (((cw + cv) + cx) / g)
433+ let cB = valueOrElse(getInteger(aW), cA)
434+ let cC = valueOrElse(getInteger(aV), 0)
435+ let cd = lastBlock.timestamp
436+ let cD = (cB + fraction(cA, (cd - cC), e))
437+ let cE = min([cD, cA])
438+ $Tuple2(IntegerEntry(aV, cd), cE)
396439 }
397440
398441
399-let bZ = addressFromStringValue("3PJgZ6AK1WVCpdCmEZpesHmaKvrQDdXG5og")
442+let cF = addressFromStringValue("3PJgZ6AK1WVCpdCmEZpesHmaKvrQDdXG5og")
400443
401-let ca = valueOrElse(getString(bZ, "static_incubatorAddress"), "")
444+let cG = valueOrElse(getString(cF, "static_incubatorAddress"), "")
402445
403-let cb = valueOrElse(getString(bZ, "static_breederAddress"), "")
446+let cH = valueOrElse(getString(cF, "static_breederAddress"), "")
404447
405-let cc = valueOrElse(getString(bZ, "static_turtleIncubatorAddress"), "")
448+let cI = valueOrElse(getString(cF, "static_turtleIncubatorAddress"), "")
406449
407-let cd = valueOrElse(getString(bZ, "static_turtleBreederAddress"), "")
450+let cJ = valueOrElse(getString(cF, "static_turtleBreederAddress"), "")
408451
409-let ce = valueOrElse(getString(bZ, "static_canineIncubatorAddress"), "")
452+let cK = valueOrElse(getString(cF, "static_canineIncubatorAddress"), "")
410453
411-let cf = valueOrElse(getString(bZ, "static_canineBreederAddress"), "")
454+let cL = valueOrElse(getString(cF, "static_canineBreederAddress"), "")
412455
413-let cg = valueOrElse(getString(bZ, "static_felineIncubatorAddress"), "")
456+let cM = valueOrElse(getString(cF, "static_felineIncubatorAddress"), "")
414457
415-let ch = valueOrElse(getString(bZ, "static_felineBreederAddress"), "")
458+let cN = valueOrElse(getString(cF, "static_felineBreederAddress"), "")
416459
417-let ci = valueOrElse(getString(bZ, "static_mutantIncubatorAddress"), "")
460+let cO = valueOrElse(getString(cF, "static_mutantIncubatorAddress"), "")
418461
419-func cj (ck) = {
420- let cl = toString(ck.issuer)
462+func cP (cQ) = {
463+ let cR = toString(cQ.issuer)
421464 if (if (if (if (if (if (if (if (if (if ((h == base58'2T'))
422- then (cl == n)
465+ then (cR == n)
423466 else false)
424467 then true
425- else (cl == ca))
468+ else (cR == cG))
426469 then true
427- else (cl == cb))
470+ else (cR == cH))
428471 then true
429- else (cl == cc))
472+ else (cR == cI))
430473 then true
431- else (cl == cd))
474+ else (cR == cJ))
432475 then true
433- else (cl == ce))
476+ else (cR == cK))
434477 then true
435- else (cl == cf))
478+ else (cR == cL))
436479 then true
437- else (cl == cg))
480+ else (cR == cM))
438481 then true
439- else (cl == ch))
440- then ck.name
441- else if ((cl == ci))
442- then ck.description
482+ else (cR == cN))
483+ then cQ.name
484+ else if ((cR == cO))
485+ then cQ.description
443486 else ""
444487 }
445488
446489
447-func cm (cn) = if (!(contains(cn, "\"bonusType\": \"FarmPower\"")))
448- then throw(("NFT is not supported: " + cn))
490+func cS (bI) = if (!(contains(bI, "\"bonusType\": \"FarmPower\"")))
491+ then throw(("NFT is not supported: " + bI))
449492 else {
450- let co = split_4C(split_4C(cn, "\"bonus\":")[1], ",")[0]
451- parseIntValue(drop(co, (valueOrElse(lastIndexOf(co, " "), -1) + 1)))
493+ let cT = split_4C(split_4C(bI, "\"bonus\":")[1], ",")[0]
494+ parseIntValue(drop(cT, (valueOrElse(lastIndexOf(cT, " "), -1) + 1)))
452495 }
453496
454497
455-func cp (I,cq,aT,cr,cs,ct) = {
456- let cu = valueOrElse(getInteger(cr), 0)
457- if ((cu >= ct))
458- then throw((("You can stake max " + toString(ct)) + " of such NFTs"))
498+func cU (I,cV,aS,cW,cX,cY) = {
499+ let cZ = valueOrElse(getInteger(cW), 0)
500+ if ((cZ >= cY))
501+ then throw((("You can stake max " + toString(cY)) + " of such NFTs"))
459502 else {
460- let cv = bt(0, I, aT)
461- let cw = cv._1
462- let cx = cv._2
463- $Tuple2((((cw :+ IntegerEntry(cr, (cu + 1))) :+ IntegerEntry(cs, (valueOrElse(getInteger(cs), 0) + 1))) :+ IntegerEntry(R(cq, I), lastBlock.timestamp)), cx)
503+ let da = bZ(0, I, aS)
504+ let db = da._1
505+ let dc = da._2
506+ $Tuple2((((db :+ IntegerEntry(cW, (cZ + 1))) :+ IntegerEntry(cX, (valueOrElse(getInteger(cX), 0) + 1))) :+ IntegerEntry(R(cV, I), lastBlock.timestamp)), dc)
464507 }
465508 }
466509
467510
468-@Callable(bf)
469-func saveLastTx () = if (!(containsElement([D], bf.caller)))
511+@Callable(bt)
512+func saveLastTx () = if (!(containsElement([D], bt.caller)))
470513 then throw("Access denied")
471- else $Tuple2(be(bf), 42)
514+ else $Tuple2(bs(bt), 42)
472515
473516
474517
475-@Callable(bf)
476-func constructorV1 (cy,cz) = if ((bf.caller != this))
518+@Callable(bt)
519+func constructorV1 (dd,de) = if ((bt.caller != this))
477520 then throw("Permission denied")
478521 else {
479- let cA = addressFromStringValue(cz)
480-[IntegerEntry(K, getIntegerValue(cA, K)), BinaryEntry(L, getBinaryValue(cA, L)), StringEntry(v(), cy), StringEntry(F, cz)]
522+ let df = addressFromStringValue(de)
523+[IntegerEntry(K, getIntegerValue(df, K)), BinaryEntry(L, getBinaryValue(df, L)), StringEntry(v(), dd), StringEntry(F, de)]
481524 }
482525
483526
484527
485-@Callable(bf)
486-func setBlocked (cB) = if ((bf.caller != this))
528+@Callable(bt)
529+func setBlocked (dg) = if ((bt.caller != this))
487530 then throw("permission denied")
488- else [BooleanEntry(G(), cB)]
531+ else [BooleanEntry(G(), dg)]
489532
490533
491534
492-@Callable(bf)
493-func unstakeAcres (cC) = {
494- let cD = be(bf)
495- if ((0 >= cC))
535+@Callable(bt)
536+func unstakeAcres (dh) = {
537+ let di = bs(bt)
538+ if ((0 >= dh))
496539 then throw("Amount should be positive")
497540 else {
498- let p = toString(bf.caller)
499- if ((size(bf.payments) != 0))
541+ let p = toString(bt.caller)
542+ if ((size(bt.payments) != 0))
500543 then throw("No payments required")
501544 else {
502- let cE = (valueOrElse(getInteger(D, aV(p)), 0) + m)
503- if ((cE > lastBlock.timestamp))
504- then throw(("You traded some WLGOLD, cannot unstake until " + toString(cE)))
545+ let dj = (valueOrElse(getInteger(D, aU(p)), 0) + m)
546+ if ((dj > lastBlock.timestamp))
547+ then throw(("You traded some WLGOLD, cannot unstake until " + toString(dj)))
505548 else {
506- let cF = bt(-(cC), p, 0)
507- let cw = cF._1
508- let cx = cF._2
509- $Tuple2(((cw :+ ScriptTransfer(bf.caller, cC, M)) ++ cD), cx)
549+ let dk = bZ(-(dh), p, 0)
550+ let db = dk._1
551+ let dc = dk._2
552+ $Tuple2(((db :+ ScriptTransfer(bt.caller, dh, M)) ++ di), dc)
510553 }
511554 }
512555 }
514557
515558
516559
517-@Callable(bf)
560+@Callable(bt)
518561 func stakeAcres () = {
519- let cD = be(bf)
520- let p = toString(bf.caller)
521- if ((size(bf.payments) != 1))
562+ let di = bs(bt)
563+ let p = toString(bt.caller)
564+ if ((size(bt.payments) != 1))
522565 then throw("exactly 1 payment must be attached")
523566 else {
524- let cG = bf.payments[0]
525- let bu = cG.amount
526- if (if (!(isDefined(cG.assetId)))
567+ let dl = bt.payments[0]
568+ let ca = dl.amount
569+ if (if (!(isDefined(dl.assetId)))
527570 then true
528- else (value(cG.assetId) != M))
571+ else (value(dl.assetId) != M))
529572 then throw("ACRES payments only!")
530573 else {
531- let cH = bt(bu, p, 0)
532- let cw = cH._1
533- let cx = cH._2
534- $Tuple2((cw ++ cD), cx)
574+ let dm = bZ(ca, p, 0)
575+ let db = dm._1
576+ let dc = dm._2
577+ $Tuple2((db ++ di), dc)
535578 }
536579 }
537580 }
538581
539582
540583
541-@Callable(bf)
584+@Callable(bt)
542585 func buyAcres () = {
543- let cD = be(bf)
544- if ((size(bf.payments) != 1))
586+ let di = bs(bt)
587+ if ((size(bt.payments) != 1))
545588 then throw("exactly 1 payment must be attached")
546589 else {
547- let cG = bf.payments[0]
548- let cI = cG.amount
549- if (if (!(isDefined(cG.assetId)))
590+ let dl = bt.payments[0]
591+ let dn = dl.amount
592+ if (if (!(isDefined(dl.assetId)))
550593 then true
551- else (value(cG.assetId) != k))
594+ else (value(dl.assetId) != k))
552595 then throw("USDT payments only!")
553- else if ((b > cI))
596+ else if ((b > dn))
554597 then throw((("Min payment should be " + ad(b, 6)) + " USDT"))
555598 else {
556- let cJ = (cI * f)
557- let cK = fraction(cI, d, bM(cI))
558- let cL = addressFromStringValue(getStringValue(F))
559- let cM = invoke(cL, "requestAcresCallback", [cJ], nil)
560- if ((cM == cM))
599+ let do = (dn * f)
600+ let dp = fraction(dn, d, cs(dn))
601+ let dq = addressFromStringValue(getStringValue(F))
602+ let dr = invoke(dq, "requestAcresCallback", [do], nil)
603+ if ((dr == dr))
561604 then {
562- let cN = U(invoke(D, "burnWlgold", [cK], nil))
563- $Tuple2(([ScriptTransfer(bf.caller, cJ, M)] ++ cD), cN)
605+ let ds = U(invoke(D, "burnWlgold", [dp], nil))
606+ $Tuple2(([ScriptTransfer(bt.caller, do, M)] ++ di), ds)
564607 }
565608 else throw("Strict value is not equal to itself.")
566609 }
569612
570613
571614
572-@Callable(bf)
573-func buyAcresREADONLY (cI) = {
574- let cJ = (cI * f)
575- let cO = fraction(cI, d, bM(cI))
576- $Tuple2(nil, [cJ, b, cJ, cO])
615+@Callable(bt)
616+func buyAcresREADONLY (dn) = {
617+ let do = (dn * f)
618+ let dt = fraction(dn, d, cs(dn))
619+ $Tuple2(nil, [do, b, do, dt])
577620 }
578621
579622
580623
581-@Callable(bf)
624+@Callable(bt)
582625 func sellAcres () = {
583- let cD = be(bf)
584- if ((size(bf.payments) != 1))
626+ let di = bs(bt)
627+ if ((size(bt.payments) != 1))
585628 then throw("exactly 1 payment must be attached")
586629 else {
587- let cG = bf.payments[0]
588- let cJ = cG.amount
589- if (if (!(isDefined(cG.assetId)))
630+ let dl = bt.payments[0]
631+ let do = dl.amount
632+ if (if (!(isDefined(dl.assetId)))
590633 then true
591- else (value(cG.assetId) != M))
634+ else (value(dl.assetId) != M))
592635 then throw("ACRES payments only!")
593- else if ((c > cJ))
636+ else if ((c > do))
594637 then throw((("Min payment should be " + ad(c, 8)) + " ACRES"))
595638 else {
596- let I = toString(bf.caller)
597- let cP = bT()
598- let cQ = cP._1
599- let cR = cP._2
600- let cS = (cR * f)
601- if ((cJ > cS))
602- then throw((("You can sell max " + ad(cS, 8)) + " ACRES"))
639+ let I = toString(bt.caller)
640+ let du = cz()
641+ let dv = du._1
642+ let dw = du._2
643+ let dx = (dw * f)
644+ if ((do > dx))
645+ then throw((("You can sell max " + ad(dx, 8)) + " ACRES"))
603646 else {
604- let cI = ((cJ / f) / 2)
605- $Tuple2(([cQ, IntegerEntry(aX, (cR - cI)), ScriptTransfer(bf.caller, cI, k)] ++ cD), cI)
647+ let dn = ((do / f) / 2)
648+ $Tuple2(([dv, IntegerEntry(aW, (dw - dn)), ScriptTransfer(bt.caller, dn, k)] ++ di), dn)
606649 }
607650 }
608651 }
610653
611654
612655
613-@Callable(bf)
614-func sellAcresREADONLY (p,cJ) = {
615- let cT = bT()
616- let cQ = cT._1
617- let cR = cT._2
618- let cI = ((cJ / f) / 2)
619- $Tuple2(nil, [cI, c, (cR * f), 0])
656+@Callable(bt)
657+func sellAcresREADONLY (p,do) = {
658+ let dy = cz()
659+ let dv = dy._1
660+ let dw = dy._2
661+ let dn = ((do / f) / 2)
662+ $Tuple2(nil, [dn, c, (dw * f), 0])
620663 }
621664
622665
623666
624-@Callable(bf)
625-func convertOldStakes () = if ((bf.caller != this))
667+@Callable(bt)
668+func convertOldStakes () = if ((bt.caller != this))
626669 then throw("Temporarily disabled")
627670 else {
628- let p = toString(bf.caller)
629- if ((size(bf.payments) != 0))
671+ let p = toString(bt.caller)
672+ if ((size(bt.payments) != 0))
630673 then throw("No payments required")
631674 else {
632- let cL = addressFromStringValue(getStringValue(F))
633- let cC = valueOrElse(getInteger(cL, am(p)), 0)
634- let cU = if ((cC > 0))
635- then ac(invoke(cL, "unstakeAcresCallback", [cC, p], nil))
675+ let dq = addressFromStringValue(getStringValue(F))
676+ let dh = valueOrElse(getInteger(dq, am(p)), 0)
677+ let dz = if ((dh > 0))
678+ then ac(invoke(dq, "unstakeAcresCallback", [dh, p], nil))
636679 else $Tuple2(0, 0)
637- let cV = addressFromStringValue(n)
638- let cW = getString(cV, O(p))
639- let cX = if (isDefined(cW))
680+ let dA = addressFromStringValue(n)
681+ let dB = getString(dA, O(p))
682+ let dC = if (isDefined(dB))
640683 then {
641- let cY = split_51C(value(cW), "_")
642- func cZ (aI,da) = if ((da == ""))
684+ let dD = split_51C(value(dB), "_")
685+ func dE (aH,dF) = if ((dF == ""))
643686 then throw("landAssetId is required")
644687 else {
645- let db = X(invoke(cV, "unstakeLandCallback", [da, p], nil))
646- $Tuple4((aI._1 + db._1), (aI._2 + db._2), (aI._3 + db._3), (aI._4 + db._4))
688+ let dG = X(invoke(dA, "unstakeLandCallback", [dF, p], nil))
689+ $Tuple4((aH._1 + dG._1), (aH._2 + dG._2), (aH._3 + dG._3), (aH._4 + dG._4))
647690 }
648691
649- let dc = {
650- let aK = cY
651- let aL = size(aK)
652- let aM = $Tuple4(0, 0, 0, 0)
653- func aN (aO,aP) = if ((aP >= aL))
654- then aO
655- else cZ(aO, aK[aP])
692+ let dH = {
693+ let aJ = dD
694+ let aK = size(aJ)
695+ let aL = $Tuple4(0, 0, 0, 0)
696+ func aM (aN,aO) = if ((aO >= aK))
697+ then aN
698+ else dE(aN, aJ[aO])
656699
657- func aQ (aO,aP) = if ((aP >= aL))
658- then aO
700+ func aP (aN,aO) = if ((aO >= aK))
701+ then aN
659702 else throw("List size exceeds 100")
660703
661- aQ(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aM, 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)
704+ aP(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aL, 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)
662705 }
663- let dd = invoke(cV, "unstakeLandsFinalizeCallback", [p], nil)
664- if ((dd == dd))
706+ let dI = invoke(dA, "unstakeLandsFinalizeCallback", [p], nil)
707+ if ((dI == dI))
665708 then {
666- let cM = invoke(cL, "requestAcresCallback", [(((dc._1 + dc._2) + dc._3) + dc._4)], nil)
667- if ((cM == cM))
709+ let dr = invoke(dq, "requestAcresCallback", [(((dH._1 + dH._2) + dH._3) + dH._4)], nil)
710+ if ((dr == dr))
668711 then {
669- let de = bq(aq, bf.caller)
670- let df = de._1
671- let bs = de._2
672- $Tuple5(dc._1, dc._2, dc._3, dc._4, df)
712+ let dJ = bM(bg, bk, bp, bn, 3, bb, br, bt.caller)
713+ let dK = dJ._1
714+ let bV = dJ._2
715+ $Tuple5(dH._1, dH._2, dH._3, dH._4, dK)
673716 }
674717 else throw("Strict value is not equal to itself.")
675718 }
676719 else throw("Strict value is not equal to itself.")
677720 }
678721 else $Tuple5(0, 0, 0, 0, nil)
679- let dg = valueOrElse(getString(cV, Q(p)), "")
680- let dh = if ((dg != ""))
681- then ab(invoke(cV, "unstakeDuckCallback", [dg, p], nil))
722+ let dL = valueOrElse(getString(dA, Q(p)), "")
723+ let dM = if ((dL != ""))
724+ then ab(invoke(dA, "unstakeDuckCallback", [dL, p], nil))
682725 else $Tuple3(0, 0, 0)
683- let di = bt((((((((cU._1 + cX._1) + cX._2) + cX._3) + cX._4) + dh._1) + dh._2) + dh._3), p, 0)
684- $Tuple2((cX._5 ++ di._1), di._2)
726+ let dN = bZ((((((((dz._1 + dC._1) + dC._2) + dC._3) + dC._4) + dM._1) + dM._2) + dM._3), p, 0)
727+ $Tuple2((dC._5 ++ dN._1), dN._2)
685728 }
686729 }
687730
688731
689732
690-@Callable(bf)
733+@Callable(bt)
691734 func unstakeLandsREADONLY (p) = {
692- let cV = addressFromStringValue(n)
693- let cW = getString(cV, O(p))
694- let cX = if (isDefined(cW))
735+ let dA = addressFromStringValue(n)
736+ let dB = getString(dA, O(p))
737+ let dC = if (isDefined(dB))
695738 then {
696- let cY = split_51C(value(cW), "_")
697- func cZ (aI,da) = if ((da == ""))
739+ let dD = split_51C(value(dB), "_")
740+ func dE (aH,dF) = if ((dF == ""))
698741 then throw("landAssetId is required")
699742 else {
700- let db = aa(invoke(cV, "unstakeLandREADONLY", [da, p], nil))
701- $Tuple4((aI._1 + db._1), (aI._2 + db._2), (aI._3 + db._3), (aI._4 + db._4))
743+ let dG = aa(invoke(dA, "unstakeLandREADONLY", [dF, p], nil))
744+ $Tuple4((aH._1 + dG._1), (aH._2 + dG._2), (aH._3 + dG._3), (aH._4 + dG._4))
702745 }
703746
704- let aK = cY
705- let aL = size(aK)
706- let aM = $Tuple4(0, 0, 0, 0)
707- func aN (aO,aP) = if ((aP >= aL))
708- then aO
709- else cZ(aO, aK[aP])
747+ let aJ = dD
748+ let aK = size(aJ)
749+ let aL = $Tuple4(0, 0, 0, 0)
750+ func aM (aN,aO) = if ((aO >= aK))
751+ then aN
752+ else dE(aN, aJ[aO])
710753
711- func aQ (aO,aP) = if ((aP >= aL))
712- then aO
754+ func aP (aN,aO) = if ((aO >= aK))
755+ then aN
713756 else throw("List size exceeds 100")
714757
715- aQ(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aM, 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)
758+ aP(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aL, 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)
716759 }
717760 else $Tuple4(0, 0, 0, 0)
718- $Tuple2(nil, cX)
761+ $Tuple2(nil, dC)
719762 }
720763
721764
722765
723-@Callable(bf)
724-func stakeAcresCallback (I) = if ((bf.caller != addressFromStringValue(n)))
766+@Callable(bt)
767+func stakeAcresCallback (I) = if ((bt.caller != addressFromStringValue(n)))
725768 then throw("Permission denied")
726- else bt(bf.payments[0].amount, I, 0)
769+ else bZ(bt.payments[0].amount, I, 0)
727770
728771
729772
730-@Callable(bf)
731-func simulateStakeAcresREADONLY (p,dj) = {
732- let bz = am(p)
733- let bB = (valueOrElse(getInteger(bz), 0) + dj)
734- let bC = valueOrElse(getInteger(ao), 0)
735- let bD = an(p)
736- let bE = valueOrElse(getInteger(bD), 0)
737- let dk = valueOrElse(getInteger(C, aC(p)), 0)
738- let dl = aS(bB, dk)
739- let bI = dl._1
740- let bJ = dl._2
741- let bK = valueOrElse(getInteger(ap), 0)
742- let dm = ((bK + bI) - bE)
743- $Tuple2(nil, [bE, bI, bK, dm])
773+@Callable(bt)
774+func simulateStakeAcresREADONLY (p,dO) = {
775+ let cf = am(p)
776+ let ch = (valueOrElse(getInteger(cf), 0) + dO)
777+ let ci = valueOrElse(getInteger(ao), 0)
778+ let cj = an(p)
779+ let ck = valueOrElse(getInteger(cj), 0)
780+ let dP = valueOrElse(getInteger(C, aB(p)), 0)
781+ let dQ = aR(ch, dP)
782+ let co = dQ._1
783+ let cp = dQ._2
784+ let cq = valueOrElse(getInteger(ap), 0)
785+ let dR = ((cq + co) - ck)
786+ $Tuple2(nil, [ck, co, cq, dR])
744787 }
745788
746789
747790
748-@Callable(bf)
749-func issueNFT (dn,bo) = if ((bf.caller != D))
791+@Callable(bt)
792+func issuePickC1 (dS) = if ((bt.caller != D))
750793 then throw("Permission denied")
751- else bq(bo, addressFromStringValue(dn))
794+ else bM(bh, bj, bp, bm, 1, bc, br, addressFromStringValue(dS))
752795
753796
754797
755-@Callable(bf)
756-func issueNftAdmin (dn,bo,do) = if ((bf.caller != this))
757- then throw("Permission denied")
758- else if ((bo >= size(aZ)))
759- then throw("nftIndex out of bounds")
760- else {
761- let br = Issue(aY[bo], bn(bo, toString(do)), 1, 0, false)
762- let bs = calculateAssetId(br)
763- $Tuple2([br, IntegerEntry(az(toBase58String(bs)), do), ScriptTransfer(addressFromStringValue(dn), 1, bs)], bs)
764- }
765-
766-
767-
768-@Callable(bf)
798+@Callable(bt)
769799 func stakeNFT () = {
770- let cD = be(bf)
771- if ((size(bf.payments) != 1))
800+ let di = bs(bt)
801+ if ((size(bt.payments) != 1))
772802 then throw("Exactly one payment required")
773803 else {
774- let cG = value(bf.payments[0])
775- if ((cG.amount != 1))
804+ let dl = value(bt.payments[0])
805+ if ((dl.amount != 1))
776806 then throw("NFT token should be attached as payment")
777807 else {
778- let S = value(cG.assetId)
779- let dp = value(assetInfo(S))
780- let cq = toBase58String(S)
781- let I = toString(bf.caller)
782- let dq = T(I)
783- let dr = getString(dq)
784- let ds = if (isDefined(dr))
785- then split_4C(value(dr), "_")
808+ let S = value(dl.assetId)
809+ let dT = value(assetInfo(S))
810+ let cV = toBase58String(S)
811+ let I = toString(bt.caller)
812+ let dU = T(I)
813+ let dV = getString(dU)
814+ let dW = if (isDefined(dV))
815+ then split_4C(value(dV), "_")
786816 else nil
787- if (containsElement(ds, cq))
788- then throw(("Your staked NFTs already contain " + cq))
789- else if ((size(ds) >= au))
790- then throw((("Your already staked max (" + toString(au)) + ") NFTs"))
817+ if (containsElement(dW, cV))
818+ then throw(("Your staked NFTs already contain " + cV))
819+ else if ((size(dW) >= at))
820+ then throw((("Your already staked max (" + toString(at)) + ") NFTs"))
791821 else {
792- let dt = StringEntry(dq, makeString_2C((ds :+ cq), "_"))
793- if ((dp.issuer == this))
822+ let dX = StringEntry(dU, makeString_2C((dW :+ cV), "_"))
823+ if ((dT.issuer == this))
794824 then {
795- let du = cp(I, cq, (cm(value(dp.description)) * 10000), aA(I), ax, ar)
796- let cw = du._1
797- let cx = du._2
798- $Tuple2(((cD ++ cw) :+ dt), cx)
825+ let dY = cU(I, cV, (cS(value(dT.description)) * 10000), az(I), aw, aq)
826+ let db = dY._1
827+ let dc = dY._2
828+ $Tuple2(((di ++ db) :+ dX), dc)
799829 }
800- else if ((cj(dp) == ""))
830+ else if ((cP(dT) == ""))
801831 then throw("Only WavesLands and Arkimals NFT tokens are accepted")
802832 else {
803- let dv = cp(I, cq, at, aB(I), ay, as)
804- let cw = dv._1
805- let cx = dv._2
806- $Tuple2(((cD ++ cw) :+ dt), cx)
833+ let dZ = cU(I, cV, as, aA(I), ax, ar)
834+ let db = dZ._1
835+ let dc = dZ._2
836+ $Tuple2(((di ++ db) :+ dX), dc)
807837 }
808838 }
809839 }
812842
813843
814844
815-@Callable(bf)
816-func unstakeNFT (cq) = {
817- let cD = be(bf)
818- if ((size(bf.payments) != 0))
845+@Callable(bt)
846+func unstakeNFT (cV) = {
847+ let di = bs(bt)
848+ if ((size(bt.payments) != 0))
819849 then throw("No payments required")
820850 else {
821- let S = fromBase58String(cq)
822- let I = toString(bf.caller)
823- let dp = value(assetInfo(S))
824- let by = R(cq, I)
825- if (!(isDefined(getInteger(by))))
826- then throw((("NFT " + dp.name) + " is not staked by you"))
851+ let S = fromBase58String(cV)
852+ let I = toString(bt.caller)
853+ let dT = value(assetInfo(S))
854+ let ce = R(cV, I)
855+ if (!(isDefined(getInteger(ce))))
856+ then throw((("NFT " + dT.name) + " is not staked by you"))
827857 else {
828- let dq = T(I)
829- let ds = split_4C(valueOrElse(getString(dq), ""), "_")
830- let A = indexOf(ds, cq)
858+ let dU = T(I)
859+ let dW = split_4C(valueOrElse(getString(dU), ""), "_")
860+ let A = indexOf(dW, cV)
831861 if (!(isDefined(A)))
832- then throw(("Your staked NFTs don't contain " + cq))
862+ then throw(("Your staked NFTs don't contain " + cV))
833863 else {
834- let dt = if ((size(ds) > 1))
835- then StringEntry(dq, makeString_2C(removeByIndex(ds, value(A)), "_"))
836- else DeleteEntry(dq)
837- let dw = (dp.issuer == this)
838- if (dw)
864+ let dX = if ((size(dW) > 1))
865+ then StringEntry(dU, makeString_2C(removeByIndex(dW, value(A)), "_"))
866+ else DeleteEntry(dU)
867+ let ea = (dT.issuer == this)
868+ if (ea)
839869 then {
840- let dx = valueOrElse(getInteger(aA(I)), 0)
841- let dy = (cm(value(dp.description)) * 10000)
842- let dz = bt(0, I, -(dy))
843- let cw = dz._1
844- let cx = dz._2
845- $Tuple2(((((((cw :+ dt) :+ IntegerEntry(aA(I), (dx - 1))) :+ IntegerEntry(ax, max([0, (valueOrElse(getInteger(ax), 0) - 1)]))) :+ DeleteEntry(R(toBase58String(S), I))) :+ ScriptTransfer(bf.caller, 1, S)) ++ cD), cx)
870+ let eb = valueOrElse(getInteger(az(I)), 0)
871+ let ec = (cS(value(dT.description)) * 10000)
872+ let ed = bZ(0, I, -(ec))
873+ let db = ed._1
874+ let dc = ed._2
875+ $Tuple2(((((((db :+ dX) :+ IntegerEntry(az(I), (eb - 1))) :+ IntegerEntry(aw, max([0, (valueOrElse(getInteger(aw), 0) - 1)]))) :+ DeleteEntry(R(toBase58String(S), I))) :+ ScriptTransfer(bt.caller, 1, S)) ++ di), dc)
846876 }
847877 else {
848- let dA = cj(dp)
849- if ((dA == ""))
878+ let ee = cP(dT)
879+ if ((ee == ""))
850880 then throw("Only WavesLands and Arkimals NFT tokens are accepted")
851881 else {
852- let dB = valueOrElse(getInteger(aB(I)), 0)
853- let dC = bt(0, I, -(at))
854- let cw = dC._1
855- let cx = dC._2
856- $Tuple2((((((cw :+ dt) :+ IntegerEntry(aB(I), (dB - 1))) :+ DeleteEntry(R(toBase58String(S), I))) :+ ScriptTransfer(bf.caller, 1, S)) ++ cD), cx)
882+ let ef = valueOrElse(getInteger(aA(I)), 0)
883+ let eg = bZ(0, I, -(as))
884+ let db = eg._1
885+ let dc = eg._2
886+ $Tuple2((((((db :+ dX) :+ IntegerEntry(aA(I), (ef - 1))) :+ DeleteEntry(R(toBase58String(S), I))) :+ ScriptTransfer(bt.caller, 1, S)) ++ di), dc)
857887 }
858888 }
859889 }
863893
864894
865895
866-@Callable(bf)
867-func exchangeNFTs () = if ((bf.caller != this))
896+@Callable(bt)
897+func exchangeNFTs () = if ((bt.caller != this))
868898 then throw("Temporarily disabled")
869899 else {
870- let cD = be(bf)
871- if ((3 > size(bf.payments)))
900+ let di = bs(bt)
901+ if ((3 > size(bt.payments)))
872902 then throw("Min one USDT and 2 NFT payments allowed")
873- else if ((size(bf.payments) > 6))
903+ else if ((size(bt.payments) > 6))
874904 then throw("Max one USDT and 5 NFT payments allowed")
875905 else {
876- let I = toString(bf.caller)
877- func dD (aI,cG) = {
878- let S = valueOrErrorMessage(cG.assetId, "WAVES payments not allowed")
906+ let I = toString(bt.caller)
907+ func eh (aH,dl) = {
908+ let S = valueOrErrorMessage(dl.assetId, "WAVES payments not allowed")
879909 if ((S == k))
880- then $Tuple3((aI._1 + cG.amount), aI._2, aI._3)
910+ then $Tuple3((aH._1 + dl.amount), aH._2, aH._3)
881911 else {
882- let dp = value(assetInfo(S))
883- if ((dp.issuer != this))
912+ let dT = value(assetInfo(S))
913+ if ((dT.issuer != this))
884914 then throw("Only WL-issued NFTs allowed")
885915 else {
886- let dE = cm(value(dp.description))
887- $Tuple3(aI._1, (aI._2 + dE), (aI._3 :+ Burn(S, 1)))
916+ let bR = cS(value(dT.description))
917+ $Tuple3(aH._1, (aH._2 + bR), (aH._3 :+ Burn(S, 1)))
888918 }
889919 }
890920 }
891921
892- let dF = {
893- let aK = bf.payments
894- let aL = size(aK)
895- let aM = $Tuple3(0, 0, nil)
896- func aN (aO,aP) = if ((aP >= aL))
897- then aO
898- else dD(aO, aK[aP])
922+ let ei = {
923+ let aJ = bt.payments
924+ let aK = size(aJ)
925+ let aL = $Tuple3(0, 0, nil)
926+ func aM (aN,aO) = if ((aO >= aK))
927+ then aN
928+ else eh(aN, aJ[aO])
899929
900- func aQ (aO,aP) = if ((aP >= aL))
901- then aO
930+ func aP (aN,aO) = if ((aO >= aK))
931+ then aN
902932 else throw("List size exceeds 6")
903933
904- aQ(aN(aN(aN(aN(aN(aN(aM, 0), 1), 2), 3), 4), 5), 6)
934+ aP(aM(aM(aM(aM(aM(aM(aL, 0), 1), 2), 3), 4), 5), 6)
905935 }
906- let dG = dF._1
907- let dH = dF._2
908- let dI = dF._3
909- let bo = if ((dH == 3))
936+ let ej = ei._1
937+ let ek = ei._2
938+ let el = ei._3
939+ let bX = if ((ek == 3))
910940 then 2
911- else if ((dH == 5))
941+ else if ((ek == 5))
912942 then 3
913- else if ((dH == 10))
943+ else if ((ek == 10))
914944 then 4
915945 else throw("Only bonuses of 3%, 5% or 10% are supported")
916- let dJ = (dG - (dH * b))
917- if ((0 > dJ))
918- then throw((("You need to attach " + toString(dH)) + " USDT as fee"))
946+ let em = (ej - (ek * b))
947+ if ((0 > em))
948+ then throw((("You need to attach " + toString(ek)) + " USDT as fee"))
919949 else {
920- let dK = if ((dJ > 0))
921- then [ScriptTransfer(bf.caller, dJ, k)]
950+ let en = if ((em > 0))
951+ then [ScriptTransfer(bt.caller, em, k)]
922952 else nil
923- let dL = bq(bo, bf.caller)
924- let dM = dL._1
925- let bs = dL._2
926- let dN = size(dI)
927- let dO = if ((dN == 0))
953+ let eo = bY(bX, bt.caller)
954+ let ep = eo._1
955+ let bV = eo._2
956+ let eq = size(el)
957+ let er = if ((eq == 0))
928958 then nil
929- else [IntegerEntry(aw, (valueOrElse(getInteger(aw), 0) + dN))]
930- $Tuple2(((((dM ++ dI) ++ dO) ++ cD) ++ dK), bs)
959+ else [IntegerEntry(av, (valueOrElse(getInteger(av), 0) + eq))]
960+ $Tuple2(((((ep ++ el) ++ er) ++ di) ++ en), bV)
931961 }
932962 }
933963 }
934964
935965
936966
937-@Callable(bf)
938-func openNftChest () = if ((bf.caller != this))
967+@Callable(bt)
968+func openNftChest () = if ((bt.caller != this))
939969 then throw("Permission denied")
940970 else $Tuple2(nil, 0)
941971
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "__"
55
66 let b = 1000000
77
88 let c = 10000000
99
1010 let d = 100000000
1111
1212 let e = 86400000
1313
1414 let f = 10
1515
1616 let g = 100
1717
1818 let h = take(drop(this.bytes, 1), 1)
1919
2020 let i = {
2121 let j = h
2222 if ((base58'2W' == j))
2323 then 10080
2424 else if ((base58'2T' == j))
2525 then 180
2626 else throw("Unknown chain")
2727 }
2828
2929 let k = {
3030 let j = h
3131 if ((base58'2W' == j))
3232 then base58'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi'
3333 else if ((base58'2T' == j))
3434 then base58'6mWwf9mZBjVgkC54idpyaZLQfAosD914wT8fGf2iiY63'
3535 else throw("Unknown chain")
3636 }
3737
3838 let l = {
3939 let j = h
4040 if ((base58'2W' == j))
4141 then "3PFwYta8biEz31zpeFe5DJK8wE5trSpQVF8"
4242 else if ((base58'2T' == j))
4343 then "3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv"
4444 else throw("Unknown chain")
4545 }
4646
4747 let m = {
4848 let j = h
4949 if ((base58'2W' == j))
5050 then e
5151 else if ((base58'2T' == j))
5252 then 60000
5353 else throw("Unknown chain")
5454 }
5555
5656 let n = {
5757 let j = h
5858 if ((base58'2W' == j))
5959 then "3PLncXtS1U83D6cQbFD3H8rBHPLgzxSFKZ1"
6060 else if ((base58'2T' == j))
6161 then "3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm"
6262 else throw("Unknown chain")
6363 }
6464
6565 func o (p,q) = valueOrErrorMessage(getString(p, q), makeString(["mandatory ", toString(p), ".", q, " is not defined"], ""))
6666
6767
6868 let r = 1
6969
7070 let s = 2
7171
7272 let t = 5
7373
7474 func u () = "%s__restConfig"
7575
7676
7777 func v () = "%s__rest2Addr"
7878
7979
8080 func w (x) = split_4C(o(x, u()), a)
8181
8282
8383 func y (z,A) = valueOrErrorMessage(addressFromString(z[A]), ("Rest cfg doesn't contain address at index " + toString(A)))
8484
8585
8686 let B = addressFromStringValue(valueOrElse(getString(this, v()), l))
8787
8888 let z = w(B)
8989
9090 let C = y(z, r)
9191
9292 let D = y(z, s)
9393
9494 let E = y(z, t)
9595
9696 let F = "oldAcresContract"
9797
9898 func G () = "contractsBlocked"
9999
100100
101101 func H (I) = ("lastWeekTxIdByUser_" + I)
102102
103103
104104 func J (I) = ("curWeekTxIdByUser_" + I)
105105
106106
107107 let K = "acresIssuedAmount"
108108
109109 let L = "acresAssetId"
110110
111111 let M = valueOrErrorMessage(getBinary(C, L), "ACRES is not issued yet")
112112
113113 func N (I) = ("acresStakedTimeByUser_" + I)
114114
115115
116116 func O (P) = ("stakedLandsByOwner_" + P)
117117
118118
119119 func Q (P) = ("stakedDuckByOwner_" + P)
120120
121121
122122 func R (S,I) = ((("st_" + S) + "_") + I)
123123
124124
125125 func T (P) = ("stakedNFTsByOwner_" + P)
126126
127127
128128 func U (V) = {
129129 let j = V
130130 if ($isInstanceOf(j, "Int"))
131131 then {
132132 let W = j
133133 W
134134 }
135135 else throw("fail to cast into Int")
136136 }
137137
138138
139139 func X (Y) = {
140140 let j = Y
141141 if ($isInstanceOf(j, "(Int, Int, Int, Int, Int)"))
142142 then {
143143 let Z = j
144144 Z
145145 }
146146 else throw("fail to cast into (Int, Int, Int, Int, Int)")
147147 }
148148
149149
150150 func aa (Y) = {
151151 let j = Y
152152 if ($isInstanceOf(j, "(Int, Int, Int, Int)"))
153153 then {
154154 let Z = j
155155 Z
156156 }
157157 else throw("fail to cast into (Int, Int, Int, Int)")
158158 }
159159
160160
161161 func ab (Y) = {
162162 let j = Y
163163 if ($isInstanceOf(j, "(Int, Int, Int)"))
164164 then {
165165 let Z = j
166166 Z
167167 }
168168 else throw("fail to cast into (Int, Int, Int)")
169169 }
170170
171171
172172 func ac (Y) = {
173173 let j = Y
174174 if ($isInstanceOf(j, "(Int, Int)"))
175175 then {
176176 let Z = j
177177 Z
178178 }
179179 else throw("fail to cast into (Int, Int)")
180180 }
181181
182182
183183 func ad (Y,ae) = {
184184 let af = pow(10, 0, ae, 0, 0, DOWN)
185185 let ag = toString((Y % af))
186186 let ah = drop(toString(af), (1 + size(ag)))
187187 (((toString((Y / af)) + ".") + ah) + ag)
188188 }
189189
190190
191191 let ai = 1000000
192192
193193 let aj = 100000000
194194
195195 let ak = "wlg_issuedAmount"
196196
197197 let al = "zbill_issuedAmount"
198198
199199 func am (I) = ("acresStakedAmountByUser_" + I)
200200
201201
202202 func an (I) = ("farmingPowerByUser_" + I)
203203
204204
205205 let ao = "acresStakedAmountTotal"
206206
207207 let ap = "totalFarmingPower"
208208
209-let aq = 0
209+let aq = 3
210210
211-let ar = 3
211+let ar = 1
212212
213-let as = 1
213+let as = 5000
214214
215-let at = 5000
215+let at = 4
216216
217-let au = 4
217+let au = "nftTotalIssued"
218218
219-let av = "nftTotalIssued"
219+let av = "nftTotalBurned"
220220
221-let aw = "nftTotalBurned"
221+let aw = "WlNftTotalStaked"
222222
223-let ax = "WlNftTotalStaked"
223+let ax = "ArkNftTotalStaked"
224224
225-let ay = "ArkNftTotalStaked"
226-
227-func az (S) = ("nftNumberByAssetId_" + S)
225+func ay (S) = ("nftNumberByAssetId_" + S)
228226
229227
230-func aA (I) = ("userWlNftNumber_" + I)
228+func az (I) = ("userWlNftNumber_" + I)
231229
232230
233-func aB (I) = ("userArkNftNumber_" + I)
231+func aA (I) = ("userArkNftNumber_" + I)
234232
235233
236-func aC (I) = ("userFullBonus_" + I)
234+func aB (I) = ("userFullBonus_" + I)
237235
238236
239-let aD = [0, 10, 20, 40, 80, 150, 250, 400, 700, 1000]
237+let aC = [0, 10, 20, 40, 80, 150, 250, 400, 700, 1000]
240238
241-func aE (aF) = {
242- let aG = ((aF + 99999999) / aj)
243- func aH (aI,aJ) = if ((aJ >= aG))
244- then aI
245- else (aI + 1)
239+func aD (aE) = {
240+ let aF = ((aE + 99999999) / aj)
241+ func aG (aH,aI) = if ((aI >= aF))
242+ then aH
243+ else (aH + 1)
246244
247- let aK = aD
248- let aL = size(aK)
249- let aM = 0
250- func aN (aO,aP) = if ((aP >= aL))
251- then aO
252- else aH(aO, aK[aP])
245+ let aJ = aC
246+ let aK = size(aJ)
247+ let aL = 0
248+ func aM (aN,aO) = if ((aO >= aK))
249+ then aN
250+ else aG(aN, aJ[aO])
253251
254- func aQ (aO,aP) = if ((aP >= aL))
255- then aO
252+ func aP (aN,aO) = if ((aO >= aK))
253+ then aN
256254 else throw("List size exceeds 10")
257255
258- aQ(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aM, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
256+ aP(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aL, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
259257 }
260258
261259
262-func aR (aF) = ((aF * 20) * (aE(aF) + 4))
260+func aQ (aE) = ((aE * 20) * (aD(aE) + 4))
263261
264262
265-func aS (aF,aT) = {
266- let aU = aR(aF)
267- $Tuple2(fraction(aU, (ai + aT), ai), aU)
263+func aR (aE,aS) = {
264+ let aT = aQ(aE)
265+ $Tuple2(fraction(aT, (ai + aS), ai), aT)
268266 }
269267
270268
271-func aV (I) = ("lastArbTimeUser_" + I)
269+func aU (I) = ("lastArbTimeUser_" + I)
272270
273271
274-let aW = "lastAcresSellTime"
272+let aV = "lastAcresSellTime"
275273
276-let aX = "lastLimitLeft"
274+let aW = "lastLimitLeft"
277275
278-let aY = ["SHOVEL-P3", "PICKAXE-C1", "PICKAXE-C3", "PICKAXE-C5", "PICKAXE-C10"]
276+let aX = ["SHOVEL-P3", "PICKAXE-C1", "PICKAXE-C3", "PICKAXE-C5", "PICKAXE-C10"]
279277
280-let aZ = ["contentShovelP3", "contentPickaxeC1", "contentPickaxeC3", "contentPickaxeC5", "contentPickaxeC10"]
278+let aY = ["contentShovelP3", "contentPickaxeC1", "contentPickaxeC3", "contentPickaxeC5", "contentPickaxeC10"]
281279
282-let ba = ["Gold shovel", "Pickaxe", "Pickaxe", "Pickaxe", "Pickaxe"]
280+let aZ = ["Gold shovel", "Pickaxe"]
283281
284-let bb = ["Reward for early birds", "Increases FarmPower", "Increases FarmPower", "Increases FarmPower", "Increases FarmPower"]
282+let ba = ["Reward for early birds", "Increases FarmPower"]
285283
286-let bc = ["Promo", "Common", "Common", "Common", "Common"]
284+let bb = 0
287285
288-let bd = [3, 1, 3, 5, 10]
286+let bc = 1
289287
290-func be (bf) = if (if ((bf.originCaller != B))
288+let bd = ["Promo", "Common"]
289+
290+let be = [3, 1, 3, 5, 10]
291+
292+let bf = ["SHOVEL", "PICKAXE"]
293+
294+let bg = 0
295+
296+let bh = 1
297+
298+let bi = ["contentPickaxeC", "contentPickaxeU", "contentPickaxeL", "contentPickaxeE", "contentShovelP"]
299+
300+let bj = 0
301+
302+let bk = 4
303+
304+let bl = ["Common", "Uncommon", "Legendary", "Epic", "Promo"]
305+
306+let bm = 0
307+
308+let bn = 4
309+
310+let bo = ["Digging tools"]
311+
312+let bp = 0
313+
314+let bq = ["FarmPower"]
315+
316+let br = 0
317+
318+func bs (bt) = if (if ((bt.originCaller != B))
291319 then valueOrElse(getBoolean(G()), false)
292320 else false)
293321 then throw("Contracts are under maintenance")
294322 else {
295- let I = toString(bf.originCaller)
296- let bg = (height / i)
297- let bh = getString(H(I))
298- let bi = toBase58String(bf.transactionId)
299- let bj = ((toString(bg) + "_") + bi)
300- if (isDefined(bh))
323+ let I = toString(bt.originCaller)
324+ let bu = (height / i)
325+ let bv = H(I)
326+ let bw = getString(bv)
327+ let bx = toBase58String(bt.transactionId)
328+ let by = ((toString(bu) + "_") + bx)
329+ let bz = J(I)
330+ if (isDefined(bw))
301331 then {
302- let bk = split(value(bh), "_")
303- if ((bk[0] == toString(bg)))
304- then [StringEntry(H(I), bj), StringEntry(J(I), bj)]
305- else if ((bk[0] == toString((bg - 1))))
306- then [StringEntry(J(I), bj)]
332+ let bA = split(value(bw), "_")
333+ if ((bA[0] == toString(bu)))
334+ then [StringEntry(bv, by), StringEntry(bz, by)]
335+ else if ((bA[0] == toString((bu - 1))))
336+ then [StringEntry(bz, by)]
307337 else {
308- let bl = getStringValue(H(I))
309- let bm = split(bl, "_")
310- if ((bm[0] == toString(bg)))
311- then [StringEntry(J(I), bj)]
312- else [StringEntry(H(I), bl), StringEntry(J(I), bj)]
338+ let bB = getStringValue(bz)
339+ let bC = split(bB, "_")
340+ if ((bC[0] == toString(bu)))
341+ then [StringEntry(bz, by)]
342+ else [StringEntry(bv, bB), StringEntry(bz, by)]
313343 }
314344 }
315- else [StringEntry(H(I), bj), StringEntry(J(I), bj)]
345+ else [StringEntry(bv, by), StringEntry(bz, by)]
316346 }
317347
318348
319-func bn (bo,bp) = ((((((((((((((((((((("{\"url\": \"https://waveslands.com\", " + "\"contentKey\": \"") + aZ[bo]) + "\", ") + "\"number\": ") + bp) + ", ") + "\"collection\": \"Digging tools") + "\", ") + "\"name\": \"") + ba[bo]) + "\", ") + "\"description\": \"") + bb[bo]) + "\", ") + "\"rare\": \"") + bc[bo]) + "\", ") + "\"bonus\": ") + toString(bd[bo])) + ", ") + "\"bonusType\": \"FarmPower\"}")
349+func bD (bE,bF,bG,bH,bI,bJ,bK,bL) = (((((((((((((((((((((((("{\"url\": \"https://waveslands.com\", " + "\"contentKey\": \"") + bE) + "\", ") + "\"number\": ") + toString(bF)) + ", ") + "\"collection\": \"") + bG) + "\", ") + "\"name\": \"") + bH) + "\", ") + "\"description\": \"") + bI) + "\", ") + "\"rare\": \"") + bJ) + "\", ") + "\"bonus\": ") + toString(bK)) + ", ") + "\"bonusType\": \"") + bL) + "\"}")
320350
321351
322-func bq (bo,I) = if ((bo >= size(aZ)))
352+func bM (bN,bO,bP,bQ,bR,bS,bT,I) = {
353+ let bF = valueOrElse(getInteger(au), 0)
354+ let bJ = bl[bQ]
355+ let bH = (((bf[bN] + "-") + take(bJ, 1)) + toString(bR))
356+ let bU = Issue(bH, bD(bi[bO], bF, bo[bP], aZ[bN], ba[bS], bl[bQ], bR, bq[bT]), 1, 0, false)
357+ let bV = calculateAssetId(bU)
358+ $Tuple2([bU, IntegerEntry(au, (bF + 1)), IntegerEntry(ay(toBase58String(bV)), bF), ScriptTransfer(I, 1, bV)], bV)
359+ }
360+
361+
362+func bW (bX,bF) = ((((((((((((((((((((("{\"url\": \"https://waveslands.com\", " + "\"contentKey\": \"") + aY[bX]) + "\", ") + "\"number\": ") + bF) + ", ") + "\"collection\": \"Digging tools") + "\", ") + "\"name\": \"") + aZ[bX]) + "\", ") + "\"description\": \"") + ba[bX]) + "\", ") + "\"rare\": \"") + bd[bX]) + "\", ") + "\"bonus\": ") + toString(be[bX])) + ", ") + "\"bonusType\": \"FarmPower\"}")
363+
364+
365+func bY (bX,I) = if ((bX >= size(aY)))
323366 then throw("nftIndex out of bounds")
324367 else {
325- let bp = valueOrElse(getInteger(av), 0)
326- let br = Issue(aY[bo], bn(bo, toString(bp)), 1, 0, false)
327- let bs = calculateAssetId(br)
328- $Tuple2([br, IntegerEntry(av, (bp + 1)), IntegerEntry(az(toBase58String(bs)), bp), ScriptTransfer(I, 1, bs)], bs)
368+ let bF = valueOrElse(getInteger(au), 0)
369+ let bU = Issue(aX[bX], bW(bX, toString(bF)), 1, 0, false)
370+ let bV = calculateAssetId(bU)
371+ $Tuple2([bU, IntegerEntry(au, (bF + 1)), IntegerEntry(ay(toBase58String(bV)), bF), ScriptTransfer(I, 1, bV)], bV)
329372 }
330373
331374
332-func bt (bu,p,bv) = if (if ((bu == 0))
333- then (bv == 0)
375+func bZ (ca,p,cb) = if (if ((ca == 0))
376+ then (cb == 0)
334377 else false)
335378 then throw("Nothing to do")
336379 else {
337- let bw = invoke(D, "onStakeUnstakeLand", [p], nil)
338- if ((bw == bw))
380+ let cc = invoke(D, "onStakeUnstakeLand", [p], nil)
381+ if ((cc == cc))
339382 then {
340- let bx = lastBlock.timestamp
341- let by = N(p)
342- let bz = am(p)
343- let bA = valueOrElse(getInteger(bz), 0)
344- if (if ((0 > bu))
345- then (0 > (bA + bu))
383+ let cd = lastBlock.timestamp
384+ let ce = N(p)
385+ let cf = am(p)
386+ let cg = valueOrElse(getInteger(cf), 0)
387+ if (if ((0 > ca))
388+ then (0 > (cg + ca))
346389 else false)
347- then throw(((("You have only " + ad(bA, 8)) + " ACRES staked, tried to unstake ") + ad(-(bu), 8)))
390+ then throw(((("You have only " + ad(cg, 8)) + " ACRES staked, tried to unstake ") + ad(-(ca), 8)))
348391 else {
349- let bB = (bA + bu)
350- let bC = valueOrElse(getInteger(ao), 0)
351- let bD = an(p)
352- let bE = valueOrElse(getInteger(bD), 0)
353- let bF = aC(p)
354- let bG = valueOrElse(getInteger(C, bF), 0)
355- if (if ((0 > bv))
356- then (0 > (bG + bv))
392+ let ch = (cg + ca)
393+ let ci = valueOrElse(getInteger(ao), 0)
394+ let cj = an(p)
395+ let ck = valueOrElse(getInteger(cj), 0)
396+ let cl = aB(p)
397+ let cm = valueOrElse(getInteger(C, cl), 0)
398+ if (if ((0 > cb))
399+ then (0 > (cm + cb))
357400 else false)
358- then throw((((("You have only " + ad(bG, 4)) + "% bonus, and tried to unstake ") + ad(-(bv), 4)) + "%"))
401+ then throw((((("You have only " + ad(cm, 4)) + "% bonus, and tried to unstake ") + ad(-(cb), 4)) + "%"))
359402 else {
360- let bH = aS(bB, (bG + bv))
361- let bI = bH._1
362- let bJ = bH._2
363- let bK = valueOrElse(getInteger(ap), 0)
364- let bL = if ((bu == 0))
403+ let cn = aR(ch, (cm + cb))
404+ let co = cn._1
405+ let cp = cn._2
406+ let cq = valueOrElse(getInteger(ap), 0)
407+ let cr = if ((ca == 0))
365408 then nil
366- else [IntegerEntry(bz, bB), IntegerEntry(ao, (bC + bu))]
367- $Tuple2(((((bL :+ IntegerEntry(by, lastBlock.timestamp)) :+ IntegerEntry(bD, bI)) :+ IntegerEntry(ap, ((bK + bI) - bE))) :+ IntegerEntry(bF, (bG + bv))), bw)
409+ else [IntegerEntry(cf, ch), IntegerEntry(ao, (ci + ca))]
410+ $Tuple2(((((cr :+ IntegerEntry(ce, lastBlock.timestamp)) :+ IntegerEntry(cj, co)) :+ IntegerEntry(ap, ((cq + co) - ck))) :+ IntegerEntry(cl, (cm + cb))), cc)
368411 }
369412 }
370413 }
371414 else throw("Strict value is not equal to itself.")
372415 }
373416
374417
375-func bM (bN) = {
376- let bO = valueOrErrorMessage(getInteger(D, ak), "WLGOLD is not issued yet")
377- let bP = assetBalance(D, k)
378- let bQ = (assetBalance(C, k) - bN)
379- let bR = (assetBalance(E, k) + valueOrElse(getInteger(E, al), 0))
380- let bS = ((bQ + bP) + bR)
381- fraction(bS, d, bO)
418+func cs (ct) = {
419+ let cu = valueOrErrorMessage(getInteger(D, ak), "WLGOLD is not issued yet")
420+ let cv = assetBalance(D, k)
421+ let cw = (assetBalance(C, k) - ct)
422+ let cx = (assetBalance(E, k) + valueOrElse(getInteger(E, al), 0))
423+ let cy = ((cw + cv) + cx)
424+ fraction(cy, d, cu)
382425 }
383426
384427
385-func bT () = {
386- let bP = assetBalance(D, k)
387- let bQ = assetBalance(this, k)
388- let bR = (assetBalance(E, k) + valueOrElse(getInteger(E, al), 0))
389- let bU = (((bQ + bP) + bR) / g)
390- let bV = valueOrElse(getInteger(aX), bU)
391- let bW = valueOrElse(getInteger(aW), 0)
392- let bx = lastBlock.timestamp
393- let bX = (bV + fraction(bU, (bx - bW), e))
394- let bY = min([bX, bU])
395- $Tuple2(IntegerEntry(aW, bx), bY)
428+func cz () = {
429+ let cv = assetBalance(D, k)
430+ let cw = assetBalance(this, k)
431+ let cx = (assetBalance(E, k) + valueOrElse(getInteger(E, al), 0))
432+ let cA = (((cw + cv) + cx) / g)
433+ let cB = valueOrElse(getInteger(aW), cA)
434+ let cC = valueOrElse(getInteger(aV), 0)
435+ let cd = lastBlock.timestamp
436+ let cD = (cB + fraction(cA, (cd - cC), e))
437+ let cE = min([cD, cA])
438+ $Tuple2(IntegerEntry(aV, cd), cE)
396439 }
397440
398441
399-let bZ = addressFromStringValue("3PJgZ6AK1WVCpdCmEZpesHmaKvrQDdXG5og")
442+let cF = addressFromStringValue("3PJgZ6AK1WVCpdCmEZpesHmaKvrQDdXG5og")
400443
401-let ca = valueOrElse(getString(bZ, "static_incubatorAddress"), "")
444+let cG = valueOrElse(getString(cF, "static_incubatorAddress"), "")
402445
403-let cb = valueOrElse(getString(bZ, "static_breederAddress"), "")
446+let cH = valueOrElse(getString(cF, "static_breederAddress"), "")
404447
405-let cc = valueOrElse(getString(bZ, "static_turtleIncubatorAddress"), "")
448+let cI = valueOrElse(getString(cF, "static_turtleIncubatorAddress"), "")
406449
407-let cd = valueOrElse(getString(bZ, "static_turtleBreederAddress"), "")
450+let cJ = valueOrElse(getString(cF, "static_turtleBreederAddress"), "")
408451
409-let ce = valueOrElse(getString(bZ, "static_canineIncubatorAddress"), "")
452+let cK = valueOrElse(getString(cF, "static_canineIncubatorAddress"), "")
410453
411-let cf = valueOrElse(getString(bZ, "static_canineBreederAddress"), "")
454+let cL = valueOrElse(getString(cF, "static_canineBreederAddress"), "")
412455
413-let cg = valueOrElse(getString(bZ, "static_felineIncubatorAddress"), "")
456+let cM = valueOrElse(getString(cF, "static_felineIncubatorAddress"), "")
414457
415-let ch = valueOrElse(getString(bZ, "static_felineBreederAddress"), "")
458+let cN = valueOrElse(getString(cF, "static_felineBreederAddress"), "")
416459
417-let ci = valueOrElse(getString(bZ, "static_mutantIncubatorAddress"), "")
460+let cO = valueOrElse(getString(cF, "static_mutantIncubatorAddress"), "")
418461
419-func cj (ck) = {
420- let cl = toString(ck.issuer)
462+func cP (cQ) = {
463+ let cR = toString(cQ.issuer)
421464 if (if (if (if (if (if (if (if (if (if ((h == base58'2T'))
422- then (cl == n)
465+ then (cR == n)
423466 else false)
424467 then true
425- else (cl == ca))
468+ else (cR == cG))
426469 then true
427- else (cl == cb))
470+ else (cR == cH))
428471 then true
429- else (cl == cc))
472+ else (cR == cI))
430473 then true
431- else (cl == cd))
474+ else (cR == cJ))
432475 then true
433- else (cl == ce))
476+ else (cR == cK))
434477 then true
435- else (cl == cf))
478+ else (cR == cL))
436479 then true
437- else (cl == cg))
480+ else (cR == cM))
438481 then true
439- else (cl == ch))
440- then ck.name
441- else if ((cl == ci))
442- then ck.description
482+ else (cR == cN))
483+ then cQ.name
484+ else if ((cR == cO))
485+ then cQ.description
443486 else ""
444487 }
445488
446489
447-func cm (cn) = if (!(contains(cn, "\"bonusType\": \"FarmPower\"")))
448- then throw(("NFT is not supported: " + cn))
490+func cS (bI) = if (!(contains(bI, "\"bonusType\": \"FarmPower\"")))
491+ then throw(("NFT is not supported: " + bI))
449492 else {
450- let co = split_4C(split_4C(cn, "\"bonus\":")[1], ",")[0]
451- parseIntValue(drop(co, (valueOrElse(lastIndexOf(co, " "), -1) + 1)))
493+ let cT = split_4C(split_4C(bI, "\"bonus\":")[1], ",")[0]
494+ parseIntValue(drop(cT, (valueOrElse(lastIndexOf(cT, " "), -1) + 1)))
452495 }
453496
454497
455-func cp (I,cq,aT,cr,cs,ct) = {
456- let cu = valueOrElse(getInteger(cr), 0)
457- if ((cu >= ct))
458- then throw((("You can stake max " + toString(ct)) + " of such NFTs"))
498+func cU (I,cV,aS,cW,cX,cY) = {
499+ let cZ = valueOrElse(getInteger(cW), 0)
500+ if ((cZ >= cY))
501+ then throw((("You can stake max " + toString(cY)) + " of such NFTs"))
459502 else {
460- let cv = bt(0, I, aT)
461- let cw = cv._1
462- let cx = cv._2
463- $Tuple2((((cw :+ IntegerEntry(cr, (cu + 1))) :+ IntegerEntry(cs, (valueOrElse(getInteger(cs), 0) + 1))) :+ IntegerEntry(R(cq, I), lastBlock.timestamp)), cx)
503+ let da = bZ(0, I, aS)
504+ let db = da._1
505+ let dc = da._2
506+ $Tuple2((((db :+ IntegerEntry(cW, (cZ + 1))) :+ IntegerEntry(cX, (valueOrElse(getInteger(cX), 0) + 1))) :+ IntegerEntry(R(cV, I), lastBlock.timestamp)), dc)
464507 }
465508 }
466509
467510
468-@Callable(bf)
469-func saveLastTx () = if (!(containsElement([D], bf.caller)))
511+@Callable(bt)
512+func saveLastTx () = if (!(containsElement([D], bt.caller)))
470513 then throw("Access denied")
471- else $Tuple2(be(bf), 42)
514+ else $Tuple2(bs(bt), 42)
472515
473516
474517
475-@Callable(bf)
476-func constructorV1 (cy,cz) = if ((bf.caller != this))
518+@Callable(bt)
519+func constructorV1 (dd,de) = if ((bt.caller != this))
477520 then throw("Permission denied")
478521 else {
479- let cA = addressFromStringValue(cz)
480-[IntegerEntry(K, getIntegerValue(cA, K)), BinaryEntry(L, getBinaryValue(cA, L)), StringEntry(v(), cy), StringEntry(F, cz)]
522+ let df = addressFromStringValue(de)
523+[IntegerEntry(K, getIntegerValue(df, K)), BinaryEntry(L, getBinaryValue(df, L)), StringEntry(v(), dd), StringEntry(F, de)]
481524 }
482525
483526
484527
485-@Callable(bf)
486-func setBlocked (cB) = if ((bf.caller != this))
528+@Callable(bt)
529+func setBlocked (dg) = if ((bt.caller != this))
487530 then throw("permission denied")
488- else [BooleanEntry(G(), cB)]
531+ else [BooleanEntry(G(), dg)]
489532
490533
491534
492-@Callable(bf)
493-func unstakeAcres (cC) = {
494- let cD = be(bf)
495- if ((0 >= cC))
535+@Callable(bt)
536+func unstakeAcres (dh) = {
537+ let di = bs(bt)
538+ if ((0 >= dh))
496539 then throw("Amount should be positive")
497540 else {
498- let p = toString(bf.caller)
499- if ((size(bf.payments) != 0))
541+ let p = toString(bt.caller)
542+ if ((size(bt.payments) != 0))
500543 then throw("No payments required")
501544 else {
502- let cE = (valueOrElse(getInteger(D, aV(p)), 0) + m)
503- if ((cE > lastBlock.timestamp))
504- then throw(("You traded some WLGOLD, cannot unstake until " + toString(cE)))
545+ let dj = (valueOrElse(getInteger(D, aU(p)), 0) + m)
546+ if ((dj > lastBlock.timestamp))
547+ then throw(("You traded some WLGOLD, cannot unstake until " + toString(dj)))
505548 else {
506- let cF = bt(-(cC), p, 0)
507- let cw = cF._1
508- let cx = cF._2
509- $Tuple2(((cw :+ ScriptTransfer(bf.caller, cC, M)) ++ cD), cx)
549+ let dk = bZ(-(dh), p, 0)
550+ let db = dk._1
551+ let dc = dk._2
552+ $Tuple2(((db :+ ScriptTransfer(bt.caller, dh, M)) ++ di), dc)
510553 }
511554 }
512555 }
513556 }
514557
515558
516559
517-@Callable(bf)
560+@Callable(bt)
518561 func stakeAcres () = {
519- let cD = be(bf)
520- let p = toString(bf.caller)
521- if ((size(bf.payments) != 1))
562+ let di = bs(bt)
563+ let p = toString(bt.caller)
564+ if ((size(bt.payments) != 1))
522565 then throw("exactly 1 payment must be attached")
523566 else {
524- let cG = bf.payments[0]
525- let bu = cG.amount
526- if (if (!(isDefined(cG.assetId)))
567+ let dl = bt.payments[0]
568+ let ca = dl.amount
569+ if (if (!(isDefined(dl.assetId)))
527570 then true
528- else (value(cG.assetId) != M))
571+ else (value(dl.assetId) != M))
529572 then throw("ACRES payments only!")
530573 else {
531- let cH = bt(bu, p, 0)
532- let cw = cH._1
533- let cx = cH._2
534- $Tuple2((cw ++ cD), cx)
574+ let dm = bZ(ca, p, 0)
575+ let db = dm._1
576+ let dc = dm._2
577+ $Tuple2((db ++ di), dc)
535578 }
536579 }
537580 }
538581
539582
540583
541-@Callable(bf)
584+@Callable(bt)
542585 func buyAcres () = {
543- let cD = be(bf)
544- if ((size(bf.payments) != 1))
586+ let di = bs(bt)
587+ if ((size(bt.payments) != 1))
545588 then throw("exactly 1 payment must be attached")
546589 else {
547- let cG = bf.payments[0]
548- let cI = cG.amount
549- if (if (!(isDefined(cG.assetId)))
590+ let dl = bt.payments[0]
591+ let dn = dl.amount
592+ if (if (!(isDefined(dl.assetId)))
550593 then true
551- else (value(cG.assetId) != k))
594+ else (value(dl.assetId) != k))
552595 then throw("USDT payments only!")
553- else if ((b > cI))
596+ else if ((b > dn))
554597 then throw((("Min payment should be " + ad(b, 6)) + " USDT"))
555598 else {
556- let cJ = (cI * f)
557- let cK = fraction(cI, d, bM(cI))
558- let cL = addressFromStringValue(getStringValue(F))
559- let cM = invoke(cL, "requestAcresCallback", [cJ], nil)
560- if ((cM == cM))
599+ let do = (dn * f)
600+ let dp = fraction(dn, d, cs(dn))
601+ let dq = addressFromStringValue(getStringValue(F))
602+ let dr = invoke(dq, "requestAcresCallback", [do], nil)
603+ if ((dr == dr))
561604 then {
562- let cN = U(invoke(D, "burnWlgold", [cK], nil))
563- $Tuple2(([ScriptTransfer(bf.caller, cJ, M)] ++ cD), cN)
605+ let ds = U(invoke(D, "burnWlgold", [dp], nil))
606+ $Tuple2(([ScriptTransfer(bt.caller, do, M)] ++ di), ds)
564607 }
565608 else throw("Strict value is not equal to itself.")
566609 }
567610 }
568611 }
569612
570613
571614
572-@Callable(bf)
573-func buyAcresREADONLY (cI) = {
574- let cJ = (cI * f)
575- let cO = fraction(cI, d, bM(cI))
576- $Tuple2(nil, [cJ, b, cJ, cO])
615+@Callable(bt)
616+func buyAcresREADONLY (dn) = {
617+ let do = (dn * f)
618+ let dt = fraction(dn, d, cs(dn))
619+ $Tuple2(nil, [do, b, do, dt])
577620 }
578621
579622
580623
581-@Callable(bf)
624+@Callable(bt)
582625 func sellAcres () = {
583- let cD = be(bf)
584- if ((size(bf.payments) != 1))
626+ let di = bs(bt)
627+ if ((size(bt.payments) != 1))
585628 then throw("exactly 1 payment must be attached")
586629 else {
587- let cG = bf.payments[0]
588- let cJ = cG.amount
589- if (if (!(isDefined(cG.assetId)))
630+ let dl = bt.payments[0]
631+ let do = dl.amount
632+ if (if (!(isDefined(dl.assetId)))
590633 then true
591- else (value(cG.assetId) != M))
634+ else (value(dl.assetId) != M))
592635 then throw("ACRES payments only!")
593- else if ((c > cJ))
636+ else if ((c > do))
594637 then throw((("Min payment should be " + ad(c, 8)) + " ACRES"))
595638 else {
596- let I = toString(bf.caller)
597- let cP = bT()
598- let cQ = cP._1
599- let cR = cP._2
600- let cS = (cR * f)
601- if ((cJ > cS))
602- then throw((("You can sell max " + ad(cS, 8)) + " ACRES"))
639+ let I = toString(bt.caller)
640+ let du = cz()
641+ let dv = du._1
642+ let dw = du._2
643+ let dx = (dw * f)
644+ if ((do > dx))
645+ then throw((("You can sell max " + ad(dx, 8)) + " ACRES"))
603646 else {
604- let cI = ((cJ / f) / 2)
605- $Tuple2(([cQ, IntegerEntry(aX, (cR - cI)), ScriptTransfer(bf.caller, cI, k)] ++ cD), cI)
647+ let dn = ((do / f) / 2)
648+ $Tuple2(([dv, IntegerEntry(aW, (dw - dn)), ScriptTransfer(bt.caller, dn, k)] ++ di), dn)
606649 }
607650 }
608651 }
609652 }
610653
611654
612655
613-@Callable(bf)
614-func sellAcresREADONLY (p,cJ) = {
615- let cT = bT()
616- let cQ = cT._1
617- let cR = cT._2
618- let cI = ((cJ / f) / 2)
619- $Tuple2(nil, [cI, c, (cR * f), 0])
656+@Callable(bt)
657+func sellAcresREADONLY (p,do) = {
658+ let dy = cz()
659+ let dv = dy._1
660+ let dw = dy._2
661+ let dn = ((do / f) / 2)
662+ $Tuple2(nil, [dn, c, (dw * f), 0])
620663 }
621664
622665
623666
624-@Callable(bf)
625-func convertOldStakes () = if ((bf.caller != this))
667+@Callable(bt)
668+func convertOldStakes () = if ((bt.caller != this))
626669 then throw("Temporarily disabled")
627670 else {
628- let p = toString(bf.caller)
629- if ((size(bf.payments) != 0))
671+ let p = toString(bt.caller)
672+ if ((size(bt.payments) != 0))
630673 then throw("No payments required")
631674 else {
632- let cL = addressFromStringValue(getStringValue(F))
633- let cC = valueOrElse(getInteger(cL, am(p)), 0)
634- let cU = if ((cC > 0))
635- then ac(invoke(cL, "unstakeAcresCallback", [cC, p], nil))
675+ let dq = addressFromStringValue(getStringValue(F))
676+ let dh = valueOrElse(getInteger(dq, am(p)), 0)
677+ let dz = if ((dh > 0))
678+ then ac(invoke(dq, "unstakeAcresCallback", [dh, p], nil))
636679 else $Tuple2(0, 0)
637- let cV = addressFromStringValue(n)
638- let cW = getString(cV, O(p))
639- let cX = if (isDefined(cW))
680+ let dA = addressFromStringValue(n)
681+ let dB = getString(dA, O(p))
682+ let dC = if (isDefined(dB))
640683 then {
641- let cY = split_51C(value(cW), "_")
642- func cZ (aI,da) = if ((da == ""))
684+ let dD = split_51C(value(dB), "_")
685+ func dE (aH,dF) = if ((dF == ""))
643686 then throw("landAssetId is required")
644687 else {
645- let db = X(invoke(cV, "unstakeLandCallback", [da, p], nil))
646- $Tuple4((aI._1 + db._1), (aI._2 + db._2), (aI._3 + db._3), (aI._4 + db._4))
688+ let dG = X(invoke(dA, "unstakeLandCallback", [dF, p], nil))
689+ $Tuple4((aH._1 + dG._1), (aH._2 + dG._2), (aH._3 + dG._3), (aH._4 + dG._4))
647690 }
648691
649- let dc = {
650- let aK = cY
651- let aL = size(aK)
652- let aM = $Tuple4(0, 0, 0, 0)
653- func aN (aO,aP) = if ((aP >= aL))
654- then aO
655- else cZ(aO, aK[aP])
692+ let dH = {
693+ let aJ = dD
694+ let aK = size(aJ)
695+ let aL = $Tuple4(0, 0, 0, 0)
696+ func aM (aN,aO) = if ((aO >= aK))
697+ then aN
698+ else dE(aN, aJ[aO])
656699
657- func aQ (aO,aP) = if ((aP >= aL))
658- then aO
700+ func aP (aN,aO) = if ((aO >= aK))
701+ then aN
659702 else throw("List size exceeds 100")
660703
661- aQ(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aM, 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)
704+ aP(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aL, 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)
662705 }
663- let dd = invoke(cV, "unstakeLandsFinalizeCallback", [p], nil)
664- if ((dd == dd))
706+ let dI = invoke(dA, "unstakeLandsFinalizeCallback", [p], nil)
707+ if ((dI == dI))
665708 then {
666- let cM = invoke(cL, "requestAcresCallback", [(((dc._1 + dc._2) + dc._3) + dc._4)], nil)
667- if ((cM == cM))
709+ let dr = invoke(dq, "requestAcresCallback", [(((dH._1 + dH._2) + dH._3) + dH._4)], nil)
710+ if ((dr == dr))
668711 then {
669- let de = bq(aq, bf.caller)
670- let df = de._1
671- let bs = de._2
672- $Tuple5(dc._1, dc._2, dc._3, dc._4, df)
712+ let dJ = bM(bg, bk, bp, bn, 3, bb, br, bt.caller)
713+ let dK = dJ._1
714+ let bV = dJ._2
715+ $Tuple5(dH._1, dH._2, dH._3, dH._4, dK)
673716 }
674717 else throw("Strict value is not equal to itself.")
675718 }
676719 else throw("Strict value is not equal to itself.")
677720 }
678721 else $Tuple5(0, 0, 0, 0, nil)
679- let dg = valueOrElse(getString(cV, Q(p)), "")
680- let dh = if ((dg != ""))
681- then ab(invoke(cV, "unstakeDuckCallback", [dg, p], nil))
722+ let dL = valueOrElse(getString(dA, Q(p)), "")
723+ let dM = if ((dL != ""))
724+ then ab(invoke(dA, "unstakeDuckCallback", [dL, p], nil))
682725 else $Tuple3(0, 0, 0)
683- let di = bt((((((((cU._1 + cX._1) + cX._2) + cX._3) + cX._4) + dh._1) + dh._2) + dh._3), p, 0)
684- $Tuple2((cX._5 ++ di._1), di._2)
726+ let dN = bZ((((((((dz._1 + dC._1) + dC._2) + dC._3) + dC._4) + dM._1) + dM._2) + dM._3), p, 0)
727+ $Tuple2((dC._5 ++ dN._1), dN._2)
685728 }
686729 }
687730
688731
689732
690-@Callable(bf)
733+@Callable(bt)
691734 func unstakeLandsREADONLY (p) = {
692- let cV = addressFromStringValue(n)
693- let cW = getString(cV, O(p))
694- let cX = if (isDefined(cW))
735+ let dA = addressFromStringValue(n)
736+ let dB = getString(dA, O(p))
737+ let dC = if (isDefined(dB))
695738 then {
696- let cY = split_51C(value(cW), "_")
697- func cZ (aI,da) = if ((da == ""))
739+ let dD = split_51C(value(dB), "_")
740+ func dE (aH,dF) = if ((dF == ""))
698741 then throw("landAssetId is required")
699742 else {
700- let db = aa(invoke(cV, "unstakeLandREADONLY", [da, p], nil))
701- $Tuple4((aI._1 + db._1), (aI._2 + db._2), (aI._3 + db._3), (aI._4 + db._4))
743+ let dG = aa(invoke(dA, "unstakeLandREADONLY", [dF, p], nil))
744+ $Tuple4((aH._1 + dG._1), (aH._2 + dG._2), (aH._3 + dG._3), (aH._4 + dG._4))
702745 }
703746
704- let aK = cY
705- let aL = size(aK)
706- let aM = $Tuple4(0, 0, 0, 0)
707- func aN (aO,aP) = if ((aP >= aL))
708- then aO
709- else cZ(aO, aK[aP])
747+ let aJ = dD
748+ let aK = size(aJ)
749+ let aL = $Tuple4(0, 0, 0, 0)
750+ func aM (aN,aO) = if ((aO >= aK))
751+ then aN
752+ else dE(aN, aJ[aO])
710753
711- func aQ (aO,aP) = if ((aP >= aL))
712- then aO
754+ func aP (aN,aO) = if ((aO >= aK))
755+ then aN
713756 else throw("List size exceeds 100")
714757
715- aQ(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aM, 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)
758+ aP(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aL, 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)
716759 }
717760 else $Tuple4(0, 0, 0, 0)
718- $Tuple2(nil, cX)
761+ $Tuple2(nil, dC)
719762 }
720763
721764
722765
723-@Callable(bf)
724-func stakeAcresCallback (I) = if ((bf.caller != addressFromStringValue(n)))
766+@Callable(bt)
767+func stakeAcresCallback (I) = if ((bt.caller != addressFromStringValue(n)))
725768 then throw("Permission denied")
726- else bt(bf.payments[0].amount, I, 0)
769+ else bZ(bt.payments[0].amount, I, 0)
727770
728771
729772
730-@Callable(bf)
731-func simulateStakeAcresREADONLY (p,dj) = {
732- let bz = am(p)
733- let bB = (valueOrElse(getInteger(bz), 0) + dj)
734- let bC = valueOrElse(getInteger(ao), 0)
735- let bD = an(p)
736- let bE = valueOrElse(getInteger(bD), 0)
737- let dk = valueOrElse(getInteger(C, aC(p)), 0)
738- let dl = aS(bB, dk)
739- let bI = dl._1
740- let bJ = dl._2
741- let bK = valueOrElse(getInteger(ap), 0)
742- let dm = ((bK + bI) - bE)
743- $Tuple2(nil, [bE, bI, bK, dm])
773+@Callable(bt)
774+func simulateStakeAcresREADONLY (p,dO) = {
775+ let cf = am(p)
776+ let ch = (valueOrElse(getInteger(cf), 0) + dO)
777+ let ci = valueOrElse(getInteger(ao), 0)
778+ let cj = an(p)
779+ let ck = valueOrElse(getInteger(cj), 0)
780+ let dP = valueOrElse(getInteger(C, aB(p)), 0)
781+ let dQ = aR(ch, dP)
782+ let co = dQ._1
783+ let cp = dQ._2
784+ let cq = valueOrElse(getInteger(ap), 0)
785+ let dR = ((cq + co) - ck)
786+ $Tuple2(nil, [ck, co, cq, dR])
744787 }
745788
746789
747790
748-@Callable(bf)
749-func issueNFT (dn,bo) = if ((bf.caller != D))
791+@Callable(bt)
792+func issuePickC1 (dS) = if ((bt.caller != D))
750793 then throw("Permission denied")
751- else bq(bo, addressFromStringValue(dn))
794+ else bM(bh, bj, bp, bm, 1, bc, br, addressFromStringValue(dS))
752795
753796
754797
755-@Callable(bf)
756-func issueNftAdmin (dn,bo,do) = if ((bf.caller != this))
757- then throw("Permission denied")
758- else if ((bo >= size(aZ)))
759- then throw("nftIndex out of bounds")
760- else {
761- let br = Issue(aY[bo], bn(bo, toString(do)), 1, 0, false)
762- let bs = calculateAssetId(br)
763- $Tuple2([br, IntegerEntry(az(toBase58String(bs)), do), ScriptTransfer(addressFromStringValue(dn), 1, bs)], bs)
764- }
765-
766-
767-
768-@Callable(bf)
798+@Callable(bt)
769799 func stakeNFT () = {
770- let cD = be(bf)
771- if ((size(bf.payments) != 1))
800+ let di = bs(bt)
801+ if ((size(bt.payments) != 1))
772802 then throw("Exactly one payment required")
773803 else {
774- let cG = value(bf.payments[0])
775- if ((cG.amount != 1))
804+ let dl = value(bt.payments[0])
805+ if ((dl.amount != 1))
776806 then throw("NFT token should be attached as payment")
777807 else {
778- let S = value(cG.assetId)
779- let dp = value(assetInfo(S))
780- let cq = toBase58String(S)
781- let I = toString(bf.caller)
782- let dq = T(I)
783- let dr = getString(dq)
784- let ds = if (isDefined(dr))
785- then split_4C(value(dr), "_")
808+ let S = value(dl.assetId)
809+ let dT = value(assetInfo(S))
810+ let cV = toBase58String(S)
811+ let I = toString(bt.caller)
812+ let dU = T(I)
813+ let dV = getString(dU)
814+ let dW = if (isDefined(dV))
815+ then split_4C(value(dV), "_")
786816 else nil
787- if (containsElement(ds, cq))
788- then throw(("Your staked NFTs already contain " + cq))
789- else if ((size(ds) >= au))
790- then throw((("Your already staked max (" + toString(au)) + ") NFTs"))
817+ if (containsElement(dW, cV))
818+ then throw(("Your staked NFTs already contain " + cV))
819+ else if ((size(dW) >= at))
820+ then throw((("Your already staked max (" + toString(at)) + ") NFTs"))
791821 else {
792- let dt = StringEntry(dq, makeString_2C((ds :+ cq), "_"))
793- if ((dp.issuer == this))
822+ let dX = StringEntry(dU, makeString_2C((dW :+ cV), "_"))
823+ if ((dT.issuer == this))
794824 then {
795- let du = cp(I, cq, (cm(value(dp.description)) * 10000), aA(I), ax, ar)
796- let cw = du._1
797- let cx = du._2
798- $Tuple2(((cD ++ cw) :+ dt), cx)
825+ let dY = cU(I, cV, (cS(value(dT.description)) * 10000), az(I), aw, aq)
826+ let db = dY._1
827+ let dc = dY._2
828+ $Tuple2(((di ++ db) :+ dX), dc)
799829 }
800- else if ((cj(dp) == ""))
830+ else if ((cP(dT) == ""))
801831 then throw("Only WavesLands and Arkimals NFT tokens are accepted")
802832 else {
803- let dv = cp(I, cq, at, aB(I), ay, as)
804- let cw = dv._1
805- let cx = dv._2
806- $Tuple2(((cD ++ cw) :+ dt), cx)
833+ let dZ = cU(I, cV, as, aA(I), ax, ar)
834+ let db = dZ._1
835+ let dc = dZ._2
836+ $Tuple2(((di ++ db) :+ dX), dc)
807837 }
808838 }
809839 }
810840 }
811841 }
812842
813843
814844
815-@Callable(bf)
816-func unstakeNFT (cq) = {
817- let cD = be(bf)
818- if ((size(bf.payments) != 0))
845+@Callable(bt)
846+func unstakeNFT (cV) = {
847+ let di = bs(bt)
848+ if ((size(bt.payments) != 0))
819849 then throw("No payments required")
820850 else {
821- let S = fromBase58String(cq)
822- let I = toString(bf.caller)
823- let dp = value(assetInfo(S))
824- let by = R(cq, I)
825- if (!(isDefined(getInteger(by))))
826- then throw((("NFT " + dp.name) + " is not staked by you"))
851+ let S = fromBase58String(cV)
852+ let I = toString(bt.caller)
853+ let dT = value(assetInfo(S))
854+ let ce = R(cV, I)
855+ if (!(isDefined(getInteger(ce))))
856+ then throw((("NFT " + dT.name) + " is not staked by you"))
827857 else {
828- let dq = T(I)
829- let ds = split_4C(valueOrElse(getString(dq), ""), "_")
830- let A = indexOf(ds, cq)
858+ let dU = T(I)
859+ let dW = split_4C(valueOrElse(getString(dU), ""), "_")
860+ let A = indexOf(dW, cV)
831861 if (!(isDefined(A)))
832- then throw(("Your staked NFTs don't contain " + cq))
862+ then throw(("Your staked NFTs don't contain " + cV))
833863 else {
834- let dt = if ((size(ds) > 1))
835- then StringEntry(dq, makeString_2C(removeByIndex(ds, value(A)), "_"))
836- else DeleteEntry(dq)
837- let dw = (dp.issuer == this)
838- if (dw)
864+ let dX = if ((size(dW) > 1))
865+ then StringEntry(dU, makeString_2C(removeByIndex(dW, value(A)), "_"))
866+ else DeleteEntry(dU)
867+ let ea = (dT.issuer == this)
868+ if (ea)
839869 then {
840- let dx = valueOrElse(getInteger(aA(I)), 0)
841- let dy = (cm(value(dp.description)) * 10000)
842- let dz = bt(0, I, -(dy))
843- let cw = dz._1
844- let cx = dz._2
845- $Tuple2(((((((cw :+ dt) :+ IntegerEntry(aA(I), (dx - 1))) :+ IntegerEntry(ax, max([0, (valueOrElse(getInteger(ax), 0) - 1)]))) :+ DeleteEntry(R(toBase58String(S), I))) :+ ScriptTransfer(bf.caller, 1, S)) ++ cD), cx)
870+ let eb = valueOrElse(getInteger(az(I)), 0)
871+ let ec = (cS(value(dT.description)) * 10000)
872+ let ed = bZ(0, I, -(ec))
873+ let db = ed._1
874+ let dc = ed._2
875+ $Tuple2(((((((db :+ dX) :+ IntegerEntry(az(I), (eb - 1))) :+ IntegerEntry(aw, max([0, (valueOrElse(getInteger(aw), 0) - 1)]))) :+ DeleteEntry(R(toBase58String(S), I))) :+ ScriptTransfer(bt.caller, 1, S)) ++ di), dc)
846876 }
847877 else {
848- let dA = cj(dp)
849- if ((dA == ""))
878+ let ee = cP(dT)
879+ if ((ee == ""))
850880 then throw("Only WavesLands and Arkimals NFT tokens are accepted")
851881 else {
852- let dB = valueOrElse(getInteger(aB(I)), 0)
853- let dC = bt(0, I, -(at))
854- let cw = dC._1
855- let cx = dC._2
856- $Tuple2((((((cw :+ dt) :+ IntegerEntry(aB(I), (dB - 1))) :+ DeleteEntry(R(toBase58String(S), I))) :+ ScriptTransfer(bf.caller, 1, S)) ++ cD), cx)
882+ let ef = valueOrElse(getInteger(aA(I)), 0)
883+ let eg = bZ(0, I, -(as))
884+ let db = eg._1
885+ let dc = eg._2
886+ $Tuple2((((((db :+ dX) :+ IntegerEntry(aA(I), (ef - 1))) :+ DeleteEntry(R(toBase58String(S), I))) :+ ScriptTransfer(bt.caller, 1, S)) ++ di), dc)
857887 }
858888 }
859889 }
860890 }
861891 }
862892 }
863893
864894
865895
866-@Callable(bf)
867-func exchangeNFTs () = if ((bf.caller != this))
896+@Callable(bt)
897+func exchangeNFTs () = if ((bt.caller != this))
868898 then throw("Temporarily disabled")
869899 else {
870- let cD = be(bf)
871- if ((3 > size(bf.payments)))
900+ let di = bs(bt)
901+ if ((3 > size(bt.payments)))
872902 then throw("Min one USDT and 2 NFT payments allowed")
873- else if ((size(bf.payments) > 6))
903+ else if ((size(bt.payments) > 6))
874904 then throw("Max one USDT and 5 NFT payments allowed")
875905 else {
876- let I = toString(bf.caller)
877- func dD (aI,cG) = {
878- let S = valueOrErrorMessage(cG.assetId, "WAVES payments not allowed")
906+ let I = toString(bt.caller)
907+ func eh (aH,dl) = {
908+ let S = valueOrErrorMessage(dl.assetId, "WAVES payments not allowed")
879909 if ((S == k))
880- then $Tuple3((aI._1 + cG.amount), aI._2, aI._3)
910+ then $Tuple3((aH._1 + dl.amount), aH._2, aH._3)
881911 else {
882- let dp = value(assetInfo(S))
883- if ((dp.issuer != this))
912+ let dT = value(assetInfo(S))
913+ if ((dT.issuer != this))
884914 then throw("Only WL-issued NFTs allowed")
885915 else {
886- let dE = cm(value(dp.description))
887- $Tuple3(aI._1, (aI._2 + dE), (aI._3 :+ Burn(S, 1)))
916+ let bR = cS(value(dT.description))
917+ $Tuple3(aH._1, (aH._2 + bR), (aH._3 :+ Burn(S, 1)))
888918 }
889919 }
890920 }
891921
892- let dF = {
893- let aK = bf.payments
894- let aL = size(aK)
895- let aM = $Tuple3(0, 0, nil)
896- func aN (aO,aP) = if ((aP >= aL))
897- then aO
898- else dD(aO, aK[aP])
922+ let ei = {
923+ let aJ = bt.payments
924+ let aK = size(aJ)
925+ let aL = $Tuple3(0, 0, nil)
926+ func aM (aN,aO) = if ((aO >= aK))
927+ then aN
928+ else eh(aN, aJ[aO])
899929
900- func aQ (aO,aP) = if ((aP >= aL))
901- then aO
930+ func aP (aN,aO) = if ((aO >= aK))
931+ then aN
902932 else throw("List size exceeds 6")
903933
904- aQ(aN(aN(aN(aN(aN(aN(aM, 0), 1), 2), 3), 4), 5), 6)
934+ aP(aM(aM(aM(aM(aM(aM(aL, 0), 1), 2), 3), 4), 5), 6)
905935 }
906- let dG = dF._1
907- let dH = dF._2
908- let dI = dF._3
909- let bo = if ((dH == 3))
936+ let ej = ei._1
937+ let ek = ei._2
938+ let el = ei._3
939+ let bX = if ((ek == 3))
910940 then 2
911- else if ((dH == 5))
941+ else if ((ek == 5))
912942 then 3
913- else if ((dH == 10))
943+ else if ((ek == 10))
914944 then 4
915945 else throw("Only bonuses of 3%, 5% or 10% are supported")
916- let dJ = (dG - (dH * b))
917- if ((0 > dJ))
918- then throw((("You need to attach " + toString(dH)) + " USDT as fee"))
946+ let em = (ej - (ek * b))
947+ if ((0 > em))
948+ then throw((("You need to attach " + toString(ek)) + " USDT as fee"))
919949 else {
920- let dK = if ((dJ > 0))
921- then [ScriptTransfer(bf.caller, dJ, k)]
950+ let en = if ((em > 0))
951+ then [ScriptTransfer(bt.caller, em, k)]
922952 else nil
923- let dL = bq(bo, bf.caller)
924- let dM = dL._1
925- let bs = dL._2
926- let dN = size(dI)
927- let dO = if ((dN == 0))
953+ let eo = bY(bX, bt.caller)
954+ let ep = eo._1
955+ let bV = eo._2
956+ let eq = size(el)
957+ let er = if ((eq == 0))
928958 then nil
929- else [IntegerEntry(aw, (valueOrElse(getInteger(aw), 0) + dN))]
930- $Tuple2(((((dM ++ dI) ++ dO) ++ cD) ++ dK), bs)
959+ else [IntegerEntry(av, (valueOrElse(getInteger(av), 0) + eq))]
960+ $Tuple2(((((ep ++ el) ++ er) ++ di) ++ en), bV)
931961 }
932962 }
933963 }
934964
935965
936966
937-@Callable(bf)
938-func openNftChest () = if ((bf.caller != this))
967+@Callable(bt)
968+func openNftChest () = if ((bt.caller != this))
939969 then throw("Permission denied")
940970 else $Tuple2(nil, 0)
941971
942972

github/deemru/w8io/026f985 
441.30 ms