tx · 9jaF9N5DF3y3uosa7EGQZq4bjCL1uJX25fE82VQJrEoN

3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv:  -0.01800000 Waves

2024.11.25 16:55 [3387030] smart account 3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv > SELF 0.00000000 Waves

{ "type": 13, "id": "9jaF9N5DF3y3uosa7EGQZq4bjCL1uJX25fE82VQJrEoN", "fee": 1800000, "feeAssetId": null, "timestamp": 1732542954477, "version": 2, "chainId": 84, "sender": "3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv", "senderPublicKey": "2fNSk5gmWbXBDTkSYSKd66xSgVvAYzrJnP9YSAFNvTwC", "proofs": [ "44NTsCWU6QKNejG5BQ5qdojchk7wsZmcPnFxu1TjCVztRyVXj2ESi7RJNzLnaESMrczckmMdAhhJVmPTbgDLBt9D" ], "script": "base64:BgIbCAISAwoBGBIDCgEIEgMKAQgSAwoBCBIDCgEIcwADU0VQAgJfXwAFY2hhaW4JAMkBAgkAygECCAUEdGhpcwVieXRlcwABAAEACkRBWV9CTE9DS1MEByRtYXRjaDAFBWNoYWluAwkAAAIBAVcFByRtYXRjaDAAoAsDCQAAAgEBVAUHJG1hdGNoMAA8CQACAQINVW5rbm93biBjaGFpbgALV0VFS19CTE9DS1MEByRtYXRjaDAFBWNoYWluAwkAAAIBAVcFByRtYXRjaDAA4E4DCQAAAgEBVAUHJG1hdGNoMAC0AQkAAgECDVVua25vd24gY2hhaW4AClZSRl9PRkZTRVQEByRtYXRjaDAFBWNoYWluAwkAAAIBAVcFByRtYXRjaDAAAAMJAAACAQFUBQckbWF0Y2gwAJD5RQkAAgECDVVua25vd24gY2hhaW4AC3VzZHRBc3NldElkBAckbWF0Y2gwBQVjaGFpbgMJAAACAQFXBQckbWF0Y2gwASCE2nqyCAM/TtG7yo7ui5O8yYLdC136B5ao1CP5qA//uQMJAAACAQFUBQckbWF0Y2gwASBVsdifcoeC7+XjW42sBatl3ppDoS8WuwXzGreHpfHFGAkAAg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NvbnRyYWN0CQETa2V5VG90YWxXZWVrVGlja2V0cwEFBHdlZWsAAAQUbGFzdFdlZWtUb3RhbFRpY2tldHMJAQt2YWx1ZU9yRWxzZQIJAJoIAgULd2xnQ29udHJhY3QJARNrZXlUb3RhbFdlZWtUaWNrZXRzAQUIbGFzdFdlZWsAAAQIdXNlcnNCZXQJAQt2YWx1ZU9yRWxzZQIJAJ0IAgULd2xnQ29udHJhY3QJAQprZXlVc2VyQmV0AQULdXNlckFkZHJPcHQCAAkAlAoCBQNuaWwJAMwIAgkArAICCQCsAgIJAKwCAgIWJXMlZCVkX190b3RhbFRpY2tldHNfXwkApAMBBRRsYXN0V2Vla1RvdGFsVGlja2V0cwUDU0VQCQCkAwEFE2N1cldlZWtUb3RhbFRpY2tldHMJAMwIAgkArAICCQCsAgIJAKwCAgIVJXMlZCVkX191c2VyVGlja2V0c19fCQCkAwEFD2xhc3RXZWVrVGlja2V0cwUDU0VQCQCkAwEFDmN1cldlZWtUaWNrZXRzCQDMCAIJAKwCAgIWJXMlZF9fYmxvY2tjaGFpbldlZWtfXwkApAMBBQR3ZWVrCQDMCAIJAKwCAgIVJXMlZF9fYmxvY2tjaGFpbkRheV9fCQCkAwEFBXRvZGF5CQDMCAIJAKwCAgIYJXMlZF9fYmxvY2tjaGFpbk1pbnV0ZV9fCQCkAwEJAGoCBQZoZWlnaHQFCkRBWV9CTE9DS1MJAMwIAgkArAICAhclcyVkX193aW5uaW5nQmV0VG9kYXlfXwkApAMBCQEKd2lubmluZ0JldAEFBXRvZGF5CQDMCAIJAKwCAgIQJXMlc19fdXNlcnNCZXRfXwUIdXNlcnNCZXQFA25pbAAPdQDw", "height": 3387030, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GovWwQwuVtCwDcw3X3AXQkfYN9495bgKL75pnnifBvC4 Next: 5anAW5CCUTRhpHEJtc1kQjcDSvwbfpE4aEJCKyuC3oPo Diff:
OldNewDifferences
131131 func keyTotalWeekTickets (week) = ("totalWeekTickets_" + toString(week))
132132
133133
134-func winningBet (day) = (toInt(value(value(blockInfoByHeight(((day * DAY_BLOCKS) + VRF_OFFSET))).vrf)) % 4)
134+func winningBet (day) = {
135+ let b = (day * DAY_BLOCKS)
136+ let h = if ((b > VRF_OFFSET))
137+ then b
138+ else (b + VRF_OFFSET)
139+ (toInt(value(value(blockInfoByHeight(((day * DAY_BLOCKS) + VRF_OFFSET))).vrf)) % 4)
140+ }
135141
136142
137143 func asTuple4Ints (val) = match val {
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 DAY_BLOCKS = match chain {
99 case _ =>
1010 if ((base58'2W' == $match0))
1111 then 1440
1212 else if ((base58'2T' == $match0))
1313 then 60
1414 else throw("Unknown chain")
1515 }
1616
1717 let WEEK_BLOCKS = match chain {
1818 case _ =>
1919 if ((base58'2W' == $match0))
2020 then 10080
2121 else if ((base58'2T' == $match0))
2222 then 180
2323 else throw("Unknown chain")
2424 }
2525
2626 let VRF_OFFSET = match chain {
2727 case _ =>
2828 if ((base58'2W' == $match0))
2929 then 0
3030 else if ((base58'2T' == $match0))
3131 then 1146000
3232 else throw("Unknown chain")
3333 }
3434
3535 let usdtAssetId = match chain {
3636 case _ =>
3737 if ((base58'2W' == $match0))
3838 then base58'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi'
3939 else if ((base58'2T' == $match0))
4040 then base58'6mWwf9mZBjVgkC54idpyaZLQfAosD914wT8fGf2iiY63'
4141 else throw("Unknown chain")
4242 }
4343
4444 let defaultRest2AddressStr = match chain {
4545 case _ =>
4646 if ((base58'2W' == $match0))
4747 then "3PFwYta8biEz31zpeFe5DJK8wE5trSpQVF8"
4848 else if ((base58'2T' == $match0))
4949 then "3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv"
5050 else throw("Unknown chain")
5151 }
5252
5353 let oldStakingContractStr = match chain {
5454 case _ =>
5555 if ((base58'2W' == $match0))
5656 then "3PLncXtS1U83D6cQbFD3H8rBHPLgzxSFKZ1"
5757 else if ((base58'2T' == $match0))
5858 then "3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm"
5959 else throw("Unknown chain")
6060 }
6161
6262 func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], ""))
6363
6464
6565 let IdxCfgAcres2Dapp = 1
6666
6767 let IdxCfgWlgDapp = 2
6868
6969 let IdxCfgPuzzlePoolDapp = 4
7070
7171 let IdxCfgInvestFundDapp = 5
7272
7373 func keyRestCfg () = "%s__restConfig"
7474
7575
7676 func keyRest2Address () = "%s__rest2Addr"
7777
7878
7979 func readRestCfgOrFail (rest) = split_4C(getStringOrFail(rest, keyRestCfg()), SEP)
8080
8181
8282 func getContractAddressOrFail (rest2Cfg,idx) = valueOrErrorMessage(addressFromString(rest2Cfg[idx]), ("Rest cfg doesn't contain address at index " + toString(idx)))
8383
8484
8585 let rest2Contract = addressFromStringValue(valueOrElse(getString(this, keyRest2Address()), defaultRest2AddressStr))
8686
8787 let rest2Cfg = readRestCfgOrFail(rest2Contract)
8888
8989 let acres2Contract = getContractAddressOrFail(rest2Cfg, IdxCfgAcres2Dapp)
9090
9191 let wlgContract = getContractAddressOrFail(rest2Cfg, IdxCfgWlgDapp)
9292
9393 let puzzlePoolContract = getContractAddressOrFail(rest2Cfg, IdxCfgPuzzlePoolDapp)
9494
9595 let investFundContract = getContractAddressOrFail(rest2Cfg, IdxCfgInvestFundDapp)
9696
9797 let oldAcresContractKey = "oldAcresContract"
9898
9999 func keyLastWeekTxIdByUser (addr) = ("lastWeekTxIdByUser_" + addr)
100100
101101
102102 func keyCurWeekTxIdByUser (addr) = ("curWeekTxIdByUser_" + addr)
103103
104104
105105 let wlgAssetIdKey = "wlg_assetId"
106106
107107 let wlgAssetId = valueOrErrorMessage(getBinary(wlgContract, wlgAssetIdKey), "WLGOLD is not issued yet")
108108
109109 let acresAssetIdKey = "acresAssetId"
110110
111111 let acresAssetId = valueOrErrorMessage(getBinary(acres2Contract, acresAssetIdKey), "ACRES is not issued yet")
112112
113113 func keyStakedDuckByOwner (ownerAddr) = ("stakedDuckByOwner_" + ownerAddr)
114114
115115
116116 func keyAddressToCustomName (addr) = ("accountCustomNameByAddr_" + addr)
117117
118118
119119 func keyAddressRefBy (addr) = ("accRefBy_" + addr)
120120
121121
122122 func keyAddressReferrals (addr) = ("accReferrals_" + addr)
123123
124124
125125 func keyUserBet (addr) = ("userBet_" + addr)
126126
127127
128128 func keyUserWeekTickets (addr,week) = ((("userWeekTickets_" + addr) + "_") + toString(week))
129129
130130
131131 func keyTotalWeekTickets (week) = ("totalWeekTickets_" + toString(week))
132132
133133
134-func winningBet (day) = (toInt(value(value(blockInfoByHeight(((day * DAY_BLOCKS) + VRF_OFFSET))).vrf)) % 4)
134+func winningBet (day) = {
135+ let b = (day * DAY_BLOCKS)
136+ let h = if ((b > VRF_OFFSET))
137+ then b
138+ else (b + VRF_OFFSET)
139+ (toInt(value(value(blockInfoByHeight(((day * DAY_BLOCKS) + VRF_OFFSET))).vrf)) % 4)
140+ }
135141
136142
137143 func asTuple4Ints (val) = match val {
138144 case t: (Int, Int, Int, Int) =>
139145 t
140146 case _ =>
141147 throw("fail to cast into (Int, Int, Int, Int)")
142148 }
143149
144150
145151 func asTuple3Ints (val) = match val {
146152 case t: (Int, Int, Int) =>
147153 t
148154 case _ =>
149155 throw("fail to cast into (Int, Int, Int)")
150156 }
151157
152158
153159 func asTuple2Ints (val) = match val {
154160 case t: (Int, Int) =>
155161 t
156162 case _ =>
157163 throw("fail to cast into (Int, Int)")
158164 }
159165
160166
161167 let M6_ = 1000000
162168
163169 let M8_ = 100000000
164170
165171 let TEAM_SHARE = 200000
166172
167173 let ACTIVITY_SHARE = 100000
168174
169175 let PLAYER_SHARE = 400000
170176
171177 let YEAR_MILLIS = 31557600000
172178
173179 let DAY_MS = 86400000
174180
175181 let ISSUE10 = 1000000000
176182
177183 let PLAYERS10_SHARE = 800000
178184
179185 let MARKETING10_SHARE = 100000
180186
181187 let TEAM10_SHARE = 100000
182188
183189 let NEW_STAKING_START = 1731279600000
184190
185191 let teamAdrKey = "teamAddr"
186192
187193 let lastTeamTimKey = "lastClaimedTime_team"
188194
189195 let teamAmtLeftKey = "teamAmountLeft"
190196
191197 let lastActivitiesTimKey = "lastClaimedTime_activities"
192198
193199 let actAmtLeftKey = "activitiesAmountLeft"
194200
195201 let stakersAmtLeftKey = "stakersAmountLeft"
196202
197203 func keyLastClaimTimeByUser (addr) = ("lastClaimedTimeUser_" + addr)
198204
199205
200206 func distrByPeriod (issuedAmount,period) = fraction(issuedAmount, (PLAYER_SHARE * (period + 1)), (6 * M6_))
201207
202208
203209 let wlgIssue10TimeKey = "wlg_issue10Time"
204210
205211 let wlgIssueTimKey = "wlg_issueTime"
206212
207213 let wlgIssuedAmtKey = "wlg_issuedAmount"
208214
209215 let zbIssuedAmtKey = "zbill_issuedAmount"
210216
211217 func keyAcresStakedAmtByUser (addr) = ("acresStakedAmountByUser_" + addr)
212218
213219
214220 let acresStakdTotalKey = "acresStakedAmountTotal"
215221
216222 let totalFarmingPowerKey = "totalFarmingPower"
217223
218224 let dapp2Rest = 0
219225
220226 let dapp2Staking = 1
221227
222228 let dapp2Wlg = 2
223229
224230 let dapp2Puzzle = 3
225231
226232 let dapp2InvestFund = 4
227233
228234 func keyUserFullBonus (addr) = ("userFullBonus_" + addr)
229235
230236
231237 let levelAcres = [0, 10, 20, 40, 80, 150, 250, 400, 700, 1000]
232238
233239 func getLevelByAcres (acres) = {
234240 let acr = ((acres + 99999999) / M8_)
235241 func checker (acc,item) = if ((item >= acr))
236242 then acc
237243 else (acc + 1)
238244
239245 let $l = levelAcres
240246 let $s = size($l)
241247 let $acc0 = 0
242248 func $f0_1 ($a,$i) = if (($i >= $s))
243249 then $a
244250 else checker($a, $l[$i])
245251
246252 func $f0_2 ($a,$i) = if (($i >= $s))
247253 then $a
248254 else throw("List size exceeds 10")
249255
250256 $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)
251257 }
252258
253259
254260 func getFarmingPowerByAcres (acres) = ((acres * 20) * (getLevelByAcres(acres) + 4))
255261
256262
257263 func getFarmingPowerByAcresAndBonus (acres,bonus6) = {
258264 let notBonused = getFarmingPowerByAcres(acres)
259265 $Tuple2(fraction(notBonused, (M6_ + bonus6), M6_), notBonused)
260266 }
261267
262268
263269 func getFarmingPowers (userAddrStrOrEmpty,acres2Contract) = {
264270 let totalFP = valueOrElse(getInteger(acres2Contract, totalFarmingPowerKey), 0)
265271 let userAcres = valueOrElse(getInteger(acres2Contract, keyAcresStakedAmtByUser(userAddrStrOrEmpty)), 0)
266272 let userBonus = valueOrElse(getInteger(acres2Contract, keyUserFullBonus(userAddrStrOrEmpty)), 0)
267273 let $t079119 = getFarmingPowerByAcresAndBonus(userAcres, userBonus)
268274 let userFPbonused = $t079119._1
269275 let userFPnotBonused = $t079119._2
270276 [totalFP, userFPbonused, userFPnotBonused, userBonus]
271277 }
272278
273279
274280 let idxTotalFP = 0
275281
276282 let idxUserFPbonused = 1
277283
278284 let ixWlgAmount = 0
279285
280286 let ixWlgWlg = 1
281287
282288 let ixWlgPrice = 2
283289
284290 let ixWlgFunds = 3
285291
286292 let ixWlgActivity = 4
287293
288294 let ixWlgAcres2 = 5
289295
290296 let ixWlgArbitrage = 6
291297
292298 let ixWlgPool = 7
293299
294300 let ixWlgIssueTime = 8
295301
296302 let ixWlgLastTeamActTime = 9
297303
298304 let ixWlgTeamTotal = 10
299305
300306 let ixWlgTeamAmLeft = 11
301307
302308 let ixWlgTeamAmAvailNow = 12
303309
304310 let ixWlgTeamWlgold = 13
305311
306312 let ixWlgActTotal = 14
307313
308314 let ixWlgActAmLeft = 15
309315
310316 let ixWlgActAmAvailNow = 16
311317
312318 let ixWlgActWlgold = 17
313319
314320 let ixWlgCurPeriod = 18
315321
316322 let ixWlgAmLeftTotal = 19
317323
318324 let ixWlgCurPeriodDistribution = 20
319325
320326 let ixWlgLastUserTime = 21
321327
322328 let ixWlgInvestFundAmount = 22
323329
324330 let ixWlgUserAmAvailNow = 23
325331
326332 let ixWlgEffUserTime = 24
327333
328334 let ixWlgIssue10Amount = 25
329335
330336 let ixWlgMarketingIssue10Amount = 26
331337
332338 let ixWlgTeamIssue10Amount = 27
333339
334340 let ixWlgUser10part = 28
335341
336342 let ixWlgIssue10Time = 29
337343
338344 let ixWlgTotalFarmingPower = 30
339345
340346 let ixWlgAcresStakedTotal = 31
341347
342348 func getWlgStats2 (userAddrOpt,contracts,usdtId,usdtBalanceCorrection) = {
343349 let issuedAmount = valueOrErrorMessage(getInteger(contracts[dapp2Wlg], wlgIssuedAmtKey), "WLGOLD is not issued yet")
344350 let restUsd = assetBalance(contracts[dapp2Rest], usdtId)
345351 let wlgUsd = (assetBalance(contracts[dapp2Wlg], usdtId) - usdtBalanceCorrection)
346352 let puzzleUsd = assetBalance(contracts[dapp2Puzzle], usdtId)
347353 let acres2Usd = assetBalance(contracts[dapp2Staking], usdtId)
348354 let investFndContract = contracts[dapp2InvestFund]
349355 let investFundTotal = (assetBalance(investFndContract, usdtId) + valueOrElse(getInteger(investFndContract, zbIssuedAmtKey), 0))
350356 let totalFundsUsd = ((acres2Usd + wlgUsd) + investFundTotal)
351357 let wlgId = valueOrErrorMessage(getBinary(contracts[dapp2Wlg], "wlg_assetId"), "Not initialized yet")
352358 let now = lastBlock.timestamp
353359 let issueTime = valueOrErrorMessage(getInteger(contracts[dapp2Wlg], wlgIssueTimKey), "Not initialized")
354360 let wlgWlg = assetBalance(contracts[dapp2Wlg], wlgId)
355361 let teamTotal = fraction(issuedAmount, TEAM_SHARE, M6_)
356362 let teamAmountLeft = valueOrElse(getInteger(contracts[dapp2Wlg], teamAmtLeftKey), teamTotal)
357363 let lastTeamTime = valueOrElse(getInteger(contracts[dapp2Wlg], lastTeamTimKey), issueTime)
358364 let teamAddr = addressFromStringValue(value(getString(contracts[dapp2Wlg], teamAdrKey)))
359365 let teamAmountAvailableNow = min([fraction(teamTotal, (now - lastTeamTime), (3 * YEAR_MILLIS)), teamAmountLeft])
360366 let teamWlgold = assetBalance(teamAddr, wlgId)
361367 let actTotal = fraction(issuedAmount, ACTIVITY_SHARE, M6_)
362368 let actAmountLeft = valueOrElse(getInteger(contracts[dapp2Wlg], actAmtLeftKey), actTotal)
363369 let lastActivitiesTime = valueOrElse(getInteger(contracts[dapp2Wlg], lastActivitiesTimKey), issueTime)
364370 let actAmountAvailableNow = min([fraction(actTotal, (now - lastActivitiesTime), (3 * YEAR_MILLIS)), actAmountLeft])
365371 let actWlgold = assetBalance(contracts[dapp2Rest], wlgId)
366372 let lastUserTime = valueOrElse(getInteger(contracts[dapp2Wlg], keyLastClaimTimeByUser(userAddrOpt)), issueTime)
367373 let lastUserPeriod = ((lastUserTime - issueTime) / YEAR_MILLIS)
368374 let nowLimited = min([now, (issueTime + (3 * YEAR_MILLIS))])
369375 let curPeriod = min([((now - issueTime) / YEAR_MILLIS), 2])
370376 let eff = getFarmingPowers(userAddrOpt, contracts[dapp2Staking])
371377 let curPeriodDistribution = distrByPeriod(issuedAmount, curPeriod)
372378 let prevPeriodEnd = (issueTime + (YEAR_MILLIS * curPeriod))
373379 let prevPrevPeriodEnd = (issueTime + (YEAR_MILLIS * (curPeriod - 1)))
374380 let a0 = fraction(curPeriodDistribution, (nowLimited - lastUserTime), YEAR_MILLIS)
375381 let userAvailable = if ((lastUserPeriod == curPeriod))
376382 then a0
377383 else if ((lastUserPeriod == (curPeriod - 1)))
378384 then {
379385 let a1 = fraction(distrByPeriod(issuedAmount, (curPeriod - 1)), (prevPeriodEnd - lastUserTime), YEAR_MILLIS)
380386 (a1 + a0)
381387 }
382388 else {
383389 let a2 = fraction(distrByPeriod(issuedAmount, (curPeriod - 2)), (prevPrevPeriodEnd - lastUserTime), YEAR_MILLIS)
384390 let a1 = distrByPeriod(issuedAmount, (curPeriod - 1))
385391 ((a2 + a1) + a0)
386392 }
387393 let amountLeftTotal = valueOrElse(getInteger(contracts[dapp2Wlg], stakersAmtLeftKey), 0)
388394 let userAmount = if ((eff[idxTotalFP] != 0))
389395 then fraction(userAvailable, eff[idxUserFPbonused], eff[idxTotalFP])
390396 else 0
391397 let lastIssue10Time = valueOrElse(getInteger(contracts[dapp2Wlg], wlgIssue10TimeKey), NEW_STAKING_START)
392398 let issue10Amount = fraction(ISSUE10, max([(now - lastIssue10Time), 0]), DAY_MS)
393399 let marketingIssue10Amount = fraction(issue10Amount, MARKETING10_SHARE, M6_)
394400 let teamIssue10Amount = fraction(issue10Amount, TEAM10_SHARE, M6_)
395401 let user10Interval = max([(now - max([NEW_STAKING_START, lastUserTime])), 0])
396402 let user10part = if ((eff[idxTotalFP] != 0))
397403 then fraction(fraction(fraction(ISSUE10, user10Interval, DAY_MS), eff[idxUserFPbonused], eff[idxTotalFP]), PLAYERS10_SHARE, M6_)
398404 else 0
399405 let newIssue10Time = max([NEW_STAKING_START, now])
400406 let acresStakedTotal = valueOrElse(getInteger(contracts[dapp2Staking], acresStakdTotalKey), 0)
401407 [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]
402408 }
403409
404410
405411 func walletInternal (userAddressOpt) = {
406412 let addr = addressFromString(userAddressOpt)
407413 let balance = if (isDefined(addr))
408414 then wavesBalance(value(addr))
409415 else BalanceDetails(0, 0, 0, 0)
410416 let usdtBalance = if (isDefined(addr))
411417 then assetBalance(value(addr), usdtAssetId)
412418 else 0
413419 let wlgoldBalance = if (isDefined(addr))
414420 then assetBalance(value(addr), wlgAssetId)
415421 else 0
416422 let customName = valueOrElse(getString(acres2Contract, keyAddressToCustomName(userAddressOpt)), userAddressOpt)
417423 let refByKey = keyAddressRefBy(userAddressOpt)
418424 let refBy = getString(acres2Contract, refByKey)
419425 let refs = valueOrElse(getString(acres2Contract, keyAddressReferrals(userAddressOpt)), "")
420426 let lastTxId = valueOrElse(getString(acres2Contract, keyLastWeekTxIdByUser(userAddressOpt)), "")
421427 let curTxId = valueOrElse(getString(acres2Contract, keyCurWeekTxIdByUser(userAddressOpt)), "")
422428 let acresBalance = if (isDefined(addr))
423429 then assetBalance(value(addr), acresAssetId)
424430 else 0
425431 let stakedAcres = valueOrElse(getInteger(acres2Contract, keyAcresStakedAmtByUser(userAddressOpt)), 0)
426432 let lvl = getLevelByAcres(stakedAcres)
427433 let fp = getFarmingPowers(userAddressOpt, acres2Contract)
428434 let acresToNextLvl = if ((lvl >= size(levelAcres)))
429435 then 0
430436 else (((levelAcres[lvl] * M8_) + 1) - stakedAcres)
431437 [("%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%d__userFarmingPower__" + toString(fp[idxUserFPbonused])), ("%s%d__totalFarmingPower__" + toString(fp[idxTotalFP]))]
432438 }
433439
434440
435441 @Callable(i)
436442 func constructorV1 (contracts) = if ((i.caller != this))
437443 then throw("permissions denied")
438444 else {
439445 func descriptor (acc,ignoredItem) = (acc + "%s")
440446
441447 let descr = {
442448 let $l = contracts
443449 let $s = size($l)
444450 let $acc0 = ""
445451 func $f0_1 ($a,$i) = if (($i >= $s))
446452 then $a
447453 else descriptor($a, $l[$i])
448454
449455 func $f0_2 ($a,$i) = if (($i >= $s))
450456 then $a
451457 else throw("List size exceeds 10")
452458
453459 $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)
454460 }
455461 [StringEntry(keyRestCfg(), makeString(descr :: contracts, SEP)), StringEntry(keyRest2Address(), toString(this))]
456462 }
457463
458464
459465
460466 @Callable(i)
461467 func walletInfoREADONLY (userAddressOpt) = $Tuple2(nil, walletInternal(userAddressOpt))
462468
463469
464470
465471 @Callable(i)
466472 func conversionInfoREADONLY (userAddressOpt) = {
467473 let oldAcresAddress = addressFromStringValue(getStringValue(acres2Contract, oldAcresContractKey))
468474 let $t046954817 = asTuple2Ints(invoke(oldAcresAddress, "unstakeAllAcresREADONLY", [userAddressOpt], nil))
469475 let unstakedAcres = $t046954817._1
470476 let claimedAcres = $t046954817._2
471477 let $t048204969 = asTuple4Ints(invoke(acres2Contract, "unstakeLandsREADONLY", [userAddressOpt], nil))
472478 let acresFromPieces = $t048204969._1
473479 let acresFromRes = $t048204969._2
474480 let acresFromMat = $t048204969._3
475481 let acresFromProd = $t048204969._4
476482 let oldStakingAddress = addressFromStringValue(oldStakingContractStr)
477483 let duckAssetId = valueOrElse(getString(oldStakingAddress, keyStakedDuckByOwner(userAddressOpt)), "")
478484 let $t051475369 = if ((duckAssetId != ""))
479485 then asTuple3Ints(invoke(oldStakingAddress, "unstakeDuckREADONLY", [duckAssetId, userAddressOpt], nil))
480486 else $Tuple3(0, 0, 0)
481487 let acresFromDuckRes = $t051475369._1
482488 let acresFromDuckMat = $t051475369._2
483489 let acresFromDuckProd = $t051475369._3
484490 $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%d__acresFromDuckRes__" + toString(acresFromDuckRes)), ("%s%d__acresFromDuckMat__" + toString(acresFromDuckMat)), ("%s%d__acresFromDuckProd__" + toString(acresFromDuckProd))])
485491 }
486492
487493
488494
489495 @Callable(i)
490496 func wlgStatsREADONLY (userAddrOpt) = {
491497 let curStats = getWlgStats2(userAddrOpt, [rest2Contract, acres2Contract, wlgContract, puzzlePoolContract, investFundContract], usdtAssetId, 0)
492498 $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]))])
493499 }
494500
495501
496502
497503 @Callable(i)
498504 func lotteryStatsREADONLY (userAddrOpt) = {
499505 let today = (height / DAY_BLOCKS)
500506 let week = (height / WEEK_BLOCKS)
501507 let lastWeek = (week - 1)
502508 let curWeekTickets = valueOrElse(getInteger(wlgContract, keyUserWeekTickets(userAddrOpt, week)), 0)
503509 let lastWeekTickets = valueOrElse(getInteger(wlgContract, keyUserWeekTickets(userAddrOpt, lastWeek)), 0)
504510 let curWeekTotalTickets = valueOrElse(getInteger(wlgContract, keyTotalWeekTickets(week)), 0)
505511 let lastWeekTotalTickets = valueOrElse(getInteger(wlgContract, keyTotalWeekTickets(lastWeek)), 0)
506512 let usersBet = valueOrElse(getString(wlgContract, keyUserBet(userAddrOpt)), "")
507513 $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)])
508514 }
509515
510516

github/deemru/w8io/026f985 
81.31 ms