tx · 6S6WPYt6hPANHCPzTeRSQJC1KxobjcrtxwqZf8WzMgSQ

3N7dQeENwSgKPp9Ki4aEHhRWWKVjn1DE9Qg:  -0.02000000 Waves

2023.11.27 22:28 [2862234] smart account 3N7dQeENwSgKPp9Ki4aEHhRWWKVjn1DE9Qg > SELF 0.00000000 Waves

{ "type": 13, "id": "6S6WPYt6hPANHCPzTeRSQJC1KxobjcrtxwqZf8WzMgSQ", "fee": 2000000, "feeAssetId": null, "timestamp": 1701113362536, "version": 2, "chainId": 84, "sender": "3N7dQeENwSgKPp9Ki4aEHhRWWKVjn1DE9Qg", "senderPublicKey": "5BN6FQeKuMm2XJYToUZvbBX4UELGpE3Z47P4q6sP46PG", "proofs": [ "4Tyv4aYmjXyg2AhpvTheCAZw8uBG6BwqJigMAptd75VHRRU5BPE2fBQ125BdnTgJCbeDnCsTXaNEcTZQQLR8EneK" ], "script": "base64:BgI2CAISBAoCCAESAwoBARIAEgASBAoCCAESBQoDCAEBEgMKAQESABIDCgEIEgASAwoBARIDCgEBQQAITUlMTElPTjYAgIDpg7HeFgAJREFZTUlMTElTAIC4mSkBGmtleUFjcmVzU3Rha2VkQW1vdW50QnlVc2VyAQRhZGRyCQCsAgICGGFjcmVzU3Rha2VkQW1vdW50QnlVc2VyXwUEYWRkcgEaa2V5QWNyZXNMb2NrZWRBbW91bnRCeVVzZXIBBGFkZHIJAKwCAgIYYWNyZXNMb2NrZWRBbW91bnRCeVVzZXJfBQRhZGRyARdrZXlBY3Jlc0xvY2tlZEV0YUJ5VXNlcgEEYWRkcgkArAICAhVhY3Jlc0xvY2tlZEV0YUJ5VXNlcl8FBGFkZHIAE2FjcmVzU3Rha2VkVG90YWxLZXkCFmFjcmVzU3Rha2VkQW1vdW50VG90YWwACnhwTmV3U0xhbmQAwJaxAgAPREFJTFlSRVNCWVBJRUNFAID40gEAFVVTRFQyQUNSRVNfTVVMVElQTElFUgAKARprZXlJc0F3YXJkZWRCeVByb21vQW5kVXNlcgIHcHJvbW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x2mDVwnej Next: BZ2LsFFSnNda7cdDdLG4BFaK3HsjvToJG4eF1AjkUbYw Diff:
OldNewDifferences
581581 let entropy = value(value(blockInfoByHeight(finishBlock)).vrf)
582582 let salt = i.transactionId
583583 let promo2Map = valueOrElse(getString(keyPromo2MapForRound(roundId)), "")
584- func singleDraw (ac,j) = if ((j > promo2NumPrizesPerRound[(roundId - 1)]))
584+ func singleDraw (ac,j) = if ((j >= promo2NumPrizesPerRound[(roundId - 1)]))
585585 then ac
586586 else {
587587 let rand = getRandomNumber(ac._1, ac._2, entropy)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let MILLION6 = 100000000000000
55
66 let DAYMILLIS = 86400000
77
88 func keyAcresStakedAmountByUser (addr) = ("acresStakedAmountByUser_" + addr)
99
1010
1111 func keyAcresLockedAmountByUser (addr) = ("acresLockedAmountByUser_" + addr)
1212
1313
1414 func keyAcresLockedEtaByUser (addr) = ("acresLockedEtaByUser_" + addr)
1515
1616
1717 let acresStakedTotalKey = "acresStakedAmountTotal"
1818
1919 let xpNewSLand = 5000000
2020
2121 let DAILYRESBYPIECE = 3456000
2222
2323 let USDT2ACRES_MULTIPLIER = 10
2424
2525 func keyIsAwardedByPromoAndUser (promoId,addr) = makeString(["%s%d%s__isAwardedByPromoAndUser", toString(promoId), addr], "__")
2626
2727
2828 func keyTicketsTotalByPromo (promoId) = ("%s%d__ticketsTotalByPromo__" + toString(promoId))
2929
3030
3131 func keyTicketsTotalByPromoAndRound (promoId,roundId) = makeString(["%s%d%d__ticketsTotalByPromoAndRound", toString(promoId), toString(roundId)], "__")
3232
3333
3434 let chain = take(drop(this.bytes, 1), 1)
3535
3636 let usdtAssetId = match chain {
3737 case _ =>
3838 if ((base58'2W' == $match0))
3939 then base58'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi'
4040 else if ((base58'2T' == $match0))
4141 then base58'6mWwf9mZBjVgkC54idpyaZLQfAosD914wT8fGf2iiY63'
4242 else throw("Unknown chain")
4343 }
4444
4545 let defaultRestAddressStr = match chain {
4646 case _ =>
4747 if ((base58'2W' == $match0))
4848 then "3PQCuvFbvh4LkPUnrnU1z3jnbA1p9m3WNhv"
4949 else if ((base58'2T' == $match0))
5050 then "3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy"
5151 else throw("Unknown chain")
5252 }
5353
5454 let promo2MapKey = "promo2Map"
5555
5656 func keyPromo2MapForRound (roundId) = ("promo2MapForRound__" + toString(roundId))
5757
5858
5959 let SEP = "__"
6060
6161 let MULT6 = 1000000
6262
6363 let MULT8 = 100000000
6464
6565 let ITER20 = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19]
6666
6767 func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], ""))
6868
6969
7070 let IdxCfgStakingDapp = 1
7171
7272 let IdxCfgEconomyDapp = 2
7373
7474 let IdxCfgWlgDapp = 4
7575
7676 let IdxCfgAcresDapp = 8
7777
7878 func keyRestCfg () = "%s__restConfig"
7979
8080
8181 func keyRestAddress () = "%s__restAddr"
8282
8383
8484 func readRestCfgOrFail (rest) = split_4C(getStringOrFail(rest, keyRestCfg()), SEP)
8585
8686
8787 func getContractAddressOrFail (restCfg,idx) = valueOrErrorMessage(addressFromString(restCfg[idx]), ("Rest cfg doesn't contain address at index " + toString(idx)))
8888
8989
9090 let restContract = addressFromStringValue(valueOrElse(getString(this, keyRestAddress()), defaultRestAddressStr))
9191
9292 let restCfg = readRestCfgOrFail(restContract)
9393
9494 let stakingContract = getContractAddressOrFail(restCfg, IdxCfgStakingDapp)
9595
9696 let economyContract = getContractAddressOrFail(restCfg, IdxCfgEconomyDapp)
9797
9898 let wlgContract = getContractAddressOrFail(restCfg, IdxCfgWlgDapp)
9999
100100 let acresContract = getContractAddressOrFail(restCfg, IdxCfgAcresDapp)
101101
102102 let acresIssuedAmountKey = "acresIssuedAmount"
103103
104104 let acresAssetIdKey = "acresAssetId"
105105
106106 let acresAssetId = valueOrErrorMessage(getBinary(acresContract, acresAssetIdKey), "ACRES is not issued yet")
107107
108108 func keyAcresStakedTimeByUser (addr) = ("acresStakedTimeByUser_" + addr)
109109
110110
111111 let IdxEffTotal = 0
112112
113113 let randomDelay = 2
114114
115115 func keyCommit (address) = ("finishBlockFor_" + address)
116116
117117
118118 func keyResProportions () = "resTypesProportions"
119119
120120
121121 func keyStakedPiecesByOwner (ownerAddr) = ("stakedPiecesByOwner_" + ownerAddr)
122122
123123
124124 func asInt (v) = match v {
125125 case n: Int =>
126126 n
127127 case _ =>
128128 throw("fail to cast into Int")
129129 }
130130
131131
132132 func asTwoIntsTuple (val) = match val {
133133 case t2: (Int, Int) =>
134134 t2
135135 case _ =>
136136 throw("fail to cast into (Int, Int)")
137137 }
138138
139139
140140 func keyLastTxIdByUser (addr) = ("lastTxIdByUser_" + addr)
141141
142142
143143 func getVotingPower (userAddrStrOrEmpty) = {
144144 let props = split(valueOrElse(getString(stakingContract, keyResProportions()), "0_0_0_0_0_0"), "_")
145145 func adder (acc,item) = (acc + parseIntValue(item))
146146
147147 let totalPower = {
148148 let $l = props
149149 let $s = size($l)
150150 let $acc0 = 0
151151 func $f0_1 ($a,$i) = if (($i >= $s))
152152 then $a
153153 else adder($a, $l[$i])
154154
155155 func $f0_2 ($a,$i) = if (($i >= $s))
156156 then $a
157157 else throw("List size exceeds 6")
158158
159159 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
160160 }
161161 let usersPower = valueOrElse(getInteger(stakingContract, keyStakedPiecesByOwner(userAddrStrOrEmpty)), 0)
162162 [totalPower, usersPower]
163163 }
164164
165165
166166 func fixedPoint (val,decimals) = {
167167 let tenPow = pow(10, 0, decimals, 0, 0, DOWN)
168168 let lowPart = toString((val % tenPow))
169169 let zeroes = drop(toString(tenPow), (1 + size(lowPart)))
170170 (((toString((val / tenPow)) + ".") + zeroes) + lowPart)
171171 }
172172
173173
174174 func padL (val,len) = {
175175 let valS = toString(val)
176176 let zeroes = drop(toString(pow(10, 0, (len - size(valS)), 0, 0, DOWN)), 1)
177177 (zeroes + valS)
178178 }
179179
180180
181181 func getRandomNumber (maxValue,salt,entropy) = if ((0 >= maxValue))
182182 then throw("maxValue should be > 0")
183183 else {
184184 let randomHash = sha256((salt + entropy))
185185 (toInt(randomHash) % maxValue)
186186 }
187187
188188
189189 let MIN_ACRES_AMOUNT_DURING_PROMO = 10000000
190190
191191 let BLACKLISTED1 = "3P2NGX4Q5nge1MCauwQW5aqYLdkccSGj1Ep_3P2xFAHW9yhyNohYozWd4HFhEXZu3bsNSoR_3P2yKaZ2gvn9Xe5tti81a7P9LZhHgjvToV9_3P37zQ3cf2ecu55RmJqEiGSivdzN9avt3m9_3P4az6dtzsvGCWFAxa94UdevKzXyEwxEiFG_3P4kZU6X3TTLFcSUe55JSy8BySqitcPgMBz_3P5hCxBEh3NgNizZhNBreyBSqtbhJYLkKPD_3P7HLvucy11yxyMJUwjzXFHHKMEDwi1EwfC_3P8JuaqH9PTQAv8D5HBGgQfKauLTYt2NQft_3P9gTDB4rtDEVbpX3asU63H4Zinh2EnTmZE_3P9iN3qrtfJicUVy7amZeVsetVD3vUMk8be_3PCa2BsAa6JBLirszQfV5r9fJrujfhwtwfP_3PD3i4XN8KtygcFx4ry5M7UGqdfH8VYvtRT_3PDEMnnJNc2kx9cPEmvVvhXUr8SvhANKhsa_3PDGE9tKQizaeZFeDDq5aYSv89nwYbfirpZ_3PDMKQTCrUPZECVXEJJ8m1sHtutSu1naSf1_3PGh2Qu6Yvx8GTCRRVNvBUVZLdaidYSaxo5_3PKkmAtbSK5D2hQdo1RfEg8eXyMbDcRUc92_3PLMnbxzssP8W8E8XjJ1RLBBg8UZL8Cz3P2_3PMuxo4PCAox9s4a7R1eszh4iqqu8gS7jHv_3PNrMtEQChw87WZU1JAJ7aGHykCa8TjnDNK_3PPuBXfWoBy3EEory7c7vgi9Usjka7o5tBj_3PQwyeyEhT4Y6aGAL6tg73aQWJtV1zRt3nR_3PRGDShuMGb84MJtTJvtTg8qDfswkYWcm3e"
192192
193193 let PROMO1_AMOUNT = 4970178
194194
195195 let PROMO_2_START_TIMESTAMP = match chain {
196196 case _ =>
197197 if ((base58'2W' == $match0))
198198 then 1700524800000
199199 else if ((base58'2T' == $match0))
200200 then 1700420400000
201201 else throw("Unknown chain")
202202 }
203203
204204 let PROMO_2_END_TIMESTAMP = match chain {
205205 case _ =>
206206 if ((base58'2W' == $match0))
207207 then 1701043199999
208208 else if ((base58'2T' == $match0))
209209 then 1700496000000
210210 else throw("Unknown chain")
211211 }
212212
213213 let PROMO_2_DISTRIBUTION_FUND = 1000000000
214214
215215 let promo2NumPrizesPerRound = [1, 3, 5, 20]
216216
217217 let promo2AwardPerRound = [500000000, 200000000, 100000000, 20000000]
218218
219219 func isBlacklistedPromo1 (addr) = contains(BLACKLISTED1, addr)
220220
221221
222222 func prolog () = asInt(reentrantInvoke(stakingContract, "saveLastTx", nil, nil))
223223
224224
225225 func claimAcresInternal (addr,acresAmount,lastClaimTime) = {
226226 let deltaTime = (lastBlock.timestamp - lastClaimTime)
227227 let availRes = fraction(deltaTime, (DAILYRESBYPIECE * acresAmount), (DAYMILLIS * MULT8))
228228 let canGetUsdt = asInt(invoke(economyContract, "sellResourcesWorldREADONLY", [availRes], nil))
229229 let gotUsdt = max([0, canGetUsdt])
230230 (gotUsdt * USDT2ACRES_MULTIPLIER)
231231 }
232232
233233
234234 func claimInternal (addr,acresAmount,lastClaimTime) = {
235235 let deltaTime = (lastBlock.timestamp - lastClaimTime)
236236 if ((0 > deltaTime))
237237 then throw(((("Saved timestamp is in future, saved = " + toString(lastClaimTime)) + ", current = ") + toString(lastBlock.timestamp)))
238238 else {
239239 let availRes = fraction(deltaTime, (DAILYRESBYPIECE * acresAmount), (DAYMILLIS * MULT8))
240240 let canGetUsdt = asInt(invoke(economyContract, "sellResourcesWorldREADONLY", [availRes], nil))
241241 let gotUsdt = if ((0 >= canGetUsdt))
242242 then 0
243243 else asTwoIntsTuple(invoke(economyContract, "sellResourcesWorld", [addr, availRes], nil))._1
244244 (gotUsdt * USDT2ACRES_MULTIPLIER)
245245 }
246246 }
247247
248248
249249 func mergeLocked (oldAmount,oldETA,newAmount,newETA) = {
250250 let now = lastBlock.timestamp
251251 let dt1 = max([0, (oldETA - now)])
252252 let dt2 = max([0, (newETA - now)])
253253 let sum = (oldAmount + newAmount)
254254 let dt = if ((sum == 0))
255255 then 0
256256 else (fraction(dt1, oldAmount, sum) + fraction(dt2, newAmount, sum))
257257 (now + dt)
258258 }
259259
260260
261261 @Callable(i)
262262 func constructorV1 (restAddr,unstakedPieces) = if ((i.caller != this))
263263 then throw("Permission denied")
264264 else if (isDefined(getBinary(acresAssetIdKey)))
265265 then throw("Already initialized")
266266 else {
267267 let nftAcres = (getVotingPower("")[IdxEffTotal] + unstakedPieces)
268268 let issuedAmount = (MILLION6 - (nftAcres * MULT8))
269269 let issue = Issue("ACRES", "WavesLands land acres investment token", issuedAmount, 8, false, unit, 0)
270270 let assetId = calculateAssetId(issue)
271271 [issue, IntegerEntry(acresIssuedAmountKey, issuedAmount), BinaryEntry(acresAssetIdKey, assetId), StringEntry(keyRestAddress(), restAddr)]
272272 }
273273
274274
275275
276276 @Callable(i)
277277 func unstakeAcres (amount) = {
278278 let prologResult = prolog()
279279 if ((prologResult == prologResult))
280280 then if ((0 >= amount))
281281 then throw("Amount should be positive")
282282 else {
283283 let address = toString(i.caller)
284284 if ((size(i.payments) != 0))
285285 then throw("No payments required")
286286 else {
287287 let timeKey = keyAcresStakedTimeByUser(address)
288288 let amountKey = keyAcresStakedAmountByUser(address)
289289 let oldAcresAmount = valueOrElse(getInteger(amountKey), 0)
290290 if ((amount > oldAcresAmount))
291291 then throw(((("You have only " + fixedPoint(oldAcresAmount, 8)) + " ACRES staked, tried to unstake ") + fixedPoint(amount, 8)))
292292 else {
293293 let lockedAmount = valueOrElse(getInteger(keyAcresLockedAmountByUser(address)), 0)
294294 let lockedETA = valueOrElse(getInteger(keyAcresLockedEtaByUser(address)), 0)
295295 let now = lastBlock.timestamp
296296 if (if ((now >= PROMO_2_START_TIMESTAMP))
297297 then (PROMO_2_END_TIMESTAMP >= now)
298298 else false)
299299 then throw("You cannot unstake ACRES during Promo2")
300300 else {
301301 let unstakableAmount = if (isBlacklistedPromo1(address))
302302 then ((oldAcresAmount - lockedAmount) - PROMO1_AMOUNT)
303303 else (oldAcresAmount - lockedAmount)
304304 if (if ((lockedETA > now))
305305 then (amount > unstakableAmount)
306306 else false)
307307 then throw(((("Only " + fixedPoint(unstakableAmount, 8)) + " ACRES can be unstaked now, wait until ") + toString(lockedETA)))
308308 else {
309309 let oldTotal = valueOrElse(getInteger(acresStakedTotalKey), 0)
310310 let wlgResult = invoke(wlgContract, "onStakeUnstakeLand", [address], nil)
311311 let claimedAcres = claimInternal(address, oldAcresAmount, valueOrElse(getInteger(timeKey), 0))
312312 $Tuple2([IntegerEntry(timeKey, lastBlock.timestamp), IntegerEntry(amountKey, (oldAcresAmount - amount)), IntegerEntry(acresStakedTotalKey, (oldTotal - amount)), ScriptTransfer(i.caller, (amount + claimedAcres), acresAssetId)], $Tuple2(prologResult, wlgResult))
313313 }
314314 }
315315 }
316316 }
317317 }
318318 else throw("Strict value is not equal to itself.")
319319 }
320320
321321
322322
323323 @Callable(i)
324324 func stakeAcres () = {
325325 let prologResult = prolog()
326326 if ((prologResult == prologResult))
327327 then {
328328 let address = toString(i.caller)
329329 if ((size(i.payments) != 1))
330330 then throw("exactly 1 payment must be attached")
331331 else {
332332 let pmt = i.payments[0]
333333 let amt = pmt.amount
334334 if (if (!(isDefined(pmt.assetId)))
335335 then true
336336 else (value(pmt.assetId) != acresAssetId))
337337 then throw("ACRES payments only!")
338338 else {
339339 let wlgResult = invoke(wlgContract, "onStakeUnstakeLand", [address], nil)
340340 if ((wlgResult == wlgResult))
341341 then {
342342 let now = lastBlock.timestamp
343343 if (if ((PROMO_2_START_TIMESTAMP > now))
344344 then true
345345 else (now > PROMO_2_END_TIMESTAMP))
346346 then {
347347 let timeKey = keyAcresStakedTimeByUser(address)
348348 let amountKey = keyAcresStakedAmountByUser(address)
349349 let oldAcresAmount = valueOrElse(getInteger(amountKey), 0)
350350 let oldTotal = valueOrElse(getInteger(acresStakedTotalKey), 0)
351351 let claimedAcres = claimInternal(address, oldAcresAmount, valueOrElse(getInteger(timeKey), 0))
352352 $Tuple2(((((if ((claimedAcres == 0))
353353 then nil
354354 else [ScriptTransfer(i.caller, claimedAcres, acresAssetId)]) :+ IntegerEntry(timeKey, lastBlock.timestamp)) :+ IntegerEntry(amountKey, (oldAcresAmount + amt))) :+ IntegerEntry(acresStakedTotalKey, (oldTotal + amt))), $Tuple2(prologResult, wlgResult))
355355 }
356356 else if ((MIN_ACRES_AMOUNT_DURING_PROMO > amt))
357357 then throw((("Min staked amount during promo action should be at least " + fixedPoint(MIN_ACRES_AMOUNT_DURING_PROMO, 8)) + " ACRES"))
358358 else {
359359 let stakeResult = invoke(this, "sendLockedAcres", [address, amt, 30], nil)
360360 let promo2Map = valueOrElse(getString(promo2MapKey), "")
361361 let newMap2 = if (contains(promo2Map, address))
362362 then {
363363 let parts = split_51C(promo2Map, address)
364364 let oldAmount = parseIntValue(take(drop(parts[1], 1), 14))
365365 ((((parts[0] + address) + ":") + padL((oldAmount + amt), 14)) + drop(parts[1], 15))
366366 }
367367 else {
368368 let finalPart = ((address + ":") + padL(amt, 14))
369369 if ((promo2Map == ""))
370370 then finalPart
371371 else ((promo2Map + "_") + finalPart)
372372 }
373373 $Tuple2([StringEntry(promo2MapKey, newMap2)], $Tuple3(prologResult, wlgResult, stakeResult))
374374 }
375375 }
376376 else throw("Strict value is not equal to itself.")
377377 }
378378 }
379379 }
380380 else throw("Strict value is not equal to itself.")
381381 }
382382
383383
384384
385385 @Callable(i)
386386 func buyAcres () = {
387387 let prologResult = prolog()
388388 if ((prologResult == prologResult))
389389 then {
390390 let address = toString(i.caller)
391391 if ((size(i.payments) != 1))
392392 then throw("exactly 1 payment must be attached")
393393 else {
394394 let pmt = i.payments[0]
395395 let amt = pmt.amount
396396 if (if (!(isDefined(pmt.assetId)))
397397 then true
398398 else (value(pmt.assetId) != usdtAssetId))
399399 then throw("USDT payments only!")
400400 else if ((MULT6 > amt))
401401 then throw((("Min payment should be " + fixedPoint(MULT6, 6)) + " USDT"))
402402 else {
403403 let acresAmount = (amt * USDT2ACRES_MULTIPLIER)
404404 let accStatsResult = asInt(invoke(stakingContract, "updateAccStats", [address, fraction(xpNewSLand, acresAmount, (25 * MULT8))], nil))
405405 $Tuple2([ScriptTransfer(economyContract, amt, usdtAssetId), ScriptTransfer(i.caller, acresAmount, acresAssetId)], $Tuple2(prologResult, accStatsResult))
406406 }
407407 }
408408 }
409409 else throw("Strict value is not equal to itself.")
410410 }
411411
412412
413413
414414 @Callable(i)
415415 func sendAcres (addr,amount) = if ((i.caller != economyContract))
416416 then throw("Permission denied")
417417 else $Tuple2([ScriptTransfer(addressFromStringValue(addr), amount, acresAssetId)], amount)
418418
419419
420420
421421 @Callable(i)
422422 func sendLockedAcres (addr,amount,lockDays) = if (if ((i.caller != this))
423423 then (i.caller != restContract)
424424 else false)
425425 then throw("Permission denied")
426426 else {
427427 let now = lastBlock.timestamp
428428 let timeKey = keyAcresStakedTimeByUser(addr)
429429 let amountKey = keyAcresStakedAmountByUser(addr)
430430 let oldAcresAmount = valueOrElse(getInteger(amountKey), 0)
431431 let oldTotal = valueOrElse(getInteger(acresStakedTotalKey), 0)
432432 let oldTime = valueOrElse(getInteger(timeKey), now)
433433 let etaKey = keyAcresLockedEtaByUser(addr)
434434 let lockedAmountKey = keyAcresLockedAmountByUser(addr)
435435 let oldLockedAmount = valueOrElse(getInteger(lockedAmountKey), 0)
436436 let oldLockedETA = valueOrElse(getInteger(etaKey), 0)
437437 let mergedETA = mergeLocked(oldLockedAmount, oldLockedETA, amount, (now + (lockDays * DAYMILLIS)))
438438 $Tuple2([IntegerEntry(timeKey, oldTime), IntegerEntry(amountKey, (oldAcresAmount + amount)), IntegerEntry(acresStakedTotalKey, (oldTotal + amount)), IntegerEntry(etaKey, mergedETA), IntegerEntry(lockedAmountKey, (oldLockedAmount + amount))], amount)
439439 }
440440
441441
442442
443443 @Callable(i)
444444 func burnAcres (amount) = if ((i.caller != stakingContract))
445445 then throw("Permission denied")
446446 else {
447447 let amountLeft = (valueOrElse(getInteger(acresIssuedAmountKey), 0) - amount)
448448 if ((0 > amountLeft))
449449 then throw("Attempt to burn more ACRES, than exists")
450450 else $Tuple2([Burn(acresAssetId, amount), IntegerEntry(acresIssuedAmountKey, amountLeft)], amount)
451451 }
452452
453453
454454
455455 @Callable(i)
456456 func claimAcres () = {
457457 let prologResult = prolog()
458458 if ((prologResult == prologResult))
459459 then {
460460 let address = toString(i.caller)
461461 if ((size(i.payments) != 0))
462462 then throw("No payments required")
463463 else {
464464 let timeKey = keyAcresStakedTimeByUser(address)
465465 let amountKey = keyAcresStakedAmountByUser(address)
466466 let acresAmount = valueOrElse(getInteger(amountKey), 0)
467467 let wlgResult = invoke(wlgContract, "onStakeUnstakeLand", [address], nil)
468468 let claimedAcres = claimInternal(address, acresAmount, valueOrElse(getInteger(timeKey), 0))
469469 $Tuple2([IntegerEntry(timeKey, lastBlock.timestamp), ScriptTransfer(i.caller, claimedAcres, acresAssetId)], $Tuple2(prologResult, wlgResult))
470470 }
471471 }
472472 else throw("Strict value is not equal to itself.")
473473 }
474474
475475
476476
477477 @Callable(i)
478478 func claimAcresREADONLY (address) = {
479479 let timeKey = keyAcresStakedTimeByUser(address)
480480 let amountKey = keyAcresStakedAmountByUser(address)
481481 let acresAmount = valueOrElse(getInteger(amountKey), 0)
482482 let lastTime = valueOrElse(getInteger(timeKey), 0)
483483 let claimedAcres = claimAcresInternal(address, acresAmount, lastTime)
484484 $Tuple2(nil, [claimedAcres, lastTime])
485485 }
486486
487487
488488
489489 @Callable(i)
490490 func claimPromo2 () = {
491491 let prologResult = prolog()
492492 if ((prologResult == prologResult))
493493 then {
494494 let address = toString(i.caller)
495495 if ((size(i.payments) != 0))
496496 then throw("No payments required")
497497 else {
498498 let now = lastBlock.timestamp
499499 if ((PROMO_2_END_TIMESTAMP > now))
500500 then throw("Promo 2 is not over yet")
501501 else {
502502 let awardedKey = keyIsAwardedByPromoAndUser(2, address)
503503 if (valueOrElse(getBoolean(awardedKey), false))
504504 then throw((("Your wallet " + address) + " is already awarded in promo 2"))
505505 else {
506506 let promo2Map = valueOrElse(getString(promo2MapKey), "")
507507 if (!(contains(promo2Map, address)))
508508 then throw("You are not participant of promo 2")
509509 else {
510510 let parts = split_51C(promo2Map, address)
511511 let acresAmount = parseIntValue(take(drop(parts[1], 1), 14))
512512 let tickets = (acresAmount / MIN_ACRES_AMOUNT_DURING_PROMO)
513513 let totalTikets = valueOrElse(getInteger(keyTicketsTotalByPromo(2)), 0)
514514 let $t01235812798 = if ((totalTikets == 0))
515515 then {
516516 func countTickets (acc,el) = (acc + (parseIntValue(split(el, ":")[1]) / MIN_ACRES_AMOUNT_DURING_PROMO))
517517
518518 let ticketsCount = {
519519 let $l = split_51C(promo2Map, "_")
520520 let $s = size($l)
521521 let $acc0 = 0
522522 func $f0_1 ($a,$i) = if (($i >= $s))
523523 then $a
524524 else countTickets($a, $l[$i])
525525
526526 func $f0_2 ($a,$i) = if (($i >= $s))
527527 then $a
528528 else throw("List size exceeds 50")
529529
530530 $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($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)
531531 }
532532 $Tuple2([IntegerEntry(keyTicketsTotalByPromo(2), ticketsCount), IntegerEntry(keyTicketsTotalByPromoAndRound(2, 1), ticketsCount)], ticketsCount)
533533 }
534534 else $Tuple2(nil, totalTikets)
535535 let ticketsActions = $t01235812798._1
536536 let totalCount = $t01235812798._2
537537 let award = fraction(PROMO_2_DISTRIBUTION_FUND, tickets, totalCount)
538538 let stakeResult = invoke(this, "sendLockedAcres", [address, award, 30], nil)
539539 $Tuple2(((ticketsActions :+ BooleanEntry(awardedKey, true)) :+ StringEntry(keyPromo2MapForRound(1), promo2Map)), stakeResult)
540540 }
541541 }
542542 }
543543 }
544544 }
545545 else throw("Strict value is not equal to itself.")
546546 }
547547
548548
549549
550550 @Callable(i)
551551 func commitForPromo2Round (roundId) = if ((i.caller != this))
552552 then throw("Permission denied")
553553 else if (if ((1 > roundId))
554554 then true
555555 else (roundId > 4))
556556 then throw(("Invalid roundId: " + toString(roundId)))
557557 else {
558558 let finishBlock = (height + randomDelay)
559559 $Tuple2([IntegerEntry(keyCommit(("2_" + toString(roundId))), finishBlock)], finishBlock)
560560 }
561561
562562
563563
564564 @Callable(i)
565565 func drawPromo2Round (roundId) = if ((i.caller != this))
566566 then throw("Permission denied")
567567 else if (if ((1 > roundId))
568568 then true
569569 else (roundId > 4))
570570 then throw(("Invalid roundId: " + toString(roundId)))
571571 else {
572572 let finishKey = keyCommit(("2_" + toString(roundId)))
573573 let finishBlock = valueOrErrorMessage(getInteger(finishKey), (("You have to commitForPromo2Round(" + toString(roundId)) + ") first!"))
574574 if ((finishBlock > height))
575575 then throw((((("Random number is not ready yet, wait until height = " + toString(finishBlock)) + " (current height = ") + toString(height)) + ")"))
576576 else {
577577 let maxValue = valueOrElse(getInteger(keyTicketsTotalByPromoAndRound(2, roundId)), 0)
578578 if ((maxValue == 0))
579579 then throw("Please call claimPromo2() at least once")
580580 else {
581581 let entropy = value(value(blockInfoByHeight(finishBlock)).vrf)
582582 let salt = i.transactionId
583583 let promo2Map = valueOrElse(getString(keyPromo2MapForRound(roundId)), "")
584- func singleDraw (ac,j) = if ((j > promo2NumPrizesPerRound[(roundId - 1)]))
584+ func singleDraw (ac,j) = if ((j >= promo2NumPrizesPerRound[(roundId - 1)]))
585585 then ac
586586 else {
587587 let rand = getRandomNumber(ac._1, ac._2, entropy)
588588 let promo2List = if ((ac._3 == ""))
589589 then nil
590590 else split_51C(ac._3, "_")
591591 func countTickets (acc,el) = {
592592 let parts = split(el, ":")
593593 let addr = parts[0]
594594 let tickets = (parseIntValue(parts[1]) / MIN_ACRES_AMOUNT_DURING_PROMO)
595595 let newTotal = (acc._1 + tickets)
596596 if (if ((acc._3 == ""))
597597 then (newTotal > rand)
598598 else false)
599599 then $Tuple3(newTotal, tickets, addr)
600600 else $Tuple3(newTotal, acc._2, acc._3)
601601 }
602602
603603 let r = {
604604 let $l = promo2List
605605 let $s = size($l)
606606 let $acc0 = $Tuple3(0, 0, "")
607607 func $f0_1 ($a,$i) = if (($i >= $s))
608608 then $a
609609 else countTickets($a, $l[$i])
610610
611611 func $f0_2 ($a,$i) = if (($i >= $s))
612612 then $a
613613 else throw("List size exceeds 50")
614614
615615 $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($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)
616616 }
617617 let winner = r._3
618618 if ((winner == ""))
619619 then throw("no winner")
620620 else {
621621 let mapParts = split_51C(ac._3, winner)
622622 let newMap = if ((mapParts[0] == ""))
623623 then drop(mapParts[1], 16)
624624 else (dropRight(mapParts[0], 1) + drop(mapParts[1], 15))
625625 let stakeResult = invoke(this, "sendLockedAcres", [winner, promo2AwardPerRound[(roundId - 1)], 30], nil)
626626 $Tuple4((ac._1 - r._2), fromBase58String(getStringValue(stakingContract, keyLastTxIdByUser(winner))), newMap, (ac._4 :+ stakeResult))
627627 }
628628 }
629629
630630 let draws = {
631631 let $l = ITER20
632632 let $s = size($l)
633633 let $acc0 = $Tuple4(maxValue, i.transactionId, promo2Map, nil)
634634 func $f0_1 ($a,$i) = if (($i >= $s))
635635 then $a
636636 else singleDraw($a, $l[$i])
637637
638638 func $f0_2 ($a,$i) = if (($i >= $s))
639639 then $a
640640 else throw("List size exceeds 20")
641641
642642 $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($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20)
643643 }
644644 $Tuple2([DeleteEntry(finishKey), StringEntry(keyPromo2MapForRound((roundId + 1)), draws._3), IntegerEntry(keyTicketsTotalByPromoAndRound(2, (roundId + 1)), draws._1)], draws._4)
645645 }
646646 }
647647 }
648648
649649

github/deemru/w8io/026f985 
66.48 ms