tx · 86aDmSdb2esrjPNXrgXopEu98xLHjAptjFiD4FCamcta

3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv:  -0.02200000 Waves

2024.12.22 18:13 [3425899] smart account 3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv > SELF 0.00000000 Waves

{ "type": 13, "id": "86aDmSdb2esrjPNXrgXopEu98xLHjAptjFiD4FCamcta", "fee": 2200000, "feeAssetId": null, "timestamp": 1734880514099, "version": 2, "chainId": 84, "sender": "3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv", "senderPublicKey": "2fNSk5gmWbXBDTkSYSKd66xSgVvAYzrJnP9YSAFNvTwC", "proofs": [ "61CibT3zizTaF6Vq8E9u9dTuGNszJMMMZ1PZsT7NRwm3UwPyboUBWw1XPWyCf5rqFMQNiPR11viEWZQMqwf9WRQm" ], "script": "base64:BgIqCAISAwoBGBIDCgEIEgMKAQgSAwoBCBIDCgEIEgMKAQgSAwoBCBIDCgEIhwEAA1NFUAICX18ABWNoYWluCQDJAQIJAMoBAggFBHRoaXMFYnl0ZXMAAQABAAtwcm9tb0Jsb2NrcwQHJG1hdGNoMAUFY2hhaW4DCQAAAgEBVwUHJG1hdGNoMAkAzAgCAKCBkwIFA25pbAMJAAACAQFUBQckbWF0Y2gwCQDMCAIAnY3RAQUDbmlsCQACAQINVW5rbm93biBjaGFpbgAKREFZX0JMT0NLUwQHJG1hdGNoMAUFY2hhaW4DCQAAAgEBVwUHJG1hdGNoMACgCwMJAAACAQFUBQckbWF0Y2gwADwJAAIBAg1Vbmtub3duIGNoYWluAAtXRUVLX0JMT0NLUwQHJG1hdGNoMAUFY2hhaW4DCQAAAgEBVwUHJG1hdGNoMADgTgMJAAACAQFUBQckbWF0Y2gwALQBCQACAQINVW5rbm93biBjaGFpbgAKVlJGX09GRlNFVAQHJG1hdGNoMAUFY2hhaW4DCQAAAgEBVwUHJG1hdGNoMAAAAwkAAAIBAVQFByRtYXRjaDAAkPlFCQACAQINVW5rbm93biBjaGFp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BQ0kdDAxMjA5MjEyMTU1Al8yCQCUCgIFA25pbAkAzAgCCQCsAgICECVzJXNfX3Byb21vTWFwX18FCHByb21vTWFwCQDMCAIJAKwCAgIZJXMlZF9fdG90YWxQcm9tb1RpY2tldHNfXwkApAMBBQx0b3RhbFRpY2tldHMJAMwIAgkArAICAhglcyVkX191c2VyUHJvbW9UaWNrZXRzX18JAKQDAQULdXNlclRpY2tldHMJAMwIAgkArAICAhUlcyVkX19ibG9ja2NoYWluRGF5X18JAKQDAQUFdG9kYXkJAMwIAgkArAICAhQlcyVzX19wcm9tb1dpbm5lcnNfXwkAugkCBQt3aW5uZXJzTGlzdAIBOgkAzAgCCQCsAgICFyVzJXNfX3VzZXJQcm9tb1ByaXplc19fCQC5CQIFDnVzZXJQcml6ZXNMaXN0AgFfBQNuaWwA6mODEw==", "height": 3425899, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6kBmQ9Ho1j94DnBprWjzxwx9LjUQwtddodnYQCHcmAwr Next: 7ji9gpKMsCXiiSKkYFAxCpNyrZEGBNKX9PmVwkKoLP7F Diff:
OldNewDifferences
613613 }
614614 }
615615
616- let $t01209212161 = {
617- let $l = [0, 1, 2]
616+ let $t01209212155 = {
617+ let $l = [0]
618618 let $s = size($l)
619619 let $acc0 = $Tuple2(nil, nil)
620620 func $f0_1 ($a,$i) = if (($i >= $s))
623623
624624 func $f0_2 ($a,$i) = if (($i >= $s))
625625 then $a
626- else throw("List size exceeds 3")
626+ else throw("List size exceeds 1")
627627
628- $f0_2($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3)
628+ $f0_2($f0_1($acc0, 0), 1)
629629 }
630- let userPrizesList = $t01209212161._1
631- let winnersList = $t01209212161._2
630+ let userPrizesList = $t01209212155._1
631+ let winnersList = $t01209212155._2
632632 $Tuple2(nil, [("%s%s__promoMap__" + promoMap), ("%s%d__totalPromoTickets__" + toString(totalTickets)), ("%s%d__userPromoTickets__" + toString(userTickets)), ("%s%d__blockchainDay__" + toString(today)), ("%s%s__promoWinners__" + makeString_2C(winnersList, ":")), ("%s%s__userPromoPrizes__" + makeString(userPrizesList, "_"))])
633633 }
634634
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let SEP = "__"
55
66 let chain = take(drop(this.bytes, 1), 1)
77
88 let promoBlocks = match chain {
99 case _ =>
1010 if ((base58'2W' == $match0))
1111 then [4505760]
1212 else if ((base58'2T' == $match0))
1313 then [3425949]
1414 else throw("Unknown chain")
1515 }
1616
1717 let DAY_BLOCKS = match chain {
1818 case _ =>
1919 if ((base58'2W' == $match0))
2020 then 1440
2121 else if ((base58'2T' == $match0))
2222 then 60
2323 else throw("Unknown chain")
2424 }
2525
2626 let WEEK_BLOCKS = match chain {
2727 case _ =>
2828 if ((base58'2W' == $match0))
2929 then 10080
3030 else if ((base58'2T' == $match0))
3131 then 180
3232 else throw("Unknown chain")
3333 }
3434
3535 let VRF_OFFSET = match chain {
3636 case _ =>
3737 if ((base58'2W' == $match0))
3838 then 0
3939 else if ((base58'2T' == $match0))
4040 then 1146000
4141 else throw("Unknown chain")
4242 }
4343
4444 let usdtAssetId = match chain {
4545 case _ =>
4646 if ((base58'2W' == $match0))
4747 then base58'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi'
4848 else if ((base58'2T' == $match0))
4949 then base58'6mWwf9mZBjVgkC54idpyaZLQfAosD914wT8fGf2iiY63'
5050 else throw("Unknown chain")
5151 }
5252
5353 let defaultRest2AddressStr = match chain {
5454 case _ =>
5555 if ((base58'2W' == $match0))
5656 then "3PFwYta8biEz31zpeFe5DJK8wE5trSpQVF8"
5757 else if ((base58'2T' == $match0))
5858 then "3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv"
5959 else throw("Unknown chain")
6060 }
6161
6262 let oldStakingContractStr = match chain {
6363 case _ =>
6464 if ((base58'2W' == $match0))
6565 then "3PLncXtS1U83D6cQbFD3H8rBHPLgzxSFKZ1"
6666 else if ((base58'2T' == $match0))
6767 then "3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm"
6868 else throw("Unknown chain")
6969 }
7070
7171 func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], ""))
7272
7373
7474 let IdxCfgAcres2Dapp = 1
7575
7676 let IdxCfgWlgDapp = 2
7777
7878 let IdxCfgPuzzlePoolDapp = 4
7979
8080 let IdxCfgInvestFundDapp = 5
8181
8282 let IdxCfgMarketDapp = 6
8383
8484 func keyRestCfg () = "%s__restConfig"
8585
8686
8787 func keyRest2Address () = "%s__rest2Addr"
8888
8989
9090 func readRestCfgOrFail (rest) = split_4C(getStringOrFail(rest, keyRestCfg()), SEP)
9191
9292
9393 func getContractAddressOrFail (rest2Cfg,idx) = valueOrErrorMessage(addressFromString(rest2Cfg[idx]), ("Rest cfg doesn't contain address at index " + toString(idx)))
9494
9595
9696 let rest2Contract = addressFromStringValue(valueOrElse(getString(this, keyRest2Address()), defaultRest2AddressStr))
9797
9898 let rest2Cfg = readRestCfgOrFail(rest2Contract)
9999
100100 let acres2Contract = getContractAddressOrFail(rest2Cfg, IdxCfgAcres2Dapp)
101101
102102 let wlgContract = getContractAddressOrFail(rest2Cfg, IdxCfgWlgDapp)
103103
104104 let puzzlePoolContract = getContractAddressOrFail(rest2Cfg, IdxCfgPuzzlePoolDapp)
105105
106106 let investFundContract = getContractAddressOrFail(rest2Cfg, IdxCfgInvestFundDapp)
107107
108108 let marketContract = getContractAddressOrFail(rest2Cfg, IdxCfgMarketDapp)
109109
110110 let oldAcresContractKey = "oldAcresContract"
111111
112112 func keyLastWeekTxIdByUser (addr) = ("lastWeekTxIdByUser_" + addr)
113113
114114
115115 func keyCurWeekTxIdByUser (addr) = ("curWeekTxIdByUser_" + addr)
116116
117117
118118 let wlgAssetIdKey = "wlg_assetId"
119119
120120 let wlgAssetId = valueOrErrorMessage(getBinary(wlgContract, wlgAssetIdKey), "WLGOLD is not issued yet")
121121
122122 let acresAssetIdKey = "acresAssetId"
123123
124124 let acresAssetId = valueOrErrorMessage(getBinary(acres2Contract, acresAssetIdKey), "ACRES is not issued yet")
125125
126126 func keyStakedDuckByOwner (ownerAddr) = ("stakedDuckByOwner_" + ownerAddr)
127127
128128
129129 func keyStakedNFTsByOwner (ownerAddr) = ("stakedNFTsByOwner_" + ownerAddr)
130130
131131
132132 func keyAddressToCustomName (addr) = ("accountCustomNameByAddr_" + addr)
133133
134134
135135 func keyAddressRefBy (addr) = ("accRefBy_" + addr)
136136
137137
138138 func keyAddressReferrals (addr) = ("accReferrals_" + addr)
139139
140140
141141 func keyUserBet (addr) = ("userBet_" + addr)
142142
143143
144144 func keyUserWeekTickets (addr,week) = ((("userWeekTickets_" + addr) + "_") + toString(week))
145145
146146
147147 func keyTotalWeekTickets (week) = ("totalWeekTickets_" + toString(week))
148148
149149
150150 func winningBet (day) = {
151151 let b = (day * DAY_BLOCKS)
152152 let h = if ((b > VRF_OFFSET))
153153 then b
154154 else (b + VRF_OFFSET)
155155 (toInt(value(value(blockInfoByHeight(h)).vrf)) % 4)
156156 }
157157
158158
159159 func keySellerByAssetId (assetId) = ("seller_" + assetId)
160160
161161
162162 func keyPriceByAssetId (assetId) = ("price_" + assetId)
163163
164164
165165 func keyAssetIdsBySeller (addr) = ("assetIds_" + addr)
166166
167167
168168 func keyUserPromoTickets (address) = ("promoTickets_" + address)
169169
170170
171171 let keyTotalPromoTickets = "totalPromoTickets"
172172
173173 let keyPromoMap = "promoMap"
174174
175175 func keyPromoRoundWinners (roundId) = ("promoRoundWinners_" + toString(roundId))
176176
177177
178178 let ixWlgAmount = 0
179179
180180 let ixWlgWlg = 1
181181
182182 let ixWlgPrice = 2
183183
184184 let ixWlgFunds = 3
185185
186186 let ixWlgActivity = 4
187187
188188 let ixWlgAcres2 = 5
189189
190190 let ixWlgArbitrage = 6
191191
192192 let ixWlgPool = 7
193193
194194 let ixWlgIssueTime = 8
195195
196196 let ixWlgLastTeamActTime = 9
197197
198198 let ixWlgTeamTotal = 10
199199
200200 let ixWlgTeamAmLeft = 11
201201
202202 let ixWlgTeamAmAvailNow = 12
203203
204204 let ixWlgTeamWlgold = 13
205205
206206 let ixWlgActTotal = 14
207207
208208 let ixWlgActAmLeft = 15
209209
210210 let ixWlgActAmAvailNow = 16
211211
212212 let ixWlgActWlgold = 17
213213
214214 let ixWlgCurPeriod = 18
215215
216216 let ixWlgAmLeftTotal = 19
217217
218218 let ixWlgCurPeriodDistribution = 20
219219
220220 let ixWlgLastUserTime = 21
221221
222222 let ixWlgInvestFundAmount = 22
223223
224224 let ixWlgUserAmAvailNow = 23
225225
226226 let ixWlgEffUserTime = 24
227227
228228 let ixWlgIssue10Amount = 25
229229
230230 let ixWlgMarketingIssue10Amount = 26
231231
232232 let ixWlgTeamIssue10Amount = 27
233233
234234 let ixWlgUser10part = 28
235235
236236 let ixWlgIssue10Time = 29
237237
238238 let ixWlgTotalFarmingPower = 30
239239
240240 let ixWlgAcresStakedTotal = 31
241241
242242 let ixWlgNftTotalIssued = 32
243243
244244 let ixWlgNftTotalBurned = 33
245245
246246 let ixWlgWlNftTotalStaked = 34
247247
248248 let ixWlgWlNftUserStaked = 35
249249
250250 func asTuple4Ints (val) = match val {
251251 case t: (Int, Int, Int, Int) =>
252252 t
253253 case _ =>
254254 throw("fail to cast into (Int, Int, Int, Int)")
255255 }
256256
257257
258258 func asTuple3Ints (val) = match val {
259259 case t: (Int, Int, Int) =>
260260 t
261261 case _ =>
262262 throw("fail to cast into (Int, Int, Int)")
263263 }
264264
265265
266266 func asTuple2Ints (val) = match val {
267267 case t: (Int, Int) =>
268268 t
269269 case _ =>
270270 throw("fail to cast into (Int, Int)")
271271 }
272272
273273
274274 let M6_ = 1000000
275275
276276 let M8_ = 100000000
277277
278278 let TEAM_SHARE = 200000
279279
280280 let ACTIVITY_SHARE = 100000
281281
282282 let PLAYER_SHARE = 400000
283283
284284 let YEAR_MILLIS = 31557600000
285285
286286 let DAY_MS = 86400000
287287
288288 let ISSUE10 = 1000000000
289289
290290 let PLAYERS10_SHARE = 800000
291291
292292 let MARKETING10_SHARE = 100000
293293
294294 let TEAM10_SHARE = 100000
295295
296296 let NEW_STAKING_START = 1731279600000
297297
298298 let teamAdrKey = "teamAddr"
299299
300300 let lastTeamTimKey = "lastClaimedTime_team"
301301
302302 let teamAmtLeftKey = "teamAmountLeft"
303303
304304 let lastActivitiesTimKey = "lastClaimedTime_activities"
305305
306306 let actAmtLeftKey = "activitiesAmountLeft"
307307
308308 let stakersAmtLeftKey = "stakersAmountLeft"
309309
310310 func keyLastClaimTimeByUser (addr) = ("lastClaimedTimeUser_" + addr)
311311
312312
313313 func distrByPeriod (issuedAmount,period) = fraction(issuedAmount, (PLAYER_SHARE * (period + 1)), (6 * M6_))
314314
315315
316316 let wlgIssue10TimeKey = "wlg_issue10Time"
317317
318318 let wlgIssueTimKey = "wlg_issueTime"
319319
320320 let wlgIssuedAmtKey = "wlg_issuedAmount"
321321
322322 let zbIssuedAmtKey = "zbill_issuedAmount"
323323
324324 func keyAcresStakedAmtByUser (addr) = ("acresStakedAmountByUser_" + addr)
325325
326326
327327 let acresStakdTotalKey = "acresStakedAmountTotal"
328328
329329 let totalFarmingPowerKey = "totalFarmingPower"
330330
331331 let dapp2Rest = 0
332332
333333 let dapp2Staking = 1
334334
335335 let dapp2Wlg = 2
336336
337337 let dapp2Puzzle = 3
338338
339339 let dapp2InvestFund = 4
340340
341341 let keyNftTotalIssued = "nftTotalIssued"
342342
343343 let keyNftTotalBurned = "nftTotalBurned"
344344
345345 let keyWlNftTotalStaked = "WlNftTotalStaked"
346346
347347 func keyUserWlNftNumber (addr) = ("userWlNftNumber_" + addr)
348348
349349
350350 func keyUserFullBonus (addr) = ("userFullBonus_" + addr)
351351
352352
353353 let levelAcres = [0, 10, 20, 40, 80, 150, 250, 400, 700, 1000]
354354
355355 func getLevelByAcres (acres) = {
356356 let acr = ((acres + 99999999) / M8_)
357357 func checker (acc,item) = if ((item >= acr))
358358 then acc
359359 else (acc + 1)
360360
361361 let $l = levelAcres
362362 let $s = size($l)
363363 let $acc0 = 0
364364 func $f0_1 ($a,$i) = if (($i >= $s))
365365 then $a
366366 else checker($a, $l[$i])
367367
368368 func $f0_2 ($a,$i) = if (($i >= $s))
369369 then $a
370370 else throw("List size exceeds 10")
371371
372372 $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)
373373 }
374374
375375
376376 func getFarmingPowerByAcres (acres) = ((acres * 20) * (getLevelByAcres(acres) + 4))
377377
378378
379379 func getFarmingPowerByAcresAndBonus (acres,bonus6) = {
380380 let notBonused = getFarmingPowerByAcres(acres)
381381 $Tuple2(fraction(notBonused, (M6_ + bonus6), M6_), notBonused)
382382 }
383383
384384
385385 func getFarmingPowers (userAddrStrOrEmpty,acres2Contract) = {
386386 let totalFP = valueOrElse(getInteger(acres2Contract, totalFarmingPowerKey), 0)
387387 let userAcres = valueOrElse(getInteger(acres2Contract, keyAcresStakedAmtByUser(userAddrStrOrEmpty)), 0)
388388 let userBonus = valueOrElse(getInteger(acres2Contract, keyUserFullBonus(userAddrStrOrEmpty)), 0)
389389 let $t079119 = getFarmingPowerByAcresAndBonus(userAcres, userBonus)
390390 let userFPbonused = $t079119._1
391391 let userFPnotBonused = $t079119._2
392392 [totalFP, userFPbonused, userFPnotBonused, userBonus]
393393 }
394394
395395
396396 let idxTotalFP = 0
397397
398398 let idxUserFPbonused = 1
399399
400400 let idxUserFPnotBonused = 2
401401
402402 func getWlgStats2 (userAddrOpt,contracts,usdtId,usdtBalanceCorrection) = {
403403 let issuedAmount = valueOrErrorMessage(getInteger(contracts[dapp2Wlg], wlgIssuedAmtKey), "WLGOLD is not issued yet")
404404 let restUsd = assetBalance(contracts[dapp2Rest], usdtId)
405405 let wlgUsd = (assetBalance(contracts[dapp2Wlg], usdtId) - usdtBalanceCorrection)
406406 let puzzleUsd = assetBalance(contracts[dapp2Puzzle], usdtId)
407407 let acres2Usd = assetBalance(contracts[dapp2Staking], usdtId)
408408 let investFndContract = contracts[dapp2InvestFund]
409409 let investFundTotal = (assetBalance(investFndContract, usdtId) + valueOrElse(getInteger(investFndContract, zbIssuedAmtKey), 0))
410410 let totalFundsUsd = ((acres2Usd + wlgUsd) + investFundTotal)
411411 let wlgId = valueOrErrorMessage(getBinary(contracts[dapp2Wlg], "wlg_assetId"), "Not initialized yet")
412412 let now = lastBlock.timestamp
413413 let issueTime = valueOrErrorMessage(getInteger(contracts[dapp2Wlg], wlgIssueTimKey), "Not initialized")
414414 let wlgWlg = assetBalance(contracts[dapp2Wlg], wlgId)
415415 let teamTotal = fraction(issuedAmount, TEAM_SHARE, M6_)
416416 let teamAmountLeft = valueOrElse(getInteger(contracts[dapp2Wlg], teamAmtLeftKey), teamTotal)
417417 let lastTeamTime = valueOrElse(getInteger(contracts[dapp2Wlg], lastTeamTimKey), issueTime)
418418 let teamAddr = addressFromStringValue(value(getString(contracts[dapp2Wlg], teamAdrKey)))
419419 let teamAmountAvailableNow = min([fraction(teamTotal, (now - lastTeamTime), (3 * YEAR_MILLIS)), teamAmountLeft])
420420 let teamWlgold = assetBalance(teamAddr, wlgId)
421421 let actTotal = fraction(issuedAmount, ACTIVITY_SHARE, M6_)
422422 let actAmountLeft = valueOrElse(getInteger(contracts[dapp2Wlg], actAmtLeftKey), actTotal)
423423 let lastActivitiesTime = valueOrElse(getInteger(contracts[dapp2Wlg], lastActivitiesTimKey), issueTime)
424424 let actAmountAvailableNow = min([fraction(actTotal, (now - lastActivitiesTime), (3 * YEAR_MILLIS)), actAmountLeft])
425425 let actWlgold = assetBalance(contracts[dapp2Rest], wlgId)
426426 let lastUserTime = valueOrElse(getInteger(contracts[dapp2Wlg], keyLastClaimTimeByUser(userAddrOpt)), issueTime)
427427 let lastUserPeriod = ((lastUserTime - issueTime) / YEAR_MILLIS)
428428 let nowLimited = min([now, (issueTime + (3 * YEAR_MILLIS))])
429429 let curPeriod = min([((now - issueTime) / YEAR_MILLIS), 2])
430430 let eff = getFarmingPowers(userAddrOpt, contracts[dapp2Staking])
431431 let curPeriodDistribution = distrByPeriod(issuedAmount, curPeriod)
432432 let prevPeriodEnd = (issueTime + (YEAR_MILLIS * curPeriod))
433433 let prevPrevPeriodEnd = (issueTime + (YEAR_MILLIS * (curPeriod - 1)))
434434 let a0 = fraction(curPeriodDistribution, (nowLimited - lastUserTime), YEAR_MILLIS)
435435 let userAvailable = if ((lastUserPeriod == curPeriod))
436436 then a0
437437 else if ((lastUserPeriod == (curPeriod - 1)))
438438 then {
439439 let a1 = fraction(distrByPeriod(issuedAmount, (curPeriod - 1)), (prevPeriodEnd - lastUserTime), YEAR_MILLIS)
440440 (a1 + a0)
441441 }
442442 else {
443443 let a2 = fraction(distrByPeriod(issuedAmount, (curPeriod - 2)), (prevPrevPeriodEnd - lastUserTime), YEAR_MILLIS)
444444 let a1 = distrByPeriod(issuedAmount, (curPeriod - 1))
445445 ((a2 + a1) + a0)
446446 }
447447 let amountLeftTotal = valueOrElse(getInteger(contracts[dapp2Wlg], stakersAmtLeftKey), 0)
448448 let userAmount = if ((eff[idxTotalFP] != 0))
449449 then fraction(userAvailable, eff[idxUserFPbonused], eff[idxTotalFP])
450450 else 0
451451 let lastIssue10Time = valueOrElse(getInteger(contracts[dapp2Wlg], wlgIssue10TimeKey), NEW_STAKING_START)
452452 let issue10Amount = fraction(ISSUE10, max([(now - lastIssue10Time), 0]), DAY_MS)
453453 let marketingIssue10Amount = fraction(issue10Amount, MARKETING10_SHARE, M6_)
454454 let teamIssue10Amount = fraction(issue10Amount, TEAM10_SHARE, M6_)
455455 let user10Interval = max([(now - max([NEW_STAKING_START, lastUserTime])), 0])
456456 let user10part = if ((eff[idxTotalFP] != 0))
457457 then fraction(fraction(fraction(ISSUE10, user10Interval, DAY_MS), eff[idxUserFPbonused], eff[idxTotalFP]), PLAYERS10_SHARE, M6_)
458458 else 0
459459 let newIssue10Time = max([NEW_STAKING_START, now])
460460 let acresStakedTotal = valueOrElse(getInteger(contracts[dapp2Staking], acresStakdTotalKey), 0)
461461 let nftTotalIssued = valueOrElse(getInteger(contracts[dapp2Staking], keyNftTotalIssued), 0)
462462 let nftTotalBurned = valueOrElse(getInteger(contracts[dapp2Staking], keyNftTotalBurned), 0)
463463 let wlNftTotalStaked = valueOrElse(getInteger(contracts[dapp2Staking], keyWlNftTotalStaked), 0)
464464 let wlNftUserStaked = valueOrElse(getInteger(contracts[dapp2Staking], keyUserWlNftNumber(valueOrElse(userAddrOpt, ""))), 0)
465465 [issuedAmount, wlgWlg, fraction(totalFundsUsd, M8_, issuedAmount), totalFundsUsd, restUsd, acres2Usd, wlgUsd, puzzleUsd, issueTime, lastTeamTime, teamTotal, teamAmountLeft, teamAmountAvailableNow, teamWlgold, actTotal, actAmountLeft, actAmountAvailableNow, actWlgold, curPeriod, amountLeftTotal, curPeriodDistribution, lastUserTime, investFundTotal, userAmount, nowLimited, issue10Amount, marketingIssue10Amount, teamIssue10Amount, user10part, newIssue10Time, eff[idxTotalFP], acresStakedTotal, nftTotalIssued, nftTotalBurned, wlNftTotalStaked, wlNftUserStaked]
466466 }
467467
468468
469469 func walletInternal (userAddressOpt) = {
470470 let addr = addressFromString(userAddressOpt)
471471 let balance = if (isDefined(addr))
472472 then wavesBalance(value(addr))
473473 else BalanceDetails(0, 0, 0, 0)
474474 let usdtBalance = if (isDefined(addr))
475475 then assetBalance(value(addr), usdtAssetId)
476476 else 0
477477 let wlgoldBalance = if (isDefined(addr))
478478 then assetBalance(value(addr), wlgAssetId)
479479 else 0
480480 let customName = valueOrElse(getString(acres2Contract, keyAddressToCustomName(userAddressOpt)), userAddressOpt)
481481 let refByKey = keyAddressRefBy(userAddressOpt)
482482 let refBy = getString(acres2Contract, refByKey)
483483 let refs = valueOrElse(getString(acres2Contract, keyAddressReferrals(userAddressOpt)), "")
484484 let lastTxId = valueOrElse(getString(acres2Contract, keyLastWeekTxIdByUser(userAddressOpt)), "")
485485 let curTxId = valueOrElse(getString(acres2Contract, keyCurWeekTxIdByUser(userAddressOpt)), "")
486486 let acresBalance = if (isDefined(addr))
487487 then assetBalance(value(addr), acresAssetId)
488488 else 0
489489 let stakedAcres = valueOrElse(getInteger(acres2Contract, keyAcresStakedAmtByUser(userAddressOpt)), 0)
490490 let lvl = getLevelByAcres(stakedAcres)
491491 let fp = getFarmingPowers(userAddressOpt, acres2Contract)
492492 let acresToNextLvl = if ((lvl >= size(levelAcres)))
493493 then 0
494494 else (((levelAcres[lvl] * M8_) + 1) - stakedAcres)
495495 let nfts = valueOrElse(getString(acres2Contract, keyStakedNFTsByOwner(userAddressOpt)), "")
496496 let bonus = valueOrElse(getInteger(acres2Contract, keyUserFullBonus(userAddressOpt)), 0)
497497 [("%s%s__customName__" + customName), ("%s%s__referredBy__" + valueOrElse(refBy, "")), ("%s%s__referrals__" + refs), ("%s%s__lastWeekTxId__" + lastTxId), ("%s%s__curWeekTxId__" + lastTxId), ("%s%d__wavesBalance__" + toString(balance.available)), ("%s%d__usdtBalance__" + toString(usdtBalance)), ("%s%d__wlgoldBalance__" + toString(wlgoldBalance)), ("%s%d__acresBalance__" + toString(acresBalance)), ("%s%d__stakedAcres__" + toString(stakedAcres)), ("%s%d__currentLvl__" + toString(lvl)), ("%s%d__acresToNextLvl__" + toString(acresToNextLvl)), ("%s%s__userNFTs__" + nfts), ("%s%d__userBonus__" + toString(bonus)), ("%s%d__userBaseFarmingPower__" + toString(fp[idxUserFPnotBonused])), ("%s%d__userFarmingPower__" + toString(fp[idxUserFPbonused])), ("%s%d__totalFarmingPower__" + toString(fp[idxTotalFP]))]
498498 }
499499
500500
501501 @Callable(i)
502502 func constructorV1 (contracts) = if ((i.caller != this))
503503 then throw("permissions denied")
504504 else {
505505 func descriptor (acc,ignoredItem) = (acc + "%s")
506506
507507 let descr = {
508508 let $l = contracts
509509 let $s = size($l)
510510 let $acc0 = ""
511511 func $f0_1 ($a,$i) = if (($i >= $s))
512512 then $a
513513 else descriptor($a, $l[$i])
514514
515515 func $f0_2 ($a,$i) = if (($i >= $s))
516516 then $a
517517 else throw("List size exceeds 10")
518518
519519 $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)
520520 }
521521 [StringEntry(keyRestCfg(), makeString(descr :: contracts, SEP)), StringEntry(keyRest2Address(), toString(this))]
522522 }
523523
524524
525525
526526 @Callable(i)
527527 func walletInfoREADONLY (userAddressOpt) = $Tuple2(nil, walletInternal(userAddressOpt))
528528
529529
530530
531531 @Callable(i)
532532 func conversionInfoREADONLY (userAddressOpt) = {
533533 let oldAcresAddress = addressFromStringValue(getStringValue(acres2Contract, oldAcresContractKey))
534534 let $t050515173 = asTuple2Ints(invoke(oldAcresAddress, "unstakeAllAcresREADONLY", [userAddressOpt], nil))
535535 let unstakedAcres = $t050515173._1
536536 let claimedAcres = $t050515173._2
537537 let $t051765325 = asTuple4Ints(invoke(acres2Contract, "unstakeLandsREADONLY", [userAddressOpt], nil))
538538 let acresFromPieces = $t051765325._1
539539 let acresFromRes = $t051765325._2
540540 let acresFromMat = $t051765325._3
541541 let acresFromProd = $t051765325._4
542542 let oldStakingAddress = addressFromStringValue(oldStakingContractStr)
543543 let duckAssetId = valueOrElse(getString(oldStakingAddress, keyStakedDuckByOwner(userAddressOpt)), "")
544544 let $t055035725 = if ((duckAssetId != ""))
545545 then asTuple3Ints(invoke(oldStakingAddress, "unstakeDuckREADONLY", [duckAssetId, userAddressOpt], nil))
546546 else $Tuple3(0, 0, 0)
547547 let acresFromDuckRes = $t055035725._1
548548 let acresFromDuckMat = $t055035725._2
549549 let acresFromDuckProd = $t055035725._3
550550 $Tuple2(nil, [("%s%d__unstakedAcres__" + toString(unstakedAcres)), ("%s%d__claimedAcres__" + toString(claimedAcres)), ("%s%d__acresFromPieces__" + toString(acresFromPieces)), ("%s%d__acresFromRes__" + toString(acresFromRes)), ("%s%d__acresFromMat__" + toString(acresFromMat)), ("%s%d__acresFromProd__" + toString(acresFromProd)), ("%s%s__duckAssetId__" + duckAssetId), ("%s%d__acresFromDuckRes__" + toString(acresFromDuckRes)), ("%s%d__acresFromDuckMat__" + toString(acresFromDuckMat)), ("%s%d__acresFromDuckProd__" + toString(acresFromDuckProd))])
551551 }
552552
553553
554554
555555 @Callable(i)
556556 func wlgStatsREADONLY (userAddrOpt) = {
557557 let curStats = getWlgStats2(userAddrOpt, [rest2Contract, acres2Contract, wlgContract, puzzlePoolContract, investFundContract], usdtAssetId, 0)
558558 $Tuple2(nil, [("%s%d__wlgAmount__" + toString(curStats[ixWlgAmount])), ("%s%d__wlgWlg__" + toString(curStats[ixWlgWlg])), ("%s%d__wlgPrice__" + toString(curStats[ixWlgPrice])), ("%s%d__usdtFunds__" + toString(curStats[ixWlgFunds])), ("%s%d__usdtActivity__" + toString(curStats[ixWlgActivity])), ("%s%d__usdtStaking__" + toString(curStats[ixWlgAcres2])), ("%s%d__usdtArbitrage__" + toString(curStats[ixWlgArbitrage])), ("%s%d__usdtPool__" + toString(curStats[ixWlgPool])), ("%s%d__wlgIssueTime__" + toString(curStats[ixWlgIssueTime])), ("%s%d__wlgLastTeamActTime__" + toString(curStats[ixWlgLastTeamActTime])), ("%s%d__wlgTeamTotal__" + toString(curStats[ixWlgTeamTotal])), ("%s%d__wlgTeamAmLeft__" + toString(curStats[ixWlgTeamAmLeft])), ("%s%d__wlgTeamAmAvailNow__" + toString(curStats[ixWlgTeamAmAvailNow])), ("%s%d__wlgTeamWlgold__" + toString(curStats[ixWlgTeamWlgold])), ("%s%d__wlgActTotal__" + toString(curStats[ixWlgActTotal])), ("%s%d__wlgActAmLeft__" + toString(curStats[ixWlgActAmLeft])), ("%s%d__wlgActAmAvailNow__" + toString(curStats[ixWlgActAmAvailNow])), ("%s%d__wlgActWlgold__" + toString(curStats[ixWlgActWlgold])), ("%s%d__wlgCurPeriod__" + toString(curStats[ixWlgCurPeriod])), ("%s%d__wlgAmLeftTotal__" + toString(curStats[ixWlgAmLeftTotal])), ("%s%d__wlgCurPeriodDistribution__" + toString(curStats[ixWlgCurPeriodDistribution])), ("%s%d__wlgLastUserTime__" + toString(curStats[ixWlgLastUserTime])), ("%s%d__wlgInvestFundTotal__" + toString(curStats[ixWlgInvestFundAmount])), ("%s%d__wlgUserAmAvailNow__" + toString(curStats[ixWlgUserAmAvailNow])), ("%s%d__wlgEffUserTime__" + toString(curStats[ixWlgEffUserTime])), ("%s%d__wlgIssue10AvailNow__" + toString(curStats[ixWlgIssue10Amount])), ("%s%d__wlgMarketingIssue10AvailNow__" + toString(curStats[ixWlgMarketingIssue10Amount])), ("%s%d__wlgTeamIssue10AvailNow__" + toString(curStats[ixWlgTeamIssue10Amount])), ("%s%d__wlgUserIssue10AvailNow__" + toString(curStats[ixWlgUser10part])), ("%s%d__wlgLastIssue10Time__" + toString(curStats[ixWlgIssue10Time])), ("%s%d__wlgTotalFarmingPower__" + toString(curStats[ixWlgTotalFarmingPower])), ("%s%d__wlgAcresStakedTotal__" + toString(curStats[ixWlgAcresStakedTotal])), ("%s%d__nftTotalIssued__" + toString(curStats[ixWlgNftTotalIssued])), ("%s%d__nftTotalBurned__" + toString(curStats[ixWlgNftTotalBurned])), ("%s%d__wlNftTotalStaked__" + toString(curStats[ixWlgWlNftTotalStaked])), ("%s%d__wlNftUserStaked__" + toString(curStats[ixWlgWlNftUserStaked]))])
559559 }
560560
561561
562562
563563 @Callable(i)
564564 func lotteryStatsREADONLY (userAddrOpt) = {
565565 let today = (height / DAY_BLOCKS)
566566 let week = (height / WEEK_BLOCKS)
567567 let lastWeek = (week - 1)
568568 let curWeekTickets = valueOrElse(getInteger(wlgContract, keyUserWeekTickets(userAddrOpt, week)), 0)
569569 let lastWeekTickets = valueOrElse(getInteger(wlgContract, keyUserWeekTickets(userAddrOpt, lastWeek)), 0)
570570 let curWeekTotalTickets = valueOrElse(getInteger(wlgContract, keyTotalWeekTickets(week)), 0)
571571 let lastWeekTotalTickets = valueOrElse(getInteger(wlgContract, keyTotalWeekTickets(lastWeek)), 0)
572572 let usersBet = valueOrElse(getString(wlgContract, keyUserBet(userAddrOpt)), "")
573573 $Tuple2(nil, [((("%s%d%d__totalTickets__" + toString(lastWeekTotalTickets)) + SEP) + toString(curWeekTotalTickets)), ((("%s%d%d__userTickets__" + toString(lastWeekTickets)) + SEP) + toString(curWeekTickets)), ("%s%d__blockchainWeek__" + toString(week)), ("%s%d__blockchainDay__" + toString(today)), ("%s%d__blockchainMinute__" + toString((height % DAY_BLOCKS))), ("%s%d__winningBetToday__" + toString(winningBet(today))), ("%s%s__usersBet__" + usersBet)])
574574 }
575575
576576
577577
578578 @Callable(i)
579579 func userOrdersREADONLY (userAddrOpt) = {
580580 let nftsKey = keyAssetIdsBySeller(userAddrOpt)
581581 let nftsStr = valueOrElse(getString(marketContract, nftsKey), "")
582582 $Tuple2(nil, [("%s%s__userSaleNfts__" + nftsStr)])
583583 }
584584
585585
586586
587587 @Callable(i)
588588 func orderInfoREADONLY (assetIdOpt) = {
589589 let price = valueOrElse(getInteger(marketContract, keyPriceByAssetId(assetIdOpt)), 0)
590590 let seller = valueOrElse(getString(marketContract, keySellerByAssetId(assetIdOpt)), "")
591591 $Tuple2(nil, [("%s%d__marketNftPrice__" + toString(price)), ("%s%s__marketNftSeller__" + seller)])
592592 }
593593
594594
595595
596596 @Callable(i)
597597 func promoStatsREADONLY (userAddrOpt) = {
598598 let today = (height / DAY_BLOCKS)
599599 let userTickets = valueOrElse(getInteger(acres2Contract, keyUserPromoTickets(userAddrOpt)), 0)
600600 let totalTickets = valueOrElse(getInteger(acres2Contract, keyTotalPromoTickets), 0)
601601 let promoMap = valueOrElse(getString(acres2Contract, keyPromoMap), "")
602602 func sum (acc,roundId) = if ((promoBlocks[roundId] > height))
603603 then acc
604604 else {
605605 let winners = valueOrElse(getString(acres2Contract, keyPromoRoundWinners(roundId)), "")
606606 if ((winners == ""))
607607 then acc
608608 else {
609609 let idx = indexOf(split(winners, "_"), userAddrOpt)
610610 if (isDefined(idx))
611611 then $Tuple2((acc._1 :+ toString(value(idx))), (acc._2 :+ winners))
612612 else $Tuple2((acc._1 :+ ""), (acc._2 :+ winners))
613613 }
614614 }
615615
616- let $t01209212161 = {
617- let $l = [0, 1, 2]
616+ let $t01209212155 = {
617+ let $l = [0]
618618 let $s = size($l)
619619 let $acc0 = $Tuple2(nil, nil)
620620 func $f0_1 ($a,$i) = if (($i >= $s))
621621 then $a
622622 else sum($a, $l[$i])
623623
624624 func $f0_2 ($a,$i) = if (($i >= $s))
625625 then $a
626- else throw("List size exceeds 3")
626+ else throw("List size exceeds 1")
627627
628- $f0_2($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3)
628+ $f0_2($f0_1($acc0, 0), 1)
629629 }
630- let userPrizesList = $t01209212161._1
631- let winnersList = $t01209212161._2
630+ let userPrizesList = $t01209212155._1
631+ let winnersList = $t01209212155._2
632632 $Tuple2(nil, [("%s%s__promoMap__" + promoMap), ("%s%d__totalPromoTickets__" + toString(totalTickets)), ("%s%d__userPromoTickets__" + toString(userTickets)), ("%s%d__blockchainDay__" + toString(today)), ("%s%s__promoWinners__" + makeString_2C(winnersList, ":")), ("%s%s__userPromoPrizes__" + makeString(userPrizesList, "_"))])
633633 }
634634
635635

github/deemru/w8io/169f3d6 
148.80 ms