tx · C5rgyD29q6DLn7ADrwUXuRumqRgxmvmxJ9rexbsCpR9s

3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv:  -0.01800000 Waves

2024.11.25 21:08 [3387280] smart account 3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv > SELF 0.00000000 Waves

{ "type": 13, "id": "C5rgyD29q6DLn7ADrwUXuRumqRgxmvmxJ9rexbsCpR9s", "fee": 1800000, "feeAssetId": null, "timestamp": 1732558140648, "version": 2, "chainId": 84, "sender": "3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv", "senderPublicKey": "2fNSk5gmWbXBDTkSYSKd66xSgVvAYzrJnP9YSAFNvTwC", "proofs": [ "5y5pByq4M8SRvURUQywqWR2kYo86dgkdGknZb7EdPQND4UPLrqgV2dZtwCFB1foGMus6fozw6HPpQrpt5EwYjjH6" ], "script": "base64:BgIbCAISAwoBGBIDCgEIEgMKAQgSAwoBCBIDCgEIdQADU0VQAgJfXwAFY2hhaW4JAMkBAgkAygECCAUEdGhpcwVieXRlcwABAAEACkRBWV9CTE9DS1MEByRtYXRjaDAFBWNoYWluAwkAAAIBAVcFByRtYXRjaDAAoAsDCQAAAgEBVAUHJG1hdGNoMAA8CQACAQINVW5rbm93biBjaGFpbgALV0VFS19CTE9DS1MEByRtYXRjaDAFBWNoYWluAwkAAAIBAVcFByRtYXRjaDAA4E4DCQAAAgEBVAUHJG1hdGNoMAC0AQkAAgECDVVua25vd24gY2hhaW4AClZSRl9PRkZTRVQEByRtYXRjaDAFBWNoYWluAwkAAAIBAVcFByRtYXRjaDAAAAMJAAACAQFUBQckbWF0Y2gwAJD5RQkAAgECDVVua25vd24gY2hhaW4AC3VzZHRBc3NldElkBAckbWF0Y2gwBQVjaGFpbgMJAAACAQFXBQckbWF0Y2gwASCE2nqyCAM/TtG7yo7ui5O8yYLdC136B5ao1CP5qA//uQMJAAACAQFUBQckbWF0Y2gwASBVsdifcoeC7+XjW42sBatl3ppDoS8WuwXzGreHpfHFGAkAAgEC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rY2hhaW5EYXlfXwkApAMBBQV0b2RheQkAzAgCCQCsAgICGCVzJWRfX2Jsb2NrY2hhaW5NaW51dGVfXwkApAMBCQBqAgUGaGVpZ2h0BQpEQVlfQkxPQ0tTCQDMCAIJAKwCAgIXJXMlZF9fd2lubmluZ0JldFRvZGF5X18JAKQDAQkBCndpbm5pbmdCZXQBBQV0b2RheQkAzAgCCQCsAgICECVzJXNfX3VzZXJzQmV0X18FCHVzZXJzQmV0BQNuaWwAgea0TQ==", "height": 3387280, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: UqrozsgTZ92X1uRfjLAZBpXUKAY1j7N66L2ndipXxop Next: 2mxtuXXuX1pRqThqTgdY1JsWbqU8E4f3LZkAmCyJYLZG Diff:
OldNewDifferences
440440 then 0
441441 else (((levelAcres[lvl] * M8_) + 1) - stakedAcres)
442442 let nfts = valueOrElse(getString(acres2Contract, keyStakedNFTsByOwner(userAddressOpt)), "")
443-[("%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__userBaseFarmingPower__" + toString(fp[idxUserFPnotBonused])), ("%s%d__userFarmingPower__" + toString(fp[idxUserFPbonused])), ("%s%d__totalFarmingPower__" + toString(fp[idxTotalFP]))]
443+ let bonus = valueOrElse(getInteger(acres2Contract, keyUserFullBonus(userAddressOpt)), 0)
444+[("%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]))]
444445 }
445446
446447
477478 @Callable(i)
478479 func conversionInfoREADONLY (userAddressOpt) = {
479480 let oldAcresAddress = addressFromStringValue(getStringValue(acres2Contract, oldAcresContractKey))
480- let $t048915013 = asTuple2Ints(invoke(oldAcresAddress, "unstakeAllAcresREADONLY", [userAddressOpt], nil))
481- let unstakedAcres = $t048915013._1
482- let claimedAcres = $t048915013._2
483- let $t050165165 = asTuple4Ints(invoke(acres2Contract, "unstakeLandsREADONLY", [userAddressOpt], nil))
484- let acresFromPieces = $t050165165._1
485- let acresFromRes = $t050165165._2
486- let acresFromMat = $t050165165._3
487- let acresFromProd = $t050165165._4
481+ let $t050245146 = asTuple2Ints(invoke(oldAcresAddress, "unstakeAllAcresREADONLY", [userAddressOpt], nil))
482+ let unstakedAcres = $t050245146._1
483+ let claimedAcres = $t050245146._2
484+ let $t051495298 = asTuple4Ints(invoke(acres2Contract, "unstakeLandsREADONLY", [userAddressOpt], nil))
485+ let acresFromPieces = $t051495298._1
486+ let acresFromRes = $t051495298._2
487+ let acresFromMat = $t051495298._3
488+ let acresFromProd = $t051495298._4
488489 let oldStakingAddress = addressFromStringValue(oldStakingContractStr)
489490 let duckAssetId = valueOrElse(getString(oldStakingAddress, keyStakedDuckByOwner(userAddressOpt)), "")
490- let $t053435565 = if ((duckAssetId != ""))
491+ let $t054765698 = if ((duckAssetId != ""))
491492 then asTuple3Ints(invoke(oldStakingAddress, "unstakeDuckREADONLY", [duckAssetId, userAddressOpt], nil))
492493 else $Tuple3(0, 0, 0)
493- let acresFromDuckRes = $t053435565._1
494- let acresFromDuckMat = $t053435565._2
495- let acresFromDuckProd = $t053435565._3
494+ let acresFromDuckRes = $t054765698._1
495+ let acresFromDuckMat = $t054765698._2
496+ let acresFromDuckProd = $t054765698._3
496497 $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))])
497498 }
498499
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 keyStakedNFTsByOwner (ownerAddr) = ("stakedNFTsByOwner_" + ownerAddr)
117117
118118
119119 func keyAddressToCustomName (addr) = ("accountCustomNameByAddr_" + addr)
120120
121121
122122 func keyAddressRefBy (addr) = ("accRefBy_" + addr)
123123
124124
125125 func keyAddressReferrals (addr) = ("accReferrals_" + addr)
126126
127127
128128 func keyUserBet (addr) = ("userBet_" + addr)
129129
130130
131131 func keyUserWeekTickets (addr,week) = ((("userWeekTickets_" + addr) + "_") + toString(week))
132132
133133
134134 func keyTotalWeekTickets (week) = ("totalWeekTickets_" + toString(week))
135135
136136
137137 func winningBet (day) = {
138138 let b = (day * DAY_BLOCKS)
139139 let h = if ((b > VRF_OFFSET))
140140 then b
141141 else (b + VRF_OFFSET)
142142 (toInt(value(value(blockInfoByHeight(h)).vrf)) % 4)
143143 }
144144
145145
146146 func asTuple4Ints (val) = match val {
147147 case t: (Int, Int, Int, Int) =>
148148 t
149149 case _ =>
150150 throw("fail to cast into (Int, Int, Int, Int)")
151151 }
152152
153153
154154 func asTuple3Ints (val) = match val {
155155 case t: (Int, Int, Int) =>
156156 t
157157 case _ =>
158158 throw("fail to cast into (Int, Int, Int)")
159159 }
160160
161161
162162 func asTuple2Ints (val) = match val {
163163 case t: (Int, Int) =>
164164 t
165165 case _ =>
166166 throw("fail to cast into (Int, Int)")
167167 }
168168
169169
170170 let M6_ = 1000000
171171
172172 let M8_ = 100000000
173173
174174 let TEAM_SHARE = 200000
175175
176176 let ACTIVITY_SHARE = 100000
177177
178178 let PLAYER_SHARE = 400000
179179
180180 let YEAR_MILLIS = 31557600000
181181
182182 let DAY_MS = 86400000
183183
184184 let ISSUE10 = 1000000000
185185
186186 let PLAYERS10_SHARE = 800000
187187
188188 let MARKETING10_SHARE = 100000
189189
190190 let TEAM10_SHARE = 100000
191191
192192 let NEW_STAKING_START = 1731279600000
193193
194194 let teamAdrKey = "teamAddr"
195195
196196 let lastTeamTimKey = "lastClaimedTime_team"
197197
198198 let teamAmtLeftKey = "teamAmountLeft"
199199
200200 let lastActivitiesTimKey = "lastClaimedTime_activities"
201201
202202 let actAmtLeftKey = "activitiesAmountLeft"
203203
204204 let stakersAmtLeftKey = "stakersAmountLeft"
205205
206206 func keyLastClaimTimeByUser (addr) = ("lastClaimedTimeUser_" + addr)
207207
208208
209209 func distrByPeriod (issuedAmount,period) = fraction(issuedAmount, (PLAYER_SHARE * (period + 1)), (6 * M6_))
210210
211211
212212 let wlgIssue10TimeKey = "wlg_issue10Time"
213213
214214 let wlgIssueTimKey = "wlg_issueTime"
215215
216216 let wlgIssuedAmtKey = "wlg_issuedAmount"
217217
218218 let zbIssuedAmtKey = "zbill_issuedAmount"
219219
220220 func keyAcresStakedAmtByUser (addr) = ("acresStakedAmountByUser_" + addr)
221221
222222
223223 let acresStakdTotalKey = "acresStakedAmountTotal"
224224
225225 let totalFarmingPowerKey = "totalFarmingPower"
226226
227227 let dapp2Rest = 0
228228
229229 let dapp2Staking = 1
230230
231231 let dapp2Wlg = 2
232232
233233 let dapp2Puzzle = 3
234234
235235 let dapp2InvestFund = 4
236236
237237 func keyUserFullBonus (addr) = ("userFullBonus_" + addr)
238238
239239
240240 let levelAcres = [0, 10, 20, 40, 80, 150, 250, 400, 700, 1000]
241241
242242 func getLevelByAcres (acres) = {
243243 let acr = ((acres + 99999999) / M8_)
244244 func checker (acc,item) = if ((item >= acr))
245245 then acc
246246 else (acc + 1)
247247
248248 let $l = levelAcres
249249 let $s = size($l)
250250 let $acc0 = 0
251251 func $f0_1 ($a,$i) = if (($i >= $s))
252252 then $a
253253 else checker($a, $l[$i])
254254
255255 func $f0_2 ($a,$i) = if (($i >= $s))
256256 then $a
257257 else throw("List size exceeds 10")
258258
259259 $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)
260260 }
261261
262262
263263 func getFarmingPowerByAcres (acres) = ((acres * 20) * (getLevelByAcres(acres) + 4))
264264
265265
266266 func getFarmingPowerByAcresAndBonus (acres,bonus6) = {
267267 let notBonused = getFarmingPowerByAcres(acres)
268268 $Tuple2(fraction(notBonused, (M6_ + bonus6), M6_), notBonused)
269269 }
270270
271271
272272 func getFarmingPowers (userAddrStrOrEmpty,acres2Contract) = {
273273 let totalFP = valueOrElse(getInteger(acres2Contract, totalFarmingPowerKey), 0)
274274 let userAcres = valueOrElse(getInteger(acres2Contract, keyAcresStakedAmtByUser(userAddrStrOrEmpty)), 0)
275275 let userBonus = valueOrElse(getInteger(acres2Contract, keyUserFullBonus(userAddrStrOrEmpty)), 0)
276276 let $t079119 = getFarmingPowerByAcresAndBonus(userAcres, userBonus)
277277 let userFPbonused = $t079119._1
278278 let userFPnotBonused = $t079119._2
279279 [totalFP, userFPbonused, userFPnotBonused, userBonus]
280280 }
281281
282282
283283 let idxTotalFP = 0
284284
285285 let idxUserFPbonused = 1
286286
287287 let idxUserFPnotBonused = 2
288288
289289 let ixWlgAmount = 0
290290
291291 let ixWlgWlg = 1
292292
293293 let ixWlgPrice = 2
294294
295295 let ixWlgFunds = 3
296296
297297 let ixWlgActivity = 4
298298
299299 let ixWlgAcres2 = 5
300300
301301 let ixWlgArbitrage = 6
302302
303303 let ixWlgPool = 7
304304
305305 let ixWlgIssueTime = 8
306306
307307 let ixWlgLastTeamActTime = 9
308308
309309 let ixWlgTeamTotal = 10
310310
311311 let ixWlgTeamAmLeft = 11
312312
313313 let ixWlgTeamAmAvailNow = 12
314314
315315 let ixWlgTeamWlgold = 13
316316
317317 let ixWlgActTotal = 14
318318
319319 let ixWlgActAmLeft = 15
320320
321321 let ixWlgActAmAvailNow = 16
322322
323323 let ixWlgActWlgold = 17
324324
325325 let ixWlgCurPeriod = 18
326326
327327 let ixWlgAmLeftTotal = 19
328328
329329 let ixWlgCurPeriodDistribution = 20
330330
331331 let ixWlgLastUserTime = 21
332332
333333 let ixWlgInvestFundAmount = 22
334334
335335 let ixWlgUserAmAvailNow = 23
336336
337337 let ixWlgEffUserTime = 24
338338
339339 let ixWlgIssue10Amount = 25
340340
341341 let ixWlgMarketingIssue10Amount = 26
342342
343343 let ixWlgTeamIssue10Amount = 27
344344
345345 let ixWlgUser10part = 28
346346
347347 let ixWlgIssue10Time = 29
348348
349349 let ixWlgTotalFarmingPower = 30
350350
351351 let ixWlgAcresStakedTotal = 31
352352
353353 func getWlgStats2 (userAddrOpt,contracts,usdtId,usdtBalanceCorrection) = {
354354 let issuedAmount = valueOrErrorMessage(getInteger(contracts[dapp2Wlg], wlgIssuedAmtKey), "WLGOLD is not issued yet")
355355 let restUsd = assetBalance(contracts[dapp2Rest], usdtId)
356356 let wlgUsd = (assetBalance(contracts[dapp2Wlg], usdtId) - usdtBalanceCorrection)
357357 let puzzleUsd = assetBalance(contracts[dapp2Puzzle], usdtId)
358358 let acres2Usd = assetBalance(contracts[dapp2Staking], usdtId)
359359 let investFndContract = contracts[dapp2InvestFund]
360360 let investFundTotal = (assetBalance(investFndContract, usdtId) + valueOrElse(getInteger(investFndContract, zbIssuedAmtKey), 0))
361361 let totalFundsUsd = ((acres2Usd + wlgUsd) + investFundTotal)
362362 let wlgId = valueOrErrorMessage(getBinary(contracts[dapp2Wlg], "wlg_assetId"), "Not initialized yet")
363363 let now = lastBlock.timestamp
364364 let issueTime = valueOrErrorMessage(getInteger(contracts[dapp2Wlg], wlgIssueTimKey), "Not initialized")
365365 let wlgWlg = assetBalance(contracts[dapp2Wlg], wlgId)
366366 let teamTotal = fraction(issuedAmount, TEAM_SHARE, M6_)
367367 let teamAmountLeft = valueOrElse(getInteger(contracts[dapp2Wlg], teamAmtLeftKey), teamTotal)
368368 let lastTeamTime = valueOrElse(getInteger(contracts[dapp2Wlg], lastTeamTimKey), issueTime)
369369 let teamAddr = addressFromStringValue(value(getString(contracts[dapp2Wlg], teamAdrKey)))
370370 let teamAmountAvailableNow = min([fraction(teamTotal, (now - lastTeamTime), (3 * YEAR_MILLIS)), teamAmountLeft])
371371 let teamWlgold = assetBalance(teamAddr, wlgId)
372372 let actTotal = fraction(issuedAmount, ACTIVITY_SHARE, M6_)
373373 let actAmountLeft = valueOrElse(getInteger(contracts[dapp2Wlg], actAmtLeftKey), actTotal)
374374 let lastActivitiesTime = valueOrElse(getInteger(contracts[dapp2Wlg], lastActivitiesTimKey), issueTime)
375375 let actAmountAvailableNow = min([fraction(actTotal, (now - lastActivitiesTime), (3 * YEAR_MILLIS)), actAmountLeft])
376376 let actWlgold = assetBalance(contracts[dapp2Rest], wlgId)
377377 let lastUserTime = valueOrElse(getInteger(contracts[dapp2Wlg], keyLastClaimTimeByUser(userAddrOpt)), issueTime)
378378 let lastUserPeriod = ((lastUserTime - issueTime) / YEAR_MILLIS)
379379 let nowLimited = min([now, (issueTime + (3 * YEAR_MILLIS))])
380380 let curPeriod = min([((now - issueTime) / YEAR_MILLIS), 2])
381381 let eff = getFarmingPowers(userAddrOpt, contracts[dapp2Staking])
382382 let curPeriodDistribution = distrByPeriod(issuedAmount, curPeriod)
383383 let prevPeriodEnd = (issueTime + (YEAR_MILLIS * curPeriod))
384384 let prevPrevPeriodEnd = (issueTime + (YEAR_MILLIS * (curPeriod - 1)))
385385 let a0 = fraction(curPeriodDistribution, (nowLimited - lastUserTime), YEAR_MILLIS)
386386 let userAvailable = if ((lastUserPeriod == curPeriod))
387387 then a0
388388 else if ((lastUserPeriod == (curPeriod - 1)))
389389 then {
390390 let a1 = fraction(distrByPeriod(issuedAmount, (curPeriod - 1)), (prevPeriodEnd - lastUserTime), YEAR_MILLIS)
391391 (a1 + a0)
392392 }
393393 else {
394394 let a2 = fraction(distrByPeriod(issuedAmount, (curPeriod - 2)), (prevPrevPeriodEnd - lastUserTime), YEAR_MILLIS)
395395 let a1 = distrByPeriod(issuedAmount, (curPeriod - 1))
396396 ((a2 + a1) + a0)
397397 }
398398 let amountLeftTotal = valueOrElse(getInteger(contracts[dapp2Wlg], stakersAmtLeftKey), 0)
399399 let userAmount = if ((eff[idxTotalFP] != 0))
400400 then fraction(userAvailable, eff[idxUserFPbonused], eff[idxTotalFP])
401401 else 0
402402 let lastIssue10Time = valueOrElse(getInteger(contracts[dapp2Wlg], wlgIssue10TimeKey), NEW_STAKING_START)
403403 let issue10Amount = fraction(ISSUE10, max([(now - lastIssue10Time), 0]), DAY_MS)
404404 let marketingIssue10Amount = fraction(issue10Amount, MARKETING10_SHARE, M6_)
405405 let teamIssue10Amount = fraction(issue10Amount, TEAM10_SHARE, M6_)
406406 let user10Interval = max([(now - max([NEW_STAKING_START, lastUserTime])), 0])
407407 let user10part = if ((eff[idxTotalFP] != 0))
408408 then fraction(fraction(fraction(ISSUE10, user10Interval, DAY_MS), eff[idxUserFPbonused], eff[idxTotalFP]), PLAYERS10_SHARE, M6_)
409409 else 0
410410 let newIssue10Time = max([NEW_STAKING_START, now])
411411 let acresStakedTotal = valueOrElse(getInteger(contracts[dapp2Staking], acresStakdTotalKey), 0)
412412 [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]
413413 }
414414
415415
416416 func walletInternal (userAddressOpt) = {
417417 let addr = addressFromString(userAddressOpt)
418418 let balance = if (isDefined(addr))
419419 then wavesBalance(value(addr))
420420 else BalanceDetails(0, 0, 0, 0)
421421 let usdtBalance = if (isDefined(addr))
422422 then assetBalance(value(addr), usdtAssetId)
423423 else 0
424424 let wlgoldBalance = if (isDefined(addr))
425425 then assetBalance(value(addr), wlgAssetId)
426426 else 0
427427 let customName = valueOrElse(getString(acres2Contract, keyAddressToCustomName(userAddressOpt)), userAddressOpt)
428428 let refByKey = keyAddressRefBy(userAddressOpt)
429429 let refBy = getString(acres2Contract, refByKey)
430430 let refs = valueOrElse(getString(acres2Contract, keyAddressReferrals(userAddressOpt)), "")
431431 let lastTxId = valueOrElse(getString(acres2Contract, keyLastWeekTxIdByUser(userAddressOpt)), "")
432432 let curTxId = valueOrElse(getString(acres2Contract, keyCurWeekTxIdByUser(userAddressOpt)), "")
433433 let acresBalance = if (isDefined(addr))
434434 then assetBalance(value(addr), acresAssetId)
435435 else 0
436436 let stakedAcres = valueOrElse(getInteger(acres2Contract, keyAcresStakedAmtByUser(userAddressOpt)), 0)
437437 let lvl = getLevelByAcres(stakedAcres)
438438 let fp = getFarmingPowers(userAddressOpt, acres2Contract)
439439 let acresToNextLvl = if ((lvl >= size(levelAcres)))
440440 then 0
441441 else (((levelAcres[lvl] * M8_) + 1) - stakedAcres)
442442 let nfts = valueOrElse(getString(acres2Contract, keyStakedNFTsByOwner(userAddressOpt)), "")
443-[("%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__userBaseFarmingPower__" + toString(fp[idxUserFPnotBonused])), ("%s%d__userFarmingPower__" + toString(fp[idxUserFPbonused])), ("%s%d__totalFarmingPower__" + toString(fp[idxTotalFP]))]
443+ let bonus = valueOrElse(getInteger(acres2Contract, keyUserFullBonus(userAddressOpt)), 0)
444+[("%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]))]
444445 }
445446
446447
447448 @Callable(i)
448449 func constructorV1 (contracts) = if ((i.caller != this))
449450 then throw("permissions denied")
450451 else {
451452 func descriptor (acc,ignoredItem) = (acc + "%s")
452453
453454 let descr = {
454455 let $l = contracts
455456 let $s = size($l)
456457 let $acc0 = ""
457458 func $f0_1 ($a,$i) = if (($i >= $s))
458459 then $a
459460 else descriptor($a, $l[$i])
460461
461462 func $f0_2 ($a,$i) = if (($i >= $s))
462463 then $a
463464 else throw("List size exceeds 10")
464465
465466 $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)
466467 }
467468 [StringEntry(keyRestCfg(), makeString(descr :: contracts, SEP)), StringEntry(keyRest2Address(), toString(this))]
468469 }
469470
470471
471472
472473 @Callable(i)
473474 func walletInfoREADONLY (userAddressOpt) = $Tuple2(nil, walletInternal(userAddressOpt))
474475
475476
476477
477478 @Callable(i)
478479 func conversionInfoREADONLY (userAddressOpt) = {
479480 let oldAcresAddress = addressFromStringValue(getStringValue(acres2Contract, oldAcresContractKey))
480- let $t048915013 = asTuple2Ints(invoke(oldAcresAddress, "unstakeAllAcresREADONLY", [userAddressOpt], nil))
481- let unstakedAcres = $t048915013._1
482- let claimedAcres = $t048915013._2
483- let $t050165165 = asTuple4Ints(invoke(acres2Contract, "unstakeLandsREADONLY", [userAddressOpt], nil))
484- let acresFromPieces = $t050165165._1
485- let acresFromRes = $t050165165._2
486- let acresFromMat = $t050165165._3
487- let acresFromProd = $t050165165._4
481+ let $t050245146 = asTuple2Ints(invoke(oldAcresAddress, "unstakeAllAcresREADONLY", [userAddressOpt], nil))
482+ let unstakedAcres = $t050245146._1
483+ let claimedAcres = $t050245146._2
484+ let $t051495298 = asTuple4Ints(invoke(acres2Contract, "unstakeLandsREADONLY", [userAddressOpt], nil))
485+ let acresFromPieces = $t051495298._1
486+ let acresFromRes = $t051495298._2
487+ let acresFromMat = $t051495298._3
488+ let acresFromProd = $t051495298._4
488489 let oldStakingAddress = addressFromStringValue(oldStakingContractStr)
489490 let duckAssetId = valueOrElse(getString(oldStakingAddress, keyStakedDuckByOwner(userAddressOpt)), "")
490- let $t053435565 = if ((duckAssetId != ""))
491+ let $t054765698 = if ((duckAssetId != ""))
491492 then asTuple3Ints(invoke(oldStakingAddress, "unstakeDuckREADONLY", [duckAssetId, userAddressOpt], nil))
492493 else $Tuple3(0, 0, 0)
493- let acresFromDuckRes = $t053435565._1
494- let acresFromDuckMat = $t053435565._2
495- let acresFromDuckProd = $t053435565._3
494+ let acresFromDuckRes = $t054765698._1
495+ let acresFromDuckMat = $t054765698._2
496+ let acresFromDuckProd = $t054765698._3
496497 $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))])
497498 }
498499
499500
500501
501502 @Callable(i)
502503 func wlgStatsREADONLY (userAddrOpt) = {
503504 let curStats = getWlgStats2(userAddrOpt, [rest2Contract, acres2Contract, wlgContract, puzzlePoolContract, investFundContract], usdtAssetId, 0)
504505 $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]))])
505506 }
506507
507508
508509
509510 @Callable(i)
510511 func lotteryStatsREADONLY (userAddrOpt) = {
511512 let today = (height / DAY_BLOCKS)
512513 let week = (height / WEEK_BLOCKS)
513514 let lastWeek = (week - 1)
514515 let curWeekTickets = valueOrElse(getInteger(wlgContract, keyUserWeekTickets(userAddrOpt, week)), 0)
515516 let lastWeekTickets = valueOrElse(getInteger(wlgContract, keyUserWeekTickets(userAddrOpt, lastWeek)), 0)
516517 let curWeekTotalTickets = valueOrElse(getInteger(wlgContract, keyTotalWeekTickets(week)), 0)
517518 let lastWeekTotalTickets = valueOrElse(getInteger(wlgContract, keyTotalWeekTickets(lastWeek)), 0)
518519 let usersBet = valueOrElse(getString(wlgContract, keyUserBet(userAddrOpt)), "")
519520 $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)])
520521 }
521522
522523

github/deemru/w8io/026f985 
108.30 ms