tx · F5d59R2TiRxKNPrNtvWPi9ku8jADqj96cPAzWV3cGE96

3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv:  -0.02000000 Waves

2024.12.08 04:17 [3404985] smart account 3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv > SELF 0.00000000 Waves

{ "type": 13, "id": "F5d59R2TiRxKNPrNtvWPi9ku8jADqj96cPAzWV3cGE96", "fee": 2000000, "feeAssetId": null, "timestamp": 1733620641090, "version": 2, "chainId": 84, "sender": "3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv", "senderPublicKey": "2fNSk5gmWbXBDTkSYSKd66xSgVvAYzrJnP9YSAFNvTwC", "proofs": [ "5dnDwEosLPA8MpUDYvWBJ2RST3TZnt25GfZRWsmvvBRFTsqBx3Vvx7fRN2FYNYPFkNpuhpzJJjsJAUH1exv4pMQL" ], "script": "base64:BgIgCAISAwoBGBIDCgEIEgMKAQgSAwoBCBIDCgEIEgMKAQh+AANTRVACAl9fAAVjaGFpbgkAyQECCQDKAQIIBQR0aGlzBWJ5dGVzAAEAAQAKREFZX0JMT0NLUwQHJG1hdGNoMAUFY2hhaW4DCQAAAgEBVwUHJG1hdGNoMACgCwMJAAACAQFUBQckbWF0Y2gwADwJAAIBAg1Vbmtub3duIGNoYWluAAtXRUVLX0JMT0NLUwQHJG1hdGNoMAUFY2hhaW4DCQAAAgEBVwUHJG1hdGNoMADgTgMJAAACAQFUBQckbWF0Y2gwALQBCQACAQINVW5rbm93biBjaGFpbgAKVlJGX09GRlNFVAQHJG1hdGNoMAUFY2hhaW4DCQAAAgEBVwUHJG1hdGNoMAAAAwkAAAIBAVQFByRtYXRjaDAAkPlFCQACAQINVW5rbm93biBjaGFpbgALdXNkdEFzc2V0SWQEByRtYXRjaDAFBWNoYWluAwkAAAIBAVcFByRtYXRjaDABIITaerIIAz9O0bvKju6Lk7zJgt0LXfoHlqjUI/moD/+5AwkAAAIBAVQFByRtYXRjaDABIFWx2J9yh4Lv5eNbjawFq2XemkOh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vbnRyYWN0CQEKa2V5VXNlckJldAEFC3VzZXJBZGRyT3B0AgAJAJQKAgUDbmlsCQDMCAIJAKwCAgkArAICCQCsAgICFiVzJWQlZF9fdG90YWxUaWNrZXRzX18JAKQDAQUUbGFzdFdlZWtUb3RhbFRpY2tldHMFA1NFUAkApAMBBRNjdXJXZWVrVG90YWxUaWNrZXRzCQDMCAIJAKwCAgkArAICCQCsAgICFSVzJWQlZF9fdXNlclRpY2tldHNfXwkApAMBBQ9sYXN0V2Vla1RpY2tldHMFA1NFUAkApAMBBQ5jdXJXZWVrVGlja2V0cwkAzAgCCQCsAgICFiVzJWRfX2Jsb2NrY2hhaW5XZWVrX18JAKQDAQUEd2VlawkAzAgCCQCsAgICFSVzJWRfX2Jsb2NrY2hhaW5EYXlfXwkApAMBBQV0b2RheQkAzAgCCQCsAgICGCVzJWRfX2Jsb2NrY2hhaW5NaW51dGVfXwkApAMBCQBqAgUGaGVpZ2h0BQpEQVlfQkxPQ0tTCQDMCAIJAKwCAgIXJXMlZF9fd2lubmluZ0JldFRvZGF5X18JAKQDAQkBCndpbm5pbmdCZXQBBQV0b2RheQkAzAgCCQCsAgICECVzJXNfX3VzZXJzQmV0X18FCHVzZXJzQmV0BQNuaWwBaQESdXNlck9yZGVyc1JFQURPTkxZAQt1c2VyQWRkck9wdAQHbmZ0c0tleQkBE2tleUFzc2V0SWRzQnlTZWxsZXIBBQt1c2VyQWRkck9wdAQHbmZ0c1N0cgkBC3ZhbHVlT3JFbHNlAgkAoggBBQduZnRzS2V5AgAJAJQKAgUDbmlsCQDMCAIJAKwCAgIUJXMlc19fdXNlclNhbGVOZnRzX18FB25mdHNTdHIFA25pbABJnm25", "height": 3404985, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2mxtuXXuX1pRqThqTgdY1JsWbqU8E4f3LZkAmCyJYLZG Next: AMidN9DMzPGBuZnBsfkgFLxPYRQ1mycgQu1FMiAYcdTk Diff:
OldNewDifferences
141141 else (b + VRF_OFFSET)
142142 (toInt(value(value(blockInfoByHeight(h)).vrf)) % 4)
143143 }
144+
145+
146+func keyAssetIdsBySeller (addr) = ("assetIds_" + addr)
144147
145148
146149 let ixWlgAmount = 0
499502 @Callable(i)
500503 func conversionInfoREADONLY (userAddressOpt) = {
501504 let oldAcresAddress = addressFromStringValue(getStringValue(acres2Contract, oldAcresContractKey))
502- let $t050245146 = asTuple2Ints(invoke(oldAcresAddress, "unstakeAllAcresREADONLY", [userAddressOpt], nil))
503- let unstakedAcres = $t050245146._1
504- let claimedAcres = $t050245146._2
505- let $t051495298 = asTuple4Ints(invoke(acres2Contract, "unstakeLandsREADONLY", [userAddressOpt], nil))
506- let acresFromPieces = $t051495298._1
507- let acresFromRes = $t051495298._2
508- let acresFromMat = $t051495298._3
509- let acresFromProd = $t051495298._4
505+ let $t050515173 = asTuple2Ints(invoke(oldAcresAddress, "unstakeAllAcresREADONLY", [userAddressOpt], nil))
506+ let unstakedAcres = $t050515173._1
507+ let claimedAcres = $t050515173._2
508+ let $t051765325 = asTuple4Ints(invoke(acres2Contract, "unstakeLandsREADONLY", [userAddressOpt], nil))
509+ let acresFromPieces = $t051765325._1
510+ let acresFromRes = $t051765325._2
511+ let acresFromMat = $t051765325._3
512+ let acresFromProd = $t051765325._4
510513 let oldStakingAddress = addressFromStringValue(oldStakingContractStr)
511514 let duckAssetId = valueOrElse(getString(oldStakingAddress, keyStakedDuckByOwner(userAddressOpt)), "")
512- let $t054765698 = if ((duckAssetId != ""))
515+ let $t055035725 = if ((duckAssetId != ""))
513516 then asTuple3Ints(invoke(oldStakingAddress, "unstakeDuckREADONLY", [duckAssetId, userAddressOpt], nil))
514517 else $Tuple3(0, 0, 0)
515- let acresFromDuckRes = $t054765698._1
516- let acresFromDuckMat = $t054765698._2
517- let acresFromDuckProd = $t054765698._3
518+ let acresFromDuckRes = $t055035725._1
519+ let acresFromDuckMat = $t055035725._2
520+ let acresFromDuckProd = $t055035725._3
518521 $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))])
519522 }
520523
542545 }
543546
544547
548+
549+@Callable(i)
550+func userOrdersREADONLY (userAddrOpt) = {
551+ let nftsKey = keyAssetIdsBySeller(userAddrOpt)
552+ let nftsStr = valueOrElse(getString(nftsKey), "")
553+ $Tuple2(nil, [("%s%s__userSaleNfts__" + nftsStr)])
554+ }
555+
556+
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 }
144+
145+
146+func keyAssetIdsBySeller (addr) = ("assetIds_" + addr)
144147
145148
146149 let ixWlgAmount = 0
147150
148151 let ixWlgWlg = 1
149152
150153 let ixWlgPrice = 2
151154
152155 let ixWlgFunds = 3
153156
154157 let ixWlgActivity = 4
155158
156159 let ixWlgAcres2 = 5
157160
158161 let ixWlgArbitrage = 6
159162
160163 let ixWlgPool = 7
161164
162165 let ixWlgIssueTime = 8
163166
164167 let ixWlgLastTeamActTime = 9
165168
166169 let ixWlgTeamTotal = 10
167170
168171 let ixWlgTeamAmLeft = 11
169172
170173 let ixWlgTeamAmAvailNow = 12
171174
172175 let ixWlgTeamWlgold = 13
173176
174177 let ixWlgActTotal = 14
175178
176179 let ixWlgActAmLeft = 15
177180
178181 let ixWlgActAmAvailNow = 16
179182
180183 let ixWlgActWlgold = 17
181184
182185 let ixWlgCurPeriod = 18
183186
184187 let ixWlgAmLeftTotal = 19
185188
186189 let ixWlgCurPeriodDistribution = 20
187190
188191 let ixWlgLastUserTime = 21
189192
190193 let ixWlgInvestFundAmount = 22
191194
192195 let ixWlgUserAmAvailNow = 23
193196
194197 let ixWlgEffUserTime = 24
195198
196199 let ixWlgIssue10Amount = 25
197200
198201 let ixWlgMarketingIssue10Amount = 26
199202
200203 let ixWlgTeamIssue10Amount = 27
201204
202205 let ixWlgUser10part = 28
203206
204207 let ixWlgIssue10Time = 29
205208
206209 let ixWlgTotalFarmingPower = 30
207210
208211 let ixWlgAcresStakedTotal = 31
209212
210213 let ixWlgNftTotalIssued = 32
211214
212215 let ixWlgNftTotalBurned = 33
213216
214217 let ixWlgWlNftTotalStaked = 34
215218
216219 let ixWlgWlNftUserStaked = 35
217220
218221 func asTuple4Ints (val) = match val {
219222 case t: (Int, Int, Int, Int) =>
220223 t
221224 case _ =>
222225 throw("fail to cast into (Int, Int, Int, Int)")
223226 }
224227
225228
226229 func asTuple3Ints (val) = match val {
227230 case t: (Int, Int, Int) =>
228231 t
229232 case _ =>
230233 throw("fail to cast into (Int, Int, Int)")
231234 }
232235
233236
234237 func asTuple2Ints (val) = match val {
235238 case t: (Int, Int) =>
236239 t
237240 case _ =>
238241 throw("fail to cast into (Int, Int)")
239242 }
240243
241244
242245 let M6_ = 1000000
243246
244247 let M8_ = 100000000
245248
246249 let TEAM_SHARE = 200000
247250
248251 let ACTIVITY_SHARE = 100000
249252
250253 let PLAYER_SHARE = 400000
251254
252255 let YEAR_MILLIS = 31557600000
253256
254257 let DAY_MS = 86400000
255258
256259 let ISSUE10 = 1000000000
257260
258261 let PLAYERS10_SHARE = 800000
259262
260263 let MARKETING10_SHARE = 100000
261264
262265 let TEAM10_SHARE = 100000
263266
264267 let NEW_STAKING_START = 1731279600000
265268
266269 let teamAdrKey = "teamAddr"
267270
268271 let lastTeamTimKey = "lastClaimedTime_team"
269272
270273 let teamAmtLeftKey = "teamAmountLeft"
271274
272275 let lastActivitiesTimKey = "lastClaimedTime_activities"
273276
274277 let actAmtLeftKey = "activitiesAmountLeft"
275278
276279 let stakersAmtLeftKey = "stakersAmountLeft"
277280
278281 func keyLastClaimTimeByUser (addr) = ("lastClaimedTimeUser_" + addr)
279282
280283
281284 func distrByPeriod (issuedAmount,period) = fraction(issuedAmount, (PLAYER_SHARE * (period + 1)), (6 * M6_))
282285
283286
284287 let wlgIssue10TimeKey = "wlg_issue10Time"
285288
286289 let wlgIssueTimKey = "wlg_issueTime"
287290
288291 let wlgIssuedAmtKey = "wlg_issuedAmount"
289292
290293 let zbIssuedAmtKey = "zbill_issuedAmount"
291294
292295 func keyAcresStakedAmtByUser (addr) = ("acresStakedAmountByUser_" + addr)
293296
294297
295298 let acresStakdTotalKey = "acresStakedAmountTotal"
296299
297300 let totalFarmingPowerKey = "totalFarmingPower"
298301
299302 let dapp2Rest = 0
300303
301304 let dapp2Staking = 1
302305
303306 let dapp2Wlg = 2
304307
305308 let dapp2Puzzle = 3
306309
307310 let dapp2InvestFund = 4
308311
309312 let keyNftTotalIssued = "nftTotalIssued"
310313
311314 let keyNftTotalBurned = "nftTotalBurned"
312315
313316 let keyWlNftTotalStaked = "WlNftTotalStaked"
314317
315318 func keyUserWlNftNumber (addr) = ("userWlNftNumber_" + addr)
316319
317320
318321 func keyUserFullBonus (addr) = ("userFullBonus_" + addr)
319322
320323
321324 let levelAcres = [0, 10, 20, 40, 80, 150, 250, 400, 700, 1000]
322325
323326 func getLevelByAcres (acres) = {
324327 let acr = ((acres + 99999999) / M8_)
325328 func checker (acc,item) = if ((item >= acr))
326329 then acc
327330 else (acc + 1)
328331
329332 let $l = levelAcres
330333 let $s = size($l)
331334 let $acc0 = 0
332335 func $f0_1 ($a,$i) = if (($i >= $s))
333336 then $a
334337 else checker($a, $l[$i])
335338
336339 func $f0_2 ($a,$i) = if (($i >= $s))
337340 then $a
338341 else throw("List size exceeds 10")
339342
340343 $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)
341344 }
342345
343346
344347 func getFarmingPowerByAcres (acres) = ((acres * 20) * (getLevelByAcres(acres) + 4))
345348
346349
347350 func getFarmingPowerByAcresAndBonus (acres,bonus6) = {
348351 let notBonused = getFarmingPowerByAcres(acres)
349352 $Tuple2(fraction(notBonused, (M6_ + bonus6), M6_), notBonused)
350353 }
351354
352355
353356 func getFarmingPowers (userAddrStrOrEmpty,acres2Contract) = {
354357 let totalFP = valueOrElse(getInteger(acres2Contract, totalFarmingPowerKey), 0)
355358 let userAcres = valueOrElse(getInteger(acres2Contract, keyAcresStakedAmtByUser(userAddrStrOrEmpty)), 0)
356359 let userBonus = valueOrElse(getInteger(acres2Contract, keyUserFullBonus(userAddrStrOrEmpty)), 0)
357360 let $t079119 = getFarmingPowerByAcresAndBonus(userAcres, userBonus)
358361 let userFPbonused = $t079119._1
359362 let userFPnotBonused = $t079119._2
360363 [totalFP, userFPbonused, userFPnotBonused, userBonus]
361364 }
362365
363366
364367 let idxTotalFP = 0
365368
366369 let idxUserFPbonused = 1
367370
368371 let idxUserFPnotBonused = 2
369372
370373 func getWlgStats2 (userAddrOpt,contracts,usdtId,usdtBalanceCorrection) = {
371374 let issuedAmount = valueOrErrorMessage(getInteger(contracts[dapp2Wlg], wlgIssuedAmtKey), "WLGOLD is not issued yet")
372375 let restUsd = assetBalance(contracts[dapp2Rest], usdtId)
373376 let wlgUsd = (assetBalance(contracts[dapp2Wlg], usdtId) - usdtBalanceCorrection)
374377 let puzzleUsd = assetBalance(contracts[dapp2Puzzle], usdtId)
375378 let acres2Usd = assetBalance(contracts[dapp2Staking], usdtId)
376379 let investFndContract = contracts[dapp2InvestFund]
377380 let investFundTotal = (assetBalance(investFndContract, usdtId) + valueOrElse(getInteger(investFndContract, zbIssuedAmtKey), 0))
378381 let totalFundsUsd = ((acres2Usd + wlgUsd) + investFundTotal)
379382 let wlgId = valueOrErrorMessage(getBinary(contracts[dapp2Wlg], "wlg_assetId"), "Not initialized yet")
380383 let now = lastBlock.timestamp
381384 let issueTime = valueOrErrorMessage(getInteger(contracts[dapp2Wlg], wlgIssueTimKey), "Not initialized")
382385 let wlgWlg = assetBalance(contracts[dapp2Wlg], wlgId)
383386 let teamTotal = fraction(issuedAmount, TEAM_SHARE, M6_)
384387 let teamAmountLeft = valueOrElse(getInteger(contracts[dapp2Wlg], teamAmtLeftKey), teamTotal)
385388 let lastTeamTime = valueOrElse(getInteger(contracts[dapp2Wlg], lastTeamTimKey), issueTime)
386389 let teamAddr = addressFromStringValue(value(getString(contracts[dapp2Wlg], teamAdrKey)))
387390 let teamAmountAvailableNow = min([fraction(teamTotal, (now - lastTeamTime), (3 * YEAR_MILLIS)), teamAmountLeft])
388391 let teamWlgold = assetBalance(teamAddr, wlgId)
389392 let actTotal = fraction(issuedAmount, ACTIVITY_SHARE, M6_)
390393 let actAmountLeft = valueOrElse(getInteger(contracts[dapp2Wlg], actAmtLeftKey), actTotal)
391394 let lastActivitiesTime = valueOrElse(getInteger(contracts[dapp2Wlg], lastActivitiesTimKey), issueTime)
392395 let actAmountAvailableNow = min([fraction(actTotal, (now - lastActivitiesTime), (3 * YEAR_MILLIS)), actAmountLeft])
393396 let actWlgold = assetBalance(contracts[dapp2Rest], wlgId)
394397 let lastUserTime = valueOrElse(getInteger(contracts[dapp2Wlg], keyLastClaimTimeByUser(userAddrOpt)), issueTime)
395398 let lastUserPeriod = ((lastUserTime - issueTime) / YEAR_MILLIS)
396399 let nowLimited = min([now, (issueTime + (3 * YEAR_MILLIS))])
397400 let curPeriod = min([((now - issueTime) / YEAR_MILLIS), 2])
398401 let eff = getFarmingPowers(userAddrOpt, contracts[dapp2Staking])
399402 let curPeriodDistribution = distrByPeriod(issuedAmount, curPeriod)
400403 let prevPeriodEnd = (issueTime + (YEAR_MILLIS * curPeriod))
401404 let prevPrevPeriodEnd = (issueTime + (YEAR_MILLIS * (curPeriod - 1)))
402405 let a0 = fraction(curPeriodDistribution, (nowLimited - lastUserTime), YEAR_MILLIS)
403406 let userAvailable = if ((lastUserPeriod == curPeriod))
404407 then a0
405408 else if ((lastUserPeriod == (curPeriod - 1)))
406409 then {
407410 let a1 = fraction(distrByPeriod(issuedAmount, (curPeriod - 1)), (prevPeriodEnd - lastUserTime), YEAR_MILLIS)
408411 (a1 + a0)
409412 }
410413 else {
411414 let a2 = fraction(distrByPeriod(issuedAmount, (curPeriod - 2)), (prevPrevPeriodEnd - lastUserTime), YEAR_MILLIS)
412415 let a1 = distrByPeriod(issuedAmount, (curPeriod - 1))
413416 ((a2 + a1) + a0)
414417 }
415418 let amountLeftTotal = valueOrElse(getInteger(contracts[dapp2Wlg], stakersAmtLeftKey), 0)
416419 let userAmount = if ((eff[idxTotalFP] != 0))
417420 then fraction(userAvailable, eff[idxUserFPbonused], eff[idxTotalFP])
418421 else 0
419422 let lastIssue10Time = valueOrElse(getInteger(contracts[dapp2Wlg], wlgIssue10TimeKey), NEW_STAKING_START)
420423 let issue10Amount = fraction(ISSUE10, max([(now - lastIssue10Time), 0]), DAY_MS)
421424 let marketingIssue10Amount = fraction(issue10Amount, MARKETING10_SHARE, M6_)
422425 let teamIssue10Amount = fraction(issue10Amount, TEAM10_SHARE, M6_)
423426 let user10Interval = max([(now - max([NEW_STAKING_START, lastUserTime])), 0])
424427 let user10part = if ((eff[idxTotalFP] != 0))
425428 then fraction(fraction(fraction(ISSUE10, user10Interval, DAY_MS), eff[idxUserFPbonused], eff[idxTotalFP]), PLAYERS10_SHARE, M6_)
426429 else 0
427430 let newIssue10Time = max([NEW_STAKING_START, now])
428431 let acresStakedTotal = valueOrElse(getInteger(contracts[dapp2Staking], acresStakdTotalKey), 0)
429432 let nftTotalIssued = valueOrElse(getInteger(contracts[dapp2Staking], keyNftTotalIssued), 0)
430433 let nftTotalBurned = valueOrElse(getInteger(contracts[dapp2Staking], keyNftTotalBurned), 0)
431434 let wlNftTotalStaked = valueOrElse(getInteger(contracts[dapp2Staking], keyWlNftTotalStaked), 0)
432435 let wlNftUserStaked = valueOrElse(getInteger(contracts[dapp2Staking], keyUserWlNftNumber(valueOrElse(userAddrOpt, ""))), 0)
433436 [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]
434437 }
435438
436439
437440 func walletInternal (userAddressOpt) = {
438441 let addr = addressFromString(userAddressOpt)
439442 let balance = if (isDefined(addr))
440443 then wavesBalance(value(addr))
441444 else BalanceDetails(0, 0, 0, 0)
442445 let usdtBalance = if (isDefined(addr))
443446 then assetBalance(value(addr), usdtAssetId)
444447 else 0
445448 let wlgoldBalance = if (isDefined(addr))
446449 then assetBalance(value(addr), wlgAssetId)
447450 else 0
448451 let customName = valueOrElse(getString(acres2Contract, keyAddressToCustomName(userAddressOpt)), userAddressOpt)
449452 let refByKey = keyAddressRefBy(userAddressOpt)
450453 let refBy = getString(acres2Contract, refByKey)
451454 let refs = valueOrElse(getString(acres2Contract, keyAddressReferrals(userAddressOpt)), "")
452455 let lastTxId = valueOrElse(getString(acres2Contract, keyLastWeekTxIdByUser(userAddressOpt)), "")
453456 let curTxId = valueOrElse(getString(acres2Contract, keyCurWeekTxIdByUser(userAddressOpt)), "")
454457 let acresBalance = if (isDefined(addr))
455458 then assetBalance(value(addr), acresAssetId)
456459 else 0
457460 let stakedAcres = valueOrElse(getInteger(acres2Contract, keyAcresStakedAmtByUser(userAddressOpt)), 0)
458461 let lvl = getLevelByAcres(stakedAcres)
459462 let fp = getFarmingPowers(userAddressOpt, acres2Contract)
460463 let acresToNextLvl = if ((lvl >= size(levelAcres)))
461464 then 0
462465 else (((levelAcres[lvl] * M8_) + 1) - stakedAcres)
463466 let nfts = valueOrElse(getString(acres2Contract, keyStakedNFTsByOwner(userAddressOpt)), "")
464467 let bonus = valueOrElse(getInteger(acres2Contract, keyUserFullBonus(userAddressOpt)), 0)
465468 [("%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]))]
466469 }
467470
468471
469472 @Callable(i)
470473 func constructorV1 (contracts) = if ((i.caller != this))
471474 then throw("permissions denied")
472475 else {
473476 func descriptor (acc,ignoredItem) = (acc + "%s")
474477
475478 let descr = {
476479 let $l = contracts
477480 let $s = size($l)
478481 let $acc0 = ""
479482 func $f0_1 ($a,$i) = if (($i >= $s))
480483 then $a
481484 else descriptor($a, $l[$i])
482485
483486 func $f0_2 ($a,$i) = if (($i >= $s))
484487 then $a
485488 else throw("List size exceeds 10")
486489
487490 $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)
488491 }
489492 [StringEntry(keyRestCfg(), makeString(descr :: contracts, SEP)), StringEntry(keyRest2Address(), toString(this))]
490493 }
491494
492495
493496
494497 @Callable(i)
495498 func walletInfoREADONLY (userAddressOpt) = $Tuple2(nil, walletInternal(userAddressOpt))
496499
497500
498501
499502 @Callable(i)
500503 func conversionInfoREADONLY (userAddressOpt) = {
501504 let oldAcresAddress = addressFromStringValue(getStringValue(acres2Contract, oldAcresContractKey))
502- let $t050245146 = asTuple2Ints(invoke(oldAcresAddress, "unstakeAllAcresREADONLY", [userAddressOpt], nil))
503- let unstakedAcres = $t050245146._1
504- let claimedAcres = $t050245146._2
505- let $t051495298 = asTuple4Ints(invoke(acres2Contract, "unstakeLandsREADONLY", [userAddressOpt], nil))
506- let acresFromPieces = $t051495298._1
507- let acresFromRes = $t051495298._2
508- let acresFromMat = $t051495298._3
509- let acresFromProd = $t051495298._4
505+ let $t050515173 = asTuple2Ints(invoke(oldAcresAddress, "unstakeAllAcresREADONLY", [userAddressOpt], nil))
506+ let unstakedAcres = $t050515173._1
507+ let claimedAcres = $t050515173._2
508+ let $t051765325 = asTuple4Ints(invoke(acres2Contract, "unstakeLandsREADONLY", [userAddressOpt], nil))
509+ let acresFromPieces = $t051765325._1
510+ let acresFromRes = $t051765325._2
511+ let acresFromMat = $t051765325._3
512+ let acresFromProd = $t051765325._4
510513 let oldStakingAddress = addressFromStringValue(oldStakingContractStr)
511514 let duckAssetId = valueOrElse(getString(oldStakingAddress, keyStakedDuckByOwner(userAddressOpt)), "")
512- let $t054765698 = if ((duckAssetId != ""))
515+ let $t055035725 = if ((duckAssetId != ""))
513516 then asTuple3Ints(invoke(oldStakingAddress, "unstakeDuckREADONLY", [duckAssetId, userAddressOpt], nil))
514517 else $Tuple3(0, 0, 0)
515- let acresFromDuckRes = $t054765698._1
516- let acresFromDuckMat = $t054765698._2
517- let acresFromDuckProd = $t054765698._3
518+ let acresFromDuckRes = $t055035725._1
519+ let acresFromDuckMat = $t055035725._2
520+ let acresFromDuckProd = $t055035725._3
518521 $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))])
519522 }
520523
521524
522525
523526 @Callable(i)
524527 func wlgStatsREADONLY (userAddrOpt) = {
525528 let curStats = getWlgStats2(userAddrOpt, [rest2Contract, acres2Contract, wlgContract, puzzlePoolContract, investFundContract], usdtAssetId, 0)
526529 $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]))])
527530 }
528531
529532
530533
531534 @Callable(i)
532535 func lotteryStatsREADONLY (userAddrOpt) = {
533536 let today = (height / DAY_BLOCKS)
534537 let week = (height / WEEK_BLOCKS)
535538 let lastWeek = (week - 1)
536539 let curWeekTickets = valueOrElse(getInteger(wlgContract, keyUserWeekTickets(userAddrOpt, week)), 0)
537540 let lastWeekTickets = valueOrElse(getInteger(wlgContract, keyUserWeekTickets(userAddrOpt, lastWeek)), 0)
538541 let curWeekTotalTickets = valueOrElse(getInteger(wlgContract, keyTotalWeekTickets(week)), 0)
539542 let lastWeekTotalTickets = valueOrElse(getInteger(wlgContract, keyTotalWeekTickets(lastWeek)), 0)
540543 let usersBet = valueOrElse(getString(wlgContract, keyUserBet(userAddrOpt)), "")
541544 $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)])
542545 }
543546
544547
548+
549+@Callable(i)
550+func userOrdersREADONLY (userAddrOpt) = {
551+ let nftsKey = keyAssetIdsBySeller(userAddrOpt)
552+ let nftsStr = valueOrElse(getString(nftsKey), "")
553+ $Tuple2(nil, [("%s%s__userSaleNfts__" + nftsStr)])
554+ }
555+
556+

github/deemru/w8io/169f3d6 
116.22 ms