tx · 9oRr1R77X9UFaYcZEGb9BpRSJFDVPzHseyZr8xcWrVX2

3NBPx1Fciu3JQNEGZ21jSnTdutLNGGBUSXh:  -0.03800000 Waves

2024.12.14 22:40 [3414697] smart account 3NBPx1Fciu3JQNEGZ21jSnTdutLNGGBUSXh > SELF 0.00000000 Waves

{ "type": 13, "id": "9oRr1R77X9UFaYcZEGb9BpRSJFDVPzHseyZr8xcWrVX2", "fee": 3800000, "feeAssetId": null, "timestamp": 1734205307868, "version": 2, "chainId": 84, "sender": "3NBPx1Fciu3JQNEGZ21jSnTdutLNGGBUSXh", "senderPublicKey": "3QtfC1XbLZXdeawMDeSERy9vvjUmj1XYd2GFmrvx7pWQ", "proofs": [ "46BywQdQ4LvwMSAhWBstpZXaKxwGbikcKXkjQ2doncNXXwcaDG2BCghP9oVJHDz8CBijanSVqRB3XnzRSUcqvv1g" ], "script": "base64:BgJXCAISABIECgIICBIDCgEEEgMKAQESABIFCgMIAQQSABIDCgEBEgASBAoCCAESABIDCgEIEgMKAQgSBAoCCAESAwoBCBIDCgEIEgASAwoBCBIAEgASABIAkAEAA1NFUAICX18ABU1VTFQ2AMCEPQAFTVVMVDcAgK3iBAAFTVVMVDgAgMLXLwAGTVVMVDE0AICA6YOx3hYACkRBWV9NSUxMSVMAgLiZKQAVVVNEVDJBQ1JFU19NVUxUSVBMSUVSAAoAE09ORV9QRVJDRU5UX0RJVklTT1IAZAAMUkFORE9NX0RFTEFZAAIAFE5GVF9DSEVTVF9QUklDRV9VU0RUAMCWsQIABWNoYWluCQDJAQIJAMoBAggFBHRoaXMFYnl0ZXMAAQABABdEQUlMWV9QUk9NT19TVEFSVF9CTE9DSwQHJG1hdGNoMAUFY2hhaW4DCQAAAgEBVwUHJG1hdGNoMACA75ECAwkAAAIBAVQFByRtYXRjaDAAwKbQAQkAAgECDVVua25vd24gY2hhaW4AFURBSUxZX1BST01PX0VORF9CTE9DSwQHJG1hdGNoMAUFY2hhaW4DCQAAAgEBVwUHJG1hdGNo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wUCJGEJAAIBAhNMaXN0IHNpemUgZXhjZWVkcyA2CQEFJGYwXzICCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECBQUkYWNjMAAAAAEAAgADAAQABQAGCQCUCgIJAMwIAgkBC1N0cmluZ0VudHJ5AgULa2V5UHJvbW9NYXAIBQVkcmF3cwJfMwkAzAgCCQEMSW50ZWdlckVudHJ5AgUUa2V5VG90YWxQcm9tb1RpY2tldHMIBQVkcmF3cwJfMQkAzAgCCQELU3RyaW5nRW50cnkCCQEPa2V5RGFpbHlXaW5uZXJzAQUFdG9kYXkJALkJAggFBWRyYXdzAl80AgFfBQNuaWwAAAAgriF9", "height": 3414697, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4AXeDRPKs9YfeFWjmdCBfQN7YmvdHSgVLqbPBE97G5KK Next: 6uedwq4r2S4T3BUsVkRYiVsA7cXRgQ4cPqPUgwDEtKaP Diff:
OldNewDifferences
191191 func keyDailyWinners (day) = ("dailyWinners_" + toString(day))
192192
193193
194+let promoNumPrizes = 6
195+
196+let promoAwardPerRound = [0, 500000000, 100000000, 100000000, 100000000, 100000000]
197+
194198 func asInt (v) = match v {
195199 case n: Int =>
196200 n
347351
348352 let names = ["Gold shovel", "Pickaxe"]
349353
350-let descriptions = ["Reward for early birds", "Increases FarmPower"]
354+let descriptions = ["Reward for early birds", "Increases FarmPower", "New Year promo reward"]
351355
352356 let idxDescrShovel = 0
353357
354358 let idxDescrPickaxe = 1
359+
360+let idxDescrMitten = 2
355361
356362 let rarityThresholds = [5, 10, 20]
357363
361367
362368 let idxThresholdL = 2
363369
364-let namez = ["SHOVEL", "PICKAXE"]
370+let namez = ["SHOVEL", "PICKAXE", "MITTEN"]
365371
366372 let idxNameShovel = 0
367373
368374 let idxNamePickaxe = 1
369375
370-let contentKeyz = ["contentPickaxeC", "contentPickaxeU", "contentPickaxeL", "contentPickaxeE", "contentShovelP"]
376+let idxNameMitten = 2
377+
378+let contentKeyz = ["contentPickaxeC", "contentPickaxeU", "contentPickaxeL", "contentPickaxeE", "contentShovelP", "contentMittenP"]
371379
372380 let idxKeyC = 0
373381
374-let idxKeyP = 4
382+let idxKeySP = 4
383+
384+let idxKeyMP = 5
375385
376386 let rarityNames = ["Common", "Uncommon", "Legendary", "Epic", "Promo"]
377387
385395
386396 let idxRarityP = 4
387397
388-let collectionz = ["Digging tools"]
398+let collectionz = ["Digging tools", "New Year gifts"]
389399
390400 let idxCollDig = 0
401+
402+let idxCollNNewYear = 1
391403
392404 let bonusTypez = ["FarmPower"]
393405
481493 else false)
482494 then throw((((("You have only " + fixedPoint(oldBonus, 4)) + "% bonus, and tried to unstake ") + fixedPoint(-(bonusDelta), 4)) + "%"))
483495 else {
484- let $t062996398 = getFarmingPowerByAcresAndBonus(newAcresAmount, (oldBonus + bonusDelta))
485- let newBonusedFp = $t062996398._1
486- let ignored = $t062996398._2
496+ let $t064656564 = getFarmingPowerByAcresAndBonus(newAcresAmount, (oldBonus + bonusDelta))
497+ let newBonusedFp = $t064656564._1
498+ let ignored = $t064656564._2
487499 let oldTotalFp = valueOrElse(getInteger(totalFarmingPowerKey), 0)
488500 let acresActions = if ((amt == 0))
489501 then nil
576588 if ((nftNumber >= limit))
577589 then throw((("You can stake max " + toString(limit)) + " of such NFTs"))
578590 else {
579- let $t01067710753 = stakeUnstakeAcresInternal(0, addr, bonus6)
580- let actions = $t01067710753._1
581- let wlgClaimedAmount = $t01067710753._2
591+ let $t01084310919 = stakeUnstakeAcresInternal(0, addr, bonus6)
592+ let actions = $t01084310919._1
593+ let wlgClaimedAmount = $t01084310919._2
582594 $Tuple2((((actions :+ IntegerEntry(userNumKey, (nftNumber + 1))) :+ IntegerEntry(totalNumKey, (valueOrElse(getInteger(totalNumKey), 0) + 1))) :+ IntegerEntry(keyStakedTimeByAssetIdAndOwner(assetIdStr, addr), lastBlock.timestamp)), wlgClaimedAmount)
583595 }
584596 }
585597
586598
587-let promoNumPrizes = 3
588-
589-let promoAwardPerRound = [50000000, 25000000, 25000000]
590-
591599 func stakeAcresForInternal (address,amt,shouldCleanPromo) = {
592- let $t01123311309 = stakeUnstakeAcresInternal(amt, address, 0)
593- let actions = $t01123311309._1
594- let wlgClaimedAmount = $t01123311309._2
600+ let $t01125411330 = stakeUnstakeAcresInternal(amt, address, 0)
601+ let actions = $t01125411330._1
602+ let wlgClaimedAmount = $t01125411330._2
595603 let promoActions = if (if ((height >= DAILY_PROMO_START_BLOCK))
596604 then (DAILY_PROMO_END_BLOCK > height)
597605 else false)
691699 if ((arbReleaseTime > lastBlock.timestamp))
692700 then throw(("You traded some WLGOLD, cannot unstake until " + toString(arbReleaseTime)))
693701 else {
694- let $t01531215392 = stakeUnstakeAcresInternal(-(amount), address, 0)
695- let actions = $t01531215392._1
696- let wlgClaimedAmount = $t01531215392._2
702+ let $t01533315413 = stakeUnstakeAcresInternal(-(amount), address, 0)
703+ let actions = $t01533315413._1
704+ let wlgClaimedAmount = $t01533315413._2
697705 $Tuple2(((actions :+ ScriptTransfer(i.caller, amount, acresAssetId)) ++ prologActions), wlgClaimedAmount)
698706 }
699707 }
716724 else (value(pmt.assetId) != acresAssetId))
717725 then throw("ACRES payments only!")
718726 else {
719- let $t01584315924 = stakeAcresForInternal(address, amt, false)
720- let stakeActions = $t01584315924._1
721- let wlgClaimedAmount = $t01584315924._2
727+ let $t01586415945 = stakeAcresForInternal(address, amt, false)
728+ let stakeActions = $t01586415945._1
729+ let wlgClaimedAmount = $t01586415945._2
722730 $Tuple2((stakeActions ++ prologActions), wlgClaimedAmount)
723731 }
724732 }
789797 then throw((("Min payment should be " + fixedPoint(MULT7, 8)) + " ACRES"))
790798 else {
791799 let addr = toString(i.caller)
792- let $t01799618044 = getSwapLimitAcres()
793- let limitAction = $t01799618044._1
794- let maxUsdt = $t01799618044._2
800+ let $t01801718065 = getSwapLimitAcres()
801+ let limitAction = $t01801718065._1
802+ let maxUsdt = $t01801718065._2
795803 let maxAcres = (maxUsdt * USDT2ACRES_MULTIPLIER)
796804 if ((acresAmount > maxAcres))
797805 then throw((("You can sell max " + fixedPoint(maxAcres, 8)) + " ACRES"))
807815
808816 @Callable(i)
809817 func sellAcresREADONLY (address,acresAmount) = {
810- let $t01854018588 = getSwapLimitAcres()
811- let limitAction = $t01854018588._1
812- let maxUsdt = $t01854018588._2
818+ let $t01856118609 = getSwapLimitAcres()
819+ let limitAction = $t01856118609._1
820+ let maxUsdt = $t01856118609._2
813821 let usdtAmount = ((acresAmount / USDT2ACRES_MULTIPLIER) / 2)
814822 $Tuple2(nil, [usdtAmount, MULT7, (maxUsdt * USDT2ACRES_MULTIPLIER), 0])
815823 }
870878 let req = invoke(oldAcresAddress, "requestAcresCallback", [(((rr._1 + rr._2) + rr._3) + rr._4)], nil)
871879 if ((req == req))
872880 then {
873- let $t02110221240 = issueNftCustom(idxNameShovel, idxKeyP, idxCollDig, idxRarityP, 3, idxDescrShovel, idxBonusTypeFp, i.caller)
874- let nftActions = $t02110221240._1
875- let nftAssetId = $t02110221240._2
881+ let $t02112321262 = issueNftCustom(idxNameShovel, idxKeySP, idxCollDig, idxRarityP, 3, idxDescrShovel, idxBonusTypeFp, i.caller)
882+ let nftActions = $t02112321262._1
883+ let nftAssetId = $t02112321262._2
876884 $Tuple6(rr._1, rr._2, rr._3, rr._4, rr._5, nftActions)
877885 }
878886 else throw("Strict value is not equal to itself.")
943951 let userFpKey = keyFarmingPowerByUser(address)
944952 let oldFp = valueOrElse(getInteger(userFpKey), 0)
945953 let userBonus = valueOrElse(getInteger(acres2Contract, keyUserFullBonus(address)), 0)
946- let $t02351123598 = getFarmingPowerByAcresAndBonus(newAcresAmount, userBonus)
947- let newBonusedFp = $t02351123598._1
948- let ignored = $t02351123598._2
954+ let $t02353323620 = getFarmingPowerByAcresAndBonus(newAcresAmount, userBonus)
955+ let newBonusedFp = $t02353323620._1
956+ let ignored = $t02353323620._2
949957 let oldTotalFp = valueOrElse(getInteger(totalFarmingPowerKey), 0)
950958 let newTotalFp = ((oldTotalFp + newBonusedFp) - oldFp)
951959 $Tuple2(nil, [oldFp, newBonusedFp, oldTotalFp, newTotalFp])
957965 func issuePickC1 (forAddress) = if ((i.caller != wlgContract))
958966 then throw("Permission denied")
959967 else issueNftCustom(idxNamePickaxe, idxKeyC, idxCollDig, idxRarityC, 1, idxDescrPickaxe, idxBonusTypeFp, addressFromStringValue(forAddress))
968+
969+
970+
971+@Callable(i)
972+func issueMittenP (forAddress) = if ((i.caller != this))
973+ then throw("Permission denied")
974+ else issueNftCustom(idxNameMitten, idxKeyMP, idxCollNNewYear, idxRarityP, 3, idxDescrMitten, idxBonusTypeFp, addressFromStringValue(forAddress))
960975
961976
962977
9871002 let listAction = StringEntry(nftsKey, makeString_2C((nfts :+ assetIdStr), "_"))
9881003 if ((asset.issuer == this))
9891004 then {
990- let $t02500725197 = stakeNftInternal(addr, assetIdStr, (bonusByDescription(value(asset.description)) * 10000), keyUserWlNftNumber(addr), keyWlNftTotalStaked, MAX_WL_NFTS)
991- let actions = $t02500725197._1
992- let wlgClaimedAmount = $t02500725197._2
1005+ let $t02532025510 = stakeNftInternal(addr, assetIdStr, (bonusByDescription(value(asset.description)) * 10000), keyUserWlNftNumber(addr), keyWlNftTotalStaked, MAX_WL_NFTS)
1006+ let actions = $t02532025510._1
1007+ let wlgClaimedAmount = $t02532025510._2
9931008 $Tuple2(((prologActions ++ actions) :+ listAction), wlgClaimedAmount)
9941009 }
9951010 else if ((isArkimalIssued(asset) == ""))
9961011 then throw("Only WavesLands and Arkimals NFT tokens are accepted")
9971012 else {
998- let $t02537825529 = stakeNftInternal(addr, assetIdStr, ARK_NFT_BONUS, keyUserArkNftNumber(addr), keyArkNftTotalStaked, MAX_ARK_NFTS)
999- let actions = $t02537825529._1
1000- let wlgClaimedAmount = $t02537825529._2
1013+ let $t02569125842 = stakeNftInternal(addr, assetIdStr, ARK_NFT_BONUS, keyUserArkNftNumber(addr), keyArkNftTotalStaked, MAX_ARK_NFTS)
1014+ let actions = $t02569125842._1
1015+ let wlgClaimedAmount = $t02569125842._2
10011016 $Tuple2(((prologActions ++ actions) :+ listAction), wlgClaimedAmount)
10021017 }
10031018 }
10341049 then {
10351050 let wlNftNumber = valueOrElse(getInteger(keyUserWlNftNumber(addr)), 0)
10361051 let bonusVal = (bonusByDescription(value(asset.description)) * 10000)
1037- let $t02669426773 = stakeUnstakeAcresInternal(0, addr, -(bonusVal))
1038- let actions = $t02669426773._1
1039- let wlgClaimedAmount = $t02669426773._2
1052+ let $t02700727086 = stakeUnstakeAcresInternal(0, addr, -(bonusVal))
1053+ let actions = $t02700727086._1
1054+ let wlgClaimedAmount = $t02700727086._2
10401055 $Tuple2(((((((actions :+ listAction) :+ IntegerEntry(keyUserWlNftNumber(addr), (wlNftNumber - 1))) :+ IntegerEntry(keyWlNftTotalStaked, max([0, (valueOrElse(getInteger(keyWlNftTotalStaked), 0) - 1)]))) :+ DeleteEntry(keyStakedTimeByAssetIdAndOwner(toBase58String(assetId), addr))) :+ ScriptTransfer(i.caller, 1, assetId)) ++ prologActions), wlgClaimedAmount)
10411056 }
10421057 else {
10451060 then throw("Only WavesLands and Arkimals NFT tokens are accepted")
10461061 else {
10471062 let arkNftNumber = valueOrElse(getInteger(keyUserArkNftNumber(addr)), 0)
1048- let $t02743327517 = stakeUnstakeAcresInternal(0, addr, -(ARK_NFT_BONUS))
1049- let actions = $t02743327517._1
1050- let wlgClaimedAmount = $t02743327517._2
1063+ let $t02774627830 = stakeUnstakeAcresInternal(0, addr, -(ARK_NFT_BONUS))
1064+ let actions = $t02774627830._1
1065+ let wlgClaimedAmount = $t02774627830._2
10511066 $Tuple2((((((actions :+ listAction) :+ IntegerEntry(keyUserArkNftNumber(addr), (arkNftNumber - 1))) :+ DeleteEntry(keyStakedTimeByAssetIdAndOwner(toBase58String(assetId), addr))) :+ ScriptTransfer(i.caller, 1, assetId)) ++ prologActions), wlgClaimedAmount)
10521067 }
10531068 }
10591074
10601075
10611076 @Callable(i)
1062-func exchangeNFTs () = {
1063- let prologActions = prolog(i)
1064- if ((3 > size(i.payments)))
1065- then throw("Min one WLGOLD and 2 NFT payments allowed")
1066- else if ((size(i.payments) > 10))
1067- then throw("Max one WLGOLD and 9 NFT payments allowed")
1068- else {
1069- let addr = toString(i.caller)
1070- func addUp (acc,pmt) = {
1071- let assetId = valueOrErrorMessage(pmt.assetId, "WAVES payments not allowed")
1072- if ((assetId == wlgAssetId))
1073- then $Tuple4((acc._1 + pmt.amount), acc._2, acc._3, acc._4)
1074- else {
1075- let asset = value(assetInfo(assetId))
1076- if ((asset.issuer != this))
1077- then throw("Only WL-issued NFTs allowed")
1078- else {
1079- let rarityIx = rarityIdxByDescriprion(value(asset.description))
1080- if (if ((acc._4 > 0))
1081- then (rarityIx != acc._4)
1082- else false)
1083- then throw("You can exchange only NFTs of the same rarity")
1084- else {
1085- let bonusPerc = bonusByDescription(value(asset.description))
1086- $Tuple4(acc._1, (acc._2 + bonusPerc), (acc._3 :+ Burn(assetId, 1)), rarityIx)
1087- }
1088- }
1089- }
1090- }
1077+func exchangeNFTs () = if ((i.caller != this))
1078+ then throw("Temporary disabled")
1079+ else {
1080+ let prologActions = prolog(i)
1081+ if ((3 > size(i.payments)))
1082+ then throw("Min one WLGOLD and 2 NFT payments allowed")
1083+ else if ((size(i.payments) > 10))
1084+ then throw("Max one WLGOLD and 9 NFT payments allowed")
1085+ else {
1086+ let addr = toString(i.caller)
1087+ func addUp (acc,pmt) = {
1088+ let assetId = valueOrErrorMessage(pmt.assetId, "WAVES payments not allowed")
1089+ if ((assetId == wlgAssetId))
1090+ then $Tuple4((acc._1 + pmt.amount), acc._2, acc._3, acc._4)
1091+ else {
1092+ let asset = value(assetInfo(assetId))
1093+ if ((asset.issuer != this))
1094+ then throw("Only WL-issued NFTs allowed")
1095+ else {
1096+ let rarityIx = rarityIdxByDescriprion(value(asset.description))
1097+ if (if ((acc._4 > 0))
1098+ then (rarityIx != acc._4)
1099+ else false)
1100+ then throw("You can exchange only NFTs of the same rarity")
1101+ else {
1102+ let bonusPerc = bonusByDescription(value(asset.description))
1103+ $Tuple4(acc._1, (acc._2 + bonusPerc), (acc._3 :+ Burn(assetId, 1)), rarityIx)
1104+ }
1105+ }
1106+ }
1107+ }
10911108
1092- let $t02890629122 = {
1093- let $l = i.payments
1094- let $s = size($l)
1095- let $acc0 = $Tuple4(0, 0, nil, -1)
1096- func $f0_1 ($a,$i) = if (($i >= $s))
1097- then $a
1098- else addUp($a, $l[$i])
1109+ let $t02928129497 = {
1110+ let $l = i.payments
1111+ let $s = size($l)
1112+ let $acc0 = $Tuple4(0, 0, nil, -1)
1113+ func $f0_1 ($a,$i) = if (($i >= $s))
1114+ then $a
1115+ else addUp($a, $l[$i])
10991116
1100- func $f0_2 ($a,$i) = if (($i >= $s))
1101- then $a
1102- else throw("List size exceeds 10")
1117+ func $f0_2 ($a,$i) = if (($i >= $s))
1118+ then $a
1119+ else throw("List size exceeds 10")
11031120
1104- $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
1105- }
1106- let wlgFee = $t02890629122._1
1107- let totalBonus = $t02890629122._2
1108- let burnActions = $t02890629122._3
1109- let rarityIdx = $t02890629122._4
1110- let newRarityIdx = if ((rarityIdx == idxRarityC))
1111- then if ((rarityThresholds[idxThresholdC] > totalBonus))
1112- then idxRarityC
1113- else if ((rarityThresholds[idxThresholdU] > totalBonus))
1114- then idxRarityU
1115- else throw((("You can advance only one level of rarity, max total bonus " + toString(rarityThresholds[idxThresholdU])) + "%"))
1116- else if ((rarityIdx == idxRarityU))
1117- then if ((rarityThresholds[idxThresholdU] > totalBonus))
1118- then idxRarityU
1119- else if ((rarityThresholds[idxThresholdL] > totalBonus))
1120- then idxRarityL
1121- else throw((("You can advance only one level of rarity, max total bonus " + toString(rarityThresholds[idxThresholdL])) + "%"))
1122- else if ((rarityIdx == idxRarityL))
1123- then if ((rarityThresholds[idxThresholdL] > totalBonus))
1124- then idxRarityL
1125- else idxRarityE
1126- else if ((rarityIdx == idxRarityE))
1127- then idxRarityE
1128- else if ((rarityIdx == idxRarityP))
1129- then throw("You can't exchange NFTs of this rarity")
1130- else throw("Unknown rarity")
1131- let minWlgFee = fraction(totalBonus, MULT14, getWlgPrice(0))
1132- let change = (wlgFee - minWlgFee)
1133- let forTeam = (minWlgFee / 2)
1134- let wlgRemain = asInt(invoke(wlgContract, "burnWlgold", [(minWlgFee - forTeam)], nil))
1135- if ((0 > change))
1136- then throw((("You need to attach " + fixedPoint(minWlgFee, 8)) + " WLGOLD as fee"))
1137- else {
1138- let changeActions = if ((change > 0))
1139- then [ScriptTransfer(i.caller, change, wlgAssetId)]
1140- else nil
1141- let $t03065930820 = issueNftCustom(idxNamePickaxe, newRarityIdx, idxCollDig, newRarityIdx, totalBonus, idxDescrPickaxe, idxBonusTypeFp, i.caller)
1142- let issueNftActions = $t03065930820._1
1143- let nftAssetId = $t03065930820._2
1144- let burned = size(burnActions)
1145- let burnCounterActions = if ((burned == 0))
1146- then nil
1147- else [IntegerEntry(keyNftTotalBurned, (valueOrElse(getInteger(keyNftTotalBurned), 0) + burned))]
1148- $Tuple2((((((issueNftActions ++ burnActions) ++ burnCounterActions) ++ prologActions) ++ changeActions) :+ ScriptTransfer(addressFromStringValue(getStringValue(wlgContract, teamAddrKey)), forTeam, wlgAssetId)), $Tuple2(nftAssetId, wlgRemain))
1121+ $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
11491122 }
1150- }
1151- }
1152-
1153-
1154-
1155-@Callable(i)
1156-func openNftChest () = {
1157- let prologActions = prolog(i)
1158- if ((size(i.payments) != 1))
1159- then throw("exactly 1 payment must be attached")
1160- else {
1161- let pmt = i.payments[0]
1162- let wlgAmount = pmt.amount
1163- if (if (!(isDefined(pmt.assetId)))
1164- then true
1165- else (value(pmt.assetId) != wlgAssetId))
1166- then throw("WLGOLD payments only!")
1167- else {
1168- let minWlgFee = fraction(NFT_CHEST_PRICE_USDT, MULT8, getWlgPrice(0))
1169- let change = (wlgAmount - minWlgFee)
1123+ let wlgFee = $t02928129497._1
1124+ let totalBonus = $t02928129497._2
1125+ let burnActions = $t02928129497._3
1126+ let rarityIdx = $t02928129497._4
1127+ let newRarityIdx = if ((rarityIdx == idxRarityC))
1128+ then if ((rarityThresholds[idxThresholdC] > totalBonus))
1129+ then idxRarityC
1130+ else if ((rarityThresholds[idxThresholdU] > totalBonus))
1131+ then idxRarityU
1132+ else throw((("You can advance only one level of rarity, max total bonus " + toString(rarityThresholds[idxThresholdU])) + "%"))
1133+ else if ((rarityIdx == idxRarityU))
1134+ then if ((rarityThresholds[idxThresholdU] > totalBonus))
1135+ then idxRarityU
1136+ else if ((rarityThresholds[idxThresholdL] > totalBonus))
1137+ then idxRarityL
1138+ else throw((("You can advance only one level of rarity, max total bonus " + toString(rarityThresholds[idxThresholdL])) + "%"))
1139+ else if ((rarityIdx == idxRarityL))
1140+ then if ((rarityThresholds[idxThresholdL] > totalBonus))
1141+ then idxRarityL
1142+ else idxRarityE
1143+ else if ((rarityIdx == idxRarityE))
1144+ then idxRarityE
1145+ else if ((rarityIdx == idxRarityP))
1146+ then throw("You can't exchange NFTs of this rarity")
1147+ else throw("Unknown rarity")
1148+ let minWlgFee = fraction(totalBonus, MULT14, getWlgPrice(0))
1149+ let change = (wlgFee - minWlgFee)
11701150 let forTeam = (minWlgFee / 2)
11711151 let wlgRemain = asInt(invoke(wlgContract, "burnWlgold", [(minWlgFee - forTeam)], nil))
11721152 if ((0 > change))
11751155 let changeActions = if ((change > 0))
11761156 then [ScriptTransfer(i.caller, change, wlgAssetId)]
11771157 else nil
1178- let addr = toString(i.caller)
1179- let finishKey = keyCommit(addr)
1180- let finishBlock = valueOrErrorMessage(getInteger(finishKey), "You have to commitForRandom() first!")
1181- if ((finishBlock > height))
1182- then throw(("Random number is not ready yet, wait until height = " + toString(finishBlock)))
1183- else {
1184- let entropy = value(value(blockInfoByHeight(finishBlock)).vrf)
1185- let salt = fromBase58String(split(valueOrElse(getString(keyCurWeekTxIdByUser(addr)), "42_DEFAULT"), "_")[1])
1186- let rand = getRandomNumber(100, salt, entropy)
1187- let $t03283933111 = if ((84 > rand))
1188- then $Tuple2(1, idxRarityC)
1189- else if ((98 > rand))
1190- then $Tuple2(5, idxRarityU)
1191- else $Tuple2(10, idxRarityL)
1192- let bonus = $t03283933111._1
1193- let rarityIdx = $t03283933111._2
1194- let $t03311433264 = issueNftCustom(idxNamePickaxe, rarityIdx, idxCollDig, rarityIdx, bonus, idxDescrPickaxe, idxBonusTypeFp, i.caller)
1195- let issueNftActions = $t03311433264._1
1196- let nftAssetId = $t03311433264._2
1197- $Tuple2(((((issueNftActions ++ prologActions) ++ changeActions) :+ ScriptTransfer(addressFromStringValue(getStringValue(wlgContract, teamAddrKey)), forTeam, wlgAssetId)) :+ DeleteEntry(finishKey)), $Tuple2(nftAssetId, wlgRemain))
1198- }
1158+ let $t03103431195 = issueNftCustom(idxNamePickaxe, newRarityIdx, idxCollDig, newRarityIdx, totalBonus, idxDescrPickaxe, idxBonusTypeFp, i.caller)
1159+ let issueNftActions = $t03103431195._1
1160+ let nftAssetId = $t03103431195._2
1161+ let burned = size(burnActions)
1162+ let burnCounterActions = if ((burned == 0))
1163+ then nil
1164+ else [IntegerEntry(keyNftTotalBurned, (valueOrElse(getInteger(keyNftTotalBurned), 0) + burned))]
1165+ $Tuple2((((((issueNftActions ++ burnActions) ++ burnCounterActions) ++ prologActions) ++ changeActions) :+ ScriptTransfer(addressFromStringValue(getStringValue(wlgContract, teamAddrKey)), forTeam, wlgAssetId)), $Tuple2(nftAssetId, wlgRemain))
11991166 }
12001167 }
1201- }
1202- }
1168+ }
12031169
12041170
12051171
12061172 @Callable(i)
1207-func commitForRandom () = {
1208- let prologActions = prolog(i)
1209- let addr = toString(i.caller)
1210- let finishKey = keyCommit(addr)
1211- if (isDefined(getInteger(finishKey)))
1212- then throw("You already commited for random, please use it")
1213- else {
1214- let finishBlock = (height + RANDOM_DELAY)
1215- $Tuple2(([IntegerEntry(finishKey, finishBlock)] ++ prologActions), finishBlock)
1216- }
1217- }
1173+func openNftChest () = if ((i.caller != this))
1174+ then throw("Temporary disabled")
1175+ else {
1176+ let prologActions = prolog(i)
1177+ if ((size(i.payments) != 1))
1178+ then throw("exactly 1 payment must be attached")
1179+ else {
1180+ let pmt = i.payments[0]
1181+ let wlgAmount = pmt.amount
1182+ if (if (!(isDefined(pmt.assetId)))
1183+ then true
1184+ else (value(pmt.assetId) != wlgAssetId))
1185+ then throw("WLGOLD payments only!")
1186+ else {
1187+ let minWlgFee = fraction(NFT_CHEST_PRICE_USDT, MULT8, getWlgPrice(0))
1188+ let change = (wlgAmount - minWlgFee)
1189+ let forTeam = (minWlgFee / 2)
1190+ let wlgRemain = asInt(invoke(wlgContract, "burnWlgold", [(minWlgFee - forTeam)], nil))
1191+ if ((0 > change))
1192+ then throw((("You need to attach " + fixedPoint(minWlgFee, 8)) + " WLGOLD as fee"))
1193+ else {
1194+ let changeActions = if ((change > 0))
1195+ then [ScriptTransfer(i.caller, change, wlgAssetId)]
1196+ else nil
1197+ let addr = toString(i.caller)
1198+ let finishKey = keyCommit(addr)
1199+ let finishBlock = valueOrErrorMessage(getInteger(finishKey), "You have to commitForRandom() first!")
1200+ if ((finishBlock > height))
1201+ then throw(("Random number is not ready yet, wait until height = " + toString(finishBlock)))
1202+ else {
1203+ let entropy = value(value(blockInfoByHeight(finishBlock)).vrf)
1204+ let salt = fromBase58String(split(valueOrElse(getString(keyCurWeekTxIdByUser(addr)), "42_DEFAULT"), "_")[1])
1205+ let rand = getRandomNumber(100, salt, entropy)
1206+ let $t03327633548 = if ((84 > rand))
1207+ then $Tuple2(1, idxRarityC)
1208+ else if ((98 > rand))
1209+ then $Tuple2(5, idxRarityU)
1210+ else $Tuple2(10, idxRarityL)
1211+ let bonus = $t03327633548._1
1212+ let rarityIdx = $t03327633548._2
1213+ let $t03355133701 = issueNftCustom(idxNamePickaxe, rarityIdx, idxCollDig, rarityIdx, bonus, idxDescrPickaxe, idxBonusTypeFp, i.caller)
1214+ let issueNftActions = $t03355133701._1
1215+ let nftAssetId = $t03355133701._2
1216+ $Tuple2(((((issueNftActions ++ prologActions) ++ changeActions) :+ ScriptTransfer(addressFromStringValue(getStringValue(wlgContract, teamAddrKey)), forTeam, wlgAssetId)) :+ DeleteEntry(finishKey)), $Tuple2(nftAssetId, wlgRemain))
1217+ }
1218+ }
1219+ }
1220+ }
1221+ }
1222+
1223+
1224+
1225+@Callable(i)
1226+func commitForRandom () = if ((i.caller != this))
1227+ then throw("Temporary disabled")
1228+ else {
1229+ let prologActions = prolog(i)
1230+ let addr = toString(i.caller)
1231+ let finishKey = keyCommit(addr)
1232+ if (isDefined(getInteger(finishKey)))
1233+ then throw("You already commited for random, please use it")
1234+ else {
1235+ let finishBlock = (height + RANDOM_DELAY)
1236+ $Tuple2(([IntegerEntry(finishKey, finishBlock)] ++ prologActions), finishBlock)
1237+ }
1238+ }
12181239
12191240
12201241
12771298 let newMap = if ((mapParts[0] == ""))
12781299 then drop(mapParts[1], 5)
12791300 else (dropRight(mapParts[0], 1) + drop(mapParts[1], 4))
1280- let stakeActions = invoke(this, "stakeAcresFor", [winner, promoAwardPerRound[j], true], nil)
1281- if ((stakeActions == stakeActions))
1301+ let winActions = if ((j == 0))
1302+ then invoke(this, "issueMittenP", [winner], nil)
1303+ else invoke(this, "stakeAcresFor", [winner, promoAwardPerRound[j], true], nil)
1304+ if ((winActions == winActions))
12821305 then {
12831306 let newSalt = fromBase58String(split(valueOrElse(getString(keyCurWeekTxIdByUser(winner)), "0_DEFAULT"), "_")[1])
12841307 $Tuple4((ac._1 - r._2), newSalt, newMap, (ac._4 :+ winner))
12881311 }
12891312
12901313 let draws = {
1291- let $l = [0, 1, 2]
1314+ let $l = [0, 1, 2, 3, 4, 5]
12921315 let $s = size($l)
12931316 let $acc0 = $Tuple4(maxValue, i.transactionId, promoMap, nil)
12941317 func $f0_1 ($a,$i) = if (($i >= $s))
12971320
12981321 func $f0_2 ($a,$i) = if (($i >= $s))
12991322 then $a
1300- else throw("List size exceeds 3")
1323+ else throw("List size exceeds 6")
13011324
1302- $f0_2($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3)
1325+ $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
13031326 }
13041327 $Tuple2([StringEntry(keyPromoMap, draws._3), IntegerEntry(keyTotalPromoTickets, draws._1), StringEntry(keyDailyWinners(today), makeString(draws._4, "_"))], 0)
13051328 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let SEP = "__"
55
66 let MULT6 = 1000000
77
88 let MULT7 = 10000000
99
1010 let MULT8 = 100000000
1111
1212 let MULT14 = 100000000000000
1313
1414 let DAY_MILLIS = 86400000
1515
1616 let USDT2ACRES_MULTIPLIER = 10
1717
1818 let ONE_PERCENT_DIVISOR = 100
1919
2020 let RANDOM_DELAY = 2
2121
2222 let NFT_CHEST_PRICE_USDT = 5000000
2323
2424 let chain = take(drop(this.bytes, 1), 1)
2525
2626 let DAILY_PROMO_START_BLOCK = match chain {
2727 case _ =>
2828 if ((base58'2W' == $match0))
2929 then 4487040
3030 else if ((base58'2T' == $match0))
3131 then 3412800
3232 else throw("Unknown chain")
3333 }
3434
3535 let DAILY_PROMO_END_BLOCK = match chain {
3636 case _ =>
3737 if ((base58'2W' == $match0))
3838 then 4517280
3939 else if ((base58'2T' == $match0))
4040 then 3443040
4141 else throw("Unknown chain")
4242 }
4343
4444 let DAY_BLOCKS = match chain {
4545 case _ =>
4646 if ((base58'2W' == $match0))
4747 then 1440
4848 else if ((base58'2T' == $match0))
4949 then 60
5050 else throw("Unknown chain")
5151 }
5252
5353 let WEEK_BLOCKS = match chain {
5454 case _ =>
5555 if ((base58'2W' == $match0))
5656 then 10080
5757 else if ((base58'2T' == $match0))
5858 then 180
5959 else throw("Unknown chain")
6060 }
6161
6262 let VRF_OFFSET = match chain {
6363 case _ =>
6464 if ((base58'2W' == $match0))
6565 then 0
6666 else if ((base58'2T' == $match0))
6767 then 1146000
6868 else throw("Unknown chain")
6969 }
7070
7171 let usdtAssetId = match chain {
7272 case _ =>
7373 if ((base58'2W' == $match0))
7474 then base58'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi'
7575 else if ((base58'2T' == $match0))
7676 then base58'6mWwf9mZBjVgkC54idpyaZLQfAosD914wT8fGf2iiY63'
7777 else throw("Unknown chain")
7878 }
7979
8080 let defaultRest2AddressStr = match chain {
8181 case _ =>
8282 if ((base58'2W' == $match0))
8383 then "3PFwYta8biEz31zpeFe5DJK8wE5trSpQVF8"
8484 else if ((base58'2T' == $match0))
8585 then "3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv"
8686 else throw("Unknown chain")
8787 }
8888
8989 let arbitrageDelay = match chain {
9090 case _ =>
9191 if ((base58'2W' == $match0))
9292 then DAY_MILLIS
9393 else if ((base58'2T' == $match0))
9494 then 60000
9595 else throw("Unknown chain")
9696 }
9797
9898 let oldStakingContractStr = match chain {
9999 case _ =>
100100 if ((base58'2W' == $match0))
101101 then "3PLncXtS1U83D6cQbFD3H8rBHPLgzxSFKZ1"
102102 else if ((base58'2T' == $match0))
103103 then "3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm"
104104 else throw("Unknown chain")
105105 }
106106
107107 func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], ""))
108108
109109
110110 let IdxCfgAcres2Dapp = 1
111111
112112 let IdxCfgWlgDapp = 2
113113
114114 let IdxCfgInvestFundDapp = 5
115115
116116 let IdxCfgMarketDapp = 6
117117
118118 func keyRestCfg () = "%s__restConfig"
119119
120120
121121 func keyRest2Address () = "%s__rest2Addr"
122122
123123
124124 func readRestCfgOrFail (rest) = split_4C(getStringOrFail(rest, keyRestCfg()), SEP)
125125
126126
127127 func getContractAddressOrFail (rest2Cfg,idx) = valueOrErrorMessage(addressFromString(rest2Cfg[idx]), ("Rest cfg doesn't contain address at index " + toString(idx)))
128128
129129
130130 let rest2Contract = addressFromStringValue(valueOrElse(getString(this, keyRest2Address()), defaultRest2AddressStr))
131131
132132 let rest2Cfg = readRestCfgOrFail(rest2Contract)
133133
134134 let acres2Contract = getContractAddressOrFail(rest2Cfg, IdxCfgAcres2Dapp)
135135
136136 let wlgContract = getContractAddressOrFail(rest2Cfg, IdxCfgWlgDapp)
137137
138138 let investFundContract = getContractAddressOrFail(rest2Cfg, IdxCfgInvestFundDapp)
139139
140140 let marketContract = getContractAddressOrFail(rest2Cfg, IdxCfgMarketDapp)
141141
142142 let oldAcresContractKey = "oldAcresContract"
143143
144144 func keyBlocked () = "contractsBlocked"
145145
146146
147147 func keyLastWeekTxIdByUser (addr) = ("lastWeekTxIdByUser_" + addr)
148148
149149
150150 func keyCurWeekTxIdByUser (addr) = ("curWeekTxIdByUser_" + addr)
151151
152152
153153 func keyCommit (address) = ("finishBlockFor_" + address)
154154
155155
156156 let wlgAssetIdKey = "wlg_assetId"
157157
158158 let wlgAssetId = valueOrErrorMessage(getBinary(wlgContract, wlgAssetIdKey), "WLGOLD is not issued yet")
159159
160160 let acresIssuedAmountKey = "acresIssuedAmount"
161161
162162 let acresAssetIdKey = "acresAssetId"
163163
164164 let acresAssetId = valueOrErrorMessage(getBinary(acres2Contract, acresAssetIdKey), "ACRES is not issued yet")
165165
166166 func keyAcresStakedTimeByUser (addr) = ("acresStakedTimeByUser_" + addr)
167167
168168
169169 func keyStakedLandsByOwner (ownerAddr) = ("stakedLandsByOwner_" + ownerAddr)
170170
171171
172172 func keyStakedDuckByOwner (ownerAddr) = ("stakedDuckByOwner_" + ownerAddr)
173173
174174
175175 func keyStakedTimeByAssetIdAndOwner (assetId,addr) = ((("st_" + assetId) + "_") + addr)
176176
177177
178178 func keyStakedNFTsByOwner (ownerAddr) = ("stakedNFTsByOwner_" + ownerAddr)
179179
180180
181181 func keyUserPromoAcres (address) = ("promoAcres_" + address)
182182
183183
184184 func keyUserPromoTickets (address) = ("promoTickets_" + address)
185185
186186
187187 let keyTotalPromoTickets = "totalPromoTickets"
188188
189189 let keyPromoMap = "promoMap"
190190
191191 func keyDailyWinners (day) = ("dailyWinners_" + toString(day))
192192
193193
194+let promoNumPrizes = 6
195+
196+let promoAwardPerRound = [0, 500000000, 100000000, 100000000, 100000000, 100000000]
197+
194198 func asInt (v) = match v {
195199 case n: Int =>
196200 n
197201 case _ =>
198202 throw("fail to cast into Int")
199203 }
200204
201205
202206 func asTuple5Ints (val) = match val {
203207 case t: (Int, Int, Int, Int, Int) =>
204208 t
205209 case _ =>
206210 throw("fail to cast into (Int, Int, Int, Int, Int)")
207211 }
208212
209213
210214 func asTuple4Ints (val) = match val {
211215 case t: (Int, Int, Int, Int) =>
212216 t
213217 case _ =>
214218 throw("fail to cast into (Int, Int, Int, Int)")
215219 }
216220
217221
218222 func asTuple3Ints (val) = match val {
219223 case t: (Int, Int, Int) =>
220224 t
221225 case _ =>
222226 throw("fail to cast into (Int, Int, Int)")
223227 }
224228
225229
226230 func asTuple2Ints (val) = match val {
227231 case t: (Int, Int) =>
228232 t
229233 case _ =>
230234 throw("fail to cast into (Int, Int)")
231235 }
232236
233237
234238 func fixedPoint (val,decimals) = {
235239 let tenPow = pow(10, 0, decimals, 0, 0, DOWN)
236240 let lowPart = toString((val % tenPow))
237241 let zeroes = drop(toString(tenPow), (1 + size(lowPart)))
238242 (((toString((val / tenPow)) + ".") + zeroes) + lowPart)
239243 }
240244
241245
242246 func getRandomNumber (maxValue,salt,entropy) = if ((0 >= maxValue))
243247 then throw("maxValue should be > 0")
244248 else {
245249 let randomHash = sha256_16Kb((salt + entropy))
246250 (toInt(randomHash) % maxValue)
247251 }
248252
249253
250254 func padL (val,len) = {
251255 let valS = toString(val)
252256 let zeroes = drop(toString(pow(10, 0, (len - size(valS)), 0, 0, DOWN)), 1)
253257 (zeroes + valS)
254258 }
255259
256260
257261 let M6_ = 1000000
258262
259263 let M8_ = 100000000
260264
261265 let wlgIssuedAmtKey = "wlg_issuedAmount"
262266
263267 let zbIssuedAmtKey = "zbill_issuedAmount"
264268
265269 func keyAcresStakedAmtByUser (addr) = ("acresStakedAmountByUser_" + addr)
266270
267271
268272 func keyFarmingPowerByUser (addr) = ("farmingPowerByUser_" + addr)
269273
270274
271275 let acresStakdTotalKey = "acresStakedAmountTotal"
272276
273277 let totalFarmingPowerKey = "totalFarmingPower"
274278
275279 let MAX_WL_NFTS = 3
276280
277281 let MAX_ARK_NFTS = 1
278282
279283 let ARK_NFT_BONUS = 5000
280284
281285 let MAX_NFTS_STAKED_BY_USER = 4
282286
283287 let keyNftTotalIssued = "nftTotalIssued"
284288
285289 let keyNftTotalBurned = "nftTotalBurned"
286290
287291 let keyWlNftTotalStaked = "WlNftTotalStaked"
288292
289293 let keyArkNftTotalStaked = "ArkNftTotalStaked"
290294
291295 func keyNftNumberByAssetId (assetId) = ("nftNumberByAssetId_" + assetId)
292296
293297
294298 func keyUserWlNftNumber (addr) = ("userWlNftNumber_" + addr)
295299
296300
297301 func keyUserArkNftNumber (addr) = ("userArkNftNumber_" + addr)
298302
299303
300304 func keyUserFullBonus (addr) = ("userFullBonus_" + addr)
301305
302306
303307 let levelAcres = [0, 10, 20, 40, 80, 150, 250, 400, 700, 1000]
304308
305309 func getLevelByAcres (acres) = {
306310 let acr = ((acres + 99999999) / M8_)
307311 func checker (acc,item) = if ((item >= acr))
308312 then acc
309313 else (acc + 1)
310314
311315 let $l = levelAcres
312316 let $s = size($l)
313317 let $acc0 = 0
314318 func $f0_1 ($a,$i) = if (($i >= $s))
315319 then $a
316320 else checker($a, $l[$i])
317321
318322 func $f0_2 ($a,$i) = if (($i >= $s))
319323 then $a
320324 else throw("List size exceeds 10")
321325
322326 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
323327 }
324328
325329
326330 func getFarmingPowerByAcres (acres) = ((acres * 20) * (getLevelByAcres(acres) + 4))
327331
328332
329333 func getFarmingPowerByAcresAndBonus (acres,bonus6) = {
330334 let notBonused = getFarmingPowerByAcres(acres)
331335 $Tuple2(fraction(notBonused, (M6_ + bonus6), M6_), notBonused)
332336 }
333337
334338
335339 let teamAddrKey = "teamAddr"
336340
337341 func keyLastWlgTradeTimeByUser (addr) = ("lastArbTimeUser_" + addr)
338342
339343
340344 let OLD_STAKING_DEADL = 1733346000000
341345
342346 let MAX_LANDS_TO_CONVERT = 14
343347
344348 let keyLastAcresSellTime = "lastAcresSellTime"
345349
346350 let keyLastLimitLeft = "lastLimitLeft"
347351
348352 let names = ["Gold shovel", "Pickaxe"]
349353
350-let descriptions = ["Reward for early birds", "Increases FarmPower"]
354+let descriptions = ["Reward for early birds", "Increases FarmPower", "New Year promo reward"]
351355
352356 let idxDescrShovel = 0
353357
354358 let idxDescrPickaxe = 1
359+
360+let idxDescrMitten = 2
355361
356362 let rarityThresholds = [5, 10, 20]
357363
358364 let idxThresholdC = 0
359365
360366 let idxThresholdU = 1
361367
362368 let idxThresholdL = 2
363369
364-let namez = ["SHOVEL", "PICKAXE"]
370+let namez = ["SHOVEL", "PICKAXE", "MITTEN"]
365371
366372 let idxNameShovel = 0
367373
368374 let idxNamePickaxe = 1
369375
370-let contentKeyz = ["contentPickaxeC", "contentPickaxeU", "contentPickaxeL", "contentPickaxeE", "contentShovelP"]
376+let idxNameMitten = 2
377+
378+let contentKeyz = ["contentPickaxeC", "contentPickaxeU", "contentPickaxeL", "contentPickaxeE", "contentShovelP", "contentMittenP"]
371379
372380 let idxKeyC = 0
373381
374-let idxKeyP = 4
382+let idxKeySP = 4
383+
384+let idxKeyMP = 5
375385
376386 let rarityNames = ["Common", "Uncommon", "Legendary", "Epic", "Promo"]
377387
378388 let idxRarityC = 0
379389
380390 let idxRarityU = 1
381391
382392 let idxRarityL = 2
383393
384394 let idxRarityE = 3
385395
386396 let idxRarityP = 4
387397
388-let collectionz = ["Digging tools"]
398+let collectionz = ["Digging tools", "New Year gifts"]
389399
390400 let idxCollDig = 0
401+
402+let idxCollNNewYear = 1
391403
392404 let bonusTypez = ["FarmPower"]
393405
394406 let idxBonusTypeFp = 0
395407
396408 func prolog (i) = if (if ((i.originCaller != rest2Contract))
397409 then valueOrElse(getBoolean(keyBlocked()), false)
398410 else false)
399411 then throw("Contracts are under maintenance")
400412 else {
401413 let addr = toString(i.originCaller)
402414 let week = (height / WEEK_BLOCKS)
403415 let lastWeekKey = keyLastWeekTxIdByUser(addr)
404416 let lastWeekTxIdByUser = getString(lastWeekKey)
405417 let txId = toBase58String(i.transactionId)
406418 let wtx = ((toString(week) + "_") + txId)
407419 let curWeekKey = keyCurWeekTxIdByUser(addr)
408420 if (isDefined(lastWeekTxIdByUser))
409421 then {
410422 let lastWeekTx = split(value(lastWeekTxIdByUser), "_")
411423 if ((lastWeekTx[0] == toString(week)))
412424 then [StringEntry(lastWeekKey, wtx), StringEntry(curWeekKey, wtx)]
413425 else if ((lastWeekTx[0] == toString((week - 1))))
414426 then [StringEntry(curWeekKey, wtx)]
415427 else {
416428 let curWeekTxIdByUser = getStringValue(curWeekKey)
417429 let curWeekTx = split(curWeekTxIdByUser, "_")
418430 if ((curWeekTx[0] == toString(week)))
419431 then [StringEntry(curWeekKey, wtx)]
420432 else [StringEntry(lastWeekKey, curWeekTxIdByUser), StringEntry(curWeekKey, wtx)]
421433 }
422434 }
423435 else [StringEntry(lastWeekKey, wtx), StringEntry(curWeekKey, wtx)]
424436 }
425437
426438
427439 func createNftDescrCustom (contKey,nftSerial,collection,name,descr,rarity,bonus,bonusType) = (((((((((((((((((((((((("{\"url\": \"https://waveslands.com\", " + "\"contentKey\": \"") + contKey) + "\", ") + "\"number\": ") + toString(nftSerial)) + ", ") + "\"collection\": \"") + collection) + "\", ") + "\"name\": \"") + name) + "\", ") + "\"description\": \"") + descr) + "\", ") + "\"rare\": \"") + rarity) + "\", ") + "\"bonus\": ") + toString(bonus)) + ", ") + "\"bonusType\": \"") + bonusType) + "\"}")
428440
429441
430442 func issueNftCustom (nameIdx,contKeyIdx,collIdx,rarityIdx,bonusPerc,descrIdx,bonusTypeIdx,addr) = {
431443 let nftSerial = valueOrElse(getInteger(keyNftTotalIssued), 0)
432444 let rarity = rarityNames[rarityIdx]
433445 let name = (((namez[nameIdx] + "-") + take(rarity, 1)) + toString(bonusPerc))
434446 let issue = Issue(name, createNftDescrCustom(contentKeyz[contKeyIdx], nftSerial, collectionz[collIdx], names[nameIdx], descriptions[descrIdx], rarityNames[rarityIdx], bonusPerc, bonusTypez[bonusTypeIdx]), 1, 0, false)
435447 let nftAssetId = calculateAssetId(issue)
436448 $Tuple2([issue, IntegerEntry(keyNftTotalIssued, (nftSerial + 1)), IntegerEntry(keyNftNumberByAssetId(toBase58String(nftAssetId)), nftSerial), ScriptTransfer(addr, 1, nftAssetId)], nftAssetId)
437449 }
438450
439451
440452 func bonusByDescription (descr) = if (!(contains(descr, "\"bonusType\": \"FarmPower\"")))
441453 then throw(("NFT is not supported: " + descr))
442454 else {
443455 let bonusStr = split_4C(split_4C(descr, "\"bonus\":")[1], ",")[0]
444456 parseIntValue(drop(bonusStr, (valueOrElse(lastIndexOf(bonusStr, " "), -1) + 1)))
445457 }
446458
447459
448460 func rarityIdxByDescriprion (descr) = if (!(contains(descr, "\"rare\"")))
449461 then throw(("NFT is not supported: " + descr))
450462 else {
451463 let rarityStr = split_4C(split_4C(split_4C(descr, "\"rare\"")[1], ",")[0], "\"")[1]
452464 value(indexOf(rarityNames, rarityStr))
453465 }
454466
455467
456468 func stakeUnstakeAcresInternal (amt,address,bonusDelta) = if (if ((amt == 0))
457469 then (bonusDelta == 0)
458470 else false)
459471 then throw("Nothing to do")
460472 else {
461473 let wlgResult = invoke(wlgContract, "onStakeUnstakeLand", [address], nil)
462474 if ((wlgResult == wlgResult))
463475 then {
464476 let now = lastBlock.timestamp
465477 let timeKey = keyAcresStakedTimeByUser(address)
466478 let amountKey = keyAcresStakedAmtByUser(address)
467479 let oldAcresAmount = valueOrElse(getInteger(amountKey), 0)
468480 if (if ((0 > amt))
469481 then (0 > (oldAcresAmount + amt))
470482 else false)
471483 then throw(((("You have only " + fixedPoint(oldAcresAmount, 8)) + " ACRES staked, tried to unstake ") + fixedPoint(-(amt), 8)))
472484 else {
473485 let newAcresAmount = (oldAcresAmount + amt)
474486 let oldTotal = valueOrElse(getInteger(acresStakdTotalKey), 0)
475487 let userFpKey = keyFarmingPowerByUser(address)
476488 let oldFp = valueOrElse(getInteger(userFpKey), 0)
477489 let bonusKey = keyUserFullBonus(address)
478490 let oldBonus = valueOrElse(getInteger(acres2Contract, bonusKey), 0)
479491 if (if ((0 > bonusDelta))
480492 then (0 > (oldBonus + bonusDelta))
481493 else false)
482494 then throw((((("You have only " + fixedPoint(oldBonus, 4)) + "% bonus, and tried to unstake ") + fixedPoint(-(bonusDelta), 4)) + "%"))
483495 else {
484- let $t062996398 = getFarmingPowerByAcresAndBonus(newAcresAmount, (oldBonus + bonusDelta))
485- let newBonusedFp = $t062996398._1
486- let ignored = $t062996398._2
496+ let $t064656564 = getFarmingPowerByAcresAndBonus(newAcresAmount, (oldBonus + bonusDelta))
497+ let newBonusedFp = $t064656564._1
498+ let ignored = $t064656564._2
487499 let oldTotalFp = valueOrElse(getInteger(totalFarmingPowerKey), 0)
488500 let acresActions = if ((amt == 0))
489501 then nil
490502 else [IntegerEntry(amountKey, newAcresAmount), IntegerEntry(acresStakdTotalKey, (oldTotal + amt))]
491503 let bonusActions = if ((bonusDelta == 0))
492504 then nil
493505 else [IntegerEntry(bonusKey, (oldBonus + bonusDelta))]
494506 $Tuple2(((((acresActions ++ bonusActions) :+ IntegerEntry(timeKey, lastBlock.timestamp)) :+ IntegerEntry(userFpKey, newBonusedFp)) :+ IntegerEntry(totalFarmingPowerKey, ((oldTotalFp + newBonusedFp) - oldFp))), wlgResult)
495507 }
496508 }
497509 }
498510 else throw("Strict value is not equal to itself.")
499511 }
500512
501513
502514 func getWlgPrice (usdtBalanceCorrection) = {
503515 let issuedAmount = valueOrErrorMessage(getInteger(wlgContract, wlgIssuedAmtKey), "WLGOLD is not issued yet")
504516 let wlgUsd = assetBalance(wlgContract, usdtAssetId)
505517 let acres2Usd = (assetBalance(acres2Contract, usdtAssetId) - usdtBalanceCorrection)
506518 let investFundTotal = (assetBalance(investFundContract, usdtAssetId) + valueOrElse(getInteger(investFundContract, zbIssuedAmtKey), 0))
507519 let totalFundsUsd = ((acres2Usd + wlgUsd) + investFundTotal)
508520 fraction(totalFundsUsd, MULT8, issuedAmount)
509521 }
510522
511523
512524 func getSwapLimitAcres () = {
513525 let wlgUsd = assetBalance(wlgContract, usdtAssetId)
514526 let acres2Usd = assetBalance(this, usdtAssetId)
515527 let investFundTotal = (assetBalance(investFundContract, usdtAssetId) + valueOrElse(getInteger(investFundContract, zbIssuedAmtKey), 0))
516528 let defaultLimit = (((acres2Usd + wlgUsd) + investFundTotal) / ONE_PERCENT_DIVISOR)
517529 let lastLimitLeft = valueOrElse(getInteger(keyLastLimitLeft), defaultLimit)
518530 let lastTime = valueOrElse(getInteger(keyLastAcresSellTime), 0)
519531 let now = lastBlock.timestamp
520532 let currentLimit = (lastLimitLeft + fraction(defaultLimit, (now - lastTime), DAY_MILLIS))
521533 let limitLeftUsdt = min([currentLimit, defaultLimit])
522534 $Tuple2(IntegerEntry(keyLastAcresSellTime, now), limitLeftUsdt)
523535 }
524536
525537
526538 let arkOracle = addressFromStringValue("3PJgZ6AK1WVCpdCmEZpesHmaKvrQDdXG5og")
527539
528540 let incubator = valueOrElse(getString(arkOracle, "static_incubatorAddress"), "")
529541
530542 let breeder = valueOrElse(getString(arkOracle, "static_breederAddress"), "")
531543
532544 let turtleIncubator = valueOrElse(getString(arkOracle, "static_turtleIncubatorAddress"), "")
533545
534546 let turtleBreeder = valueOrElse(getString(arkOracle, "static_turtleBreederAddress"), "")
535547
536548 let canineIncubator = valueOrElse(getString(arkOracle, "static_canineIncubatorAddress"), "")
537549
538550 let canineBreeder = valueOrElse(getString(arkOracle, "static_canineBreederAddress"), "")
539551
540552 let felineIncubator = valueOrElse(getString(arkOracle, "static_felineIncubatorAddress"), "")
541553
542554 let felineBreeder = valueOrElse(getString(arkOracle, "static_felineBreederAddress"), "")
543555
544556 let mutantBreeder = valueOrElse(getString(arkOracle, "static_mutantIncubatorAddress"), "")
545557
546558 func isArkimalIssued (nfo) = {
547559 let issuer = toString(nfo.issuer)
548560 if (if (if (if (if (if (if (if (if (if ((chain == base58'2T'))
549561 then (issuer == oldStakingContractStr)
550562 else false)
551563 then true
552564 else (issuer == incubator))
553565 then true
554566 else (issuer == breeder))
555567 then true
556568 else (issuer == turtleIncubator))
557569 then true
558570 else (issuer == turtleBreeder))
559571 then true
560572 else (issuer == canineIncubator))
561573 then true
562574 else (issuer == canineBreeder))
563575 then true
564576 else (issuer == felineIncubator))
565577 then true
566578 else (issuer == felineBreeder))
567579 then nfo.name
568580 else if ((issuer == mutantBreeder))
569581 then nfo.description
570582 else ""
571583 }
572584
573585
574586 func stakeNftInternal (addr,assetIdStr,bonus6,userNumKey,totalNumKey,limit) = {
575587 let nftNumber = valueOrElse(getInteger(userNumKey), 0)
576588 if ((nftNumber >= limit))
577589 then throw((("You can stake max " + toString(limit)) + " of such NFTs"))
578590 else {
579- let $t01067710753 = stakeUnstakeAcresInternal(0, addr, bonus6)
580- let actions = $t01067710753._1
581- let wlgClaimedAmount = $t01067710753._2
591+ let $t01084310919 = stakeUnstakeAcresInternal(0, addr, bonus6)
592+ let actions = $t01084310919._1
593+ let wlgClaimedAmount = $t01084310919._2
582594 $Tuple2((((actions :+ IntegerEntry(userNumKey, (nftNumber + 1))) :+ IntegerEntry(totalNumKey, (valueOrElse(getInteger(totalNumKey), 0) + 1))) :+ IntegerEntry(keyStakedTimeByAssetIdAndOwner(assetIdStr, addr), lastBlock.timestamp)), wlgClaimedAmount)
583595 }
584596 }
585597
586598
587-let promoNumPrizes = 3
588-
589-let promoAwardPerRound = [50000000, 25000000, 25000000]
590-
591599 func stakeAcresForInternal (address,amt,shouldCleanPromo) = {
592- let $t01123311309 = stakeUnstakeAcresInternal(amt, address, 0)
593- let actions = $t01123311309._1
594- let wlgClaimedAmount = $t01123311309._2
600+ let $t01125411330 = stakeUnstakeAcresInternal(amt, address, 0)
601+ let actions = $t01125411330._1
602+ let wlgClaimedAmount = $t01125411330._2
595603 let promoActions = if (if ((height >= DAILY_PROMO_START_BLOCK))
596604 then (DAILY_PROMO_END_BLOCK > height)
597605 else false)
598606 then {
599607 let promoAcresKey = keyUserPromoAcres(address)
600608 let promoAcres = ((if (shouldCleanPromo)
601609 then 0
602610 else valueOrElse(getInteger(promoAcresKey), 0)) + amt)
603611 let tickets = (promoAcres / MULT8)
604612 let ticketsKey = keyUserPromoTickets(address)
605613 let deltaTickets = (tickets - valueOrElse(getInteger(ticketsKey), 0))
606614 let totalTickets = (valueOrElse(getInteger(keyTotalPromoTickets), 0) + deltaTickets)
607615 if (if (shouldCleanPromo)
608616 then true
609617 else (deltaTickets > 0))
610618 then {
611619 let promoMap = valueOrElse(getString(keyPromoMap), "")
612620 let userRecord = ((address + ":") + padL(tickets, 3))
613621 let newMap = if (contains(promoMap, address))
614622 then {
615623 let mapParts = split_51C(promoMap, address)
616624 if ((mapParts[0] == ""))
617625 then {
618626 let r = drop(mapParts[1], 4)
619627 if ((r == ""))
620628 then if ((tickets == 0))
621629 then ""
622630 else userRecord
623631 else if ((tickets == 0))
624632 then drop(r, 1)
625633 else (userRecord + r)
626634 }
627635 else {
628636 let r = drop(mapParts[1], 4)
629637 if ((r == ""))
630638 then if ((tickets == 0))
631639 then dropRight(mapParts[0], 1)
632640 else (mapParts[0] + userRecord)
633641 else if ((tickets == 0))
634642 then (mapParts[0] + drop(r, 1))
635643 else ((mapParts[0] + userRecord) + r)
636644 }
637645 }
638646 else if ((tickets == 0))
639647 then promoMap
640648 else if ((promoMap == ""))
641649 then userRecord
642650 else ((promoMap + "_") + userRecord)
643651 [IntegerEntry(promoAcresKey, promoAcres), IntegerEntry(ticketsKey, tickets), IntegerEntry(keyTotalPromoTickets, totalTickets), StringEntry(keyPromoMap, newMap)]
644652 }
645653 else [IntegerEntry(promoAcresKey, promoAcres)]
646654 }
647655 else nil
648656 $Tuple2((actions ++ promoActions), wlgClaimedAmount)
649657 }
650658
651659
652660 @Callable(i)
653661 func saveLastTx () = if (!(containsElement([wlgContract, marketContract], i.caller)))
654662 then throw("Access denied")
655663 else $Tuple2(prolog(i), 42)
656664
657665
658666
659667 @Callable(i)
660668 func constructorV1 (rest2Addr,oldAcrContract) = if ((i.caller != this))
661669 then throw("Permission denied")
662670 else {
663671 let oldAcrContAddr = addressFromStringValue(oldAcrContract)
664672 [IntegerEntry(acresIssuedAmountKey, getIntegerValue(oldAcrContAddr, acresIssuedAmountKey)), BinaryEntry(acresAssetIdKey, getBinaryValue(oldAcrContAddr, acresAssetIdKey)), StringEntry(keyRest2Address(), rest2Addr), StringEntry(oldAcresContractKey, oldAcrContract)]
665673 }
666674
667675
668676
669677 @Callable(i)
670678 func setBlocked (isBlocked) = if ((i.caller != this))
671679 then throw("permission denied")
672680 else [BooleanEntry(keyBlocked(), isBlocked)]
673681
674682
675683
676684 @Callable(i)
677685 func unstakeAcres (amount) = {
678686 let prologActions = prolog(i)
679687 if (if ((height >= DAILY_PROMO_START_BLOCK))
680688 then (DAILY_PROMO_END_BLOCK > height)
681689 else false)
682690 then throw("You can't unstake during Xmas promo period")
683691 else if ((0 >= amount))
684692 then throw("Amount should be positive")
685693 else {
686694 let address = toString(i.caller)
687695 if ((size(i.payments) != 0))
688696 then throw("No payments required")
689697 else {
690698 let arbReleaseTime = (valueOrElse(getInteger(wlgContract, keyLastWlgTradeTimeByUser(address)), 0) + arbitrageDelay)
691699 if ((arbReleaseTime > lastBlock.timestamp))
692700 then throw(("You traded some WLGOLD, cannot unstake until " + toString(arbReleaseTime)))
693701 else {
694- let $t01531215392 = stakeUnstakeAcresInternal(-(amount), address, 0)
695- let actions = $t01531215392._1
696- let wlgClaimedAmount = $t01531215392._2
702+ let $t01533315413 = stakeUnstakeAcresInternal(-(amount), address, 0)
703+ let actions = $t01533315413._1
704+ let wlgClaimedAmount = $t01533315413._2
697705 $Tuple2(((actions :+ ScriptTransfer(i.caller, amount, acresAssetId)) ++ prologActions), wlgClaimedAmount)
698706 }
699707 }
700708 }
701709 }
702710
703711
704712
705713 @Callable(i)
706714 func stakeAcres () = {
707715 let prologActions = prolog(i)
708716 let address = toString(i.caller)
709717 if ((size(i.payments) != 1))
710718 then throw("exactly 1 payment must be attached")
711719 else {
712720 let pmt = i.payments[0]
713721 let amt = pmt.amount
714722 if (if (!(isDefined(pmt.assetId)))
715723 then true
716724 else (value(pmt.assetId) != acresAssetId))
717725 then throw("ACRES payments only!")
718726 else {
719- let $t01584315924 = stakeAcresForInternal(address, amt, false)
720- let stakeActions = $t01584315924._1
721- let wlgClaimedAmount = $t01584315924._2
727+ let $t01586415945 = stakeAcresForInternal(address, amt, false)
728+ let stakeActions = $t01586415945._1
729+ let wlgClaimedAmount = $t01586415945._2
722730 $Tuple2((stakeActions ++ prologActions), wlgClaimedAmount)
723731 }
724732 }
725733 }
726734
727735
728736
729737 @Callable(i)
730738 func stakeAcresFor (address,amt,shouldCleanPromo) = if ((i.caller != this))
731739 then throw("Permission denied")
732740 else stakeAcresForInternal(address, amt, shouldCleanPromo)
733741
734742
735743
736744 @Callable(i)
737745 func buyAcres () = {
738746 let prologActions = prolog(i)
739747 if ((size(i.payments) != 1))
740748 then throw("exactly 1 payment must be attached")
741749 else {
742750 let pmt = i.payments[0]
743751 let usdtAmount = pmt.amount
744752 if (if (!(isDefined(pmt.assetId)))
745753 then true
746754 else (value(pmt.assetId) != usdtAssetId))
747755 then throw("USDT payments only!")
748756 else if ((MULT6 > usdtAmount))
749757 then throw((("Min payment should be " + fixedPoint(MULT6, 6)) + " USDT"))
750758 else {
751759 let acresAmount = (usdtAmount * USDT2ACRES_MULTIPLIER)
752760 let wlgAmount = fraction(usdtAmount, MULT8, getWlgPrice(usdtAmount))
753761 let oldAcresAddress = addressFromStringValue(getStringValue(oldAcresContractKey))
754762 let req = invoke(oldAcresAddress, "requestAcresCallback", [acresAmount], nil)
755763 if ((req == req))
756764 then {
757765 let wlgRemain = asInt(invoke(wlgContract, "burnWlgold", [wlgAmount], nil))
758766 $Tuple2(([ScriptTransfer(i.caller, acresAmount, acresAssetId)] ++ prologActions), wlgRemain)
759767 }
760768 else throw("Strict value is not equal to itself.")
761769 }
762770 }
763771 }
764772
765773
766774
767775 @Callable(i)
768776 func buyAcresREADONLY (usdtAmount) = {
769777 let acresAmount = (usdtAmount * USDT2ACRES_MULTIPLIER)
770778 let wlgToBurn = fraction(usdtAmount, MULT8, getWlgPrice(usdtAmount))
771779 $Tuple2(nil, [acresAmount, MULT6, acresAmount, wlgToBurn])
772780 }
773781
774782
775783
776784 @Callable(i)
777785 func sellAcres () = {
778786 let prologActions = prolog(i)
779787 if ((size(i.payments) != 1))
780788 then throw("exactly 1 payment must be attached")
781789 else {
782790 let pmt = i.payments[0]
783791 let acresAmount = pmt.amount
784792 if (if (!(isDefined(pmt.assetId)))
785793 then true
786794 else (value(pmt.assetId) != acresAssetId))
787795 then throw("ACRES payments only!")
788796 else if ((MULT7 > acresAmount))
789797 then throw((("Min payment should be " + fixedPoint(MULT7, 8)) + " ACRES"))
790798 else {
791799 let addr = toString(i.caller)
792- let $t01799618044 = getSwapLimitAcres()
793- let limitAction = $t01799618044._1
794- let maxUsdt = $t01799618044._2
800+ let $t01801718065 = getSwapLimitAcres()
801+ let limitAction = $t01801718065._1
802+ let maxUsdt = $t01801718065._2
795803 let maxAcres = (maxUsdt * USDT2ACRES_MULTIPLIER)
796804 if ((acresAmount > maxAcres))
797805 then throw((("You can sell max " + fixedPoint(maxAcres, 8)) + " ACRES"))
798806 else {
799807 let usdtAmount = ((acresAmount / USDT2ACRES_MULTIPLIER) / 2)
800808 $Tuple2(([limitAction, IntegerEntry(keyLastLimitLeft, (maxUsdt - usdtAmount)), ScriptTransfer(i.caller, usdtAmount, usdtAssetId)] ++ prologActions), usdtAmount)
801809 }
802810 }
803811 }
804812 }
805813
806814
807815
808816 @Callable(i)
809817 func sellAcresREADONLY (address,acresAmount) = {
810- let $t01854018588 = getSwapLimitAcres()
811- let limitAction = $t01854018588._1
812- let maxUsdt = $t01854018588._2
818+ let $t01856118609 = getSwapLimitAcres()
819+ let limitAction = $t01856118609._1
820+ let maxUsdt = $t01856118609._2
813821 let usdtAmount = ((acresAmount / USDT2ACRES_MULTIPLIER) / 2)
814822 $Tuple2(nil, [usdtAmount, MULT7, (maxUsdt * USDT2ACRES_MULTIPLIER), 0])
815823 }
816824
817825
818826
819827 @Callable(i)
820828 func convertOldStakes () = {
821829 let prologActions = prolog(i)
822830 if ((OLD_STAKING_DEADL > lastBlock.timestamp))
823831 then throw(("Disabled until " + toString((OLD_STAKING_DEADL / 1000))))
824832 else {
825833 let address = toString(i.caller)
826834 if ((size(i.payments) != 0))
827835 then throw("No payments required")
828836 else {
829837 let oldAcresAddress = addressFromStringValue(getStringValue(oldAcresContractKey))
830838 let amount = valueOrElse(getInteger(oldAcresAddress, keyAcresStakedAmtByUser(address)), 0)
831839 let gotAcres0 = if ((amount > 0))
832840 then asTuple2Ints(invoke(oldAcresAddress, "unstakeAcresCallback", [amount, address], nil))
833841 else $Tuple2(0, 0)
834842 let oldStakingAddress = addressFromStringValue(oldStakingContractStr)
835843 let landsStr = getString(oldStakingAddress, keyStakedLandsByOwner(address))
836844 let landsResult = if (isDefined(landsStr))
837845 then {
838846 let lands = split_51C(value(landsStr), "_")
839847 if ((size(lands) > MAX_LANDS_TO_CONVERT))
840848 then throw((("You have more than " + toString(MAX_LANDS_TO_CONVERT)) + " lands staked, please contact support, we'll process your case manually"))
841849 else {
842850 func oneLand (acc,landAssetId) = if ((landAssetId == ""))
843851 then throw("landAssetId is required")
844852 else {
845853 let r = asTuple5Ints(invoke(oldStakingAddress, "unstakeLandCallback", [landAssetId, address], nil))
846854 if ((r == r))
847855 then $Tuple5((acc._1 + r._1), (acc._2 + r._2), (acc._3 + r._3), (acc._4 + r._4), (acc._5 + r._5))
848856 else throw("Strict value is not equal to itself.")
849857 }
850858
851859 let rr = {
852860 let $l = lands
853861 let $s = size($l)
854862 let $acc0 = $Tuple5(0, 0, 0, 0, 0)
855863 func $f0_1 ($a,$i) = if (($i >= $s))
856864 then $a
857865 else oneLand($a, $l[$i])
858866
859867 func $f0_2 ($a,$i) = if (($i >= $s))
860868 then $a
861869 else throw("List size exceeds 14")
862870
863871 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14)
864872 }
865873 if ((rr == rr))
866874 then {
867875 let finalize = invoke(oldStakingAddress, "unstakeLandsFinalizeCallback", [address], nil)
868876 if ((finalize == finalize))
869877 then {
870878 let req = invoke(oldAcresAddress, "requestAcresCallback", [(((rr._1 + rr._2) + rr._3) + rr._4)], nil)
871879 if ((req == req))
872880 then {
873- let $t02110221240 = issueNftCustom(idxNameShovel, idxKeyP, idxCollDig, idxRarityP, 3, idxDescrShovel, idxBonusTypeFp, i.caller)
874- let nftActions = $t02110221240._1
875- let nftAssetId = $t02110221240._2
881+ let $t02112321262 = issueNftCustom(idxNameShovel, idxKeySP, idxCollDig, idxRarityP, 3, idxDescrShovel, idxBonusTypeFp, i.caller)
882+ let nftActions = $t02112321262._1
883+ let nftAssetId = $t02112321262._2
876884 $Tuple6(rr._1, rr._2, rr._3, rr._4, rr._5, nftActions)
877885 }
878886 else throw("Strict value is not equal to itself.")
879887 }
880888 else throw("Strict value is not equal to itself.")
881889 }
882890 else throw("Strict value is not equal to itself.")
883891 }
884892 }
885893 else $Tuple6(0, 0, 0, 0, 0, nil)
886894 let duckAssetId = valueOrElse(getString(oldStakingAddress, keyStakedDuckByOwner(address)), "")
887895 let duckResult = if ((duckAssetId != ""))
888896 then asTuple3Ints(invoke(oldStakingAddress, "unstakeDuckCallback", [duckAssetId, address], nil))
889897 else $Tuple3(0, 0, 0)
890898 let x = stakeUnstakeAcresInternal((((((((gotAcres0._1 + landsResult._1) + landsResult._2) + landsResult._3) + landsResult._4) + duckResult._1) + duckResult._2) + duckResult._3), address, 0)
891899 $Tuple2(((landsResult._6 ++ x._1) ++ prologActions), $Tuple3(gotAcres0._2, landsResult._5, x._2))
892900 }
893901 }
894902 }
895903
896904
897905
898906 @Callable(i)
899907 func unstakeLandsREADONLY (address) = {
900908 let oldStakingAddress = addressFromStringValue(oldStakingContractStr)
901909 let landsStr = getString(oldStakingAddress, keyStakedLandsByOwner(address))
902910 let landsResult = if (isDefined(landsStr))
903911 then {
904912 let lands = split_51C(value(landsStr), "_")
905913 func oneLand (acc,landAssetId) = if ((landAssetId == ""))
906914 then throw("landAssetId is required")
907915 else {
908916 let r = asTuple4Ints(invoke(oldStakingAddress, "unstakeLandREADONLY", [landAssetId, address], nil))
909917 $Tuple4((acc._1 + r._1), (acc._2 + r._2), (acc._3 + r._3), (acc._4 + r._4))
910918 }
911919
912920 let $l = lands
913921 let $s = size($l)
914922 let $acc0 = $Tuple4(0, 0, 0, 0)
915923 func $f0_1 ($a,$i) = if (($i >= $s))
916924 then $a
917925 else oneLand($a, $l[$i])
918926
919927 func $f0_2 ($a,$i) = if (($i >= $s))
920928 then $a
921929 else throw("List size exceeds 100")
922930
923931 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 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)
924932 }
925933 else $Tuple4(0, 0, 0, 0)
926934 $Tuple2(nil, landsResult)
927935 }
928936
929937
930938
931939 @Callable(i)
932940 func stakeAcresCallback (addr) = if ((i.caller != addressFromStringValue(oldStakingContractStr)))
933941 then throw("Permission denied")
934942 else stakeUnstakeAcresInternal(i.payments[0].amount, addr, 0)
935943
936944
937945
938946 @Callable(i)
939947 func simulateStakeAcresREADONLY (address,addedAmount) = {
940948 let amountKey = keyAcresStakedAmtByUser(address)
941949 let newAcresAmount = (valueOrElse(getInteger(amountKey), 0) + addedAmount)
942950 let oldTotal = valueOrElse(getInteger(acresStakdTotalKey), 0)
943951 let userFpKey = keyFarmingPowerByUser(address)
944952 let oldFp = valueOrElse(getInteger(userFpKey), 0)
945953 let userBonus = valueOrElse(getInteger(acres2Contract, keyUserFullBonus(address)), 0)
946- let $t02351123598 = getFarmingPowerByAcresAndBonus(newAcresAmount, userBonus)
947- let newBonusedFp = $t02351123598._1
948- let ignored = $t02351123598._2
954+ let $t02353323620 = getFarmingPowerByAcresAndBonus(newAcresAmount, userBonus)
955+ let newBonusedFp = $t02353323620._1
956+ let ignored = $t02353323620._2
949957 let oldTotalFp = valueOrElse(getInteger(totalFarmingPowerKey), 0)
950958 let newTotalFp = ((oldTotalFp + newBonusedFp) - oldFp)
951959 $Tuple2(nil, [oldFp, newBonusedFp, oldTotalFp, newTotalFp])
952960 }
953961
954962
955963
956964 @Callable(i)
957965 func issuePickC1 (forAddress) = if ((i.caller != wlgContract))
958966 then throw("Permission denied")
959967 else issueNftCustom(idxNamePickaxe, idxKeyC, idxCollDig, idxRarityC, 1, idxDescrPickaxe, idxBonusTypeFp, addressFromStringValue(forAddress))
968+
969+
970+
971+@Callable(i)
972+func issueMittenP (forAddress) = if ((i.caller != this))
973+ then throw("Permission denied")
974+ else issueNftCustom(idxNameMitten, idxKeyMP, idxCollNNewYear, idxRarityP, 3, idxDescrMitten, idxBonusTypeFp, addressFromStringValue(forAddress))
960975
961976
962977
963978 @Callable(i)
964979 func stakeNFT () = {
965980 let prologActions = prolog(i)
966981 if ((size(i.payments) != 1))
967982 then throw("Exactly one payment required")
968983 else {
969984 let pmt = value(i.payments[0])
970985 if ((pmt.amount != 1))
971986 then throw("NFT token should be attached as payment")
972987 else {
973988 let assetId = value(pmt.assetId)
974989 let asset = value(assetInfo(assetId))
975990 let assetIdStr = toBase58String(assetId)
976991 let addr = toString(i.caller)
977992 let nftsKey = keyStakedNFTsByOwner(addr)
978993 let nftsStr = getString(nftsKey)
979994 let nfts = if (isDefined(nftsStr))
980995 then split_4C(value(nftsStr), "_")
981996 else nil
982997 if (containsElement(nfts, assetIdStr))
983998 then throw(("Your staked NFTs already contain " + assetIdStr))
984999 else if ((size(nfts) >= MAX_NFTS_STAKED_BY_USER))
9851000 then throw((("Your already staked max (" + toString(MAX_NFTS_STAKED_BY_USER)) + ") NFTs"))
9861001 else {
9871002 let listAction = StringEntry(nftsKey, makeString_2C((nfts :+ assetIdStr), "_"))
9881003 if ((asset.issuer == this))
9891004 then {
990- let $t02500725197 = stakeNftInternal(addr, assetIdStr, (bonusByDescription(value(asset.description)) * 10000), keyUserWlNftNumber(addr), keyWlNftTotalStaked, MAX_WL_NFTS)
991- let actions = $t02500725197._1
992- let wlgClaimedAmount = $t02500725197._2
1005+ let $t02532025510 = stakeNftInternal(addr, assetIdStr, (bonusByDescription(value(asset.description)) * 10000), keyUserWlNftNumber(addr), keyWlNftTotalStaked, MAX_WL_NFTS)
1006+ let actions = $t02532025510._1
1007+ let wlgClaimedAmount = $t02532025510._2
9931008 $Tuple2(((prologActions ++ actions) :+ listAction), wlgClaimedAmount)
9941009 }
9951010 else if ((isArkimalIssued(asset) == ""))
9961011 then throw("Only WavesLands and Arkimals NFT tokens are accepted")
9971012 else {
998- let $t02537825529 = stakeNftInternal(addr, assetIdStr, ARK_NFT_BONUS, keyUserArkNftNumber(addr), keyArkNftTotalStaked, MAX_ARK_NFTS)
999- let actions = $t02537825529._1
1000- let wlgClaimedAmount = $t02537825529._2
1013+ let $t02569125842 = stakeNftInternal(addr, assetIdStr, ARK_NFT_BONUS, keyUserArkNftNumber(addr), keyArkNftTotalStaked, MAX_ARK_NFTS)
1014+ let actions = $t02569125842._1
1015+ let wlgClaimedAmount = $t02569125842._2
10011016 $Tuple2(((prologActions ++ actions) :+ listAction), wlgClaimedAmount)
10021017 }
10031018 }
10041019 }
10051020 }
10061021 }
10071022
10081023
10091024
10101025 @Callable(i)
10111026 func unstakeNFT (assetIdStr) = {
10121027 let prologActions = prolog(i)
10131028 if ((size(i.payments) != 0))
10141029 then throw("No payments required")
10151030 else {
10161031 let assetId = fromBase58String(assetIdStr)
10171032 let addr = toString(i.caller)
10181033 let asset = value(assetInfo(assetId))
10191034 let timeKey = keyStakedTimeByAssetIdAndOwner(assetIdStr, addr)
10201035 if (!(isDefined(getInteger(timeKey))))
10211036 then throw((("NFT " + asset.name) + " is not staked by you"))
10221037 else {
10231038 let nftsKey = keyStakedNFTsByOwner(addr)
10241039 let nfts = split_4C(valueOrElse(getString(nftsKey), ""), "_")
10251040 let idx = indexOf(nfts, assetIdStr)
10261041 if (!(isDefined(idx)))
10271042 then throw(("Your staked NFTs don't contain " + assetIdStr))
10281043 else {
10291044 let listAction = if ((size(nfts) > 1))
10301045 then StringEntry(nftsKey, makeString_2C(removeByIndex(nfts, value(idx)), "_"))
10311046 else DeleteEntry(nftsKey)
10321047 let isWL = (asset.issuer == this)
10331048 if (isWL)
10341049 then {
10351050 let wlNftNumber = valueOrElse(getInteger(keyUserWlNftNumber(addr)), 0)
10361051 let bonusVal = (bonusByDescription(value(asset.description)) * 10000)
1037- let $t02669426773 = stakeUnstakeAcresInternal(0, addr, -(bonusVal))
1038- let actions = $t02669426773._1
1039- let wlgClaimedAmount = $t02669426773._2
1052+ let $t02700727086 = stakeUnstakeAcresInternal(0, addr, -(bonusVal))
1053+ let actions = $t02700727086._1
1054+ let wlgClaimedAmount = $t02700727086._2
10401055 $Tuple2(((((((actions :+ listAction) :+ IntegerEntry(keyUserWlNftNumber(addr), (wlNftNumber - 1))) :+ IntegerEntry(keyWlNftTotalStaked, max([0, (valueOrElse(getInteger(keyWlNftTotalStaked), 0) - 1)]))) :+ DeleteEntry(keyStakedTimeByAssetIdAndOwner(toBase58String(assetId), addr))) :+ ScriptTransfer(i.caller, 1, assetId)) ++ prologActions), wlgClaimedAmount)
10411056 }
10421057 else {
10431058 let arkimalName = isArkimalIssued(asset)
10441059 if ((arkimalName == ""))
10451060 then throw("Only WavesLands and Arkimals NFT tokens are accepted")
10461061 else {
10471062 let arkNftNumber = valueOrElse(getInteger(keyUserArkNftNumber(addr)), 0)
1048- let $t02743327517 = stakeUnstakeAcresInternal(0, addr, -(ARK_NFT_BONUS))
1049- let actions = $t02743327517._1
1050- let wlgClaimedAmount = $t02743327517._2
1063+ let $t02774627830 = stakeUnstakeAcresInternal(0, addr, -(ARK_NFT_BONUS))
1064+ let actions = $t02774627830._1
1065+ let wlgClaimedAmount = $t02774627830._2
10511066 $Tuple2((((((actions :+ listAction) :+ IntegerEntry(keyUserArkNftNumber(addr), (arkNftNumber - 1))) :+ DeleteEntry(keyStakedTimeByAssetIdAndOwner(toBase58String(assetId), addr))) :+ ScriptTransfer(i.caller, 1, assetId)) ++ prologActions), wlgClaimedAmount)
10521067 }
10531068 }
10541069 }
10551070 }
10561071 }
10571072 }
10581073
10591074
10601075
10611076 @Callable(i)
1062-func exchangeNFTs () = {
1063- let prologActions = prolog(i)
1064- if ((3 > size(i.payments)))
1065- then throw("Min one WLGOLD and 2 NFT payments allowed")
1066- else if ((size(i.payments) > 10))
1067- then throw("Max one WLGOLD and 9 NFT payments allowed")
1068- else {
1069- let addr = toString(i.caller)
1070- func addUp (acc,pmt) = {
1071- let assetId = valueOrErrorMessage(pmt.assetId, "WAVES payments not allowed")
1072- if ((assetId == wlgAssetId))
1073- then $Tuple4((acc._1 + pmt.amount), acc._2, acc._3, acc._4)
1074- else {
1075- let asset = value(assetInfo(assetId))
1076- if ((asset.issuer != this))
1077- then throw("Only WL-issued NFTs allowed")
1078- else {
1079- let rarityIx = rarityIdxByDescriprion(value(asset.description))
1080- if (if ((acc._4 > 0))
1081- then (rarityIx != acc._4)
1082- else false)
1083- then throw("You can exchange only NFTs of the same rarity")
1084- else {
1085- let bonusPerc = bonusByDescription(value(asset.description))
1086- $Tuple4(acc._1, (acc._2 + bonusPerc), (acc._3 :+ Burn(assetId, 1)), rarityIx)
1087- }
1088- }
1089- }
1090- }
1077+func exchangeNFTs () = if ((i.caller != this))
1078+ then throw("Temporary disabled")
1079+ else {
1080+ let prologActions = prolog(i)
1081+ if ((3 > size(i.payments)))
1082+ then throw("Min one WLGOLD and 2 NFT payments allowed")
1083+ else if ((size(i.payments) > 10))
1084+ then throw("Max one WLGOLD and 9 NFT payments allowed")
1085+ else {
1086+ let addr = toString(i.caller)
1087+ func addUp (acc,pmt) = {
1088+ let assetId = valueOrErrorMessage(pmt.assetId, "WAVES payments not allowed")
1089+ if ((assetId == wlgAssetId))
1090+ then $Tuple4((acc._1 + pmt.amount), acc._2, acc._3, acc._4)
1091+ else {
1092+ let asset = value(assetInfo(assetId))
1093+ if ((asset.issuer != this))
1094+ then throw("Only WL-issued NFTs allowed")
1095+ else {
1096+ let rarityIx = rarityIdxByDescriprion(value(asset.description))
1097+ if (if ((acc._4 > 0))
1098+ then (rarityIx != acc._4)
1099+ else false)
1100+ then throw("You can exchange only NFTs of the same rarity")
1101+ else {
1102+ let bonusPerc = bonusByDescription(value(asset.description))
1103+ $Tuple4(acc._1, (acc._2 + bonusPerc), (acc._3 :+ Burn(assetId, 1)), rarityIx)
1104+ }
1105+ }
1106+ }
1107+ }
10911108
1092- let $t02890629122 = {
1093- let $l = i.payments
1094- let $s = size($l)
1095- let $acc0 = $Tuple4(0, 0, nil, -1)
1096- func $f0_1 ($a,$i) = if (($i >= $s))
1097- then $a
1098- else addUp($a, $l[$i])
1109+ let $t02928129497 = {
1110+ let $l = i.payments
1111+ let $s = size($l)
1112+ let $acc0 = $Tuple4(0, 0, nil, -1)
1113+ func $f0_1 ($a,$i) = if (($i >= $s))
1114+ then $a
1115+ else addUp($a, $l[$i])
10991116
1100- func $f0_2 ($a,$i) = if (($i >= $s))
1101- then $a
1102- else throw("List size exceeds 10")
1117+ func $f0_2 ($a,$i) = if (($i >= $s))
1118+ then $a
1119+ else throw("List size exceeds 10")
11031120
1104- $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
1105- }
1106- let wlgFee = $t02890629122._1
1107- let totalBonus = $t02890629122._2
1108- let burnActions = $t02890629122._3
1109- let rarityIdx = $t02890629122._4
1110- let newRarityIdx = if ((rarityIdx == idxRarityC))
1111- then if ((rarityThresholds[idxThresholdC] > totalBonus))
1112- then idxRarityC
1113- else if ((rarityThresholds[idxThresholdU] > totalBonus))
1114- then idxRarityU
1115- else throw((("You can advance only one level of rarity, max total bonus " + toString(rarityThresholds[idxThresholdU])) + "%"))
1116- else if ((rarityIdx == idxRarityU))
1117- then if ((rarityThresholds[idxThresholdU] > totalBonus))
1118- then idxRarityU
1119- else if ((rarityThresholds[idxThresholdL] > totalBonus))
1120- then idxRarityL
1121- else throw((("You can advance only one level of rarity, max total bonus " + toString(rarityThresholds[idxThresholdL])) + "%"))
1122- else if ((rarityIdx == idxRarityL))
1123- then if ((rarityThresholds[idxThresholdL] > totalBonus))
1124- then idxRarityL
1125- else idxRarityE
1126- else if ((rarityIdx == idxRarityE))
1127- then idxRarityE
1128- else if ((rarityIdx == idxRarityP))
1129- then throw("You can't exchange NFTs of this rarity")
1130- else throw("Unknown rarity")
1131- let minWlgFee = fraction(totalBonus, MULT14, getWlgPrice(0))
1132- let change = (wlgFee - minWlgFee)
1133- let forTeam = (minWlgFee / 2)
1134- let wlgRemain = asInt(invoke(wlgContract, "burnWlgold", [(minWlgFee - forTeam)], nil))
1135- if ((0 > change))
1136- then throw((("You need to attach " + fixedPoint(minWlgFee, 8)) + " WLGOLD as fee"))
1137- else {
1138- let changeActions = if ((change > 0))
1139- then [ScriptTransfer(i.caller, change, wlgAssetId)]
1140- else nil
1141- let $t03065930820 = issueNftCustom(idxNamePickaxe, newRarityIdx, idxCollDig, newRarityIdx, totalBonus, idxDescrPickaxe, idxBonusTypeFp, i.caller)
1142- let issueNftActions = $t03065930820._1
1143- let nftAssetId = $t03065930820._2
1144- let burned = size(burnActions)
1145- let burnCounterActions = if ((burned == 0))
1146- then nil
1147- else [IntegerEntry(keyNftTotalBurned, (valueOrElse(getInteger(keyNftTotalBurned), 0) + burned))]
1148- $Tuple2((((((issueNftActions ++ burnActions) ++ burnCounterActions) ++ prologActions) ++ changeActions) :+ ScriptTransfer(addressFromStringValue(getStringValue(wlgContract, teamAddrKey)), forTeam, wlgAssetId)), $Tuple2(nftAssetId, wlgRemain))
1121+ $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
11491122 }
1150- }
1151- }
1152-
1153-
1154-
1155-@Callable(i)
1156-func openNftChest () = {
1157- let prologActions = prolog(i)
1158- if ((size(i.payments) != 1))
1159- then throw("exactly 1 payment must be attached")
1160- else {
1161- let pmt = i.payments[0]
1162- let wlgAmount = pmt.amount
1163- if (if (!(isDefined(pmt.assetId)))
1164- then true
1165- else (value(pmt.assetId) != wlgAssetId))
1166- then throw("WLGOLD payments only!")
1167- else {
1168- let minWlgFee = fraction(NFT_CHEST_PRICE_USDT, MULT8, getWlgPrice(0))
1169- let change = (wlgAmount - minWlgFee)
1123+ let wlgFee = $t02928129497._1
1124+ let totalBonus = $t02928129497._2
1125+ let burnActions = $t02928129497._3
1126+ let rarityIdx = $t02928129497._4
1127+ let newRarityIdx = if ((rarityIdx == idxRarityC))
1128+ then if ((rarityThresholds[idxThresholdC] > totalBonus))
1129+ then idxRarityC
1130+ else if ((rarityThresholds[idxThresholdU] > totalBonus))
1131+ then idxRarityU
1132+ else throw((("You can advance only one level of rarity, max total bonus " + toString(rarityThresholds[idxThresholdU])) + "%"))
1133+ else if ((rarityIdx == idxRarityU))
1134+ then if ((rarityThresholds[idxThresholdU] > totalBonus))
1135+ then idxRarityU
1136+ else if ((rarityThresholds[idxThresholdL] > totalBonus))
1137+ then idxRarityL
1138+ else throw((("You can advance only one level of rarity, max total bonus " + toString(rarityThresholds[idxThresholdL])) + "%"))
1139+ else if ((rarityIdx == idxRarityL))
1140+ then if ((rarityThresholds[idxThresholdL] > totalBonus))
1141+ then idxRarityL
1142+ else idxRarityE
1143+ else if ((rarityIdx == idxRarityE))
1144+ then idxRarityE
1145+ else if ((rarityIdx == idxRarityP))
1146+ then throw("You can't exchange NFTs of this rarity")
1147+ else throw("Unknown rarity")
1148+ let minWlgFee = fraction(totalBonus, MULT14, getWlgPrice(0))
1149+ let change = (wlgFee - minWlgFee)
11701150 let forTeam = (minWlgFee / 2)
11711151 let wlgRemain = asInt(invoke(wlgContract, "burnWlgold", [(minWlgFee - forTeam)], nil))
11721152 if ((0 > change))
11731153 then throw((("You need to attach " + fixedPoint(minWlgFee, 8)) + " WLGOLD as fee"))
11741154 else {
11751155 let changeActions = if ((change > 0))
11761156 then [ScriptTransfer(i.caller, change, wlgAssetId)]
11771157 else nil
1178- let addr = toString(i.caller)
1179- let finishKey = keyCommit(addr)
1180- let finishBlock = valueOrErrorMessage(getInteger(finishKey), "You have to commitForRandom() first!")
1181- if ((finishBlock > height))
1182- then throw(("Random number is not ready yet, wait until height = " + toString(finishBlock)))
1183- else {
1184- let entropy = value(value(blockInfoByHeight(finishBlock)).vrf)
1185- let salt = fromBase58String(split(valueOrElse(getString(keyCurWeekTxIdByUser(addr)), "42_DEFAULT"), "_")[1])
1186- let rand = getRandomNumber(100, salt, entropy)
1187- let $t03283933111 = if ((84 > rand))
1188- then $Tuple2(1, idxRarityC)
1189- else if ((98 > rand))
1190- then $Tuple2(5, idxRarityU)
1191- else $Tuple2(10, idxRarityL)
1192- let bonus = $t03283933111._1
1193- let rarityIdx = $t03283933111._2
1194- let $t03311433264 = issueNftCustom(idxNamePickaxe, rarityIdx, idxCollDig, rarityIdx, bonus, idxDescrPickaxe, idxBonusTypeFp, i.caller)
1195- let issueNftActions = $t03311433264._1
1196- let nftAssetId = $t03311433264._2
1197- $Tuple2(((((issueNftActions ++ prologActions) ++ changeActions) :+ ScriptTransfer(addressFromStringValue(getStringValue(wlgContract, teamAddrKey)), forTeam, wlgAssetId)) :+ DeleteEntry(finishKey)), $Tuple2(nftAssetId, wlgRemain))
1198- }
1158+ let $t03103431195 = issueNftCustom(idxNamePickaxe, newRarityIdx, idxCollDig, newRarityIdx, totalBonus, idxDescrPickaxe, idxBonusTypeFp, i.caller)
1159+ let issueNftActions = $t03103431195._1
1160+ let nftAssetId = $t03103431195._2
1161+ let burned = size(burnActions)
1162+ let burnCounterActions = if ((burned == 0))
1163+ then nil
1164+ else [IntegerEntry(keyNftTotalBurned, (valueOrElse(getInteger(keyNftTotalBurned), 0) + burned))]
1165+ $Tuple2((((((issueNftActions ++ burnActions) ++ burnCounterActions) ++ prologActions) ++ changeActions) :+ ScriptTransfer(addressFromStringValue(getStringValue(wlgContract, teamAddrKey)), forTeam, wlgAssetId)), $Tuple2(nftAssetId, wlgRemain))
11991166 }
12001167 }
1201- }
1202- }
1168+ }
12031169
12041170
12051171
12061172 @Callable(i)
1207-func commitForRandom () = {
1208- let prologActions = prolog(i)
1209- let addr = toString(i.caller)
1210- let finishKey = keyCommit(addr)
1211- if (isDefined(getInteger(finishKey)))
1212- then throw("You already commited for random, please use it")
1213- else {
1214- let finishBlock = (height + RANDOM_DELAY)
1215- $Tuple2(([IntegerEntry(finishKey, finishBlock)] ++ prologActions), finishBlock)
1216- }
1217- }
1173+func openNftChest () = if ((i.caller != this))
1174+ then throw("Temporary disabled")
1175+ else {
1176+ let prologActions = prolog(i)
1177+ if ((size(i.payments) != 1))
1178+ then throw("exactly 1 payment must be attached")
1179+ else {
1180+ let pmt = i.payments[0]
1181+ let wlgAmount = pmt.amount
1182+ if (if (!(isDefined(pmt.assetId)))
1183+ then true
1184+ else (value(pmt.assetId) != wlgAssetId))
1185+ then throw("WLGOLD payments only!")
1186+ else {
1187+ let minWlgFee = fraction(NFT_CHEST_PRICE_USDT, MULT8, getWlgPrice(0))
1188+ let change = (wlgAmount - minWlgFee)
1189+ let forTeam = (minWlgFee / 2)
1190+ let wlgRemain = asInt(invoke(wlgContract, "burnWlgold", [(minWlgFee - forTeam)], nil))
1191+ if ((0 > change))
1192+ then throw((("You need to attach " + fixedPoint(minWlgFee, 8)) + " WLGOLD as fee"))
1193+ else {
1194+ let changeActions = if ((change > 0))
1195+ then [ScriptTransfer(i.caller, change, wlgAssetId)]
1196+ else nil
1197+ let addr = toString(i.caller)
1198+ let finishKey = keyCommit(addr)
1199+ let finishBlock = valueOrErrorMessage(getInteger(finishKey), "You have to commitForRandom() first!")
1200+ if ((finishBlock > height))
1201+ then throw(("Random number is not ready yet, wait until height = " + toString(finishBlock)))
1202+ else {
1203+ let entropy = value(value(blockInfoByHeight(finishBlock)).vrf)
1204+ let salt = fromBase58String(split(valueOrElse(getString(keyCurWeekTxIdByUser(addr)), "42_DEFAULT"), "_")[1])
1205+ let rand = getRandomNumber(100, salt, entropy)
1206+ let $t03327633548 = if ((84 > rand))
1207+ then $Tuple2(1, idxRarityC)
1208+ else if ((98 > rand))
1209+ then $Tuple2(5, idxRarityU)
1210+ else $Tuple2(10, idxRarityL)
1211+ let bonus = $t03327633548._1
1212+ let rarityIdx = $t03327633548._2
1213+ let $t03355133701 = issueNftCustom(idxNamePickaxe, rarityIdx, idxCollDig, rarityIdx, bonus, idxDescrPickaxe, idxBonusTypeFp, i.caller)
1214+ let issueNftActions = $t03355133701._1
1215+ let nftAssetId = $t03355133701._2
1216+ $Tuple2(((((issueNftActions ++ prologActions) ++ changeActions) :+ ScriptTransfer(addressFromStringValue(getStringValue(wlgContract, teamAddrKey)), forTeam, wlgAssetId)) :+ DeleteEntry(finishKey)), $Tuple2(nftAssetId, wlgRemain))
1217+ }
1218+ }
1219+ }
1220+ }
1221+ }
1222+
1223+
1224+
1225+@Callable(i)
1226+func commitForRandom () = if ((i.caller != this))
1227+ then throw("Temporary disabled")
1228+ else {
1229+ let prologActions = prolog(i)
1230+ let addr = toString(i.caller)
1231+ let finishKey = keyCommit(addr)
1232+ if (isDefined(getInteger(finishKey)))
1233+ then throw("You already commited for random, please use it")
1234+ else {
1235+ let finishBlock = (height + RANDOM_DELAY)
1236+ $Tuple2(([IntegerEntry(finishKey, finishBlock)] ++ prologActions), finishBlock)
1237+ }
1238+ }
12181239
12191240
12201241
12211242 @Callable(i)
12221243 func drawDaylyPromo () = if ((i.caller != this))
12231244 then throw("Permission denied")
12241245 else {
12251246 let today = (height / DAY_BLOCKS)
12261247 let maxValue = valueOrElse(getInteger(keyTotalPromoTickets), 0)
12271248 if ((maxValue == 0))
12281249 then throw("No tickets to draw")
12291250 else {
12301251 let b = (today * DAY_BLOCKS)
12311252 let h = if ((b > VRF_OFFSET))
12321253 then b
12331254 else (b + VRF_OFFSET)
12341255 let entropy = value(value(blockInfoByHeight(h)).vrf)
12351256 let promoMap = valueOrElse(getString(keyPromoMap), "")
12361257 if ((promoMap == ""))
12371258 then throw("No participants")
12381259 else {
12391260 func singleDraw (ac,j) = if ((j >= promoNumPrizes))
12401261 then ac
12411262 else {
12421263 let rand = getRandomNumber(ac._1, ac._2, entropy)
12431264 let promoList = if ((ac._3 == ""))
12441265 then nil
12451266 else split_51C(ac._3, "_")
12461267 func countTickets (acc,el) = {
12471268 let parts = split(el, ":")
12481269 let addr = parts[0]
12491270 let tickets = parseIntValue(parts[1])
12501271 let newTotal = (acc._1 + tickets)
12511272 if (if ((acc._3 == ""))
12521273 then (newTotal > rand)
12531274 else false)
12541275 then $Tuple3(newTotal, tickets, addr)
12551276 else $Tuple3(newTotal, acc._2, acc._3)
12561277 }
12571278
12581279 let r = {
12591280 let $l = promoList
12601281 let $s = size($l)
12611282 let $acc0 = $Tuple3(0, 0, "")
12621283 func $f0_1 ($a,$i) = if (($i >= $s))
12631284 then $a
12641285 else countTickets($a, $l[$i])
12651286
12661287 func $f0_2 ($a,$i) = if (($i >= $s))
12671288 then $a
12681289 else throw("List size exceeds 200")
12691290
12701291 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 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)
12711292 }
12721293 let winner = r._3
12731294 if ((winner == ""))
12741295 then ac
12751296 else {
12761297 let mapParts = split_51C(ac._3, winner)
12771298 let newMap = if ((mapParts[0] == ""))
12781299 then drop(mapParts[1], 5)
12791300 else (dropRight(mapParts[0], 1) + drop(mapParts[1], 4))
1280- let stakeActions = invoke(this, "stakeAcresFor", [winner, promoAwardPerRound[j], true], nil)
1281- if ((stakeActions == stakeActions))
1301+ let winActions = if ((j == 0))
1302+ then invoke(this, "issueMittenP", [winner], nil)
1303+ else invoke(this, "stakeAcresFor", [winner, promoAwardPerRound[j], true], nil)
1304+ if ((winActions == winActions))
12821305 then {
12831306 let newSalt = fromBase58String(split(valueOrElse(getString(keyCurWeekTxIdByUser(winner)), "0_DEFAULT"), "_")[1])
12841307 $Tuple4((ac._1 - r._2), newSalt, newMap, (ac._4 :+ winner))
12851308 }
12861309 else throw("Strict value is not equal to itself.")
12871310 }
12881311 }
12891312
12901313 let draws = {
1291- let $l = [0, 1, 2]
1314+ let $l = [0, 1, 2, 3, 4, 5]
12921315 let $s = size($l)
12931316 let $acc0 = $Tuple4(maxValue, i.transactionId, promoMap, nil)
12941317 func $f0_1 ($a,$i) = if (($i >= $s))
12951318 then $a
12961319 else singleDraw($a, $l[$i])
12971320
12981321 func $f0_2 ($a,$i) = if (($i >= $s))
12991322 then $a
1300- else throw("List size exceeds 3")
1323+ else throw("List size exceeds 6")
13011324
1302- $f0_2($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3)
1325+ $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
13031326 }
13041327 $Tuple2([StringEntry(keyPromoMap, draws._3), IntegerEntry(keyTotalPromoTickets, draws._1), StringEntry(keyDailyWinners(today), makeString(draws._4, "_"))], 0)
13051328 }
13061329 }
13071330 }
13081331
13091332

github/deemru/w8io/169f3d6 
179.49 ms