tx · 6uedwq4r2S4T3BUsVkRYiVsA7cXRgQ4cPqPUgwDEtKaP

3NBPx1Fciu3JQNEGZ21jSnTdutLNGGBUSXh:  -0.03800000 Waves

2024.12.15 01:15 [3414849] smart account 3NBPx1Fciu3JQNEGZ21jSnTdutLNGGBUSXh > SELF 0.00000000 Waves

{ "type": 13, "id": "6uedwq4r2S4T3BUsVkRYiVsA7cXRgQ4cPqPUgwDEtKaP", "fee": 3800000, "feeAssetId": null, "timestamp": 1734214633271, "version": 2, "chainId": 84, "sender": "3NBPx1Fciu3JQNEGZ21jSnTdutLNGGBUSXh", "senderPublicKey": "3QtfC1XbLZXdeawMDeSERy9vvjUmj1XYd2GFmrvx7pWQ", "proofs": [ "63TY9NNApFR3DtV7vkQZs6oTx8hLm3jFU8SrDxNoqTJNaTaoRivXp7dvEgk3KvJ8Se6EnQY29eqaf7WHPRf5xYPU" ], "script": "base64:BgJaCAISABIECgIICBIDCgEEEgMKAQESABIFCgMIAQQSABIDCgEBEgASBAoCCAESABIDCgEIEgMKAQgSBAoCCAESAwoBCBIDCgEIEgASAwoBCBIAEgASABIDCgEBjwEAA1NFUAICX18ABU1VTFQ2AMCEPQAFTVVMVDcAgK3iBAAFTVVMVDgAgMLXLwAGTVVMVDE0AICA6YOx3hYACkRBWV9NSUxMSVMAgLiZKQAVVVNEVDJBQ1JFU19NVUxUSVBMSUVSAAoAE09ORV9QRVJDRU5UX0RJVklTT1IAZAAMUkFORE9NX0RFTEFZAAIAFE5GVF9DSEVTVF9QUklDRV9VU0RUAMCWsQIABWNoYWluCQDJAQIJAMoBAggFBHRoaXMFYnl0ZXMAAQABABdEQUlMWV9QUk9NT19TVEFSVF9CTE9DSwQHJG1hdGNoMAUFY2hhaW4DCQAAAgEBVwUHJG1hdGNoMACA75ECAwkAAAIBAVQFByRtYXRjaDAAwKbQAQkAAgECDVVua25vd24gY2hhaW4AFURBSUxZX1BST01PX0VORF9CTE9DSwQHJG1hdGNoMAUFY2hhaW4DCQAAAgEB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CCAUFZHJhd3MCXzQCAV8FA25pbAAAAGp9X3Y=", "height": 3414849, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9oRr1R77X9UFaYcZEGb9BpRSJFDVPzHseyZr8xcWrVX2 Next: 9t8hCM8sS1frREDQzwnbhsjFE9YMnvQPYPy5rL3hqGFF Diff:
OldNewDifferences
188188
189189 let keyPromoMap = "promoMap"
190190
191-func keyDailyWinners (day) = ("dailyWinners_" + toString(day))
191+func keyPromoRoundWinners (day) = ("dailyWinners_" + toString(day))
192192
193-
194-let promoNumPrizes = 6
195193
196194 let promoAwardPerRound = [0, 500000000, 100000000, 100000000, 100000000, 100000000]
197195
12401238
12411239
12421240 @Callable(i)
1243-func drawDaylyPromo () = if ((i.caller != this))
1241+func drawPromoRound (roundId) = if ((i.caller != this))
12441242 then throw("Permission denied")
12451243 else {
12461244 let today = (height / DAY_BLOCKS)
12571255 if ((promoMap == ""))
12581256 then throw("No participants")
12591257 else {
1260- func singleDraw (ac,j) = if ((j >= promoNumPrizes))
1261- then ac
1262- else {
1263- let rand = getRandomNumber(ac._1, ac._2, entropy)
1264- let promoList = if ((ac._3 == ""))
1265- then nil
1266- else split_51C(ac._3, "_")
1267- func countTickets (acc,el) = {
1268- let parts = split(el, ":")
1269- let addr = parts[0]
1270- let tickets = parseIntValue(parts[1])
1271- let newTotal = (acc._1 + tickets)
1272- if (if ((acc._3 == ""))
1273- then (newTotal > rand)
1274- else false)
1275- then $Tuple3(newTotal, tickets, addr)
1276- else $Tuple3(newTotal, acc._2, acc._3)
1258+ func singleDraw (ac,j) = {
1259+ let promoList = if ((ac._3 == ""))
1260+ then nil
1261+ else split_51C(ac._3, "_")
1262+ if ((j >= size(promoList)))
1263+ then ac
1264+ else {
1265+ let rand = getRandomNumber(ac._1, ac._2, entropy)
1266+ func countTickets (acc,el) = {
1267+ let parts = split(el, ":")
1268+ let addr = parts[0]
1269+ let tickets = parseIntValue(parts[1])
1270+ let newTotal = (acc._1 + tickets)
1271+ if (if ((acc._3 == ""))
1272+ then (newTotal > rand)
1273+ else false)
1274+ then $Tuple3(newTotal, tickets, addr)
1275+ else $Tuple3(newTotal, acc._2, acc._3)
1276+ }
1277+
1278+ let r = {
1279+ let $l = promoList
1280+ let $s = size($l)
1281+ let $acc0 = $Tuple3(0, 0, "")
1282+ func $f0_1 ($a,$i) = if (($i >= $s))
1283+ then $a
1284+ else countTickets($a, $l[$i])
1285+
1286+ func $f0_2 ($a,$i) = if (($i >= $s))
1287+ then $a
1288+ else throw("List size exceeds 200")
1289+
1290+ $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)
1291+ }
1292+ let winner = r._3
1293+ if ((winner == ""))
1294+ then ac
1295+ else {
1296+ let mapParts = split_51C(ac._3, winner)
1297+ let newMap = if ((mapParts[0] == ""))
1298+ then drop(mapParts[1], 5)
1299+ else (dropRight(mapParts[0], 1) + drop(mapParts[1], 4))
1300+ let winActions = if ((j == 0))
1301+ then invoke(this, "issueMittenP", [winner], nil)
1302+ else invoke(this, "stakeAcresFor", [winner, promoAwardPerRound[j], true], nil)
1303+ if ((winActions == winActions))
1304+ then {
1305+ let newSalt = fromBase58String(split(valueOrElse(getString(keyCurWeekTxIdByUser(winner)), "0_DEFAULT"), "_")[1])
1306+ $Tuple4((ac._1 - r._2), newSalt, newMap, (ac._4 :+ winner))
1307+ }
1308+ else throw("Strict value is not equal to itself.")
1309+ }
12771310 }
1278-
1279- let r = {
1280- let $l = promoList
1281- let $s = size($l)
1282- let $acc0 = $Tuple3(0, 0, "")
1283- func $f0_1 ($a,$i) = if (($i >= $s))
1284- then $a
1285- else countTickets($a, $l[$i])
1286-
1287- func $f0_2 ($a,$i) = if (($i >= $s))
1288- then $a
1289- else throw("List size exceeds 200")
1290-
1291- $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)
1292- }
1293- let winner = r._3
1294- if ((winner == ""))
1295- then ac
1296- else {
1297- let mapParts = split_51C(ac._3, winner)
1298- let newMap = if ((mapParts[0] == ""))
1299- then drop(mapParts[1], 5)
1300- else (dropRight(mapParts[0], 1) + drop(mapParts[1], 4))
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))
1305- then {
1306- let newSalt = fromBase58String(split(valueOrElse(getString(keyCurWeekTxIdByUser(winner)), "0_DEFAULT"), "_")[1])
1307- $Tuple4((ac._1 - r._2), newSalt, newMap, (ac._4 :+ winner))
1308- }
1309- else throw("Strict value is not equal to itself.")
1310- }
1311- }
1311+ }
13121312
13131313 let draws = {
13141314 let $l = [0, 1, 2, 3, 4, 5]
13241324
13251325 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
13261326 }
1327- $Tuple2([StringEntry(keyPromoMap, draws._3), IntegerEntry(keyTotalPromoTickets, draws._1), StringEntry(keyDailyWinners(today), makeString(draws._4, "_"))], 0)
1327+ $Tuple2([StringEntry(keyPromoMap, draws._3), IntegerEntry(keyTotalPromoTickets, draws._1), StringEntry(keyPromoRoundWinners(roundId), makeString(draws._4, "_"))], 0)
13281328 }
13291329 }
13301330 }
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
191-func keyDailyWinners (day) = ("dailyWinners_" + toString(day))
191+func keyPromoRoundWinners (day) = ("dailyWinners_" + toString(day))
192192
193-
194-let promoNumPrizes = 6
195193
196194 let promoAwardPerRound = [0, 500000000, 100000000, 100000000, 100000000, 100000000]
197195
198196 func asInt (v) = match v {
199197 case n: Int =>
200198 n
201199 case _ =>
202200 throw("fail to cast into Int")
203201 }
204202
205203
206204 func asTuple5Ints (val) = match val {
207205 case t: (Int, Int, Int, Int, Int) =>
208206 t
209207 case _ =>
210208 throw("fail to cast into (Int, Int, Int, Int, Int)")
211209 }
212210
213211
214212 func asTuple4Ints (val) = match val {
215213 case t: (Int, Int, Int, Int) =>
216214 t
217215 case _ =>
218216 throw("fail to cast into (Int, Int, Int, Int)")
219217 }
220218
221219
222220 func asTuple3Ints (val) = match val {
223221 case t: (Int, Int, Int) =>
224222 t
225223 case _ =>
226224 throw("fail to cast into (Int, Int, Int)")
227225 }
228226
229227
230228 func asTuple2Ints (val) = match val {
231229 case t: (Int, Int) =>
232230 t
233231 case _ =>
234232 throw("fail to cast into (Int, Int)")
235233 }
236234
237235
238236 func fixedPoint (val,decimals) = {
239237 let tenPow = pow(10, 0, decimals, 0, 0, DOWN)
240238 let lowPart = toString((val % tenPow))
241239 let zeroes = drop(toString(tenPow), (1 + size(lowPart)))
242240 (((toString((val / tenPow)) + ".") + zeroes) + lowPart)
243241 }
244242
245243
246244 func getRandomNumber (maxValue,salt,entropy) = if ((0 >= maxValue))
247245 then throw("maxValue should be > 0")
248246 else {
249247 let randomHash = sha256_16Kb((salt + entropy))
250248 (toInt(randomHash) % maxValue)
251249 }
252250
253251
254252 func padL (val,len) = {
255253 let valS = toString(val)
256254 let zeroes = drop(toString(pow(10, 0, (len - size(valS)), 0, 0, DOWN)), 1)
257255 (zeroes + valS)
258256 }
259257
260258
261259 let M6_ = 1000000
262260
263261 let M8_ = 100000000
264262
265263 let wlgIssuedAmtKey = "wlg_issuedAmount"
266264
267265 let zbIssuedAmtKey = "zbill_issuedAmount"
268266
269267 func keyAcresStakedAmtByUser (addr) = ("acresStakedAmountByUser_" + addr)
270268
271269
272270 func keyFarmingPowerByUser (addr) = ("farmingPowerByUser_" + addr)
273271
274272
275273 let acresStakdTotalKey = "acresStakedAmountTotal"
276274
277275 let totalFarmingPowerKey = "totalFarmingPower"
278276
279277 let MAX_WL_NFTS = 3
280278
281279 let MAX_ARK_NFTS = 1
282280
283281 let ARK_NFT_BONUS = 5000
284282
285283 let MAX_NFTS_STAKED_BY_USER = 4
286284
287285 let keyNftTotalIssued = "nftTotalIssued"
288286
289287 let keyNftTotalBurned = "nftTotalBurned"
290288
291289 let keyWlNftTotalStaked = "WlNftTotalStaked"
292290
293291 let keyArkNftTotalStaked = "ArkNftTotalStaked"
294292
295293 func keyNftNumberByAssetId (assetId) = ("nftNumberByAssetId_" + assetId)
296294
297295
298296 func keyUserWlNftNumber (addr) = ("userWlNftNumber_" + addr)
299297
300298
301299 func keyUserArkNftNumber (addr) = ("userArkNftNumber_" + addr)
302300
303301
304302 func keyUserFullBonus (addr) = ("userFullBonus_" + addr)
305303
306304
307305 let levelAcres = [0, 10, 20, 40, 80, 150, 250, 400, 700, 1000]
308306
309307 func getLevelByAcres (acres) = {
310308 let acr = ((acres + 99999999) / M8_)
311309 func checker (acc,item) = if ((item >= acr))
312310 then acc
313311 else (acc + 1)
314312
315313 let $l = levelAcres
316314 let $s = size($l)
317315 let $acc0 = 0
318316 func $f0_1 ($a,$i) = if (($i >= $s))
319317 then $a
320318 else checker($a, $l[$i])
321319
322320 func $f0_2 ($a,$i) = if (($i >= $s))
323321 then $a
324322 else throw("List size exceeds 10")
325323
326324 $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)
327325 }
328326
329327
330328 func getFarmingPowerByAcres (acres) = ((acres * 20) * (getLevelByAcres(acres) + 4))
331329
332330
333331 func getFarmingPowerByAcresAndBonus (acres,bonus6) = {
334332 let notBonused = getFarmingPowerByAcres(acres)
335333 $Tuple2(fraction(notBonused, (M6_ + bonus6), M6_), notBonused)
336334 }
337335
338336
339337 let teamAddrKey = "teamAddr"
340338
341339 func keyLastWlgTradeTimeByUser (addr) = ("lastArbTimeUser_" + addr)
342340
343341
344342 let OLD_STAKING_DEADL = 1733346000000
345343
346344 let MAX_LANDS_TO_CONVERT = 14
347345
348346 let keyLastAcresSellTime = "lastAcresSellTime"
349347
350348 let keyLastLimitLeft = "lastLimitLeft"
351349
352350 let names = ["Gold shovel", "Pickaxe"]
353351
354352 let descriptions = ["Reward for early birds", "Increases FarmPower", "New Year promo reward"]
355353
356354 let idxDescrShovel = 0
357355
358356 let idxDescrPickaxe = 1
359357
360358 let idxDescrMitten = 2
361359
362360 let rarityThresholds = [5, 10, 20]
363361
364362 let idxThresholdC = 0
365363
366364 let idxThresholdU = 1
367365
368366 let idxThresholdL = 2
369367
370368 let namez = ["SHOVEL", "PICKAXE", "MITTEN"]
371369
372370 let idxNameShovel = 0
373371
374372 let idxNamePickaxe = 1
375373
376374 let idxNameMitten = 2
377375
378376 let contentKeyz = ["contentPickaxeC", "contentPickaxeU", "contentPickaxeL", "contentPickaxeE", "contentShovelP", "contentMittenP"]
379377
380378 let idxKeyC = 0
381379
382380 let idxKeySP = 4
383381
384382 let idxKeyMP = 5
385383
386384 let rarityNames = ["Common", "Uncommon", "Legendary", "Epic", "Promo"]
387385
388386 let idxRarityC = 0
389387
390388 let idxRarityU = 1
391389
392390 let idxRarityL = 2
393391
394392 let idxRarityE = 3
395393
396394 let idxRarityP = 4
397395
398396 let collectionz = ["Digging tools", "New Year gifts"]
399397
400398 let idxCollDig = 0
401399
402400 let idxCollNNewYear = 1
403401
404402 let bonusTypez = ["FarmPower"]
405403
406404 let idxBonusTypeFp = 0
407405
408406 func prolog (i) = if (if ((i.originCaller != rest2Contract))
409407 then valueOrElse(getBoolean(keyBlocked()), false)
410408 else false)
411409 then throw("Contracts are under maintenance")
412410 else {
413411 let addr = toString(i.originCaller)
414412 let week = (height / WEEK_BLOCKS)
415413 let lastWeekKey = keyLastWeekTxIdByUser(addr)
416414 let lastWeekTxIdByUser = getString(lastWeekKey)
417415 let txId = toBase58String(i.transactionId)
418416 let wtx = ((toString(week) + "_") + txId)
419417 let curWeekKey = keyCurWeekTxIdByUser(addr)
420418 if (isDefined(lastWeekTxIdByUser))
421419 then {
422420 let lastWeekTx = split(value(lastWeekTxIdByUser), "_")
423421 if ((lastWeekTx[0] == toString(week)))
424422 then [StringEntry(lastWeekKey, wtx), StringEntry(curWeekKey, wtx)]
425423 else if ((lastWeekTx[0] == toString((week - 1))))
426424 then [StringEntry(curWeekKey, wtx)]
427425 else {
428426 let curWeekTxIdByUser = getStringValue(curWeekKey)
429427 let curWeekTx = split(curWeekTxIdByUser, "_")
430428 if ((curWeekTx[0] == toString(week)))
431429 then [StringEntry(curWeekKey, wtx)]
432430 else [StringEntry(lastWeekKey, curWeekTxIdByUser), StringEntry(curWeekKey, wtx)]
433431 }
434432 }
435433 else [StringEntry(lastWeekKey, wtx), StringEntry(curWeekKey, wtx)]
436434 }
437435
438436
439437 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) + "\"}")
440438
441439
442440 func issueNftCustom (nameIdx,contKeyIdx,collIdx,rarityIdx,bonusPerc,descrIdx,bonusTypeIdx,addr) = {
443441 let nftSerial = valueOrElse(getInteger(keyNftTotalIssued), 0)
444442 let rarity = rarityNames[rarityIdx]
445443 let name = (((namez[nameIdx] + "-") + take(rarity, 1)) + toString(bonusPerc))
446444 let issue = Issue(name, createNftDescrCustom(contentKeyz[contKeyIdx], nftSerial, collectionz[collIdx], names[nameIdx], descriptions[descrIdx], rarityNames[rarityIdx], bonusPerc, bonusTypez[bonusTypeIdx]), 1, 0, false)
447445 let nftAssetId = calculateAssetId(issue)
448446 $Tuple2([issue, IntegerEntry(keyNftTotalIssued, (nftSerial + 1)), IntegerEntry(keyNftNumberByAssetId(toBase58String(nftAssetId)), nftSerial), ScriptTransfer(addr, 1, nftAssetId)], nftAssetId)
449447 }
450448
451449
452450 func bonusByDescription (descr) = if (!(contains(descr, "\"bonusType\": \"FarmPower\"")))
453451 then throw(("NFT is not supported: " + descr))
454452 else {
455453 let bonusStr = split_4C(split_4C(descr, "\"bonus\":")[1], ",")[0]
456454 parseIntValue(drop(bonusStr, (valueOrElse(lastIndexOf(bonusStr, " "), -1) + 1)))
457455 }
458456
459457
460458 func rarityIdxByDescriprion (descr) = if (!(contains(descr, "\"rare\"")))
461459 then throw(("NFT is not supported: " + descr))
462460 else {
463461 let rarityStr = split_4C(split_4C(split_4C(descr, "\"rare\"")[1], ",")[0], "\"")[1]
464462 value(indexOf(rarityNames, rarityStr))
465463 }
466464
467465
468466 func stakeUnstakeAcresInternal (amt,address,bonusDelta) = if (if ((amt == 0))
469467 then (bonusDelta == 0)
470468 else false)
471469 then throw("Nothing to do")
472470 else {
473471 let wlgResult = invoke(wlgContract, "onStakeUnstakeLand", [address], nil)
474472 if ((wlgResult == wlgResult))
475473 then {
476474 let now = lastBlock.timestamp
477475 let timeKey = keyAcresStakedTimeByUser(address)
478476 let amountKey = keyAcresStakedAmtByUser(address)
479477 let oldAcresAmount = valueOrElse(getInteger(amountKey), 0)
480478 if (if ((0 > amt))
481479 then (0 > (oldAcresAmount + amt))
482480 else false)
483481 then throw(((("You have only " + fixedPoint(oldAcresAmount, 8)) + " ACRES staked, tried to unstake ") + fixedPoint(-(amt), 8)))
484482 else {
485483 let newAcresAmount = (oldAcresAmount + amt)
486484 let oldTotal = valueOrElse(getInteger(acresStakdTotalKey), 0)
487485 let userFpKey = keyFarmingPowerByUser(address)
488486 let oldFp = valueOrElse(getInteger(userFpKey), 0)
489487 let bonusKey = keyUserFullBonus(address)
490488 let oldBonus = valueOrElse(getInteger(acres2Contract, bonusKey), 0)
491489 if (if ((0 > bonusDelta))
492490 then (0 > (oldBonus + bonusDelta))
493491 else false)
494492 then throw((((("You have only " + fixedPoint(oldBonus, 4)) + "% bonus, and tried to unstake ") + fixedPoint(-(bonusDelta), 4)) + "%"))
495493 else {
496494 let $t064656564 = getFarmingPowerByAcresAndBonus(newAcresAmount, (oldBonus + bonusDelta))
497495 let newBonusedFp = $t064656564._1
498496 let ignored = $t064656564._2
499497 let oldTotalFp = valueOrElse(getInteger(totalFarmingPowerKey), 0)
500498 let acresActions = if ((amt == 0))
501499 then nil
502500 else [IntegerEntry(amountKey, newAcresAmount), IntegerEntry(acresStakdTotalKey, (oldTotal + amt))]
503501 let bonusActions = if ((bonusDelta == 0))
504502 then nil
505503 else [IntegerEntry(bonusKey, (oldBonus + bonusDelta))]
506504 $Tuple2(((((acresActions ++ bonusActions) :+ IntegerEntry(timeKey, lastBlock.timestamp)) :+ IntegerEntry(userFpKey, newBonusedFp)) :+ IntegerEntry(totalFarmingPowerKey, ((oldTotalFp + newBonusedFp) - oldFp))), wlgResult)
507505 }
508506 }
509507 }
510508 else throw("Strict value is not equal to itself.")
511509 }
512510
513511
514512 func getWlgPrice (usdtBalanceCorrection) = {
515513 let issuedAmount = valueOrErrorMessage(getInteger(wlgContract, wlgIssuedAmtKey), "WLGOLD is not issued yet")
516514 let wlgUsd = assetBalance(wlgContract, usdtAssetId)
517515 let acres2Usd = (assetBalance(acres2Contract, usdtAssetId) - usdtBalanceCorrection)
518516 let investFundTotal = (assetBalance(investFundContract, usdtAssetId) + valueOrElse(getInteger(investFundContract, zbIssuedAmtKey), 0))
519517 let totalFundsUsd = ((acres2Usd + wlgUsd) + investFundTotal)
520518 fraction(totalFundsUsd, MULT8, issuedAmount)
521519 }
522520
523521
524522 func getSwapLimitAcres () = {
525523 let wlgUsd = assetBalance(wlgContract, usdtAssetId)
526524 let acres2Usd = assetBalance(this, usdtAssetId)
527525 let investFundTotal = (assetBalance(investFundContract, usdtAssetId) + valueOrElse(getInteger(investFundContract, zbIssuedAmtKey), 0))
528526 let defaultLimit = (((acres2Usd + wlgUsd) + investFundTotal) / ONE_PERCENT_DIVISOR)
529527 let lastLimitLeft = valueOrElse(getInteger(keyLastLimitLeft), defaultLimit)
530528 let lastTime = valueOrElse(getInteger(keyLastAcresSellTime), 0)
531529 let now = lastBlock.timestamp
532530 let currentLimit = (lastLimitLeft + fraction(defaultLimit, (now - lastTime), DAY_MILLIS))
533531 let limitLeftUsdt = min([currentLimit, defaultLimit])
534532 $Tuple2(IntegerEntry(keyLastAcresSellTime, now), limitLeftUsdt)
535533 }
536534
537535
538536 let arkOracle = addressFromStringValue("3PJgZ6AK1WVCpdCmEZpesHmaKvrQDdXG5og")
539537
540538 let incubator = valueOrElse(getString(arkOracle, "static_incubatorAddress"), "")
541539
542540 let breeder = valueOrElse(getString(arkOracle, "static_breederAddress"), "")
543541
544542 let turtleIncubator = valueOrElse(getString(arkOracle, "static_turtleIncubatorAddress"), "")
545543
546544 let turtleBreeder = valueOrElse(getString(arkOracle, "static_turtleBreederAddress"), "")
547545
548546 let canineIncubator = valueOrElse(getString(arkOracle, "static_canineIncubatorAddress"), "")
549547
550548 let canineBreeder = valueOrElse(getString(arkOracle, "static_canineBreederAddress"), "")
551549
552550 let felineIncubator = valueOrElse(getString(arkOracle, "static_felineIncubatorAddress"), "")
553551
554552 let felineBreeder = valueOrElse(getString(arkOracle, "static_felineBreederAddress"), "")
555553
556554 let mutantBreeder = valueOrElse(getString(arkOracle, "static_mutantIncubatorAddress"), "")
557555
558556 func isArkimalIssued (nfo) = {
559557 let issuer = toString(nfo.issuer)
560558 if (if (if (if (if (if (if (if (if (if ((chain == base58'2T'))
561559 then (issuer == oldStakingContractStr)
562560 else false)
563561 then true
564562 else (issuer == incubator))
565563 then true
566564 else (issuer == breeder))
567565 then true
568566 else (issuer == turtleIncubator))
569567 then true
570568 else (issuer == turtleBreeder))
571569 then true
572570 else (issuer == canineIncubator))
573571 then true
574572 else (issuer == canineBreeder))
575573 then true
576574 else (issuer == felineIncubator))
577575 then true
578576 else (issuer == felineBreeder))
579577 then nfo.name
580578 else if ((issuer == mutantBreeder))
581579 then nfo.description
582580 else ""
583581 }
584582
585583
586584 func stakeNftInternal (addr,assetIdStr,bonus6,userNumKey,totalNumKey,limit) = {
587585 let nftNumber = valueOrElse(getInteger(userNumKey), 0)
588586 if ((nftNumber >= limit))
589587 then throw((("You can stake max " + toString(limit)) + " of such NFTs"))
590588 else {
591589 let $t01084310919 = stakeUnstakeAcresInternal(0, addr, bonus6)
592590 let actions = $t01084310919._1
593591 let wlgClaimedAmount = $t01084310919._2
594592 $Tuple2((((actions :+ IntegerEntry(userNumKey, (nftNumber + 1))) :+ IntegerEntry(totalNumKey, (valueOrElse(getInteger(totalNumKey), 0) + 1))) :+ IntegerEntry(keyStakedTimeByAssetIdAndOwner(assetIdStr, addr), lastBlock.timestamp)), wlgClaimedAmount)
595593 }
596594 }
597595
598596
599597 func stakeAcresForInternal (address,amt,shouldCleanPromo) = {
600598 let $t01125411330 = stakeUnstakeAcresInternal(amt, address, 0)
601599 let actions = $t01125411330._1
602600 let wlgClaimedAmount = $t01125411330._2
603601 let promoActions = if (if ((height >= DAILY_PROMO_START_BLOCK))
604602 then (DAILY_PROMO_END_BLOCK > height)
605603 else false)
606604 then {
607605 let promoAcresKey = keyUserPromoAcres(address)
608606 let promoAcres = ((if (shouldCleanPromo)
609607 then 0
610608 else valueOrElse(getInteger(promoAcresKey), 0)) + amt)
611609 let tickets = (promoAcres / MULT8)
612610 let ticketsKey = keyUserPromoTickets(address)
613611 let deltaTickets = (tickets - valueOrElse(getInteger(ticketsKey), 0))
614612 let totalTickets = (valueOrElse(getInteger(keyTotalPromoTickets), 0) + deltaTickets)
615613 if (if (shouldCleanPromo)
616614 then true
617615 else (deltaTickets > 0))
618616 then {
619617 let promoMap = valueOrElse(getString(keyPromoMap), "")
620618 let userRecord = ((address + ":") + padL(tickets, 3))
621619 let newMap = if (contains(promoMap, address))
622620 then {
623621 let mapParts = split_51C(promoMap, address)
624622 if ((mapParts[0] == ""))
625623 then {
626624 let r = drop(mapParts[1], 4)
627625 if ((r == ""))
628626 then if ((tickets == 0))
629627 then ""
630628 else userRecord
631629 else if ((tickets == 0))
632630 then drop(r, 1)
633631 else (userRecord + r)
634632 }
635633 else {
636634 let r = drop(mapParts[1], 4)
637635 if ((r == ""))
638636 then if ((tickets == 0))
639637 then dropRight(mapParts[0], 1)
640638 else (mapParts[0] + userRecord)
641639 else if ((tickets == 0))
642640 then (mapParts[0] + drop(r, 1))
643641 else ((mapParts[0] + userRecord) + r)
644642 }
645643 }
646644 else if ((tickets == 0))
647645 then promoMap
648646 else if ((promoMap == ""))
649647 then userRecord
650648 else ((promoMap + "_") + userRecord)
651649 [IntegerEntry(promoAcresKey, promoAcres), IntegerEntry(ticketsKey, tickets), IntegerEntry(keyTotalPromoTickets, totalTickets), StringEntry(keyPromoMap, newMap)]
652650 }
653651 else [IntegerEntry(promoAcresKey, promoAcres)]
654652 }
655653 else nil
656654 $Tuple2((actions ++ promoActions), wlgClaimedAmount)
657655 }
658656
659657
660658 @Callable(i)
661659 func saveLastTx () = if (!(containsElement([wlgContract, marketContract], i.caller)))
662660 then throw("Access denied")
663661 else $Tuple2(prolog(i), 42)
664662
665663
666664
667665 @Callable(i)
668666 func constructorV1 (rest2Addr,oldAcrContract) = if ((i.caller != this))
669667 then throw("Permission denied")
670668 else {
671669 let oldAcrContAddr = addressFromStringValue(oldAcrContract)
672670 [IntegerEntry(acresIssuedAmountKey, getIntegerValue(oldAcrContAddr, acresIssuedAmountKey)), BinaryEntry(acresAssetIdKey, getBinaryValue(oldAcrContAddr, acresAssetIdKey)), StringEntry(keyRest2Address(), rest2Addr), StringEntry(oldAcresContractKey, oldAcrContract)]
673671 }
674672
675673
676674
677675 @Callable(i)
678676 func setBlocked (isBlocked) = if ((i.caller != this))
679677 then throw("permission denied")
680678 else [BooleanEntry(keyBlocked(), isBlocked)]
681679
682680
683681
684682 @Callable(i)
685683 func unstakeAcres (amount) = {
686684 let prologActions = prolog(i)
687685 if (if ((height >= DAILY_PROMO_START_BLOCK))
688686 then (DAILY_PROMO_END_BLOCK > height)
689687 else false)
690688 then throw("You can't unstake during Xmas promo period")
691689 else if ((0 >= amount))
692690 then throw("Amount should be positive")
693691 else {
694692 let address = toString(i.caller)
695693 if ((size(i.payments) != 0))
696694 then throw("No payments required")
697695 else {
698696 let arbReleaseTime = (valueOrElse(getInteger(wlgContract, keyLastWlgTradeTimeByUser(address)), 0) + arbitrageDelay)
699697 if ((arbReleaseTime > lastBlock.timestamp))
700698 then throw(("You traded some WLGOLD, cannot unstake until " + toString(arbReleaseTime)))
701699 else {
702700 let $t01533315413 = stakeUnstakeAcresInternal(-(amount), address, 0)
703701 let actions = $t01533315413._1
704702 let wlgClaimedAmount = $t01533315413._2
705703 $Tuple2(((actions :+ ScriptTransfer(i.caller, amount, acresAssetId)) ++ prologActions), wlgClaimedAmount)
706704 }
707705 }
708706 }
709707 }
710708
711709
712710
713711 @Callable(i)
714712 func stakeAcres () = {
715713 let prologActions = prolog(i)
716714 let address = toString(i.caller)
717715 if ((size(i.payments) != 1))
718716 then throw("exactly 1 payment must be attached")
719717 else {
720718 let pmt = i.payments[0]
721719 let amt = pmt.amount
722720 if (if (!(isDefined(pmt.assetId)))
723721 then true
724722 else (value(pmt.assetId) != acresAssetId))
725723 then throw("ACRES payments only!")
726724 else {
727725 let $t01586415945 = stakeAcresForInternal(address, amt, false)
728726 let stakeActions = $t01586415945._1
729727 let wlgClaimedAmount = $t01586415945._2
730728 $Tuple2((stakeActions ++ prologActions), wlgClaimedAmount)
731729 }
732730 }
733731 }
734732
735733
736734
737735 @Callable(i)
738736 func stakeAcresFor (address,amt,shouldCleanPromo) = if ((i.caller != this))
739737 then throw("Permission denied")
740738 else stakeAcresForInternal(address, amt, shouldCleanPromo)
741739
742740
743741
744742 @Callable(i)
745743 func buyAcres () = {
746744 let prologActions = prolog(i)
747745 if ((size(i.payments) != 1))
748746 then throw("exactly 1 payment must be attached")
749747 else {
750748 let pmt = i.payments[0]
751749 let usdtAmount = pmt.amount
752750 if (if (!(isDefined(pmt.assetId)))
753751 then true
754752 else (value(pmt.assetId) != usdtAssetId))
755753 then throw("USDT payments only!")
756754 else if ((MULT6 > usdtAmount))
757755 then throw((("Min payment should be " + fixedPoint(MULT6, 6)) + " USDT"))
758756 else {
759757 let acresAmount = (usdtAmount * USDT2ACRES_MULTIPLIER)
760758 let wlgAmount = fraction(usdtAmount, MULT8, getWlgPrice(usdtAmount))
761759 let oldAcresAddress = addressFromStringValue(getStringValue(oldAcresContractKey))
762760 let req = invoke(oldAcresAddress, "requestAcresCallback", [acresAmount], nil)
763761 if ((req == req))
764762 then {
765763 let wlgRemain = asInt(invoke(wlgContract, "burnWlgold", [wlgAmount], nil))
766764 $Tuple2(([ScriptTransfer(i.caller, acresAmount, acresAssetId)] ++ prologActions), wlgRemain)
767765 }
768766 else throw("Strict value is not equal to itself.")
769767 }
770768 }
771769 }
772770
773771
774772
775773 @Callable(i)
776774 func buyAcresREADONLY (usdtAmount) = {
777775 let acresAmount = (usdtAmount * USDT2ACRES_MULTIPLIER)
778776 let wlgToBurn = fraction(usdtAmount, MULT8, getWlgPrice(usdtAmount))
779777 $Tuple2(nil, [acresAmount, MULT6, acresAmount, wlgToBurn])
780778 }
781779
782780
783781
784782 @Callable(i)
785783 func sellAcres () = {
786784 let prologActions = prolog(i)
787785 if ((size(i.payments) != 1))
788786 then throw("exactly 1 payment must be attached")
789787 else {
790788 let pmt = i.payments[0]
791789 let acresAmount = pmt.amount
792790 if (if (!(isDefined(pmt.assetId)))
793791 then true
794792 else (value(pmt.assetId) != acresAssetId))
795793 then throw("ACRES payments only!")
796794 else if ((MULT7 > acresAmount))
797795 then throw((("Min payment should be " + fixedPoint(MULT7, 8)) + " ACRES"))
798796 else {
799797 let addr = toString(i.caller)
800798 let $t01801718065 = getSwapLimitAcres()
801799 let limitAction = $t01801718065._1
802800 let maxUsdt = $t01801718065._2
803801 let maxAcres = (maxUsdt * USDT2ACRES_MULTIPLIER)
804802 if ((acresAmount > maxAcres))
805803 then throw((("You can sell max " + fixedPoint(maxAcres, 8)) + " ACRES"))
806804 else {
807805 let usdtAmount = ((acresAmount / USDT2ACRES_MULTIPLIER) / 2)
808806 $Tuple2(([limitAction, IntegerEntry(keyLastLimitLeft, (maxUsdt - usdtAmount)), ScriptTransfer(i.caller, usdtAmount, usdtAssetId)] ++ prologActions), usdtAmount)
809807 }
810808 }
811809 }
812810 }
813811
814812
815813
816814 @Callable(i)
817815 func sellAcresREADONLY (address,acresAmount) = {
818816 let $t01856118609 = getSwapLimitAcres()
819817 let limitAction = $t01856118609._1
820818 let maxUsdt = $t01856118609._2
821819 let usdtAmount = ((acresAmount / USDT2ACRES_MULTIPLIER) / 2)
822820 $Tuple2(nil, [usdtAmount, MULT7, (maxUsdt * USDT2ACRES_MULTIPLIER), 0])
823821 }
824822
825823
826824
827825 @Callable(i)
828826 func convertOldStakes () = {
829827 let prologActions = prolog(i)
830828 if ((OLD_STAKING_DEADL > lastBlock.timestamp))
831829 then throw(("Disabled until " + toString((OLD_STAKING_DEADL / 1000))))
832830 else {
833831 let address = toString(i.caller)
834832 if ((size(i.payments) != 0))
835833 then throw("No payments required")
836834 else {
837835 let oldAcresAddress = addressFromStringValue(getStringValue(oldAcresContractKey))
838836 let amount = valueOrElse(getInteger(oldAcresAddress, keyAcresStakedAmtByUser(address)), 0)
839837 let gotAcres0 = if ((amount > 0))
840838 then asTuple2Ints(invoke(oldAcresAddress, "unstakeAcresCallback", [amount, address], nil))
841839 else $Tuple2(0, 0)
842840 let oldStakingAddress = addressFromStringValue(oldStakingContractStr)
843841 let landsStr = getString(oldStakingAddress, keyStakedLandsByOwner(address))
844842 let landsResult = if (isDefined(landsStr))
845843 then {
846844 let lands = split_51C(value(landsStr), "_")
847845 if ((size(lands) > MAX_LANDS_TO_CONVERT))
848846 then throw((("You have more than " + toString(MAX_LANDS_TO_CONVERT)) + " lands staked, please contact support, we'll process your case manually"))
849847 else {
850848 func oneLand (acc,landAssetId) = if ((landAssetId == ""))
851849 then throw("landAssetId is required")
852850 else {
853851 let r = asTuple5Ints(invoke(oldStakingAddress, "unstakeLandCallback", [landAssetId, address], nil))
854852 if ((r == r))
855853 then $Tuple5((acc._1 + r._1), (acc._2 + r._2), (acc._3 + r._3), (acc._4 + r._4), (acc._5 + r._5))
856854 else throw("Strict value is not equal to itself.")
857855 }
858856
859857 let rr = {
860858 let $l = lands
861859 let $s = size($l)
862860 let $acc0 = $Tuple5(0, 0, 0, 0, 0)
863861 func $f0_1 ($a,$i) = if (($i >= $s))
864862 then $a
865863 else oneLand($a, $l[$i])
866864
867865 func $f0_2 ($a,$i) = if (($i >= $s))
868866 then $a
869867 else throw("List size exceeds 14")
870868
871869 $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)
872870 }
873871 if ((rr == rr))
874872 then {
875873 let finalize = invoke(oldStakingAddress, "unstakeLandsFinalizeCallback", [address], nil)
876874 if ((finalize == finalize))
877875 then {
878876 let req = invoke(oldAcresAddress, "requestAcresCallback", [(((rr._1 + rr._2) + rr._3) + rr._4)], nil)
879877 if ((req == req))
880878 then {
881879 let $t02112321262 = issueNftCustom(idxNameShovel, idxKeySP, idxCollDig, idxRarityP, 3, idxDescrShovel, idxBonusTypeFp, i.caller)
882880 let nftActions = $t02112321262._1
883881 let nftAssetId = $t02112321262._2
884882 $Tuple6(rr._1, rr._2, rr._3, rr._4, rr._5, nftActions)
885883 }
886884 else throw("Strict value is not equal to itself.")
887885 }
888886 else throw("Strict value is not equal to itself.")
889887 }
890888 else throw("Strict value is not equal to itself.")
891889 }
892890 }
893891 else $Tuple6(0, 0, 0, 0, 0, nil)
894892 let duckAssetId = valueOrElse(getString(oldStakingAddress, keyStakedDuckByOwner(address)), "")
895893 let duckResult = if ((duckAssetId != ""))
896894 then asTuple3Ints(invoke(oldStakingAddress, "unstakeDuckCallback", [duckAssetId, address], nil))
897895 else $Tuple3(0, 0, 0)
898896 let x = stakeUnstakeAcresInternal((((((((gotAcres0._1 + landsResult._1) + landsResult._2) + landsResult._3) + landsResult._4) + duckResult._1) + duckResult._2) + duckResult._3), address, 0)
899897 $Tuple2(((landsResult._6 ++ x._1) ++ prologActions), $Tuple3(gotAcres0._2, landsResult._5, x._2))
900898 }
901899 }
902900 }
903901
904902
905903
906904 @Callable(i)
907905 func unstakeLandsREADONLY (address) = {
908906 let oldStakingAddress = addressFromStringValue(oldStakingContractStr)
909907 let landsStr = getString(oldStakingAddress, keyStakedLandsByOwner(address))
910908 let landsResult = if (isDefined(landsStr))
911909 then {
912910 let lands = split_51C(value(landsStr), "_")
913911 func oneLand (acc,landAssetId) = if ((landAssetId == ""))
914912 then throw("landAssetId is required")
915913 else {
916914 let r = asTuple4Ints(invoke(oldStakingAddress, "unstakeLandREADONLY", [landAssetId, address], nil))
917915 $Tuple4((acc._1 + r._1), (acc._2 + r._2), (acc._3 + r._3), (acc._4 + r._4))
918916 }
919917
920918 let $l = lands
921919 let $s = size($l)
922920 let $acc0 = $Tuple4(0, 0, 0, 0)
923921 func $f0_1 ($a,$i) = if (($i >= $s))
924922 then $a
925923 else oneLand($a, $l[$i])
926924
927925 func $f0_2 ($a,$i) = if (($i >= $s))
928926 then $a
929927 else throw("List size exceeds 100")
930928
931929 $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)
932930 }
933931 else $Tuple4(0, 0, 0, 0)
934932 $Tuple2(nil, landsResult)
935933 }
936934
937935
938936
939937 @Callable(i)
940938 func stakeAcresCallback (addr) = if ((i.caller != addressFromStringValue(oldStakingContractStr)))
941939 then throw("Permission denied")
942940 else stakeUnstakeAcresInternal(i.payments[0].amount, addr, 0)
943941
944942
945943
946944 @Callable(i)
947945 func simulateStakeAcresREADONLY (address,addedAmount) = {
948946 let amountKey = keyAcresStakedAmtByUser(address)
949947 let newAcresAmount = (valueOrElse(getInteger(amountKey), 0) + addedAmount)
950948 let oldTotal = valueOrElse(getInteger(acresStakdTotalKey), 0)
951949 let userFpKey = keyFarmingPowerByUser(address)
952950 let oldFp = valueOrElse(getInteger(userFpKey), 0)
953951 let userBonus = valueOrElse(getInteger(acres2Contract, keyUserFullBonus(address)), 0)
954952 let $t02353323620 = getFarmingPowerByAcresAndBonus(newAcresAmount, userBonus)
955953 let newBonusedFp = $t02353323620._1
956954 let ignored = $t02353323620._2
957955 let oldTotalFp = valueOrElse(getInteger(totalFarmingPowerKey), 0)
958956 let newTotalFp = ((oldTotalFp + newBonusedFp) - oldFp)
959957 $Tuple2(nil, [oldFp, newBonusedFp, oldTotalFp, newTotalFp])
960958 }
961959
962960
963961
964962 @Callable(i)
965963 func issuePickC1 (forAddress) = if ((i.caller != wlgContract))
966964 then throw("Permission denied")
967965 else issueNftCustom(idxNamePickaxe, idxKeyC, idxCollDig, idxRarityC, 1, idxDescrPickaxe, idxBonusTypeFp, addressFromStringValue(forAddress))
968966
969967
970968
971969 @Callable(i)
972970 func issueMittenP (forAddress) = if ((i.caller != this))
973971 then throw("Permission denied")
974972 else issueNftCustom(idxNameMitten, idxKeyMP, idxCollNNewYear, idxRarityP, 3, idxDescrMitten, idxBonusTypeFp, addressFromStringValue(forAddress))
975973
976974
977975
978976 @Callable(i)
979977 func stakeNFT () = {
980978 let prologActions = prolog(i)
981979 if ((size(i.payments) != 1))
982980 then throw("Exactly one payment required")
983981 else {
984982 let pmt = value(i.payments[0])
985983 if ((pmt.amount != 1))
986984 then throw("NFT token should be attached as payment")
987985 else {
988986 let assetId = value(pmt.assetId)
989987 let asset = value(assetInfo(assetId))
990988 let assetIdStr = toBase58String(assetId)
991989 let addr = toString(i.caller)
992990 let nftsKey = keyStakedNFTsByOwner(addr)
993991 let nftsStr = getString(nftsKey)
994992 let nfts = if (isDefined(nftsStr))
995993 then split_4C(value(nftsStr), "_")
996994 else nil
997995 if (containsElement(nfts, assetIdStr))
998996 then throw(("Your staked NFTs already contain " + assetIdStr))
999997 else if ((size(nfts) >= MAX_NFTS_STAKED_BY_USER))
1000998 then throw((("Your already staked max (" + toString(MAX_NFTS_STAKED_BY_USER)) + ") NFTs"))
1001999 else {
10021000 let listAction = StringEntry(nftsKey, makeString_2C((nfts :+ assetIdStr), "_"))
10031001 if ((asset.issuer == this))
10041002 then {
10051003 let $t02532025510 = stakeNftInternal(addr, assetIdStr, (bonusByDescription(value(asset.description)) * 10000), keyUserWlNftNumber(addr), keyWlNftTotalStaked, MAX_WL_NFTS)
10061004 let actions = $t02532025510._1
10071005 let wlgClaimedAmount = $t02532025510._2
10081006 $Tuple2(((prologActions ++ actions) :+ listAction), wlgClaimedAmount)
10091007 }
10101008 else if ((isArkimalIssued(asset) == ""))
10111009 then throw("Only WavesLands and Arkimals NFT tokens are accepted")
10121010 else {
10131011 let $t02569125842 = stakeNftInternal(addr, assetIdStr, ARK_NFT_BONUS, keyUserArkNftNumber(addr), keyArkNftTotalStaked, MAX_ARK_NFTS)
10141012 let actions = $t02569125842._1
10151013 let wlgClaimedAmount = $t02569125842._2
10161014 $Tuple2(((prologActions ++ actions) :+ listAction), wlgClaimedAmount)
10171015 }
10181016 }
10191017 }
10201018 }
10211019 }
10221020
10231021
10241022
10251023 @Callable(i)
10261024 func unstakeNFT (assetIdStr) = {
10271025 let prologActions = prolog(i)
10281026 if ((size(i.payments) != 0))
10291027 then throw("No payments required")
10301028 else {
10311029 let assetId = fromBase58String(assetIdStr)
10321030 let addr = toString(i.caller)
10331031 let asset = value(assetInfo(assetId))
10341032 let timeKey = keyStakedTimeByAssetIdAndOwner(assetIdStr, addr)
10351033 if (!(isDefined(getInteger(timeKey))))
10361034 then throw((("NFT " + asset.name) + " is not staked by you"))
10371035 else {
10381036 let nftsKey = keyStakedNFTsByOwner(addr)
10391037 let nfts = split_4C(valueOrElse(getString(nftsKey), ""), "_")
10401038 let idx = indexOf(nfts, assetIdStr)
10411039 if (!(isDefined(idx)))
10421040 then throw(("Your staked NFTs don't contain " + assetIdStr))
10431041 else {
10441042 let listAction = if ((size(nfts) > 1))
10451043 then StringEntry(nftsKey, makeString_2C(removeByIndex(nfts, value(idx)), "_"))
10461044 else DeleteEntry(nftsKey)
10471045 let isWL = (asset.issuer == this)
10481046 if (isWL)
10491047 then {
10501048 let wlNftNumber = valueOrElse(getInteger(keyUserWlNftNumber(addr)), 0)
10511049 let bonusVal = (bonusByDescription(value(asset.description)) * 10000)
10521050 let $t02700727086 = stakeUnstakeAcresInternal(0, addr, -(bonusVal))
10531051 let actions = $t02700727086._1
10541052 let wlgClaimedAmount = $t02700727086._2
10551053 $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)
10561054 }
10571055 else {
10581056 let arkimalName = isArkimalIssued(asset)
10591057 if ((arkimalName == ""))
10601058 then throw("Only WavesLands and Arkimals NFT tokens are accepted")
10611059 else {
10621060 let arkNftNumber = valueOrElse(getInteger(keyUserArkNftNumber(addr)), 0)
10631061 let $t02774627830 = stakeUnstakeAcresInternal(0, addr, -(ARK_NFT_BONUS))
10641062 let actions = $t02774627830._1
10651063 let wlgClaimedAmount = $t02774627830._2
10661064 $Tuple2((((((actions :+ listAction) :+ IntegerEntry(keyUserArkNftNumber(addr), (arkNftNumber - 1))) :+ DeleteEntry(keyStakedTimeByAssetIdAndOwner(toBase58String(assetId), addr))) :+ ScriptTransfer(i.caller, 1, assetId)) ++ prologActions), wlgClaimedAmount)
10671065 }
10681066 }
10691067 }
10701068 }
10711069 }
10721070 }
10731071
10741072
10751073
10761074 @Callable(i)
10771075 func exchangeNFTs () = if ((i.caller != this))
10781076 then throw("Temporary disabled")
10791077 else {
10801078 let prologActions = prolog(i)
10811079 if ((3 > size(i.payments)))
10821080 then throw("Min one WLGOLD and 2 NFT payments allowed")
10831081 else if ((size(i.payments) > 10))
10841082 then throw("Max one WLGOLD and 9 NFT payments allowed")
10851083 else {
10861084 let addr = toString(i.caller)
10871085 func addUp (acc,pmt) = {
10881086 let assetId = valueOrErrorMessage(pmt.assetId, "WAVES payments not allowed")
10891087 if ((assetId == wlgAssetId))
10901088 then $Tuple4((acc._1 + pmt.amount), acc._2, acc._3, acc._4)
10911089 else {
10921090 let asset = value(assetInfo(assetId))
10931091 if ((asset.issuer != this))
10941092 then throw("Only WL-issued NFTs allowed")
10951093 else {
10961094 let rarityIx = rarityIdxByDescriprion(value(asset.description))
10971095 if (if ((acc._4 > 0))
10981096 then (rarityIx != acc._4)
10991097 else false)
11001098 then throw("You can exchange only NFTs of the same rarity")
11011099 else {
11021100 let bonusPerc = bonusByDescription(value(asset.description))
11031101 $Tuple4(acc._1, (acc._2 + bonusPerc), (acc._3 :+ Burn(assetId, 1)), rarityIx)
11041102 }
11051103 }
11061104 }
11071105 }
11081106
11091107 let $t02928129497 = {
11101108 let $l = i.payments
11111109 let $s = size($l)
11121110 let $acc0 = $Tuple4(0, 0, nil, -1)
11131111 func $f0_1 ($a,$i) = if (($i >= $s))
11141112 then $a
11151113 else addUp($a, $l[$i])
11161114
11171115 func $f0_2 ($a,$i) = if (($i >= $s))
11181116 then $a
11191117 else throw("List size exceeds 10")
11201118
11211119 $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)
11221120 }
11231121 let wlgFee = $t02928129497._1
11241122 let totalBonus = $t02928129497._2
11251123 let burnActions = $t02928129497._3
11261124 let rarityIdx = $t02928129497._4
11271125 let newRarityIdx = if ((rarityIdx == idxRarityC))
11281126 then if ((rarityThresholds[idxThresholdC] > totalBonus))
11291127 then idxRarityC
11301128 else if ((rarityThresholds[idxThresholdU] > totalBonus))
11311129 then idxRarityU
11321130 else throw((("You can advance only one level of rarity, max total bonus " + toString(rarityThresholds[idxThresholdU])) + "%"))
11331131 else if ((rarityIdx == idxRarityU))
11341132 then if ((rarityThresholds[idxThresholdU] > totalBonus))
11351133 then idxRarityU
11361134 else if ((rarityThresholds[idxThresholdL] > totalBonus))
11371135 then idxRarityL
11381136 else throw((("You can advance only one level of rarity, max total bonus " + toString(rarityThresholds[idxThresholdL])) + "%"))
11391137 else if ((rarityIdx == idxRarityL))
11401138 then if ((rarityThresholds[idxThresholdL] > totalBonus))
11411139 then idxRarityL
11421140 else idxRarityE
11431141 else if ((rarityIdx == idxRarityE))
11441142 then idxRarityE
11451143 else if ((rarityIdx == idxRarityP))
11461144 then throw("You can't exchange NFTs of this rarity")
11471145 else throw("Unknown rarity")
11481146 let minWlgFee = fraction(totalBonus, MULT14, getWlgPrice(0))
11491147 let change = (wlgFee - minWlgFee)
11501148 let forTeam = (minWlgFee / 2)
11511149 let wlgRemain = asInt(invoke(wlgContract, "burnWlgold", [(minWlgFee - forTeam)], nil))
11521150 if ((0 > change))
11531151 then throw((("You need to attach " + fixedPoint(minWlgFee, 8)) + " WLGOLD as fee"))
11541152 else {
11551153 let changeActions = if ((change > 0))
11561154 then [ScriptTransfer(i.caller, change, wlgAssetId)]
11571155 else nil
11581156 let $t03103431195 = issueNftCustom(idxNamePickaxe, newRarityIdx, idxCollDig, newRarityIdx, totalBonus, idxDescrPickaxe, idxBonusTypeFp, i.caller)
11591157 let issueNftActions = $t03103431195._1
11601158 let nftAssetId = $t03103431195._2
11611159 let burned = size(burnActions)
11621160 let burnCounterActions = if ((burned == 0))
11631161 then nil
11641162 else [IntegerEntry(keyNftTotalBurned, (valueOrElse(getInteger(keyNftTotalBurned), 0) + burned))]
11651163 $Tuple2((((((issueNftActions ++ burnActions) ++ burnCounterActions) ++ prologActions) ++ changeActions) :+ ScriptTransfer(addressFromStringValue(getStringValue(wlgContract, teamAddrKey)), forTeam, wlgAssetId)), $Tuple2(nftAssetId, wlgRemain))
11661164 }
11671165 }
11681166 }
11691167
11701168
11711169
11721170 @Callable(i)
11731171 func openNftChest () = if ((i.caller != this))
11741172 then throw("Temporary disabled")
11751173 else {
11761174 let prologActions = prolog(i)
11771175 if ((size(i.payments) != 1))
11781176 then throw("exactly 1 payment must be attached")
11791177 else {
11801178 let pmt = i.payments[0]
11811179 let wlgAmount = pmt.amount
11821180 if (if (!(isDefined(pmt.assetId)))
11831181 then true
11841182 else (value(pmt.assetId) != wlgAssetId))
11851183 then throw("WLGOLD payments only!")
11861184 else {
11871185 let minWlgFee = fraction(NFT_CHEST_PRICE_USDT, MULT8, getWlgPrice(0))
11881186 let change = (wlgAmount - minWlgFee)
11891187 let forTeam = (minWlgFee / 2)
11901188 let wlgRemain = asInt(invoke(wlgContract, "burnWlgold", [(minWlgFee - forTeam)], nil))
11911189 if ((0 > change))
11921190 then throw((("You need to attach " + fixedPoint(minWlgFee, 8)) + " WLGOLD as fee"))
11931191 else {
11941192 let changeActions = if ((change > 0))
11951193 then [ScriptTransfer(i.caller, change, wlgAssetId)]
11961194 else nil
11971195 let addr = toString(i.caller)
11981196 let finishKey = keyCommit(addr)
11991197 let finishBlock = valueOrErrorMessage(getInteger(finishKey), "You have to commitForRandom() first!")
12001198 if ((finishBlock > height))
12011199 then throw(("Random number is not ready yet, wait until height = " + toString(finishBlock)))
12021200 else {
12031201 let entropy = value(value(blockInfoByHeight(finishBlock)).vrf)
12041202 let salt = fromBase58String(split(valueOrElse(getString(keyCurWeekTxIdByUser(addr)), "42_DEFAULT"), "_")[1])
12051203 let rand = getRandomNumber(100, salt, entropy)
12061204 let $t03327633548 = if ((84 > rand))
12071205 then $Tuple2(1, idxRarityC)
12081206 else if ((98 > rand))
12091207 then $Tuple2(5, idxRarityU)
12101208 else $Tuple2(10, idxRarityL)
12111209 let bonus = $t03327633548._1
12121210 let rarityIdx = $t03327633548._2
12131211 let $t03355133701 = issueNftCustom(idxNamePickaxe, rarityIdx, idxCollDig, rarityIdx, bonus, idxDescrPickaxe, idxBonusTypeFp, i.caller)
12141212 let issueNftActions = $t03355133701._1
12151213 let nftAssetId = $t03355133701._2
12161214 $Tuple2(((((issueNftActions ++ prologActions) ++ changeActions) :+ ScriptTransfer(addressFromStringValue(getStringValue(wlgContract, teamAddrKey)), forTeam, wlgAssetId)) :+ DeleteEntry(finishKey)), $Tuple2(nftAssetId, wlgRemain))
12171215 }
12181216 }
12191217 }
12201218 }
12211219 }
12221220
12231221
12241222
12251223 @Callable(i)
12261224 func commitForRandom () = if ((i.caller != this))
12271225 then throw("Temporary disabled")
12281226 else {
12291227 let prologActions = prolog(i)
12301228 let addr = toString(i.caller)
12311229 let finishKey = keyCommit(addr)
12321230 if (isDefined(getInteger(finishKey)))
12331231 then throw("You already commited for random, please use it")
12341232 else {
12351233 let finishBlock = (height + RANDOM_DELAY)
12361234 $Tuple2(([IntegerEntry(finishKey, finishBlock)] ++ prologActions), finishBlock)
12371235 }
12381236 }
12391237
12401238
12411239
12421240 @Callable(i)
1243-func drawDaylyPromo () = if ((i.caller != this))
1241+func drawPromoRound (roundId) = if ((i.caller != this))
12441242 then throw("Permission denied")
12451243 else {
12461244 let today = (height / DAY_BLOCKS)
12471245 let maxValue = valueOrElse(getInteger(keyTotalPromoTickets), 0)
12481246 if ((maxValue == 0))
12491247 then throw("No tickets to draw")
12501248 else {
12511249 let b = (today * DAY_BLOCKS)
12521250 let h = if ((b > VRF_OFFSET))
12531251 then b
12541252 else (b + VRF_OFFSET)
12551253 let entropy = value(value(blockInfoByHeight(h)).vrf)
12561254 let promoMap = valueOrElse(getString(keyPromoMap), "")
12571255 if ((promoMap == ""))
12581256 then throw("No participants")
12591257 else {
1260- func singleDraw (ac,j) = if ((j >= promoNumPrizes))
1261- then ac
1262- else {
1263- let rand = getRandomNumber(ac._1, ac._2, entropy)
1264- let promoList = if ((ac._3 == ""))
1265- then nil
1266- else split_51C(ac._3, "_")
1267- func countTickets (acc,el) = {
1268- let parts = split(el, ":")
1269- let addr = parts[0]
1270- let tickets = parseIntValue(parts[1])
1271- let newTotal = (acc._1 + tickets)
1272- if (if ((acc._3 == ""))
1273- then (newTotal > rand)
1274- else false)
1275- then $Tuple3(newTotal, tickets, addr)
1276- else $Tuple3(newTotal, acc._2, acc._3)
1258+ func singleDraw (ac,j) = {
1259+ let promoList = if ((ac._3 == ""))
1260+ then nil
1261+ else split_51C(ac._3, "_")
1262+ if ((j >= size(promoList)))
1263+ then ac
1264+ else {
1265+ let rand = getRandomNumber(ac._1, ac._2, entropy)
1266+ func countTickets (acc,el) = {
1267+ let parts = split(el, ":")
1268+ let addr = parts[0]
1269+ let tickets = parseIntValue(parts[1])
1270+ let newTotal = (acc._1 + tickets)
1271+ if (if ((acc._3 == ""))
1272+ then (newTotal > rand)
1273+ else false)
1274+ then $Tuple3(newTotal, tickets, addr)
1275+ else $Tuple3(newTotal, acc._2, acc._3)
1276+ }
1277+
1278+ let r = {
1279+ let $l = promoList
1280+ let $s = size($l)
1281+ let $acc0 = $Tuple3(0, 0, "")
1282+ func $f0_1 ($a,$i) = if (($i >= $s))
1283+ then $a
1284+ else countTickets($a, $l[$i])
1285+
1286+ func $f0_2 ($a,$i) = if (($i >= $s))
1287+ then $a
1288+ else throw("List size exceeds 200")
1289+
1290+ $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)
1291+ }
1292+ let winner = r._3
1293+ if ((winner == ""))
1294+ then ac
1295+ else {
1296+ let mapParts = split_51C(ac._3, winner)
1297+ let newMap = if ((mapParts[0] == ""))
1298+ then drop(mapParts[1], 5)
1299+ else (dropRight(mapParts[0], 1) + drop(mapParts[1], 4))
1300+ let winActions = if ((j == 0))
1301+ then invoke(this, "issueMittenP", [winner], nil)
1302+ else invoke(this, "stakeAcresFor", [winner, promoAwardPerRound[j], true], nil)
1303+ if ((winActions == winActions))
1304+ then {
1305+ let newSalt = fromBase58String(split(valueOrElse(getString(keyCurWeekTxIdByUser(winner)), "0_DEFAULT"), "_")[1])
1306+ $Tuple4((ac._1 - r._2), newSalt, newMap, (ac._4 :+ winner))
1307+ }
1308+ else throw("Strict value is not equal to itself.")
1309+ }
12771310 }
1278-
1279- let r = {
1280- let $l = promoList
1281- let $s = size($l)
1282- let $acc0 = $Tuple3(0, 0, "")
1283- func $f0_1 ($a,$i) = if (($i >= $s))
1284- then $a
1285- else countTickets($a, $l[$i])
1286-
1287- func $f0_2 ($a,$i) = if (($i >= $s))
1288- then $a
1289- else throw("List size exceeds 200")
1290-
1291- $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)
1292- }
1293- let winner = r._3
1294- if ((winner == ""))
1295- then ac
1296- else {
1297- let mapParts = split_51C(ac._3, winner)
1298- let newMap = if ((mapParts[0] == ""))
1299- then drop(mapParts[1], 5)
1300- else (dropRight(mapParts[0], 1) + drop(mapParts[1], 4))
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))
1305- then {
1306- let newSalt = fromBase58String(split(valueOrElse(getString(keyCurWeekTxIdByUser(winner)), "0_DEFAULT"), "_")[1])
1307- $Tuple4((ac._1 - r._2), newSalt, newMap, (ac._4 :+ winner))
1308- }
1309- else throw("Strict value is not equal to itself.")
1310- }
1311- }
1311+ }
13121312
13131313 let draws = {
13141314 let $l = [0, 1, 2, 3, 4, 5]
13151315 let $s = size($l)
13161316 let $acc0 = $Tuple4(maxValue, i.transactionId, promoMap, nil)
13171317 func $f0_1 ($a,$i) = if (($i >= $s))
13181318 then $a
13191319 else singleDraw($a, $l[$i])
13201320
13211321 func $f0_2 ($a,$i) = if (($i >= $s))
13221322 then $a
13231323 else throw("List size exceeds 6")
13241324
13251325 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
13261326 }
1327- $Tuple2([StringEntry(keyPromoMap, draws._3), IntegerEntry(keyTotalPromoTickets, draws._1), StringEntry(keyDailyWinners(today), makeString(draws._4, "_"))], 0)
1327+ $Tuple2([StringEntry(keyPromoMap, draws._3), IntegerEntry(keyTotalPromoTickets, draws._1), StringEntry(keyPromoRoundWinners(roundId), makeString(draws._4, "_"))], 0)
13281328 }
13291329 }
13301330 }
13311331
13321332

github/deemru/w8io/169f3d6 
139.65 ms