tx · AMidN9DMzPGBuZnBsfkgFLxPYRQ1mycgQu1FMiAYcdTk

3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv:  -0.02000000 Waves

2024.12.08 19:05 [3405869] smart account 3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv > SELF 0.00000000 Waves

{ "type": 13, "id": "AMidN9DMzPGBuZnBsfkgFLxPYRQ1mycgQu1FMiAYcdTk", "fee": 2000000, "feeAssetId": null, "timestamp": 1733673915330, "version": 2, "chainId": 84, "sender": "3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv", "senderPublicKey": "2fNSk5gmWbXBDTkSYSKd66xSgVvAYzrJnP9YSAFNvTwC", "proofs": [ "3mPgje8zEARSdqUqPDVo8pkBc2SWyGNceQ25mxAkSCvneg4FBcCDTVhKFpZRpaFcnxViiwhwLPnHSbEq7nGxjr7i" ], "script": "base64:BgIlCAISAwoBGBIDCgEIEgMKAQgSAwoBCBIDCgEIEgMKAQgSAwoBCIIBAANTRVACAl9fAAVjaGFpbgkAyQECCQDKAQIIBQR0aGlzBWJ5dGVzAAEAAQAKREFZX0JMT0NLUwQHJG1hdGNoMAUFY2hhaW4DCQAAAgEBVwUHJG1hdGNoMACgCwMJAAACAQFUBQckbWF0Y2gwADwJAAIBAg1Vbmtub3duIGNoYWluAAtXRUVLX0JMT0NLUwQHJG1hdGNoMAUFY2hhaW4DCQAAAgEBVwUHJG1hdGNoMADgTgMJAAACAQFUBQckbWF0Y2gwALQBCQACAQINVW5rbm93biBjaGFpbgAKVlJGX09GRlNFVAQHJG1hdGNoMAUFY2hhaW4DCQAAAgEBVwUHJG1hdGNoMAAAAwkAAAIBAVQFByRtYXRjaDAAkPlFCQACAQINVW5rbm93biBjaGFpbgALdXNkdEFzc2V0SWQEByRtYXRjaDAFBWNoYWluAwkAAAIBAVcFByRtYXRjaDABIITaerIIAz9O0bvKju6Lk7zJgt0LXfoHlqjUI/moD/+5AwkAAAIBAVQFByRtYXRjaDABIFWx2J9yh4Lv5eN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ZXJBZGRyT3B0BAduZnRzS2V5CQETa2V5QXNzZXRJZHNCeVNlbGxlcgEFC3VzZXJBZGRyT3B0BAduZnRzU3RyCQELdmFsdWVPckVsc2UCCQCdCAIFDm1hcmtldENvbnRyYWN0BQduZnRzS2V5AgAJAJQKAgUDbmlsCQDMCAIJAKwCAgIUJXMlc19fdXNlclNhbGVOZnRzX18FB25mdHNTdHIFA25pbAFpARFvcmRlckluZm9SRUFET05MWQEKYXNzZXRJZE9wdAQFcHJpY2UJAQt2YWx1ZU9yRWxzZQIJAJoIAgUObWFya2V0Q29udHJhY3QJARFrZXlQcmljZUJ5QXNzZXRJZAEFCmFzc2V0SWRPcHQAAAQGc2VsbGVyCQELdmFsdWVPckVsc2UCCQCdCAIFDm1hcmtldENvbnRyYWN0CQESa2V5U2VsbGVyQnlBc3NldElkAQUKYXNzZXRJZE9wdAIACQCUCgIFA25pbAkAzAgCCQCsAgICFiVzJWRfX21hcmtldE5mdFByaWNlX18JAKQDAQUFcHJpY2UJAMwIAgkArAICAhclcyVzX19tYXJrZXROZnRTZWxsZXJfXwUGc2VsbGVyBQNuaWwAo/VdlQ==", "height": 3405869, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: F5d59R2TiRxKNPrNtvWPi9ku8jADqj96cPAzWV3cGE96 Next: none Diff:
OldNewDifferences
7070
7171 let IdxCfgInvestFundDapp = 5
7272
73+let IdxCfgMarketDapp = 6
74+
7375 func keyRestCfg () = "%s__restConfig"
7476
7577
9395 let puzzlePoolContract = getContractAddressOrFail(rest2Cfg, IdxCfgPuzzlePoolDapp)
9496
9597 let investFundContract = getContractAddressOrFail(rest2Cfg, IdxCfgInvestFundDapp)
98+
99+let marketContract = getContractAddressOrFail(rest2Cfg, IdxCfgMarketDapp)
96100
97101 let oldAcresContractKey = "oldAcresContract"
98102
141145 else (b + VRF_OFFSET)
142146 (toInt(value(value(blockInfoByHeight(h)).vrf)) % 4)
143147 }
148+
149+
150+func keySellerByAssetId (assetId) = ("seller_" + assetId)
151+
152+
153+func keyPriceByAssetId (assetId) = ("price_" + assetId)
144154
145155
146156 func keyAssetIdsBySeller (addr) = ("assetIds_" + addr)
549559 @Callable(i)
550560 func userOrdersREADONLY (userAddrOpt) = {
551561 let nftsKey = keyAssetIdsBySeller(userAddrOpt)
552- let nftsStr = valueOrElse(getString(nftsKey), "")
562+ let nftsStr = valueOrElse(getString(marketContract, nftsKey), "")
553563 $Tuple2(nil, [("%s%s__userSaleNfts__" + nftsStr)])
564+ }
565+
566+
567+
568+@Callable(i)
569+func orderInfoREADONLY (assetIdOpt) = {
570+ let price = valueOrElse(getInteger(marketContract, keyPriceByAssetId(assetIdOpt)), 0)
571+ let seller = valueOrElse(getString(marketContract, keySellerByAssetId(assetIdOpt)), "")
572+ $Tuple2(nil, [("%s%d__marketNftPrice__" + toString(price)), ("%s%s__marketNftSeller__" + seller)])
554573 }
555574
556575
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
73+let IdxCfgMarketDapp = 6
74+
7375 func keyRestCfg () = "%s__restConfig"
7476
7577
7678 func keyRest2Address () = "%s__rest2Addr"
7779
7880
7981 func readRestCfgOrFail (rest) = split_4C(getStringOrFail(rest, keyRestCfg()), SEP)
8082
8183
8284 func getContractAddressOrFail (rest2Cfg,idx) = valueOrErrorMessage(addressFromString(rest2Cfg[idx]), ("Rest cfg doesn't contain address at index " + toString(idx)))
8385
8486
8587 let rest2Contract = addressFromStringValue(valueOrElse(getString(this, keyRest2Address()), defaultRest2AddressStr))
8688
8789 let rest2Cfg = readRestCfgOrFail(rest2Contract)
8890
8991 let acres2Contract = getContractAddressOrFail(rest2Cfg, IdxCfgAcres2Dapp)
9092
9193 let wlgContract = getContractAddressOrFail(rest2Cfg, IdxCfgWlgDapp)
9294
9395 let puzzlePoolContract = getContractAddressOrFail(rest2Cfg, IdxCfgPuzzlePoolDapp)
9496
9597 let investFundContract = getContractAddressOrFail(rest2Cfg, IdxCfgInvestFundDapp)
98+
99+let marketContract = getContractAddressOrFail(rest2Cfg, IdxCfgMarketDapp)
96100
97101 let oldAcresContractKey = "oldAcresContract"
98102
99103 func keyLastWeekTxIdByUser (addr) = ("lastWeekTxIdByUser_" + addr)
100104
101105
102106 func keyCurWeekTxIdByUser (addr) = ("curWeekTxIdByUser_" + addr)
103107
104108
105109 let wlgAssetIdKey = "wlg_assetId"
106110
107111 let wlgAssetId = valueOrErrorMessage(getBinary(wlgContract, wlgAssetIdKey), "WLGOLD is not issued yet")
108112
109113 let acresAssetIdKey = "acresAssetId"
110114
111115 let acresAssetId = valueOrErrorMessage(getBinary(acres2Contract, acresAssetIdKey), "ACRES is not issued yet")
112116
113117 func keyStakedDuckByOwner (ownerAddr) = ("stakedDuckByOwner_" + ownerAddr)
114118
115119
116120 func keyStakedNFTsByOwner (ownerAddr) = ("stakedNFTsByOwner_" + ownerAddr)
117121
118122
119123 func keyAddressToCustomName (addr) = ("accountCustomNameByAddr_" + addr)
120124
121125
122126 func keyAddressRefBy (addr) = ("accRefBy_" + addr)
123127
124128
125129 func keyAddressReferrals (addr) = ("accReferrals_" + addr)
126130
127131
128132 func keyUserBet (addr) = ("userBet_" + addr)
129133
130134
131135 func keyUserWeekTickets (addr,week) = ((("userWeekTickets_" + addr) + "_") + toString(week))
132136
133137
134138 func keyTotalWeekTickets (week) = ("totalWeekTickets_" + toString(week))
135139
136140
137141 func winningBet (day) = {
138142 let b = (day * DAY_BLOCKS)
139143 let h = if ((b > VRF_OFFSET))
140144 then b
141145 else (b + VRF_OFFSET)
142146 (toInt(value(value(blockInfoByHeight(h)).vrf)) % 4)
143147 }
148+
149+
150+func keySellerByAssetId (assetId) = ("seller_" + assetId)
151+
152+
153+func keyPriceByAssetId (assetId) = ("price_" + assetId)
144154
145155
146156 func keyAssetIdsBySeller (addr) = ("assetIds_" + addr)
147157
148158
149159 let ixWlgAmount = 0
150160
151161 let ixWlgWlg = 1
152162
153163 let ixWlgPrice = 2
154164
155165 let ixWlgFunds = 3
156166
157167 let ixWlgActivity = 4
158168
159169 let ixWlgAcres2 = 5
160170
161171 let ixWlgArbitrage = 6
162172
163173 let ixWlgPool = 7
164174
165175 let ixWlgIssueTime = 8
166176
167177 let ixWlgLastTeamActTime = 9
168178
169179 let ixWlgTeamTotal = 10
170180
171181 let ixWlgTeamAmLeft = 11
172182
173183 let ixWlgTeamAmAvailNow = 12
174184
175185 let ixWlgTeamWlgold = 13
176186
177187 let ixWlgActTotal = 14
178188
179189 let ixWlgActAmLeft = 15
180190
181191 let ixWlgActAmAvailNow = 16
182192
183193 let ixWlgActWlgold = 17
184194
185195 let ixWlgCurPeriod = 18
186196
187197 let ixWlgAmLeftTotal = 19
188198
189199 let ixWlgCurPeriodDistribution = 20
190200
191201 let ixWlgLastUserTime = 21
192202
193203 let ixWlgInvestFundAmount = 22
194204
195205 let ixWlgUserAmAvailNow = 23
196206
197207 let ixWlgEffUserTime = 24
198208
199209 let ixWlgIssue10Amount = 25
200210
201211 let ixWlgMarketingIssue10Amount = 26
202212
203213 let ixWlgTeamIssue10Amount = 27
204214
205215 let ixWlgUser10part = 28
206216
207217 let ixWlgIssue10Time = 29
208218
209219 let ixWlgTotalFarmingPower = 30
210220
211221 let ixWlgAcresStakedTotal = 31
212222
213223 let ixWlgNftTotalIssued = 32
214224
215225 let ixWlgNftTotalBurned = 33
216226
217227 let ixWlgWlNftTotalStaked = 34
218228
219229 let ixWlgWlNftUserStaked = 35
220230
221231 func asTuple4Ints (val) = match val {
222232 case t: (Int, Int, Int, Int) =>
223233 t
224234 case _ =>
225235 throw("fail to cast into (Int, Int, Int, Int)")
226236 }
227237
228238
229239 func asTuple3Ints (val) = match val {
230240 case t: (Int, Int, Int) =>
231241 t
232242 case _ =>
233243 throw("fail to cast into (Int, Int, Int)")
234244 }
235245
236246
237247 func asTuple2Ints (val) = match val {
238248 case t: (Int, Int) =>
239249 t
240250 case _ =>
241251 throw("fail to cast into (Int, Int)")
242252 }
243253
244254
245255 let M6_ = 1000000
246256
247257 let M8_ = 100000000
248258
249259 let TEAM_SHARE = 200000
250260
251261 let ACTIVITY_SHARE = 100000
252262
253263 let PLAYER_SHARE = 400000
254264
255265 let YEAR_MILLIS = 31557600000
256266
257267 let DAY_MS = 86400000
258268
259269 let ISSUE10 = 1000000000
260270
261271 let PLAYERS10_SHARE = 800000
262272
263273 let MARKETING10_SHARE = 100000
264274
265275 let TEAM10_SHARE = 100000
266276
267277 let NEW_STAKING_START = 1731279600000
268278
269279 let teamAdrKey = "teamAddr"
270280
271281 let lastTeamTimKey = "lastClaimedTime_team"
272282
273283 let teamAmtLeftKey = "teamAmountLeft"
274284
275285 let lastActivitiesTimKey = "lastClaimedTime_activities"
276286
277287 let actAmtLeftKey = "activitiesAmountLeft"
278288
279289 let stakersAmtLeftKey = "stakersAmountLeft"
280290
281291 func keyLastClaimTimeByUser (addr) = ("lastClaimedTimeUser_" + addr)
282292
283293
284294 func distrByPeriod (issuedAmount,period) = fraction(issuedAmount, (PLAYER_SHARE * (period + 1)), (6 * M6_))
285295
286296
287297 let wlgIssue10TimeKey = "wlg_issue10Time"
288298
289299 let wlgIssueTimKey = "wlg_issueTime"
290300
291301 let wlgIssuedAmtKey = "wlg_issuedAmount"
292302
293303 let zbIssuedAmtKey = "zbill_issuedAmount"
294304
295305 func keyAcresStakedAmtByUser (addr) = ("acresStakedAmountByUser_" + addr)
296306
297307
298308 let acresStakdTotalKey = "acresStakedAmountTotal"
299309
300310 let totalFarmingPowerKey = "totalFarmingPower"
301311
302312 let dapp2Rest = 0
303313
304314 let dapp2Staking = 1
305315
306316 let dapp2Wlg = 2
307317
308318 let dapp2Puzzle = 3
309319
310320 let dapp2InvestFund = 4
311321
312322 let keyNftTotalIssued = "nftTotalIssued"
313323
314324 let keyNftTotalBurned = "nftTotalBurned"
315325
316326 let keyWlNftTotalStaked = "WlNftTotalStaked"
317327
318328 func keyUserWlNftNumber (addr) = ("userWlNftNumber_" + addr)
319329
320330
321331 func keyUserFullBonus (addr) = ("userFullBonus_" + addr)
322332
323333
324334 let levelAcres = [0, 10, 20, 40, 80, 150, 250, 400, 700, 1000]
325335
326336 func getLevelByAcres (acres) = {
327337 let acr = ((acres + 99999999) / M8_)
328338 func checker (acc,item) = if ((item >= acr))
329339 then acc
330340 else (acc + 1)
331341
332342 let $l = levelAcres
333343 let $s = size($l)
334344 let $acc0 = 0
335345 func $f0_1 ($a,$i) = if (($i >= $s))
336346 then $a
337347 else checker($a, $l[$i])
338348
339349 func $f0_2 ($a,$i) = if (($i >= $s))
340350 then $a
341351 else throw("List size exceeds 10")
342352
343353 $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)
344354 }
345355
346356
347357 func getFarmingPowerByAcres (acres) = ((acres * 20) * (getLevelByAcres(acres) + 4))
348358
349359
350360 func getFarmingPowerByAcresAndBonus (acres,bonus6) = {
351361 let notBonused = getFarmingPowerByAcres(acres)
352362 $Tuple2(fraction(notBonused, (M6_ + bonus6), M6_), notBonused)
353363 }
354364
355365
356366 func getFarmingPowers (userAddrStrOrEmpty,acres2Contract) = {
357367 let totalFP = valueOrElse(getInteger(acres2Contract, totalFarmingPowerKey), 0)
358368 let userAcres = valueOrElse(getInteger(acres2Contract, keyAcresStakedAmtByUser(userAddrStrOrEmpty)), 0)
359369 let userBonus = valueOrElse(getInteger(acres2Contract, keyUserFullBonus(userAddrStrOrEmpty)), 0)
360370 let $t079119 = getFarmingPowerByAcresAndBonus(userAcres, userBonus)
361371 let userFPbonused = $t079119._1
362372 let userFPnotBonused = $t079119._2
363373 [totalFP, userFPbonused, userFPnotBonused, userBonus]
364374 }
365375
366376
367377 let idxTotalFP = 0
368378
369379 let idxUserFPbonused = 1
370380
371381 let idxUserFPnotBonused = 2
372382
373383 func getWlgStats2 (userAddrOpt,contracts,usdtId,usdtBalanceCorrection) = {
374384 let issuedAmount = valueOrErrorMessage(getInteger(contracts[dapp2Wlg], wlgIssuedAmtKey), "WLGOLD is not issued yet")
375385 let restUsd = assetBalance(contracts[dapp2Rest], usdtId)
376386 let wlgUsd = (assetBalance(contracts[dapp2Wlg], usdtId) - usdtBalanceCorrection)
377387 let puzzleUsd = assetBalance(contracts[dapp2Puzzle], usdtId)
378388 let acres2Usd = assetBalance(contracts[dapp2Staking], usdtId)
379389 let investFndContract = contracts[dapp2InvestFund]
380390 let investFundTotal = (assetBalance(investFndContract, usdtId) + valueOrElse(getInteger(investFndContract, zbIssuedAmtKey), 0))
381391 let totalFundsUsd = ((acres2Usd + wlgUsd) + investFundTotal)
382392 let wlgId = valueOrErrorMessage(getBinary(contracts[dapp2Wlg], "wlg_assetId"), "Not initialized yet")
383393 let now = lastBlock.timestamp
384394 let issueTime = valueOrErrorMessage(getInteger(contracts[dapp2Wlg], wlgIssueTimKey), "Not initialized")
385395 let wlgWlg = assetBalance(contracts[dapp2Wlg], wlgId)
386396 let teamTotal = fraction(issuedAmount, TEAM_SHARE, M6_)
387397 let teamAmountLeft = valueOrElse(getInteger(contracts[dapp2Wlg], teamAmtLeftKey), teamTotal)
388398 let lastTeamTime = valueOrElse(getInteger(contracts[dapp2Wlg], lastTeamTimKey), issueTime)
389399 let teamAddr = addressFromStringValue(value(getString(contracts[dapp2Wlg], teamAdrKey)))
390400 let teamAmountAvailableNow = min([fraction(teamTotal, (now - lastTeamTime), (3 * YEAR_MILLIS)), teamAmountLeft])
391401 let teamWlgold = assetBalance(teamAddr, wlgId)
392402 let actTotal = fraction(issuedAmount, ACTIVITY_SHARE, M6_)
393403 let actAmountLeft = valueOrElse(getInteger(contracts[dapp2Wlg], actAmtLeftKey), actTotal)
394404 let lastActivitiesTime = valueOrElse(getInteger(contracts[dapp2Wlg], lastActivitiesTimKey), issueTime)
395405 let actAmountAvailableNow = min([fraction(actTotal, (now - lastActivitiesTime), (3 * YEAR_MILLIS)), actAmountLeft])
396406 let actWlgold = assetBalance(contracts[dapp2Rest], wlgId)
397407 let lastUserTime = valueOrElse(getInteger(contracts[dapp2Wlg], keyLastClaimTimeByUser(userAddrOpt)), issueTime)
398408 let lastUserPeriod = ((lastUserTime - issueTime) / YEAR_MILLIS)
399409 let nowLimited = min([now, (issueTime + (3 * YEAR_MILLIS))])
400410 let curPeriod = min([((now - issueTime) / YEAR_MILLIS), 2])
401411 let eff = getFarmingPowers(userAddrOpt, contracts[dapp2Staking])
402412 let curPeriodDistribution = distrByPeriod(issuedAmount, curPeriod)
403413 let prevPeriodEnd = (issueTime + (YEAR_MILLIS * curPeriod))
404414 let prevPrevPeriodEnd = (issueTime + (YEAR_MILLIS * (curPeriod - 1)))
405415 let a0 = fraction(curPeriodDistribution, (nowLimited - lastUserTime), YEAR_MILLIS)
406416 let userAvailable = if ((lastUserPeriod == curPeriod))
407417 then a0
408418 else if ((lastUserPeriod == (curPeriod - 1)))
409419 then {
410420 let a1 = fraction(distrByPeriod(issuedAmount, (curPeriod - 1)), (prevPeriodEnd - lastUserTime), YEAR_MILLIS)
411421 (a1 + a0)
412422 }
413423 else {
414424 let a2 = fraction(distrByPeriod(issuedAmount, (curPeriod - 2)), (prevPrevPeriodEnd - lastUserTime), YEAR_MILLIS)
415425 let a1 = distrByPeriod(issuedAmount, (curPeriod - 1))
416426 ((a2 + a1) + a0)
417427 }
418428 let amountLeftTotal = valueOrElse(getInteger(contracts[dapp2Wlg], stakersAmtLeftKey), 0)
419429 let userAmount = if ((eff[idxTotalFP] != 0))
420430 then fraction(userAvailable, eff[idxUserFPbonused], eff[idxTotalFP])
421431 else 0
422432 let lastIssue10Time = valueOrElse(getInteger(contracts[dapp2Wlg], wlgIssue10TimeKey), NEW_STAKING_START)
423433 let issue10Amount = fraction(ISSUE10, max([(now - lastIssue10Time), 0]), DAY_MS)
424434 let marketingIssue10Amount = fraction(issue10Amount, MARKETING10_SHARE, M6_)
425435 let teamIssue10Amount = fraction(issue10Amount, TEAM10_SHARE, M6_)
426436 let user10Interval = max([(now - max([NEW_STAKING_START, lastUserTime])), 0])
427437 let user10part = if ((eff[idxTotalFP] != 0))
428438 then fraction(fraction(fraction(ISSUE10, user10Interval, DAY_MS), eff[idxUserFPbonused], eff[idxTotalFP]), PLAYERS10_SHARE, M6_)
429439 else 0
430440 let newIssue10Time = max([NEW_STAKING_START, now])
431441 let acresStakedTotal = valueOrElse(getInteger(contracts[dapp2Staking], acresStakdTotalKey), 0)
432442 let nftTotalIssued = valueOrElse(getInteger(contracts[dapp2Staking], keyNftTotalIssued), 0)
433443 let nftTotalBurned = valueOrElse(getInteger(contracts[dapp2Staking], keyNftTotalBurned), 0)
434444 let wlNftTotalStaked = valueOrElse(getInteger(contracts[dapp2Staking], keyWlNftTotalStaked), 0)
435445 let wlNftUserStaked = valueOrElse(getInteger(contracts[dapp2Staking], keyUserWlNftNumber(valueOrElse(userAddrOpt, ""))), 0)
436446 [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]
437447 }
438448
439449
440450 func walletInternal (userAddressOpt) = {
441451 let addr = addressFromString(userAddressOpt)
442452 let balance = if (isDefined(addr))
443453 then wavesBalance(value(addr))
444454 else BalanceDetails(0, 0, 0, 0)
445455 let usdtBalance = if (isDefined(addr))
446456 then assetBalance(value(addr), usdtAssetId)
447457 else 0
448458 let wlgoldBalance = if (isDefined(addr))
449459 then assetBalance(value(addr), wlgAssetId)
450460 else 0
451461 let customName = valueOrElse(getString(acres2Contract, keyAddressToCustomName(userAddressOpt)), userAddressOpt)
452462 let refByKey = keyAddressRefBy(userAddressOpt)
453463 let refBy = getString(acres2Contract, refByKey)
454464 let refs = valueOrElse(getString(acres2Contract, keyAddressReferrals(userAddressOpt)), "")
455465 let lastTxId = valueOrElse(getString(acres2Contract, keyLastWeekTxIdByUser(userAddressOpt)), "")
456466 let curTxId = valueOrElse(getString(acres2Contract, keyCurWeekTxIdByUser(userAddressOpt)), "")
457467 let acresBalance = if (isDefined(addr))
458468 then assetBalance(value(addr), acresAssetId)
459469 else 0
460470 let stakedAcres = valueOrElse(getInteger(acres2Contract, keyAcresStakedAmtByUser(userAddressOpt)), 0)
461471 let lvl = getLevelByAcres(stakedAcres)
462472 let fp = getFarmingPowers(userAddressOpt, acres2Contract)
463473 let acresToNextLvl = if ((lvl >= size(levelAcres)))
464474 then 0
465475 else (((levelAcres[lvl] * M8_) + 1) - stakedAcres)
466476 let nfts = valueOrElse(getString(acres2Contract, keyStakedNFTsByOwner(userAddressOpt)), "")
467477 let bonus = valueOrElse(getInteger(acres2Contract, keyUserFullBonus(userAddressOpt)), 0)
468478 [("%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]))]
469479 }
470480
471481
472482 @Callable(i)
473483 func constructorV1 (contracts) = if ((i.caller != this))
474484 then throw("permissions denied")
475485 else {
476486 func descriptor (acc,ignoredItem) = (acc + "%s")
477487
478488 let descr = {
479489 let $l = contracts
480490 let $s = size($l)
481491 let $acc0 = ""
482492 func $f0_1 ($a,$i) = if (($i >= $s))
483493 then $a
484494 else descriptor($a, $l[$i])
485495
486496 func $f0_2 ($a,$i) = if (($i >= $s))
487497 then $a
488498 else throw("List size exceeds 10")
489499
490500 $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)
491501 }
492502 [StringEntry(keyRestCfg(), makeString(descr :: contracts, SEP)), StringEntry(keyRest2Address(), toString(this))]
493503 }
494504
495505
496506
497507 @Callable(i)
498508 func walletInfoREADONLY (userAddressOpt) = $Tuple2(nil, walletInternal(userAddressOpt))
499509
500510
501511
502512 @Callable(i)
503513 func conversionInfoREADONLY (userAddressOpt) = {
504514 let oldAcresAddress = addressFromStringValue(getStringValue(acres2Contract, oldAcresContractKey))
505515 let $t050515173 = asTuple2Ints(invoke(oldAcresAddress, "unstakeAllAcresREADONLY", [userAddressOpt], nil))
506516 let unstakedAcres = $t050515173._1
507517 let claimedAcres = $t050515173._2
508518 let $t051765325 = asTuple4Ints(invoke(acres2Contract, "unstakeLandsREADONLY", [userAddressOpt], nil))
509519 let acresFromPieces = $t051765325._1
510520 let acresFromRes = $t051765325._2
511521 let acresFromMat = $t051765325._3
512522 let acresFromProd = $t051765325._4
513523 let oldStakingAddress = addressFromStringValue(oldStakingContractStr)
514524 let duckAssetId = valueOrElse(getString(oldStakingAddress, keyStakedDuckByOwner(userAddressOpt)), "")
515525 let $t055035725 = if ((duckAssetId != ""))
516526 then asTuple3Ints(invoke(oldStakingAddress, "unstakeDuckREADONLY", [duckAssetId, userAddressOpt], nil))
517527 else $Tuple3(0, 0, 0)
518528 let acresFromDuckRes = $t055035725._1
519529 let acresFromDuckMat = $t055035725._2
520530 let acresFromDuckProd = $t055035725._3
521531 $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))])
522532 }
523533
524534
525535
526536 @Callable(i)
527537 func wlgStatsREADONLY (userAddrOpt) = {
528538 let curStats = getWlgStats2(userAddrOpt, [rest2Contract, acres2Contract, wlgContract, puzzlePoolContract, investFundContract], usdtAssetId, 0)
529539 $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]))])
530540 }
531541
532542
533543
534544 @Callable(i)
535545 func lotteryStatsREADONLY (userAddrOpt) = {
536546 let today = (height / DAY_BLOCKS)
537547 let week = (height / WEEK_BLOCKS)
538548 let lastWeek = (week - 1)
539549 let curWeekTickets = valueOrElse(getInteger(wlgContract, keyUserWeekTickets(userAddrOpt, week)), 0)
540550 let lastWeekTickets = valueOrElse(getInteger(wlgContract, keyUserWeekTickets(userAddrOpt, lastWeek)), 0)
541551 let curWeekTotalTickets = valueOrElse(getInteger(wlgContract, keyTotalWeekTickets(week)), 0)
542552 let lastWeekTotalTickets = valueOrElse(getInteger(wlgContract, keyTotalWeekTickets(lastWeek)), 0)
543553 let usersBet = valueOrElse(getString(wlgContract, keyUserBet(userAddrOpt)), "")
544554 $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)])
545555 }
546556
547557
548558
549559 @Callable(i)
550560 func userOrdersREADONLY (userAddrOpt) = {
551561 let nftsKey = keyAssetIdsBySeller(userAddrOpt)
552- let nftsStr = valueOrElse(getString(nftsKey), "")
562+ let nftsStr = valueOrElse(getString(marketContract, nftsKey), "")
553563 $Tuple2(nil, [("%s%s__userSaleNfts__" + nftsStr)])
564+ }
565+
566+
567+
568+@Callable(i)
569+func orderInfoREADONLY (assetIdOpt) = {
570+ let price = valueOrElse(getInteger(marketContract, keyPriceByAssetId(assetIdOpt)), 0)
571+ let seller = valueOrElse(getString(marketContract, keySellerByAssetId(assetIdOpt)), "")
572+ $Tuple2(nil, [("%s%d__marketNftPrice__" + toString(price)), ("%s%s__marketNftSeller__" + seller)])
554573 }
555574
556575

github/deemru/w8io/026f985 
52.25 ms