tx · 4AXeDRPKs9YfeFWjmdCBfQN7YmvdHSgVLqbPBE97G5KK

3NBPx1Fciu3JQNEGZ21jSnTdutLNGGBUSXh:  -0.03800000 Waves

2024.12.14 02:13 [3413448] smart account 3NBPx1Fciu3JQNEGZ21jSnTdutLNGGBUSXh > SELF 0.00000000 Waves

{ "type": 13, "id": "4AXeDRPKs9YfeFWjmdCBfQN7YmvdHSgVLqbPBE97G5KK", "fee": 3800000, "feeAssetId": null, "timestamp": 1734131611273, "version": 2, "chainId": 84, "sender": "3NBPx1Fciu3JQNEGZ21jSnTdutLNGGBUSXh", "senderPublicKey": "3QtfC1XbLZXdeawMDeSERy9vvjUmj1XYd2GFmrvx7pWQ", "proofs": [ "2tmxtkVeaaYM1fW53Zf28UQkyLdRSFLWLAxcCsm9jMdx5yCAfxiF2ihKm1qFNmbuAQ2bKzfjpQVDjekum2jKa35Q" ], "script": "base64:BgJSCAISABIECgIICBIDCgEEEgMKAQESABIFCgMIAQQSABIDCgEBEgASBAoCCAESABIDCgEIEgMKAQgSBAoCCAESAwoBCBIAEgMKAQgSABIAEgASAIwBAANTRVACAl9fAAVNVUxUNgDAhD0ABU1VTFQ3AICt4gQABU1VTFQ4AIDC1y8ABk1VTFQxNACAgOmDsd4WAApEQVlfTUlMTElTAIC4mSkAFVVTRFQyQUNSRVNfTVVMVElQTElFUgAKABNPTkVfUEVSQ0VOVF9ESVZJU09SAGQADFJBTkRPTV9ERUxBWQACABRORlRfQ0hFU1RfUFJJQ0VfVVNEVADAlrECAAVjaGFpbgkAyQECCQDKAQIIBQR0aGlzBWJ5dGVzAAEAAQAXREFJTFlfUFJPTU9fU1RBUlRfQkxPQ0sEByRtYXRjaDAFBWNoYWluAwkAAAIBAVcFByRtYXRjaDAAgO+RAgMJAAACAQFUBQckbWF0Y2gwAMCm0AEJAAIBAg1Vbmtub3duIGNoYWluABVEQUlMWV9QUk9NT19FTkRfQkxPQ0sEByRtYXRjaDAFBWNoYWluAwkAAAIBAVcFByRtYXR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zECBQUkYWNjMAAAAAEAAgADCQCUCgIJAMwIAgkBC1N0cmluZ0VudHJ5AgULa2V5UHJvbW9NYXAIBQVkcmF3cwJfMwkAzAgCCQEMSW50ZWdlckVudHJ5AgUUa2V5VG90YWxQcm9tb1RpY2tldHMIBQVkcmF3cwJfMQkAzAgCCQELU3RyaW5nRW50cnkCCQEPa2V5RGFpbHlXaW5uZXJzAQUFdG9kYXkJALkJAggFBWRyYXdzAl80AgFfBQNuaWwAAAAaiQXa", "height": 3413448, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GRvh9pRReqPEmcr6A8J1gyRWRFE2nT5GCBaUP1bJG8hu Next: none Diff:
OldNewDifferences
588588
589589 let promoAwardPerRound = [50000000, 25000000, 25000000]
590590
591-func stakeAcresFor (address,amt,shouldCleanPromo) = {
592- let $t01122511301 = stakeUnstakeAcresInternal(amt, address, 0)
593- let actions = $t01122511301._1
594- let wlgClaimedAmount = $t01122511301._2
591+func stakeAcresForInternal (address,amt,shouldCleanPromo) = {
592+ let $t01123311309 = stakeUnstakeAcresInternal(amt, address, 0)
593+ let actions = $t01123311309._1
594+ let wlgClaimedAmount = $t01123311309._2
595595 let promoActions = if (if ((height >= DAILY_PROMO_START_BLOCK))
596596 then (DAILY_PROMO_END_BLOCK > height)
597597 else false)
691691 if ((arbReleaseTime > lastBlock.timestamp))
692692 then throw(("You traded some WLGOLD, cannot unstake until " + toString(arbReleaseTime)))
693693 else {
694- let $t01530415384 = stakeUnstakeAcresInternal(-(amount), address, 0)
695- let actions = $t01530415384._1
696- let wlgClaimedAmount = $t01530415384._2
694+ let $t01531215392 = stakeUnstakeAcresInternal(-(amount), address, 0)
695+ let actions = $t01531215392._1
696+ let wlgClaimedAmount = $t01531215392._2
697697 $Tuple2(((actions :+ ScriptTransfer(i.caller, amount, acresAssetId)) ++ prologActions), wlgClaimedAmount)
698698 }
699699 }
716716 else (value(pmt.assetId) != acresAssetId))
717717 then throw("ACRES payments only!")
718718 else {
719- let $t01583515908 = stakeAcresFor(address, amt, false)
720- let stakeActions = $t01583515908._1
721- let wlgClaimedAmount = $t01583515908._2
719+ let $t01584315924 = stakeAcresForInternal(address, amt, false)
720+ let stakeActions = $t01584315924._1
721+ let wlgClaimedAmount = $t01584315924._2
722722 $Tuple2((stakeActions ++ prologActions), wlgClaimedAmount)
723723 }
724724 }
725725 }
726+
727+
728+
729+@Callable(i)
730+func stakeAcresFor (address,amt,shouldCleanPromo) = if ((i.caller != this))
731+ then throw("Permission denied")
732+ else stakeAcresForInternal(address, amt, shouldCleanPromo)
726733
727734
728735
782789 then throw((("Min payment should be " + fixedPoint(MULT7, 8)) + " ACRES"))
783790 else {
784791 let addr = toString(i.caller)
785- let $t01777017818 = getSwapLimitAcres()
786- let limitAction = $t01777017818._1
787- let maxUsdt = $t01777017818._2
792+ let $t01799618044 = getSwapLimitAcres()
793+ let limitAction = $t01799618044._1
794+ let maxUsdt = $t01799618044._2
788795 let maxAcres = (maxUsdt * USDT2ACRES_MULTIPLIER)
789796 if ((acresAmount > maxAcres))
790797 then throw((("You can sell max " + fixedPoint(maxAcres, 8)) + " ACRES"))
800807
801808 @Callable(i)
802809 func sellAcresREADONLY (address,acresAmount) = {
803- let $t01831418362 = getSwapLimitAcres()
804- let limitAction = $t01831418362._1
805- let maxUsdt = $t01831418362._2
810+ let $t01854018588 = getSwapLimitAcres()
811+ let limitAction = $t01854018588._1
812+ let maxUsdt = $t01854018588._2
806813 let usdtAmount = ((acresAmount / USDT2ACRES_MULTIPLIER) / 2)
807814 $Tuple2(nil, [usdtAmount, MULT7, (maxUsdt * USDT2ACRES_MULTIPLIER), 0])
808815 }
863870 let req = invoke(oldAcresAddress, "requestAcresCallback", [(((rr._1 + rr._2) + rr._3) + rr._4)], nil)
864871 if ((req == req))
865872 then {
866- let $t02087621014 = issueNftCustom(idxNameShovel, idxKeyP, idxCollDig, idxRarityP, 3, idxDescrShovel, idxBonusTypeFp, i.caller)
867- let nftActions = $t02087621014._1
868- let nftAssetId = $t02087621014._2
873+ let $t02110221240 = issueNftCustom(idxNameShovel, idxKeyP, idxCollDig, idxRarityP, 3, idxDescrShovel, idxBonusTypeFp, i.caller)
874+ let nftActions = $t02110221240._1
875+ let nftAssetId = $t02110221240._2
869876 $Tuple6(rr._1, rr._2, rr._3, rr._4, rr._5, nftActions)
870877 }
871878 else throw("Strict value is not equal to itself.")
936943 let userFpKey = keyFarmingPowerByUser(address)
937944 let oldFp = valueOrElse(getInteger(userFpKey), 0)
938945 let userBonus = valueOrElse(getInteger(acres2Contract, keyUserFullBonus(address)), 0)
939- let $t02328523372 = getFarmingPowerByAcresAndBonus(newAcresAmount, userBonus)
940- let newBonusedFp = $t02328523372._1
941- let ignored = $t02328523372._2
946+ let $t02351123598 = getFarmingPowerByAcresAndBonus(newAcresAmount, userBonus)
947+ let newBonusedFp = $t02351123598._1
948+ let ignored = $t02351123598._2
942949 let oldTotalFp = valueOrElse(getInteger(totalFarmingPowerKey), 0)
943950 let newTotalFp = ((oldTotalFp + newBonusedFp) - oldFp)
944951 $Tuple2(nil, [oldFp, newBonusedFp, oldTotalFp, newTotalFp])
980987 let listAction = StringEntry(nftsKey, makeString_2C((nfts :+ assetIdStr), "_"))
981988 if ((asset.issuer == this))
982989 then {
983- let $t02478124971 = stakeNftInternal(addr, assetIdStr, (bonusByDescription(value(asset.description)) * 10000), keyUserWlNftNumber(addr), keyWlNftTotalStaked, MAX_WL_NFTS)
984- let actions = $t02478124971._1
985- let wlgClaimedAmount = $t02478124971._2
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
986993 $Tuple2(((prologActions ++ actions) :+ listAction), wlgClaimedAmount)
987994 }
988995 else if ((isArkimalIssued(asset) == ""))
989996 then throw("Only WavesLands and Arkimals NFT tokens are accepted")
990997 else {
991- let $t02515225303 = stakeNftInternal(addr, assetIdStr, ARK_NFT_BONUS, keyUserArkNftNumber(addr), keyArkNftTotalStaked, MAX_ARK_NFTS)
992- let actions = $t02515225303._1
993- let wlgClaimedAmount = $t02515225303._2
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
9941001 $Tuple2(((prologActions ++ actions) :+ listAction), wlgClaimedAmount)
9951002 }
9961003 }
10271034 then {
10281035 let wlNftNumber = valueOrElse(getInteger(keyUserWlNftNumber(addr)), 0)
10291036 let bonusVal = (bonusByDescription(value(asset.description)) * 10000)
1030- let $t02646826547 = stakeUnstakeAcresInternal(0, addr, -(bonusVal))
1031- let actions = $t02646826547._1
1032- let wlgClaimedAmount = $t02646826547._2
1037+ let $t02669426773 = stakeUnstakeAcresInternal(0, addr, -(bonusVal))
1038+ let actions = $t02669426773._1
1039+ let wlgClaimedAmount = $t02669426773._2
10331040 $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)
10341041 }
10351042 else {
10381045 then throw("Only WavesLands and Arkimals NFT tokens are accepted")
10391046 else {
10401047 let arkNftNumber = valueOrElse(getInteger(keyUserArkNftNumber(addr)), 0)
1041- let $t02720727291 = stakeUnstakeAcresInternal(0, addr, -(ARK_NFT_BONUS))
1042- let actions = $t02720727291._1
1043- let wlgClaimedAmount = $t02720727291._2
1048+ let $t02743327517 = stakeUnstakeAcresInternal(0, addr, -(ARK_NFT_BONUS))
1049+ let actions = $t02743327517._1
1050+ let wlgClaimedAmount = $t02743327517._2
10441051 $Tuple2((((((actions :+ listAction) :+ IntegerEntry(keyUserArkNftNumber(addr), (arkNftNumber - 1))) :+ DeleteEntry(keyStakedTimeByAssetIdAndOwner(toBase58String(assetId), addr))) :+ ScriptTransfer(i.caller, 1, assetId)) ++ prologActions), wlgClaimedAmount)
10451052 }
10461053 }
10821089 }
10831090 }
10841091
1085- let $t02868028896 = {
1092+ let $t02890629122 = {
10861093 let $l = i.payments
10871094 let $s = size($l)
10881095 let $acc0 = $Tuple4(0, 0, nil, -1)
10961103
10971104 $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)
10981105 }
1099- let wlgFee = $t02868028896._1
1100- let totalBonus = $t02868028896._2
1101- let burnActions = $t02868028896._3
1102- let rarityIdx = $t02868028896._4
1106+ let wlgFee = $t02890629122._1
1107+ let totalBonus = $t02890629122._2
1108+ let burnActions = $t02890629122._3
1109+ let rarityIdx = $t02890629122._4
11031110 let newRarityIdx = if ((rarityIdx == idxRarityC))
11041111 then if ((rarityThresholds[idxThresholdC] > totalBonus))
11051112 then idxRarityC
11311138 let changeActions = if ((change > 0))
11321139 then [ScriptTransfer(i.caller, change, wlgAssetId)]
11331140 else nil
1134- let $t03043330594 = issueNftCustom(idxNamePickaxe, newRarityIdx, idxCollDig, newRarityIdx, totalBonus, idxDescrPickaxe, idxBonusTypeFp, i.caller)
1135- let issueNftActions = $t03043330594._1
1136- let nftAssetId = $t03043330594._2
1141+ let $t03065930820 = issueNftCustom(idxNamePickaxe, newRarityIdx, idxCollDig, newRarityIdx, totalBonus, idxDescrPickaxe, idxBonusTypeFp, i.caller)
1142+ let issueNftActions = $t03065930820._1
1143+ let nftAssetId = $t03065930820._2
11371144 let burned = size(burnActions)
11381145 let burnCounterActions = if ((burned == 0))
11391146 then nil
11771184 let entropy = value(value(blockInfoByHeight(finishBlock)).vrf)
11781185 let salt = fromBase58String(split(valueOrElse(getString(keyCurWeekTxIdByUser(addr)), "42_DEFAULT"), "_")[1])
11791186 let rand = getRandomNumber(100, salt, entropy)
1180- let $t03261332885 = if ((84 > rand))
1187+ let $t03283933111 = if ((84 > rand))
11811188 then $Tuple2(1, idxRarityC)
11821189 else if ((98 > rand))
11831190 then $Tuple2(5, idxRarityU)
11841191 else $Tuple2(10, idxRarityL)
1185- let bonus = $t03261332885._1
1186- let rarityIdx = $t03261332885._2
1187- let $t03288833038 = issueNftCustom(idxNamePickaxe, rarityIdx, idxCollDig, rarityIdx, bonus, idxDescrPickaxe, idxBonusTypeFp, i.caller)
1188- let issueNftActions = $t03288833038._1
1189- let nftAssetId = $t03288833038._2
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
11901197 $Tuple2(((((issueNftActions ++ prologActions) ++ changeActions) :+ ScriptTransfer(addressFromStringValue(getStringValue(wlgContract, teamAddrKey)), forTeam, wlgAssetId)) :+ DeleteEntry(finishKey)), $Tuple2(nftAssetId, wlgRemain))
11911198 }
11921199 }
12701277 let newMap = if ((mapParts[0] == ""))
12711278 then drop(mapParts[1], 5)
12721279 else (dropRight(mapParts[0], 1) + drop(mapParts[1], 4))
1273- let $t03558435735 = stakeAcresFor(winner, promoAwardPerRound[j], true)
1274- let stakeActions = $t03558435735._1
1275- let ignoredWlgClaimedAmount = $t03558435735._2
1276- let newSalt = fromBase58String(split(valueOrElse(getString(keyCurWeekTxIdByUser(winner)), "0_DEFAULT"), "_")[1])
1277- $Tuple5((ac._1 - r._2), newSalt, newMap, (ac._4 ++ stakeActions), (ac._5 :+ winner))
1280+ let stakeActions = invoke(this, "stakeAcresFor", [winner, promoAwardPerRound[j], true], nil)
1281+ if ((stakeActions == stakeActions))
1282+ then {
1283+ let newSalt = fromBase58String(split(valueOrElse(getString(keyCurWeekTxIdByUser(winner)), "0_DEFAULT"), "_")[1])
1284+ $Tuple4((ac._1 - r._2), newSalt, newMap, (ac._4 :+ winner))
1285+ }
1286+ else throw("Strict value is not equal to itself.")
12781287 }
12791288 }
12801289
12811290 let draws = {
12821291 let $l = [0, 1, 2]
12831292 let $s = size($l)
1284- let $acc0 = $Tuple5(maxValue, i.transactionId, promoMap, nil, nil)
1293+ let $acc0 = $Tuple4(maxValue, i.transactionId, promoMap, nil)
12851294 func $f0_1 ($a,$i) = if (($i >= $s))
12861295 then $a
12871296 else singleDraw($a, $l[$i])
12921301
12931302 $f0_2($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3)
12941303 }
1295- $Tuple2((((draws._4 :+ StringEntry(keyPromoMap, draws._3)) :+ IntegerEntry(keyTotalPromoTickets, draws._1)) :+ StringEntry(keyDailyWinners(today), makeString(draws._5, "_"))), 0)
1304+ $Tuple2([StringEntry(keyPromoMap, draws._3), IntegerEntry(keyTotalPromoTickets, draws._1), StringEntry(keyDailyWinners(today), makeString(draws._4, "_"))], 0)
12961305 }
12971306 }
12981307 }
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
194194 func asInt (v) = match v {
195195 case n: Int =>
196196 n
197197 case _ =>
198198 throw("fail to cast into Int")
199199 }
200200
201201
202202 func asTuple5Ints (val) = match val {
203203 case t: (Int, Int, Int, Int, Int) =>
204204 t
205205 case _ =>
206206 throw("fail to cast into (Int, Int, Int, Int, Int)")
207207 }
208208
209209
210210 func asTuple4Ints (val) = match val {
211211 case t: (Int, Int, Int, Int) =>
212212 t
213213 case _ =>
214214 throw("fail to cast into (Int, Int, Int, Int)")
215215 }
216216
217217
218218 func asTuple3Ints (val) = match val {
219219 case t: (Int, Int, Int) =>
220220 t
221221 case _ =>
222222 throw("fail to cast into (Int, Int, Int)")
223223 }
224224
225225
226226 func asTuple2Ints (val) = match val {
227227 case t: (Int, Int) =>
228228 t
229229 case _ =>
230230 throw("fail to cast into (Int, Int)")
231231 }
232232
233233
234234 func fixedPoint (val,decimals) = {
235235 let tenPow = pow(10, 0, decimals, 0, 0, DOWN)
236236 let lowPart = toString((val % tenPow))
237237 let zeroes = drop(toString(tenPow), (1 + size(lowPart)))
238238 (((toString((val / tenPow)) + ".") + zeroes) + lowPart)
239239 }
240240
241241
242242 func getRandomNumber (maxValue,salt,entropy) = if ((0 >= maxValue))
243243 then throw("maxValue should be > 0")
244244 else {
245245 let randomHash = sha256_16Kb((salt + entropy))
246246 (toInt(randomHash) % maxValue)
247247 }
248248
249249
250250 func padL (val,len) = {
251251 let valS = toString(val)
252252 let zeroes = drop(toString(pow(10, 0, (len - size(valS)), 0, 0, DOWN)), 1)
253253 (zeroes + valS)
254254 }
255255
256256
257257 let M6_ = 1000000
258258
259259 let M8_ = 100000000
260260
261261 let wlgIssuedAmtKey = "wlg_issuedAmount"
262262
263263 let zbIssuedAmtKey = "zbill_issuedAmount"
264264
265265 func keyAcresStakedAmtByUser (addr) = ("acresStakedAmountByUser_" + addr)
266266
267267
268268 func keyFarmingPowerByUser (addr) = ("farmingPowerByUser_" + addr)
269269
270270
271271 let acresStakdTotalKey = "acresStakedAmountTotal"
272272
273273 let totalFarmingPowerKey = "totalFarmingPower"
274274
275275 let MAX_WL_NFTS = 3
276276
277277 let MAX_ARK_NFTS = 1
278278
279279 let ARK_NFT_BONUS = 5000
280280
281281 let MAX_NFTS_STAKED_BY_USER = 4
282282
283283 let keyNftTotalIssued = "nftTotalIssued"
284284
285285 let keyNftTotalBurned = "nftTotalBurned"
286286
287287 let keyWlNftTotalStaked = "WlNftTotalStaked"
288288
289289 let keyArkNftTotalStaked = "ArkNftTotalStaked"
290290
291291 func keyNftNumberByAssetId (assetId) = ("nftNumberByAssetId_" + assetId)
292292
293293
294294 func keyUserWlNftNumber (addr) = ("userWlNftNumber_" + addr)
295295
296296
297297 func keyUserArkNftNumber (addr) = ("userArkNftNumber_" + addr)
298298
299299
300300 func keyUserFullBonus (addr) = ("userFullBonus_" + addr)
301301
302302
303303 let levelAcres = [0, 10, 20, 40, 80, 150, 250, 400, 700, 1000]
304304
305305 func getLevelByAcres (acres) = {
306306 let acr = ((acres + 99999999) / M8_)
307307 func checker (acc,item) = if ((item >= acr))
308308 then acc
309309 else (acc + 1)
310310
311311 let $l = levelAcres
312312 let $s = size($l)
313313 let $acc0 = 0
314314 func $f0_1 ($a,$i) = if (($i >= $s))
315315 then $a
316316 else checker($a, $l[$i])
317317
318318 func $f0_2 ($a,$i) = if (($i >= $s))
319319 then $a
320320 else throw("List size exceeds 10")
321321
322322 $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)
323323 }
324324
325325
326326 func getFarmingPowerByAcres (acres) = ((acres * 20) * (getLevelByAcres(acres) + 4))
327327
328328
329329 func getFarmingPowerByAcresAndBonus (acres,bonus6) = {
330330 let notBonused = getFarmingPowerByAcres(acres)
331331 $Tuple2(fraction(notBonused, (M6_ + bonus6), M6_), notBonused)
332332 }
333333
334334
335335 let teamAddrKey = "teamAddr"
336336
337337 func keyLastWlgTradeTimeByUser (addr) = ("lastArbTimeUser_" + addr)
338338
339339
340340 let OLD_STAKING_DEADL = 1733346000000
341341
342342 let MAX_LANDS_TO_CONVERT = 14
343343
344344 let keyLastAcresSellTime = "lastAcresSellTime"
345345
346346 let keyLastLimitLeft = "lastLimitLeft"
347347
348348 let names = ["Gold shovel", "Pickaxe"]
349349
350350 let descriptions = ["Reward for early birds", "Increases FarmPower"]
351351
352352 let idxDescrShovel = 0
353353
354354 let idxDescrPickaxe = 1
355355
356356 let rarityThresholds = [5, 10, 20]
357357
358358 let idxThresholdC = 0
359359
360360 let idxThresholdU = 1
361361
362362 let idxThresholdL = 2
363363
364364 let namez = ["SHOVEL", "PICKAXE"]
365365
366366 let idxNameShovel = 0
367367
368368 let idxNamePickaxe = 1
369369
370370 let contentKeyz = ["contentPickaxeC", "contentPickaxeU", "contentPickaxeL", "contentPickaxeE", "contentShovelP"]
371371
372372 let idxKeyC = 0
373373
374374 let idxKeyP = 4
375375
376376 let rarityNames = ["Common", "Uncommon", "Legendary", "Epic", "Promo"]
377377
378378 let idxRarityC = 0
379379
380380 let idxRarityU = 1
381381
382382 let idxRarityL = 2
383383
384384 let idxRarityE = 3
385385
386386 let idxRarityP = 4
387387
388388 let collectionz = ["Digging tools"]
389389
390390 let idxCollDig = 0
391391
392392 let bonusTypez = ["FarmPower"]
393393
394394 let idxBonusTypeFp = 0
395395
396396 func prolog (i) = if (if ((i.originCaller != rest2Contract))
397397 then valueOrElse(getBoolean(keyBlocked()), false)
398398 else false)
399399 then throw("Contracts are under maintenance")
400400 else {
401401 let addr = toString(i.originCaller)
402402 let week = (height / WEEK_BLOCKS)
403403 let lastWeekKey = keyLastWeekTxIdByUser(addr)
404404 let lastWeekTxIdByUser = getString(lastWeekKey)
405405 let txId = toBase58String(i.transactionId)
406406 let wtx = ((toString(week) + "_") + txId)
407407 let curWeekKey = keyCurWeekTxIdByUser(addr)
408408 if (isDefined(lastWeekTxIdByUser))
409409 then {
410410 let lastWeekTx = split(value(lastWeekTxIdByUser), "_")
411411 if ((lastWeekTx[0] == toString(week)))
412412 then [StringEntry(lastWeekKey, wtx), StringEntry(curWeekKey, wtx)]
413413 else if ((lastWeekTx[0] == toString((week - 1))))
414414 then [StringEntry(curWeekKey, wtx)]
415415 else {
416416 let curWeekTxIdByUser = getStringValue(curWeekKey)
417417 let curWeekTx = split(curWeekTxIdByUser, "_")
418418 if ((curWeekTx[0] == toString(week)))
419419 then [StringEntry(curWeekKey, wtx)]
420420 else [StringEntry(lastWeekKey, curWeekTxIdByUser), StringEntry(curWeekKey, wtx)]
421421 }
422422 }
423423 else [StringEntry(lastWeekKey, wtx), StringEntry(curWeekKey, wtx)]
424424 }
425425
426426
427427 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) + "\"}")
428428
429429
430430 func issueNftCustom (nameIdx,contKeyIdx,collIdx,rarityIdx,bonusPerc,descrIdx,bonusTypeIdx,addr) = {
431431 let nftSerial = valueOrElse(getInteger(keyNftTotalIssued), 0)
432432 let rarity = rarityNames[rarityIdx]
433433 let name = (((namez[nameIdx] + "-") + take(rarity, 1)) + toString(bonusPerc))
434434 let issue = Issue(name, createNftDescrCustom(contentKeyz[contKeyIdx], nftSerial, collectionz[collIdx], names[nameIdx], descriptions[descrIdx], rarityNames[rarityIdx], bonusPerc, bonusTypez[bonusTypeIdx]), 1, 0, false)
435435 let nftAssetId = calculateAssetId(issue)
436436 $Tuple2([issue, IntegerEntry(keyNftTotalIssued, (nftSerial + 1)), IntegerEntry(keyNftNumberByAssetId(toBase58String(nftAssetId)), nftSerial), ScriptTransfer(addr, 1, nftAssetId)], nftAssetId)
437437 }
438438
439439
440440 func bonusByDescription (descr) = if (!(contains(descr, "\"bonusType\": \"FarmPower\"")))
441441 then throw(("NFT is not supported: " + descr))
442442 else {
443443 let bonusStr = split_4C(split_4C(descr, "\"bonus\":")[1], ",")[0]
444444 parseIntValue(drop(bonusStr, (valueOrElse(lastIndexOf(bonusStr, " "), -1) + 1)))
445445 }
446446
447447
448448 func rarityIdxByDescriprion (descr) = if (!(contains(descr, "\"rare\"")))
449449 then throw(("NFT is not supported: " + descr))
450450 else {
451451 let rarityStr = split_4C(split_4C(split_4C(descr, "\"rare\"")[1], ",")[0], "\"")[1]
452452 value(indexOf(rarityNames, rarityStr))
453453 }
454454
455455
456456 func stakeUnstakeAcresInternal (amt,address,bonusDelta) = if (if ((amt == 0))
457457 then (bonusDelta == 0)
458458 else false)
459459 then throw("Nothing to do")
460460 else {
461461 let wlgResult = invoke(wlgContract, "onStakeUnstakeLand", [address], nil)
462462 if ((wlgResult == wlgResult))
463463 then {
464464 let now = lastBlock.timestamp
465465 let timeKey = keyAcresStakedTimeByUser(address)
466466 let amountKey = keyAcresStakedAmtByUser(address)
467467 let oldAcresAmount = valueOrElse(getInteger(amountKey), 0)
468468 if (if ((0 > amt))
469469 then (0 > (oldAcresAmount + amt))
470470 else false)
471471 then throw(((("You have only " + fixedPoint(oldAcresAmount, 8)) + " ACRES staked, tried to unstake ") + fixedPoint(-(amt), 8)))
472472 else {
473473 let newAcresAmount = (oldAcresAmount + amt)
474474 let oldTotal = valueOrElse(getInteger(acresStakdTotalKey), 0)
475475 let userFpKey = keyFarmingPowerByUser(address)
476476 let oldFp = valueOrElse(getInteger(userFpKey), 0)
477477 let bonusKey = keyUserFullBonus(address)
478478 let oldBonus = valueOrElse(getInteger(acres2Contract, bonusKey), 0)
479479 if (if ((0 > bonusDelta))
480480 then (0 > (oldBonus + bonusDelta))
481481 else false)
482482 then throw((((("You have only " + fixedPoint(oldBonus, 4)) + "% bonus, and tried to unstake ") + fixedPoint(-(bonusDelta), 4)) + "%"))
483483 else {
484484 let $t062996398 = getFarmingPowerByAcresAndBonus(newAcresAmount, (oldBonus + bonusDelta))
485485 let newBonusedFp = $t062996398._1
486486 let ignored = $t062996398._2
487487 let oldTotalFp = valueOrElse(getInteger(totalFarmingPowerKey), 0)
488488 let acresActions = if ((amt == 0))
489489 then nil
490490 else [IntegerEntry(amountKey, newAcresAmount), IntegerEntry(acresStakdTotalKey, (oldTotal + amt))]
491491 let bonusActions = if ((bonusDelta == 0))
492492 then nil
493493 else [IntegerEntry(bonusKey, (oldBonus + bonusDelta))]
494494 $Tuple2(((((acresActions ++ bonusActions) :+ IntegerEntry(timeKey, lastBlock.timestamp)) :+ IntegerEntry(userFpKey, newBonusedFp)) :+ IntegerEntry(totalFarmingPowerKey, ((oldTotalFp + newBonusedFp) - oldFp))), wlgResult)
495495 }
496496 }
497497 }
498498 else throw("Strict value is not equal to itself.")
499499 }
500500
501501
502502 func getWlgPrice (usdtBalanceCorrection) = {
503503 let issuedAmount = valueOrErrorMessage(getInteger(wlgContract, wlgIssuedAmtKey), "WLGOLD is not issued yet")
504504 let wlgUsd = assetBalance(wlgContract, usdtAssetId)
505505 let acres2Usd = (assetBalance(acres2Contract, usdtAssetId) - usdtBalanceCorrection)
506506 let investFundTotal = (assetBalance(investFundContract, usdtAssetId) + valueOrElse(getInteger(investFundContract, zbIssuedAmtKey), 0))
507507 let totalFundsUsd = ((acres2Usd + wlgUsd) + investFundTotal)
508508 fraction(totalFundsUsd, MULT8, issuedAmount)
509509 }
510510
511511
512512 func getSwapLimitAcres () = {
513513 let wlgUsd = assetBalance(wlgContract, usdtAssetId)
514514 let acres2Usd = assetBalance(this, usdtAssetId)
515515 let investFundTotal = (assetBalance(investFundContract, usdtAssetId) + valueOrElse(getInteger(investFundContract, zbIssuedAmtKey), 0))
516516 let defaultLimit = (((acres2Usd + wlgUsd) + investFundTotal) / ONE_PERCENT_DIVISOR)
517517 let lastLimitLeft = valueOrElse(getInteger(keyLastLimitLeft), defaultLimit)
518518 let lastTime = valueOrElse(getInteger(keyLastAcresSellTime), 0)
519519 let now = lastBlock.timestamp
520520 let currentLimit = (lastLimitLeft + fraction(defaultLimit, (now - lastTime), DAY_MILLIS))
521521 let limitLeftUsdt = min([currentLimit, defaultLimit])
522522 $Tuple2(IntegerEntry(keyLastAcresSellTime, now), limitLeftUsdt)
523523 }
524524
525525
526526 let arkOracle = addressFromStringValue("3PJgZ6AK1WVCpdCmEZpesHmaKvrQDdXG5og")
527527
528528 let incubator = valueOrElse(getString(arkOracle, "static_incubatorAddress"), "")
529529
530530 let breeder = valueOrElse(getString(arkOracle, "static_breederAddress"), "")
531531
532532 let turtleIncubator = valueOrElse(getString(arkOracle, "static_turtleIncubatorAddress"), "")
533533
534534 let turtleBreeder = valueOrElse(getString(arkOracle, "static_turtleBreederAddress"), "")
535535
536536 let canineIncubator = valueOrElse(getString(arkOracle, "static_canineIncubatorAddress"), "")
537537
538538 let canineBreeder = valueOrElse(getString(arkOracle, "static_canineBreederAddress"), "")
539539
540540 let felineIncubator = valueOrElse(getString(arkOracle, "static_felineIncubatorAddress"), "")
541541
542542 let felineBreeder = valueOrElse(getString(arkOracle, "static_felineBreederAddress"), "")
543543
544544 let mutantBreeder = valueOrElse(getString(arkOracle, "static_mutantIncubatorAddress"), "")
545545
546546 func isArkimalIssued (nfo) = {
547547 let issuer = toString(nfo.issuer)
548548 if (if (if (if (if (if (if (if (if (if ((chain == base58'2T'))
549549 then (issuer == oldStakingContractStr)
550550 else false)
551551 then true
552552 else (issuer == incubator))
553553 then true
554554 else (issuer == breeder))
555555 then true
556556 else (issuer == turtleIncubator))
557557 then true
558558 else (issuer == turtleBreeder))
559559 then true
560560 else (issuer == canineIncubator))
561561 then true
562562 else (issuer == canineBreeder))
563563 then true
564564 else (issuer == felineIncubator))
565565 then true
566566 else (issuer == felineBreeder))
567567 then nfo.name
568568 else if ((issuer == mutantBreeder))
569569 then nfo.description
570570 else ""
571571 }
572572
573573
574574 func stakeNftInternal (addr,assetIdStr,bonus6,userNumKey,totalNumKey,limit) = {
575575 let nftNumber = valueOrElse(getInteger(userNumKey), 0)
576576 if ((nftNumber >= limit))
577577 then throw((("You can stake max " + toString(limit)) + " of such NFTs"))
578578 else {
579579 let $t01067710753 = stakeUnstakeAcresInternal(0, addr, bonus6)
580580 let actions = $t01067710753._1
581581 let wlgClaimedAmount = $t01067710753._2
582582 $Tuple2((((actions :+ IntegerEntry(userNumKey, (nftNumber + 1))) :+ IntegerEntry(totalNumKey, (valueOrElse(getInteger(totalNumKey), 0) + 1))) :+ IntegerEntry(keyStakedTimeByAssetIdAndOwner(assetIdStr, addr), lastBlock.timestamp)), wlgClaimedAmount)
583583 }
584584 }
585585
586586
587587 let promoNumPrizes = 3
588588
589589 let promoAwardPerRound = [50000000, 25000000, 25000000]
590590
591-func stakeAcresFor (address,amt,shouldCleanPromo) = {
592- let $t01122511301 = stakeUnstakeAcresInternal(amt, address, 0)
593- let actions = $t01122511301._1
594- let wlgClaimedAmount = $t01122511301._2
591+func stakeAcresForInternal (address,amt,shouldCleanPromo) = {
592+ let $t01123311309 = stakeUnstakeAcresInternal(amt, address, 0)
593+ let actions = $t01123311309._1
594+ let wlgClaimedAmount = $t01123311309._2
595595 let promoActions = if (if ((height >= DAILY_PROMO_START_BLOCK))
596596 then (DAILY_PROMO_END_BLOCK > height)
597597 else false)
598598 then {
599599 let promoAcresKey = keyUserPromoAcres(address)
600600 let promoAcres = ((if (shouldCleanPromo)
601601 then 0
602602 else valueOrElse(getInteger(promoAcresKey), 0)) + amt)
603603 let tickets = (promoAcres / MULT8)
604604 let ticketsKey = keyUserPromoTickets(address)
605605 let deltaTickets = (tickets - valueOrElse(getInteger(ticketsKey), 0))
606606 let totalTickets = (valueOrElse(getInteger(keyTotalPromoTickets), 0) + deltaTickets)
607607 if (if (shouldCleanPromo)
608608 then true
609609 else (deltaTickets > 0))
610610 then {
611611 let promoMap = valueOrElse(getString(keyPromoMap), "")
612612 let userRecord = ((address + ":") + padL(tickets, 3))
613613 let newMap = if (contains(promoMap, address))
614614 then {
615615 let mapParts = split_51C(promoMap, address)
616616 if ((mapParts[0] == ""))
617617 then {
618618 let r = drop(mapParts[1], 4)
619619 if ((r == ""))
620620 then if ((tickets == 0))
621621 then ""
622622 else userRecord
623623 else if ((tickets == 0))
624624 then drop(r, 1)
625625 else (userRecord + r)
626626 }
627627 else {
628628 let r = drop(mapParts[1], 4)
629629 if ((r == ""))
630630 then if ((tickets == 0))
631631 then dropRight(mapParts[0], 1)
632632 else (mapParts[0] + userRecord)
633633 else if ((tickets == 0))
634634 then (mapParts[0] + drop(r, 1))
635635 else ((mapParts[0] + userRecord) + r)
636636 }
637637 }
638638 else if ((tickets == 0))
639639 then promoMap
640640 else if ((promoMap == ""))
641641 then userRecord
642642 else ((promoMap + "_") + userRecord)
643643 [IntegerEntry(promoAcresKey, promoAcres), IntegerEntry(ticketsKey, tickets), IntegerEntry(keyTotalPromoTickets, totalTickets), StringEntry(keyPromoMap, newMap)]
644644 }
645645 else [IntegerEntry(promoAcresKey, promoAcres)]
646646 }
647647 else nil
648648 $Tuple2((actions ++ promoActions), wlgClaimedAmount)
649649 }
650650
651651
652652 @Callable(i)
653653 func saveLastTx () = if (!(containsElement([wlgContract, marketContract], i.caller)))
654654 then throw("Access denied")
655655 else $Tuple2(prolog(i), 42)
656656
657657
658658
659659 @Callable(i)
660660 func constructorV1 (rest2Addr,oldAcrContract) = if ((i.caller != this))
661661 then throw("Permission denied")
662662 else {
663663 let oldAcrContAddr = addressFromStringValue(oldAcrContract)
664664 [IntegerEntry(acresIssuedAmountKey, getIntegerValue(oldAcrContAddr, acresIssuedAmountKey)), BinaryEntry(acresAssetIdKey, getBinaryValue(oldAcrContAddr, acresAssetIdKey)), StringEntry(keyRest2Address(), rest2Addr), StringEntry(oldAcresContractKey, oldAcrContract)]
665665 }
666666
667667
668668
669669 @Callable(i)
670670 func setBlocked (isBlocked) = if ((i.caller != this))
671671 then throw("permission denied")
672672 else [BooleanEntry(keyBlocked(), isBlocked)]
673673
674674
675675
676676 @Callable(i)
677677 func unstakeAcres (amount) = {
678678 let prologActions = prolog(i)
679679 if (if ((height >= DAILY_PROMO_START_BLOCK))
680680 then (DAILY_PROMO_END_BLOCK > height)
681681 else false)
682682 then throw("You can't unstake during Xmas promo period")
683683 else if ((0 >= amount))
684684 then throw("Amount should be positive")
685685 else {
686686 let address = toString(i.caller)
687687 if ((size(i.payments) != 0))
688688 then throw("No payments required")
689689 else {
690690 let arbReleaseTime = (valueOrElse(getInteger(wlgContract, keyLastWlgTradeTimeByUser(address)), 0) + arbitrageDelay)
691691 if ((arbReleaseTime > lastBlock.timestamp))
692692 then throw(("You traded some WLGOLD, cannot unstake until " + toString(arbReleaseTime)))
693693 else {
694- let $t01530415384 = stakeUnstakeAcresInternal(-(amount), address, 0)
695- let actions = $t01530415384._1
696- let wlgClaimedAmount = $t01530415384._2
694+ let $t01531215392 = stakeUnstakeAcresInternal(-(amount), address, 0)
695+ let actions = $t01531215392._1
696+ let wlgClaimedAmount = $t01531215392._2
697697 $Tuple2(((actions :+ ScriptTransfer(i.caller, amount, acresAssetId)) ++ prologActions), wlgClaimedAmount)
698698 }
699699 }
700700 }
701701 }
702702
703703
704704
705705 @Callable(i)
706706 func stakeAcres () = {
707707 let prologActions = prolog(i)
708708 let address = toString(i.caller)
709709 if ((size(i.payments) != 1))
710710 then throw("exactly 1 payment must be attached")
711711 else {
712712 let pmt = i.payments[0]
713713 let amt = pmt.amount
714714 if (if (!(isDefined(pmt.assetId)))
715715 then true
716716 else (value(pmt.assetId) != acresAssetId))
717717 then throw("ACRES payments only!")
718718 else {
719- let $t01583515908 = stakeAcresFor(address, amt, false)
720- let stakeActions = $t01583515908._1
721- let wlgClaimedAmount = $t01583515908._2
719+ let $t01584315924 = stakeAcresForInternal(address, amt, false)
720+ let stakeActions = $t01584315924._1
721+ let wlgClaimedAmount = $t01584315924._2
722722 $Tuple2((stakeActions ++ prologActions), wlgClaimedAmount)
723723 }
724724 }
725725 }
726+
727+
728+
729+@Callable(i)
730+func stakeAcresFor (address,amt,shouldCleanPromo) = if ((i.caller != this))
731+ then throw("Permission denied")
732+ else stakeAcresForInternal(address, amt, shouldCleanPromo)
726733
727734
728735
729736 @Callable(i)
730737 func buyAcres () = {
731738 let prologActions = prolog(i)
732739 if ((size(i.payments) != 1))
733740 then throw("exactly 1 payment must be attached")
734741 else {
735742 let pmt = i.payments[0]
736743 let usdtAmount = pmt.amount
737744 if (if (!(isDefined(pmt.assetId)))
738745 then true
739746 else (value(pmt.assetId) != usdtAssetId))
740747 then throw("USDT payments only!")
741748 else if ((MULT6 > usdtAmount))
742749 then throw((("Min payment should be " + fixedPoint(MULT6, 6)) + " USDT"))
743750 else {
744751 let acresAmount = (usdtAmount * USDT2ACRES_MULTIPLIER)
745752 let wlgAmount = fraction(usdtAmount, MULT8, getWlgPrice(usdtAmount))
746753 let oldAcresAddress = addressFromStringValue(getStringValue(oldAcresContractKey))
747754 let req = invoke(oldAcresAddress, "requestAcresCallback", [acresAmount], nil)
748755 if ((req == req))
749756 then {
750757 let wlgRemain = asInt(invoke(wlgContract, "burnWlgold", [wlgAmount], nil))
751758 $Tuple2(([ScriptTransfer(i.caller, acresAmount, acresAssetId)] ++ prologActions), wlgRemain)
752759 }
753760 else throw("Strict value is not equal to itself.")
754761 }
755762 }
756763 }
757764
758765
759766
760767 @Callable(i)
761768 func buyAcresREADONLY (usdtAmount) = {
762769 let acresAmount = (usdtAmount * USDT2ACRES_MULTIPLIER)
763770 let wlgToBurn = fraction(usdtAmount, MULT8, getWlgPrice(usdtAmount))
764771 $Tuple2(nil, [acresAmount, MULT6, acresAmount, wlgToBurn])
765772 }
766773
767774
768775
769776 @Callable(i)
770777 func sellAcres () = {
771778 let prologActions = prolog(i)
772779 if ((size(i.payments) != 1))
773780 then throw("exactly 1 payment must be attached")
774781 else {
775782 let pmt = i.payments[0]
776783 let acresAmount = pmt.amount
777784 if (if (!(isDefined(pmt.assetId)))
778785 then true
779786 else (value(pmt.assetId) != acresAssetId))
780787 then throw("ACRES payments only!")
781788 else if ((MULT7 > acresAmount))
782789 then throw((("Min payment should be " + fixedPoint(MULT7, 8)) + " ACRES"))
783790 else {
784791 let addr = toString(i.caller)
785- let $t01777017818 = getSwapLimitAcres()
786- let limitAction = $t01777017818._1
787- let maxUsdt = $t01777017818._2
792+ let $t01799618044 = getSwapLimitAcres()
793+ let limitAction = $t01799618044._1
794+ let maxUsdt = $t01799618044._2
788795 let maxAcres = (maxUsdt * USDT2ACRES_MULTIPLIER)
789796 if ((acresAmount > maxAcres))
790797 then throw((("You can sell max " + fixedPoint(maxAcres, 8)) + " ACRES"))
791798 else {
792799 let usdtAmount = ((acresAmount / USDT2ACRES_MULTIPLIER) / 2)
793800 $Tuple2(([limitAction, IntegerEntry(keyLastLimitLeft, (maxUsdt - usdtAmount)), ScriptTransfer(i.caller, usdtAmount, usdtAssetId)] ++ prologActions), usdtAmount)
794801 }
795802 }
796803 }
797804 }
798805
799806
800807
801808 @Callable(i)
802809 func sellAcresREADONLY (address,acresAmount) = {
803- let $t01831418362 = getSwapLimitAcres()
804- let limitAction = $t01831418362._1
805- let maxUsdt = $t01831418362._2
810+ let $t01854018588 = getSwapLimitAcres()
811+ let limitAction = $t01854018588._1
812+ let maxUsdt = $t01854018588._2
806813 let usdtAmount = ((acresAmount / USDT2ACRES_MULTIPLIER) / 2)
807814 $Tuple2(nil, [usdtAmount, MULT7, (maxUsdt * USDT2ACRES_MULTIPLIER), 0])
808815 }
809816
810817
811818
812819 @Callable(i)
813820 func convertOldStakes () = {
814821 let prologActions = prolog(i)
815822 if ((OLD_STAKING_DEADL > lastBlock.timestamp))
816823 then throw(("Disabled until " + toString((OLD_STAKING_DEADL / 1000))))
817824 else {
818825 let address = toString(i.caller)
819826 if ((size(i.payments) != 0))
820827 then throw("No payments required")
821828 else {
822829 let oldAcresAddress = addressFromStringValue(getStringValue(oldAcresContractKey))
823830 let amount = valueOrElse(getInteger(oldAcresAddress, keyAcresStakedAmtByUser(address)), 0)
824831 let gotAcres0 = if ((amount > 0))
825832 then asTuple2Ints(invoke(oldAcresAddress, "unstakeAcresCallback", [amount, address], nil))
826833 else $Tuple2(0, 0)
827834 let oldStakingAddress = addressFromStringValue(oldStakingContractStr)
828835 let landsStr = getString(oldStakingAddress, keyStakedLandsByOwner(address))
829836 let landsResult = if (isDefined(landsStr))
830837 then {
831838 let lands = split_51C(value(landsStr), "_")
832839 if ((size(lands) > MAX_LANDS_TO_CONVERT))
833840 then throw((("You have more than " + toString(MAX_LANDS_TO_CONVERT)) + " lands staked, please contact support, we'll process your case manually"))
834841 else {
835842 func oneLand (acc,landAssetId) = if ((landAssetId == ""))
836843 then throw("landAssetId is required")
837844 else {
838845 let r = asTuple5Ints(invoke(oldStakingAddress, "unstakeLandCallback", [landAssetId, address], nil))
839846 if ((r == r))
840847 then $Tuple5((acc._1 + r._1), (acc._2 + r._2), (acc._3 + r._3), (acc._4 + r._4), (acc._5 + r._5))
841848 else throw("Strict value is not equal to itself.")
842849 }
843850
844851 let rr = {
845852 let $l = lands
846853 let $s = size($l)
847854 let $acc0 = $Tuple5(0, 0, 0, 0, 0)
848855 func $f0_1 ($a,$i) = if (($i >= $s))
849856 then $a
850857 else oneLand($a, $l[$i])
851858
852859 func $f0_2 ($a,$i) = if (($i >= $s))
853860 then $a
854861 else throw("List size exceeds 14")
855862
856863 $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)
857864 }
858865 if ((rr == rr))
859866 then {
860867 let finalize = invoke(oldStakingAddress, "unstakeLandsFinalizeCallback", [address], nil)
861868 if ((finalize == finalize))
862869 then {
863870 let req = invoke(oldAcresAddress, "requestAcresCallback", [(((rr._1 + rr._2) + rr._3) + rr._4)], nil)
864871 if ((req == req))
865872 then {
866- let $t02087621014 = issueNftCustom(idxNameShovel, idxKeyP, idxCollDig, idxRarityP, 3, idxDescrShovel, idxBonusTypeFp, i.caller)
867- let nftActions = $t02087621014._1
868- let nftAssetId = $t02087621014._2
873+ let $t02110221240 = issueNftCustom(idxNameShovel, idxKeyP, idxCollDig, idxRarityP, 3, idxDescrShovel, idxBonusTypeFp, i.caller)
874+ let nftActions = $t02110221240._1
875+ let nftAssetId = $t02110221240._2
869876 $Tuple6(rr._1, rr._2, rr._3, rr._4, rr._5, nftActions)
870877 }
871878 else throw("Strict value is not equal to itself.")
872879 }
873880 else throw("Strict value is not equal to itself.")
874881 }
875882 else throw("Strict value is not equal to itself.")
876883 }
877884 }
878885 else $Tuple6(0, 0, 0, 0, 0, nil)
879886 let duckAssetId = valueOrElse(getString(oldStakingAddress, keyStakedDuckByOwner(address)), "")
880887 let duckResult = if ((duckAssetId != ""))
881888 then asTuple3Ints(invoke(oldStakingAddress, "unstakeDuckCallback", [duckAssetId, address], nil))
882889 else $Tuple3(0, 0, 0)
883890 let x = stakeUnstakeAcresInternal((((((((gotAcres0._1 + landsResult._1) + landsResult._2) + landsResult._3) + landsResult._4) + duckResult._1) + duckResult._2) + duckResult._3), address, 0)
884891 $Tuple2(((landsResult._6 ++ x._1) ++ prologActions), $Tuple3(gotAcres0._2, landsResult._5, x._2))
885892 }
886893 }
887894 }
888895
889896
890897
891898 @Callable(i)
892899 func unstakeLandsREADONLY (address) = {
893900 let oldStakingAddress = addressFromStringValue(oldStakingContractStr)
894901 let landsStr = getString(oldStakingAddress, keyStakedLandsByOwner(address))
895902 let landsResult = if (isDefined(landsStr))
896903 then {
897904 let lands = split_51C(value(landsStr), "_")
898905 func oneLand (acc,landAssetId) = if ((landAssetId == ""))
899906 then throw("landAssetId is required")
900907 else {
901908 let r = asTuple4Ints(invoke(oldStakingAddress, "unstakeLandREADONLY", [landAssetId, address], nil))
902909 $Tuple4((acc._1 + r._1), (acc._2 + r._2), (acc._3 + r._3), (acc._4 + r._4))
903910 }
904911
905912 let $l = lands
906913 let $s = size($l)
907914 let $acc0 = $Tuple4(0, 0, 0, 0)
908915 func $f0_1 ($a,$i) = if (($i >= $s))
909916 then $a
910917 else oneLand($a, $l[$i])
911918
912919 func $f0_2 ($a,$i) = if (($i >= $s))
913920 then $a
914921 else throw("List size exceeds 100")
915922
916923 $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)
917924 }
918925 else $Tuple4(0, 0, 0, 0)
919926 $Tuple2(nil, landsResult)
920927 }
921928
922929
923930
924931 @Callable(i)
925932 func stakeAcresCallback (addr) = if ((i.caller != addressFromStringValue(oldStakingContractStr)))
926933 then throw("Permission denied")
927934 else stakeUnstakeAcresInternal(i.payments[0].amount, addr, 0)
928935
929936
930937
931938 @Callable(i)
932939 func simulateStakeAcresREADONLY (address,addedAmount) = {
933940 let amountKey = keyAcresStakedAmtByUser(address)
934941 let newAcresAmount = (valueOrElse(getInteger(amountKey), 0) + addedAmount)
935942 let oldTotal = valueOrElse(getInteger(acresStakdTotalKey), 0)
936943 let userFpKey = keyFarmingPowerByUser(address)
937944 let oldFp = valueOrElse(getInteger(userFpKey), 0)
938945 let userBonus = valueOrElse(getInteger(acres2Contract, keyUserFullBonus(address)), 0)
939- let $t02328523372 = getFarmingPowerByAcresAndBonus(newAcresAmount, userBonus)
940- let newBonusedFp = $t02328523372._1
941- let ignored = $t02328523372._2
946+ let $t02351123598 = getFarmingPowerByAcresAndBonus(newAcresAmount, userBonus)
947+ let newBonusedFp = $t02351123598._1
948+ let ignored = $t02351123598._2
942949 let oldTotalFp = valueOrElse(getInteger(totalFarmingPowerKey), 0)
943950 let newTotalFp = ((oldTotalFp + newBonusedFp) - oldFp)
944951 $Tuple2(nil, [oldFp, newBonusedFp, oldTotalFp, newTotalFp])
945952 }
946953
947954
948955
949956 @Callable(i)
950957 func issuePickC1 (forAddress) = if ((i.caller != wlgContract))
951958 then throw("Permission denied")
952959 else issueNftCustom(idxNamePickaxe, idxKeyC, idxCollDig, idxRarityC, 1, idxDescrPickaxe, idxBonusTypeFp, addressFromStringValue(forAddress))
953960
954961
955962
956963 @Callable(i)
957964 func stakeNFT () = {
958965 let prologActions = prolog(i)
959966 if ((size(i.payments) != 1))
960967 then throw("Exactly one payment required")
961968 else {
962969 let pmt = value(i.payments[0])
963970 if ((pmt.amount != 1))
964971 then throw("NFT token should be attached as payment")
965972 else {
966973 let assetId = value(pmt.assetId)
967974 let asset = value(assetInfo(assetId))
968975 let assetIdStr = toBase58String(assetId)
969976 let addr = toString(i.caller)
970977 let nftsKey = keyStakedNFTsByOwner(addr)
971978 let nftsStr = getString(nftsKey)
972979 let nfts = if (isDefined(nftsStr))
973980 then split_4C(value(nftsStr), "_")
974981 else nil
975982 if (containsElement(nfts, assetIdStr))
976983 then throw(("Your staked NFTs already contain " + assetIdStr))
977984 else if ((size(nfts) >= MAX_NFTS_STAKED_BY_USER))
978985 then throw((("Your already staked max (" + toString(MAX_NFTS_STAKED_BY_USER)) + ") NFTs"))
979986 else {
980987 let listAction = StringEntry(nftsKey, makeString_2C((nfts :+ assetIdStr), "_"))
981988 if ((asset.issuer == this))
982989 then {
983- let $t02478124971 = stakeNftInternal(addr, assetIdStr, (bonusByDescription(value(asset.description)) * 10000), keyUserWlNftNumber(addr), keyWlNftTotalStaked, MAX_WL_NFTS)
984- let actions = $t02478124971._1
985- let wlgClaimedAmount = $t02478124971._2
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
986993 $Tuple2(((prologActions ++ actions) :+ listAction), wlgClaimedAmount)
987994 }
988995 else if ((isArkimalIssued(asset) == ""))
989996 then throw("Only WavesLands and Arkimals NFT tokens are accepted")
990997 else {
991- let $t02515225303 = stakeNftInternal(addr, assetIdStr, ARK_NFT_BONUS, keyUserArkNftNumber(addr), keyArkNftTotalStaked, MAX_ARK_NFTS)
992- let actions = $t02515225303._1
993- let wlgClaimedAmount = $t02515225303._2
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
9941001 $Tuple2(((prologActions ++ actions) :+ listAction), wlgClaimedAmount)
9951002 }
9961003 }
9971004 }
9981005 }
9991006 }
10001007
10011008
10021009
10031010 @Callable(i)
10041011 func unstakeNFT (assetIdStr) = {
10051012 let prologActions = prolog(i)
10061013 if ((size(i.payments) != 0))
10071014 then throw("No payments required")
10081015 else {
10091016 let assetId = fromBase58String(assetIdStr)
10101017 let addr = toString(i.caller)
10111018 let asset = value(assetInfo(assetId))
10121019 let timeKey = keyStakedTimeByAssetIdAndOwner(assetIdStr, addr)
10131020 if (!(isDefined(getInteger(timeKey))))
10141021 then throw((("NFT " + asset.name) + " is not staked by you"))
10151022 else {
10161023 let nftsKey = keyStakedNFTsByOwner(addr)
10171024 let nfts = split_4C(valueOrElse(getString(nftsKey), ""), "_")
10181025 let idx = indexOf(nfts, assetIdStr)
10191026 if (!(isDefined(idx)))
10201027 then throw(("Your staked NFTs don't contain " + assetIdStr))
10211028 else {
10221029 let listAction = if ((size(nfts) > 1))
10231030 then StringEntry(nftsKey, makeString_2C(removeByIndex(nfts, value(idx)), "_"))
10241031 else DeleteEntry(nftsKey)
10251032 let isWL = (asset.issuer == this)
10261033 if (isWL)
10271034 then {
10281035 let wlNftNumber = valueOrElse(getInteger(keyUserWlNftNumber(addr)), 0)
10291036 let bonusVal = (bonusByDescription(value(asset.description)) * 10000)
1030- let $t02646826547 = stakeUnstakeAcresInternal(0, addr, -(bonusVal))
1031- let actions = $t02646826547._1
1032- let wlgClaimedAmount = $t02646826547._2
1037+ let $t02669426773 = stakeUnstakeAcresInternal(0, addr, -(bonusVal))
1038+ let actions = $t02669426773._1
1039+ let wlgClaimedAmount = $t02669426773._2
10331040 $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)
10341041 }
10351042 else {
10361043 let arkimalName = isArkimalIssued(asset)
10371044 if ((arkimalName == ""))
10381045 then throw("Only WavesLands and Arkimals NFT tokens are accepted")
10391046 else {
10401047 let arkNftNumber = valueOrElse(getInteger(keyUserArkNftNumber(addr)), 0)
1041- let $t02720727291 = stakeUnstakeAcresInternal(0, addr, -(ARK_NFT_BONUS))
1042- let actions = $t02720727291._1
1043- let wlgClaimedAmount = $t02720727291._2
1048+ let $t02743327517 = stakeUnstakeAcresInternal(0, addr, -(ARK_NFT_BONUS))
1049+ let actions = $t02743327517._1
1050+ let wlgClaimedAmount = $t02743327517._2
10441051 $Tuple2((((((actions :+ listAction) :+ IntegerEntry(keyUserArkNftNumber(addr), (arkNftNumber - 1))) :+ DeleteEntry(keyStakedTimeByAssetIdAndOwner(toBase58String(assetId), addr))) :+ ScriptTransfer(i.caller, 1, assetId)) ++ prologActions), wlgClaimedAmount)
10451052 }
10461053 }
10471054 }
10481055 }
10491056 }
10501057 }
10511058
10521059
10531060
10541061 @Callable(i)
10551062 func exchangeNFTs () = {
10561063 let prologActions = prolog(i)
10571064 if ((3 > size(i.payments)))
10581065 then throw("Min one WLGOLD and 2 NFT payments allowed")
10591066 else if ((size(i.payments) > 10))
10601067 then throw("Max one WLGOLD and 9 NFT payments allowed")
10611068 else {
10621069 let addr = toString(i.caller)
10631070 func addUp (acc,pmt) = {
10641071 let assetId = valueOrErrorMessage(pmt.assetId, "WAVES payments not allowed")
10651072 if ((assetId == wlgAssetId))
10661073 then $Tuple4((acc._1 + pmt.amount), acc._2, acc._3, acc._4)
10671074 else {
10681075 let asset = value(assetInfo(assetId))
10691076 if ((asset.issuer != this))
10701077 then throw("Only WL-issued NFTs allowed")
10711078 else {
10721079 let rarityIx = rarityIdxByDescriprion(value(asset.description))
10731080 if (if ((acc._4 > 0))
10741081 then (rarityIx != acc._4)
10751082 else false)
10761083 then throw("You can exchange only NFTs of the same rarity")
10771084 else {
10781085 let bonusPerc = bonusByDescription(value(asset.description))
10791086 $Tuple4(acc._1, (acc._2 + bonusPerc), (acc._3 :+ Burn(assetId, 1)), rarityIx)
10801087 }
10811088 }
10821089 }
10831090 }
10841091
1085- let $t02868028896 = {
1092+ let $t02890629122 = {
10861093 let $l = i.payments
10871094 let $s = size($l)
10881095 let $acc0 = $Tuple4(0, 0, nil, -1)
10891096 func $f0_1 ($a,$i) = if (($i >= $s))
10901097 then $a
10911098 else addUp($a, $l[$i])
10921099
10931100 func $f0_2 ($a,$i) = if (($i >= $s))
10941101 then $a
10951102 else throw("List size exceeds 10")
10961103
10971104 $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)
10981105 }
1099- let wlgFee = $t02868028896._1
1100- let totalBonus = $t02868028896._2
1101- let burnActions = $t02868028896._3
1102- let rarityIdx = $t02868028896._4
1106+ let wlgFee = $t02890629122._1
1107+ let totalBonus = $t02890629122._2
1108+ let burnActions = $t02890629122._3
1109+ let rarityIdx = $t02890629122._4
11031110 let newRarityIdx = if ((rarityIdx == idxRarityC))
11041111 then if ((rarityThresholds[idxThresholdC] > totalBonus))
11051112 then idxRarityC
11061113 else if ((rarityThresholds[idxThresholdU] > totalBonus))
11071114 then idxRarityU
11081115 else throw((("You can advance only one level of rarity, max total bonus " + toString(rarityThresholds[idxThresholdU])) + "%"))
11091116 else if ((rarityIdx == idxRarityU))
11101117 then if ((rarityThresholds[idxThresholdU] > totalBonus))
11111118 then idxRarityU
11121119 else if ((rarityThresholds[idxThresholdL] > totalBonus))
11131120 then idxRarityL
11141121 else throw((("You can advance only one level of rarity, max total bonus " + toString(rarityThresholds[idxThresholdL])) + "%"))
11151122 else if ((rarityIdx == idxRarityL))
11161123 then if ((rarityThresholds[idxThresholdL] > totalBonus))
11171124 then idxRarityL
11181125 else idxRarityE
11191126 else if ((rarityIdx == idxRarityE))
11201127 then idxRarityE
11211128 else if ((rarityIdx == idxRarityP))
11221129 then throw("You can't exchange NFTs of this rarity")
11231130 else throw("Unknown rarity")
11241131 let minWlgFee = fraction(totalBonus, MULT14, getWlgPrice(0))
11251132 let change = (wlgFee - minWlgFee)
11261133 let forTeam = (minWlgFee / 2)
11271134 let wlgRemain = asInt(invoke(wlgContract, "burnWlgold", [(minWlgFee - forTeam)], nil))
11281135 if ((0 > change))
11291136 then throw((("You need to attach " + fixedPoint(minWlgFee, 8)) + " WLGOLD as fee"))
11301137 else {
11311138 let changeActions = if ((change > 0))
11321139 then [ScriptTransfer(i.caller, change, wlgAssetId)]
11331140 else nil
1134- let $t03043330594 = issueNftCustom(idxNamePickaxe, newRarityIdx, idxCollDig, newRarityIdx, totalBonus, idxDescrPickaxe, idxBonusTypeFp, i.caller)
1135- let issueNftActions = $t03043330594._1
1136- let nftAssetId = $t03043330594._2
1141+ let $t03065930820 = issueNftCustom(idxNamePickaxe, newRarityIdx, idxCollDig, newRarityIdx, totalBonus, idxDescrPickaxe, idxBonusTypeFp, i.caller)
1142+ let issueNftActions = $t03065930820._1
1143+ let nftAssetId = $t03065930820._2
11371144 let burned = size(burnActions)
11381145 let burnCounterActions = if ((burned == 0))
11391146 then nil
11401147 else [IntegerEntry(keyNftTotalBurned, (valueOrElse(getInteger(keyNftTotalBurned), 0) + burned))]
11411148 $Tuple2((((((issueNftActions ++ burnActions) ++ burnCounterActions) ++ prologActions) ++ changeActions) :+ ScriptTransfer(addressFromStringValue(getStringValue(wlgContract, teamAddrKey)), forTeam, wlgAssetId)), $Tuple2(nftAssetId, wlgRemain))
11421149 }
11431150 }
11441151 }
11451152
11461153
11471154
11481155 @Callable(i)
11491156 func openNftChest () = {
11501157 let prologActions = prolog(i)
11511158 if ((size(i.payments) != 1))
11521159 then throw("exactly 1 payment must be attached")
11531160 else {
11541161 let pmt = i.payments[0]
11551162 let wlgAmount = pmt.amount
11561163 if (if (!(isDefined(pmt.assetId)))
11571164 then true
11581165 else (value(pmt.assetId) != wlgAssetId))
11591166 then throw("WLGOLD payments only!")
11601167 else {
11611168 let minWlgFee = fraction(NFT_CHEST_PRICE_USDT, MULT8, getWlgPrice(0))
11621169 let change = (wlgAmount - minWlgFee)
11631170 let forTeam = (minWlgFee / 2)
11641171 let wlgRemain = asInt(invoke(wlgContract, "burnWlgold", [(minWlgFee - forTeam)], nil))
11651172 if ((0 > change))
11661173 then throw((("You need to attach " + fixedPoint(minWlgFee, 8)) + " WLGOLD as fee"))
11671174 else {
11681175 let changeActions = if ((change > 0))
11691176 then [ScriptTransfer(i.caller, change, wlgAssetId)]
11701177 else nil
11711178 let addr = toString(i.caller)
11721179 let finishKey = keyCommit(addr)
11731180 let finishBlock = valueOrErrorMessage(getInteger(finishKey), "You have to commitForRandom() first!")
11741181 if ((finishBlock > height))
11751182 then throw(("Random number is not ready yet, wait until height = " + toString(finishBlock)))
11761183 else {
11771184 let entropy = value(value(blockInfoByHeight(finishBlock)).vrf)
11781185 let salt = fromBase58String(split(valueOrElse(getString(keyCurWeekTxIdByUser(addr)), "42_DEFAULT"), "_")[1])
11791186 let rand = getRandomNumber(100, salt, entropy)
1180- let $t03261332885 = if ((84 > rand))
1187+ let $t03283933111 = if ((84 > rand))
11811188 then $Tuple2(1, idxRarityC)
11821189 else if ((98 > rand))
11831190 then $Tuple2(5, idxRarityU)
11841191 else $Tuple2(10, idxRarityL)
1185- let bonus = $t03261332885._1
1186- let rarityIdx = $t03261332885._2
1187- let $t03288833038 = issueNftCustom(idxNamePickaxe, rarityIdx, idxCollDig, rarityIdx, bonus, idxDescrPickaxe, idxBonusTypeFp, i.caller)
1188- let issueNftActions = $t03288833038._1
1189- let nftAssetId = $t03288833038._2
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
11901197 $Tuple2(((((issueNftActions ++ prologActions) ++ changeActions) :+ ScriptTransfer(addressFromStringValue(getStringValue(wlgContract, teamAddrKey)), forTeam, wlgAssetId)) :+ DeleteEntry(finishKey)), $Tuple2(nftAssetId, wlgRemain))
11911198 }
11921199 }
11931200 }
11941201 }
11951202 }
11961203
11971204
11981205
11991206 @Callable(i)
12001207 func commitForRandom () = {
12011208 let prologActions = prolog(i)
12021209 let addr = toString(i.caller)
12031210 let finishKey = keyCommit(addr)
12041211 if (isDefined(getInteger(finishKey)))
12051212 then throw("You already commited for random, please use it")
12061213 else {
12071214 let finishBlock = (height + RANDOM_DELAY)
12081215 $Tuple2(([IntegerEntry(finishKey, finishBlock)] ++ prologActions), finishBlock)
12091216 }
12101217 }
12111218
12121219
12131220
12141221 @Callable(i)
12151222 func drawDaylyPromo () = if ((i.caller != this))
12161223 then throw("Permission denied")
12171224 else {
12181225 let today = (height / DAY_BLOCKS)
12191226 let maxValue = valueOrElse(getInteger(keyTotalPromoTickets), 0)
12201227 if ((maxValue == 0))
12211228 then throw("No tickets to draw")
12221229 else {
12231230 let b = (today * DAY_BLOCKS)
12241231 let h = if ((b > VRF_OFFSET))
12251232 then b
12261233 else (b + VRF_OFFSET)
12271234 let entropy = value(value(blockInfoByHeight(h)).vrf)
12281235 let promoMap = valueOrElse(getString(keyPromoMap), "")
12291236 if ((promoMap == ""))
12301237 then throw("No participants")
12311238 else {
12321239 func singleDraw (ac,j) = if ((j >= promoNumPrizes))
12331240 then ac
12341241 else {
12351242 let rand = getRandomNumber(ac._1, ac._2, entropy)
12361243 let promoList = if ((ac._3 == ""))
12371244 then nil
12381245 else split_51C(ac._3, "_")
12391246 func countTickets (acc,el) = {
12401247 let parts = split(el, ":")
12411248 let addr = parts[0]
12421249 let tickets = parseIntValue(parts[1])
12431250 let newTotal = (acc._1 + tickets)
12441251 if (if ((acc._3 == ""))
12451252 then (newTotal > rand)
12461253 else false)
12471254 then $Tuple3(newTotal, tickets, addr)
12481255 else $Tuple3(newTotal, acc._2, acc._3)
12491256 }
12501257
12511258 let r = {
12521259 let $l = promoList
12531260 let $s = size($l)
12541261 let $acc0 = $Tuple3(0, 0, "")
12551262 func $f0_1 ($a,$i) = if (($i >= $s))
12561263 then $a
12571264 else countTickets($a, $l[$i])
12581265
12591266 func $f0_2 ($a,$i) = if (($i >= $s))
12601267 then $a
12611268 else throw("List size exceeds 200")
12621269
12631270 $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)
12641271 }
12651272 let winner = r._3
12661273 if ((winner == ""))
12671274 then ac
12681275 else {
12691276 let mapParts = split_51C(ac._3, winner)
12701277 let newMap = if ((mapParts[0] == ""))
12711278 then drop(mapParts[1], 5)
12721279 else (dropRight(mapParts[0], 1) + drop(mapParts[1], 4))
1273- let $t03558435735 = stakeAcresFor(winner, promoAwardPerRound[j], true)
1274- let stakeActions = $t03558435735._1
1275- let ignoredWlgClaimedAmount = $t03558435735._2
1276- let newSalt = fromBase58String(split(valueOrElse(getString(keyCurWeekTxIdByUser(winner)), "0_DEFAULT"), "_")[1])
1277- $Tuple5((ac._1 - r._2), newSalt, newMap, (ac._4 ++ stakeActions), (ac._5 :+ winner))
1280+ let stakeActions = invoke(this, "stakeAcresFor", [winner, promoAwardPerRound[j], true], nil)
1281+ if ((stakeActions == stakeActions))
1282+ then {
1283+ let newSalt = fromBase58String(split(valueOrElse(getString(keyCurWeekTxIdByUser(winner)), "0_DEFAULT"), "_")[1])
1284+ $Tuple4((ac._1 - r._2), newSalt, newMap, (ac._4 :+ winner))
1285+ }
1286+ else throw("Strict value is not equal to itself.")
12781287 }
12791288 }
12801289
12811290 let draws = {
12821291 let $l = [0, 1, 2]
12831292 let $s = size($l)
1284- let $acc0 = $Tuple5(maxValue, i.transactionId, promoMap, nil, nil)
1293+ let $acc0 = $Tuple4(maxValue, i.transactionId, promoMap, nil)
12851294 func $f0_1 ($a,$i) = if (($i >= $s))
12861295 then $a
12871296 else singleDraw($a, $l[$i])
12881297
12891298 func $f0_2 ($a,$i) = if (($i >= $s))
12901299 then $a
12911300 else throw("List size exceeds 3")
12921301
12931302 $f0_2($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3)
12941303 }
1295- $Tuple2((((draws._4 :+ StringEntry(keyPromoMap, draws._3)) :+ IntegerEntry(keyTotalPromoTickets, draws._1)) :+ StringEntry(keyDailyWinners(today), makeString(draws._5, "_"))), 0)
1304+ $Tuple2([StringEntry(keyPromoMap, draws._3), IntegerEntry(keyTotalPromoTickets, draws._1), StringEntry(keyDailyWinners(today), makeString(draws._4, "_"))], 0)
12961305 }
12971306 }
12981307 }
12991308
13001309

github/deemru/w8io/169f3d6 
156.84 ms